/* =============================================================
   Solak Projects Manager — Front-end styles
   NOTE: .widget_info margin-top:-134px is overridden via
   inline style="margin-top:0" directly on the element in the
   PHP template (inline styles always beat any stylesheet rule).
   ============================================================= */

/* ── Project info icon — match theme exactly ──────────────────
   Theme SCSS: border-radius:20px, 56×56px, white bg, #E0E0E0
   border, orange icon color. Applied here because the theme
   scopes these rules to its Elementor widget context only.
   ─────────────────────────────────────────────────────────── */
.single-solak_project .project-info_icon i {
    display:         inline-flex !important;
    align-items:     center !important;
    justify-content: center !important;
    width:           56px !important;
    height:          56px !important;
    line-height:     56px !important;
    background:      #ffffff !important;
    border:          1px solid #E0E0E0 !important;
    border-radius:   20px !important;
    color:           var(--theme-color, #f5821f) !important;
    font-size:       20px !important;
    text-align:      center !important;
    transition:      all 0.4s ease-in-out;
    flex-shrink:     0;
}

/* ── Projects Grid Widget ─────────────────────────────────── */

/* Grid layout */
.sp-grid-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 991px) {
    .sp-grid-wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .sp-grid-wrap { grid-template-columns: 1fr; }
}

/* Each card — wraps .project-img and overlay */
.sp-project-grid {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    height: 380px;
    transition: opacity .3s ease, transform .3s ease;
}
.sp-project-grid .project-img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    z-index: 2;
}
.sp-project-grid .project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    transition: transform .5s ease;
}
.sp-project-grid:hover .project-img img {
    transform: scale(1.06);
}

/* Dark overlay on hover */
.sp-project-grid .project-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.2));
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease-in-out;
    border-radius: 30px;
}
.sp-project-grid:hover .project-img::before {
    opacity: 1;
    visibility: visible;
}

/* Slide-up text content */
.sp-project-grid .project-content {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: -40px;
    opacity: 0;
    visibility: hidden;
    transition: all .35s ease-in-out;
    z-index: 3;
}
.sp-project-grid:hover .project-content {
    bottom: 30px;
    opacity: 1;
    visibility: visible;
}
.sp-project-grid .box-title {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    border-bottom: 1px solid #fff;
    padding-bottom: 10px;
    margin-bottom: 6px;
}
.sp-project-grid .box-title a { color: inherit; text-decoration: none; }
.sp-project-grid .box-subtitle {
    color: #FFFA84;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

/* Top-right icon button */
.sp-project-grid .project-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 4;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease-in-out;
}
.sp-project-grid:hover .project-icon {
    opacity: 1;
    visibility: visible;
}
.sp-project-grid .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: all .3s;
}
.sp-project-grid .icon-btn:hover {
    background: #fff;
    color: var(--title-color);
}

/* ── Filter Bar ─────────────────────────────────────────── */
.sp-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}
.sp-filter-bar .sp-filter-btn {
    padding: 10px 24px;
    border: 2px solid #E0E0E0;
    border-radius: 30px;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--title-color);
    transition: all .3s;
    font-family: inherit;
}
.sp-filter-bar .sp-filter-btn:hover,
.sp-filter-bar .sp-filter-btn.active {
    background: var(--theme-color, #f5821f);
    border-color: var(--theme-color, #f5821f);
    color: #fff;
}

.project-img img {
    border-radius: 30px;
    width: 100%;
    object-fit: cover;
}
.mb-35 { margin-bottom: 35px; }
.mb-40 { margin-bottom: 40px; }
.mt-10 { margin-top: 10px; }
.mt-50 { margin-top: 50px; }

/* ── Project nav prev/next ────────────────────────────────── */
.project-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #ededed;
    border-bottom: 1px solid #ededed;
    padding: 17px 0;
    margin-top: 22px;
}
.project-nav .nav-btn {
    display: flex;
    align-items: center;
    color: var(--body-color);
    font-weight: 500;
    text-decoration: none;
    transition: color .3s;
}
.project-nav .nav-btn:hover { color: var(--theme-color); }

/* ── Gallery ──────────────────────────────────────────────── */
.project-gallery a:hover img { transform: scale(1.04); }

/* ── Archive: project card ────────────────────────────────── */
.sp-project-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(1,15,28,.07);
    transition: transform .3s, box-shadow .3s;
    background: #fff;
}
.sp-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(1,15,28,.12);
}
.sp-project-card .sp-card-img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}
.sp-project-card .sp-card-body {
    padding: 24px;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 12px 12px;
}
.sp-project-card .sp-card-cat {
    font-size: 13px;
    color: var(--theme-color);
    margin-bottom: 6px;
    display: block;
}
.sp-project-card .sp-card-title {
    font-size: 20px;
    margin-bottom: 10px;
}
.sp-project-card .sp-card-title a { color: var(--title-color); text-decoration: none; }
.sp-project-card .sp-card-title a:hover { color: var(--theme-color); }
.sp-project-card .sp-card-excerpt { font-size: 14px; color: #666; margin-bottom: 16px; }

/* ── Filter menu (archive) ────────────────────────────────── */
.sp-filter-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 40px; }
.sp-filter-menu .tab-btn {
    padding: 8px 22px;
    border: 2px solid #eee;
    border-radius: 30px;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--title-color);
    transition: all .3s;
}
.sp-filter-menu .tab-btn:hover,
.sp-filter-menu .tab-btn.active {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}

/* ── Space helpers ────────────────────────────────────────── */
.space-top         { padding-top: 80px; }
.space-extra-bottom{ padding-bottom: 80px; }
@media (max-width: 767px) {
    .space-top          { padding-top: 50px; }
    .space-extra-bottom { padding-bottom: 50px; }
}

