/* =========================================================
   HEADER CLEARANCE & BASE STYLING
   Header is fixed-top (z-index 997). Slider stays below it.
   ========================================================= */

:root {
    --homepage-header-height: 90px;
}

.homepage-hero-slider {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    overflow-x: hidden;
}

.homepage-hero-slider .homepage-slider-arrow,
.homepage-hero-slider .homepage-slider-dots {
    z-index: 20;
}

/* Header style toggle for editorial slides */
body.homepage-editorial-open .header {
    background-color: #ffffff;
    box-shadow: 0 1px 0 rgba(23, 43, 77, 0.08);
}

body.homepage-editorial-open .header .navmenu > ul > li > a,
body.homepage-editorial-open .header .navmenu > ul > li > a span {
    color: #2f4d5a;
}

body.homepage-editorial-open .header .mobile-nav-toggle {
    color: #2f4d5a;
}

body.homepage-editorial-open .header .form-control {
    background: #ffffff;
    color: #2f4d5a;
    border-color: #c9d3e3;
}


/* =========================================================
   HOMEPAGE SLIDES BASE
   ========================================================= */

.homepage-slide {
    display: none;
    width: 100%;
    max-width: 100%;
}

.homepage-slide.active {
    display: block;
}

.homepage-slide.hero.active {
    display: flex;
}


/* =========================================================
   OUTER HOMEPAGE SLIDER ARROWS / DOTS
   ========================================================= */

.homepage-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(13, 85, 201, 0.25);
    border-radius: 50%;
    background: #0d55c9;
    color: #ffffff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(13, 85, 201, 0.3);
    transition: all 0.25s ease;
}

.homepage-slider-arrow:hover {
    background: #093b8f;
    transform: translateY(-50%) scale(1.08);
}

.homepage-slider-prev {
    left: 20px;
}

.homepage-slider-next {
    right: 20px;
}

body.homepage-editorial-open .homepage-slider-arrow {
    top: 50%;
    transform: translateY(-50%);
}

.homepage-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.homepage-slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid #8aa0c2;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.homepage-slider-dot.active {
    width: 28px;
    border-radius: 8px;
    background: #0d55c9;
    border-color: #0d55c9;
}


/* =========================================================
   EDITORIAL CONTAINER & MASTHEAD
   ========================================================= */

.magazine-slide {
    background: linear-gradient(135deg, #f5f7fb 0%, #ebf0f7 100%);
    color: #1b2437;
}

.magazine-slide-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: calc(var(--homepage-header-height) + 28px) 72px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.editorial-masthead {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #5b6b86;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(13, 85, 201, 0.15);
}

.masthead-rule {
    flex: 1;
    height: 1px;
    background: #0d55c9;
    opacity: 0.35;
}


/* =========================================================
   SLIDE 2: MAGAZINE CAROUSEL (3D STACK + LEFT CONTENT)
   ========================================================= */

.magazine-main {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: 36px;
    min-width: 0;
}

.magazine-content {
    position: relative;
    width: 100%;
    min-width: 0;
    padding-left: 20px;
    border-left: 3px solid #0d55c9;
}

.magazine-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.magazine-label-line {
    width: 24px;
    height: 2px;
    background: #0d55c9;
}

.magazine-region-badge {
    color: #0d55c9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.magazine-title {
    margin: 0;
    font-family: "Raleway", sans-serif;
    font-size: clamp(28px, 3.2vw, 48px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1px;
    color: #0b192c;
    overflow-wrap: break-word;
    min-height: 60px;
}

.magazine-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 16px;
    padding: 10px 0;
    border-top: 1px solid #d5dfed;
    border-bottom: 1px solid #d5dfed;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #1b2b44;
}

.meta-kicker {
    margin-right: 6px;
    color: #0d55c9;
    font-size: 11px;
    letter-spacing: 1.6px;
}

.magazine-meta-sep {
    width: 1px;
    height: 16px;
    background: #c2ccdc;
}

.magazine-about {
    margin-top: 16px;
    max-width: 520px;
}

.about-label {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.2px;
    color: #0d55c9;
}

.magazine-about p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
}

.magazine-action {
    margin-top: 20px;
}

.magazine-read-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 22px;
    background: #0d55c9;
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(13, 85, 201, 0.25);
    transition: all 0.25s ease;
}

.magazine-read-button:hover {
    background: #093b8f;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(13, 85, 201, 0.35);
}

/* Inner Magazine Controls */
.magazine-carousel-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
}

.mag-carousel-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0d55c9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mag-carousel-arrow:hover {
    background: #0d55c9;
    color: #ffffff;
    border-color: #0d55c9;
    box-shadow: 0 4px 14px rgba(13, 85, 201, 0.3);
}

.mag-carousel-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mag-dot.active {
    width: 24px;
    border-radius: 6px;
    background: #0d55c9;
}


/* =========================================================
   MAGAZINE 3D COVER STACK
   ========================================================= */

.magazine-cover-stage {
    position: relative;
    width: 100%;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.magazine-3d-stack {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.mag-stack-card {
    position: absolute;
    width: 210px;
    aspect-ratio: 3 / 4;
    cursor: pointer;
    transition: all 0.48s cubic-bezier(0.25, 1, 0.5, 1);
    user-select: none;
    border-radius: 8px;
}

.mag-cover-frame {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.mag-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mag-card-active {
    transform: translateX(0) scale(1) translateZ(0);
    z-index: 10;
    opacity: 1;
    filter: brightness(1);
    box-shadow: 0 24px 48px rgba(13, 85, 201, 0.28), 0 8px 24px rgba(11, 25, 44, 0.2);
}

.mag-card-prev {
    transform: translateX(-100px) scale(0.82) rotateY(14deg) translateZ(-40px);
    z-index: 5;
    opacity: 0.75;
    filter: brightness(0.88);
    box-shadow: -12px 16px 32px rgba(0, 0, 0, 0.16);
}

.mag-card-next {
    transform: translateX(100px) scale(0.82) rotateY(-14deg) translateZ(-40px);
    z-index: 5;
    opacity: 0.75;
    filter: brightness(0.88);
    box-shadow: 12px 16px 32px rgba(0, 0, 0, 0.16);
}

.mag-card-prev:hover {
    transform: translateX(-90px) scale(0.86) rotateY(8deg) translateZ(-20px);
    opacity: 0.92;
    filter: brightness(0.96);
}

.mag-card-next:hover {
    transform: translateX(90px) scale(0.86) rotateY(-8deg) translateZ(-20px);
    opacity: 0.92;
    filter: brightness(0.96);
}

.mag-active-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #0d55c9;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
    padding: 4px 9px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   LOWER RECENT MAGAZINE STRIP
   ========================================================= */

.recent-magazines {
    width: 100%;
    padding-top: 10px;
}

.recent-magazines-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.recent-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0b192c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
    white-space: nowrap;
}

.recent-line {
    width: 20px;
    height: 2px;
    background: #0d55c9;
}

.recent-header-rule {
    flex: 1;
    height: 1px;
    background: #d5dfed;
}

.recent-magazines-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.recent-mag-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid #d5dfed;
    background: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    color: #0b192c;
    cursor: pointer;
    transition: all 0.25s ease;
}

.recent-mag-card:hover {
    border-color: #0d55c9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 85, 201, 0.12);
}

.recent-mag-card.is-active {
    border-color: #0d55c9;
    background: #f0f5ff;
    box-shadow: inset 0 -3px 0 #0d55c9;
}

.recent-mag-thumb {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 4px;
    background: #e2e8f0;
}

.recent-mag-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recent-mag-info h4 {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recent-mag-date {
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
}


/* =========================================================
   SLIDE 3: EXECUTIVE INTERVIEWS (DARK EXECUTIVE THEME)
   ========================================================= */

.interview-slide {
    background: linear-gradient(135deg, #0b192c 0%, #152744 60%, #091526 100%);
    color: #ffffff;
}

.interview-slide .editorial-masthead {
    color: rgba(255, 255, 255, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.interview-slide .masthead-rule {
    background: #38bdf8;
    opacity: 0.5;
}

.interview-main {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    align-items: stretch;
    gap: 36px;
}

.interview-featured-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 24px;
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 24px;
    align-items: center;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.interview-portrait-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.interview-portrait-frame {
    width: 190px;
    height: 240px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    background: #1a2b42;
}

.interview-featured-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.interview-featured-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(13, 85, 201, 0.95) 0%, rgba(13, 85, 201, 0.75) 100%);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-align: center;
    padding: 6px 4px;
}

.interview-featured-content {
    min-width: 0;
}

.interview-kicker-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.interview-kicker-line {
    width: 18px;
    height: 2px;
    background: #38bdf8;
}

.interview-kicker-text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #38bdf8;
}

.interview-featured-title {
    font-family: "Raleway", sans-serif;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 10px;
    overflow-wrap: break-word;
}

.interview-person-meta {
    margin-bottom: 10px;
}

.interview-person-name {
    font-size: 16px;
    font-weight: 700;
    color: #38bdf8;
}

.interview-person-role {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.interview-summary-box {
    border-left: 2px solid rgba(56, 189, 248, 0.4);
    padding-left: 12px;
    margin-top: 10px;
}

.interview-featured-summary {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #cbd5e1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.interview-read-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #0d55c9;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-top: 16px;
    transition: all 0.25s ease;
}

.interview-read-button:hover {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(13, 85, 201, 0.4);
    transform: translateY(-2px);
}

/* Right Side Interviews List */
.interview-editorial-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.interview-side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.interview-side-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #94a3b8;
}

.interview-side-line {
    width: 16px;
    height: 2px;
    background: #38bdf8;
}

.interview-side-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.int-nav-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.int-nav-arrow:hover {
    background: #0d55c9;
    border-color: #0d55c9;
}

.interview-side-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.interview-side-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.25s ease;
}

.interview-side-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.interview-side-item.active {
    background: rgba(13, 85, 201, 0.28);
    border-color: #0d55c9;
    box-shadow: inset 3px 0 0 #38bdf8;
}

.interview-side-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: #1e293b;
}

.interview-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.interview-side-info {
    min-width: 0;
    flex: 1;
}

.interview-side-info h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.interview-side-info p {
    margin: 2px 0 0;
    font-size: 11px;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   RESPONSIVENESS (TABLET & MOBILE)
   ========================================================= */

@media (max-width: 1100px) {
    .magazine-slide-container {
        padding: calc(var(--homepage-header-height) + 24px) 44px 36px;
    }

    .magazine-main {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
        gap: 24px;
    }

    .interview-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .recent-magazines-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .magazine-slide-container {
        padding: calc(var(--homepage-header-height) + 36px) 20px 36px;
    }

    .magazine-main {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .magazine-cover-stage {
        order: -1;
        min-height: 300px;
    }

    .magazine-3d-stack {
        height: 280px;
    }

    .mag-stack-card {
        width: 170px;
    }

    .mag-card-prev {
        transform: translateX(-70px) scale(0.82) rotateY(10deg);
    }

    .mag-card-next {
        transform: translateX(70px) scale(0.82) rotateY(-10deg);
    }

    .interview-featured-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px;
    }

    .interview-portrait-frame {
        width: 160px;
        height: 200px;
        margin: 0 auto;
    }

    .interview-summary-box {
        border-left: none;
        padding-left: 0;
    }

    .recent-magazines-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .homepage-slider-prev {
        left: 8px;
    }

    .homepage-slider-next {
        right: 8px;
    }
}

@media (max-width: 480px) {
    .magazine-slide-container {
        padding: calc(var(--homepage-header-height) + 28px) 14px 32px;
    }

    .recent-magazines-list {
        grid-template-columns: 1fr;
    }
}
