/* ============================================
   INDIRA CONSULTANCY - SERVICE DETAIL PAGE STYLES
   Exact match to Figma design specifications
   Colors: Navy #1E2A3A, Gold #F8CA3B, Cream #FDFBF7, White #FFFFFF
   Fonts: Kaisei Decol (headings - italic), Poppins (body)
   ============================================ */

/* ============================================
   SERVICE DETAIL HERO SECTION
   ============================================ */
.service-detail-hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.service-detail-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.service-detail-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-detail-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(30, 42, 58, 0.92) 0%,
        rgba(30, 42, 58, 0.80) 40%,
        rgba(30, 42, 58, 0.50) 70%,
        rgba(30, 42, 58, 0.35) 100%
    );
}

.service-detail-hero > .container {
    position: relative;
    z-index: 2;
}

.service-detail-hero-content {
    padding: 120px 0 80px;
    max-width: 600px;
}

.service-detail-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(30, 42, 58, 0.9);
    color: #F8CA3B;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.service-detail-hero-badge i {
    font-size: 12px;
    color: #F8CA3B;
}

.service-detail-hero-title {
    font-family: 'Kaisei Decol', serif;
    font-size: 52px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.service-detail-hero-title .title-accent {
    color: #F8CA3B;
    font-style: italic;
}

.service-detail-hero-title-underline {
    width: 80px;
    height: 4px;
    background-color: #F8CA3B;
    margin-bottom: 20px;
    border-radius: 2px;
}

.service-detail-hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.service-detail-hero-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 32px;
}

.service-detail-hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #F8CA3B;
    color: #000000;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-hero-gold:hover {
    background-color: #e6b832;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(248, 202, 59, 0.35);
}

.btn-hero-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-hero-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
    color: #FFFFFF;
}

/* ============================================
   FRAMEWORK SECTION (6 Cards Grid)
   Dark Navy Background: #1E2A3A
   ============================================ */
.framework-section {
    padding: 80px 0;
    background-color: #1E2A3A;
}

.framework-header {
    text-align: center;
    margin-bottom: 50px;
}

.framework-badge {
    display: inline-block;
    color: #F8CA3B;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.framework-title {
    font-family: 'Kaisei Decol', serif;
    font-size: 40px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 14px;
}

.framework-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Framework Cards Grid - 3x2 Layout */
.framework-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 20px;
}

.framework-grid > :nth-child(4):nth-last-child(1) {
    /* Only one item in the second row (total 4 cards) */
    grid-column: 2 / span 1;
}
.framework-grid > :nth-child(4):nth-last-child(2),
.framework-grid > :nth-child(5):nth-last-child(1) {
    /* Only two items in the second row (total 5 cards) */
    grid-column: 2 / span 1;
}
.framework-grid > :nth-child(5):nth-last-child(0) {
    /* For clarity, if exactly 5 cards and using cards 4-5 for the second row */
    grid-column: 2 / span 1;
}
.framework-grid > :nth-child(5):nth-last-child(1) {
    /* 5th card, only for 5 cards */
    grid-column: 3 / span 1;
}

.framework-grid > :nth-child(4):nth-last-child(2) ~ * {
    /* If more than 5, let grid flow naturally */
    grid-column: auto;
}


.framework-card {
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 28px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.framework-card:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.framework-card-icon {
    width: 44px;
    height: 44px;
    background-color: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F8CA3B;
    font-size: 20px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.framework-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 10px;
    line-height: 1.3;
}

.framework-card-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .framework-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .framework-grid {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ============================================
   TYPOLOGIES/MODELS SECTION (Interactive Tabs)
   White Background
   ============================================ */
.typologies-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.typologies-header {
    margin-bottom: 40px;
}

.typologies-title {
    font-family: 'Kaisei Decol', serif;
    font-size: 40px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.typologies-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
}

.typologies-content {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.typologies-tabs {
    flex: 0 0 45%;
    max-width: 45%;
}

.typology-tab {
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    padding: 20px 24px;
    margin-bottom: 4px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    width: 100%;
    display: block;
}

.typology-tab:hover {
    background-color: rgba(248, 202, 59, 0.04);
}

.typology-tab.active {
    background-color: #FAF9F6;
    border-left-color: #F8CA3B;
}

.typology-tab-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.typology-tab.active .typology-tab-title {
    color: #F8CA3B;
}

.typology-tab-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #666666;
    margin-bottom: 8px;
    display: block;
}

.typology-tab-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #777777;
    line-height: 1.6;
    margin: 0;
    display: none;
}

.typology-tab.active .typology-tab-desc {
    display: block;
}

/* Typology Image Panel */
.typologies-image-panel {
    flex: 1;
    position: relative;
    min-height: 420px;
    border-radius: 10px;
    overflow: hidden;
}

.typology-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.typology-image-slide.active {
    opacity: 1;
}

.typology-image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.typology-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(30, 42, 58, 0.25) 0%,
        rgba(30, 42, 58, 0.85) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.typology-image-label {
    display: inline-block;
    background-color: #F8CA3B;
    color: #000000;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 4px;
    align-self: flex-end;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.typology-image-content {
    color: #FFFFFF;
}

.typology-image-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
}

.typology-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.typology-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.typology-features li i {
    color: #F8CA3B;
    font-size: 10px;
}

@media (max-width: 991px) {
    .typologies-content {
        flex-direction: column;
    }

    .typologies-tabs {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .typologies-image-panel {
        min-height: 380px;
    }
}

/* ============================================
   OUTCOME SECTION (White Background)
   Background: #FFFFFF
   ============================================ */
.outcome-section {
    padding: 80px 0;
    background-color: #FFFFFF;
    text-align: center;
}

.outcome-label {
    font-family: 'Kaisei Decol', serif;
    font-size: 32px;
    font-weight: 700;
    font-style: italic;
    color: #1E2A3A;
    margin-bottom: 0;
}

.outcome-title {
    font-family: 'Kaisei Decol', serif;
    font-size: 40px;
    font-weight: 700;
    font-style: italic;
    color: #F8CA3B;
    margin-bottom: 16px;
}

.outcome-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #666666;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

/* Outcome Cards - Light Background with Gold Border */
.outcome-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.outcome-card {
    background-color: #FAF9F6;
    border-radius: 12px;
    padding: 40px 36px;
    min-width: 280px;
    max-width: 340px;
    flex: 1;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(248, 202, 59, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.outcome-card:hover {
    transform: translateY(-5px);
    background-color: #FFFFFF;
    border-color: rgba(248, 202, 59, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.outcome-card-icon {
    width: auto;
    height: auto;
    background-color: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F8CA3B;
    font-size: 28px;
    margin: 0 auto 20px;
}

.outcome-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1E2A3A;
    margin-bottom: 8px;
}

.outcome-card-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .outcome-cards {
        flex-direction: column;
        align-items: center;
    }

    .outcome-card {
        width: 100%;
        max-width: 400px;
    }
}

/* ============================================
   TAILWINDS SECTION
   ============================================ */
.tailwinds-section {
    padding: 60px 0;
    background-color: #1E2A3A;
    border-top: 1px solid rgba(248, 202, 59, 0.2);
}

.tailwinds-content {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.tailwinds-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(248, 202, 59, 0.15);
    border: 1px solid rgba(248, 202, 59, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tailwinds-icon i {
    font-size: 20px;
    color: #F8CA3B;
}

.tailwinds-text {
    flex: 1;
}

.tailwinds-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tailwinds-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

@media (max-width: 768px) {
    .tailwinds-section {
        padding: 50px 0;
    }

    .tailwinds-content {
        flex-direction: column;
        gap: 20px;
    }

    .tailwinds-icon {
        width: 40px;
        height: 40px;
    }

    .tailwinds-icon i {
        font-size: 18px;
    }

    .tailwinds-title {
        font-size: 16px;
    }

    .tailwinds-desc {
        font-size: 14px;
    }
}

/* ============================================
   NEXT STEPS SECTION
   Dark Navy Background: #1E2A3A
   ============================================ */
.next-steps-section {
    padding: 70px 0 80px;
    background-color: #1E2A3A;
}

.next-steps-header {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.next-steps-title {
    font-family: 'Kaisei Decol', serif;
    font-size: 22px;
    font-weight: 700;
    font-style: italic;
    color: #FFFFFF;
    margin: 0;
    white-space: nowrap;
}

.next-steps-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.next-step-card {
    background-color: rgba(15, 20, 30, 0.6);
    border-radius: 8px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.next-step-card:hover {
    background-color: rgba(15, 20, 30, 0.8);
    border-color: rgba(248, 202, 59, 0.3);
    transform: translateY(-3px);
}

.next-step-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.next-step-card:hover .next-step-card-title {
    color: #FFFFFF;
}

.next-step-card-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 16px;
}

.next-step-card-link {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #F8CA3B;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.next-step-card-link i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.next-step-card:hover .next-step-card-link i {
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .next-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .next-steps-grid {
        grid-template-columns: 1fr;
    }
    
    .next-steps-title {
        font-size: 18px;
    }
}

/* ============================================
   FOOTER CTA BANNER
   Light Cream Background
   ============================================ */
.footer-cta-banner {
    background-color: #FDFBF7;
    padding: 35px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.footer-cta-text {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #666666;
    margin-bottom: 0;
}

.footer-cta-text a {
    color: #F8CA3B;
    font-weight: 600;
    text-decoration: none;
}

.footer-cta-text a:hover {
    text-decoration: underline;
}

/* Optional: Dark version of footer CTA */
.footer-cta-banner.dark {
    background-color: #1E2A3A;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta-banner.dark .footer-cta-text {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991px) {
    .service-detail-hero-title {
        font-size: 42px;
    }

    .framework-title,
    .typologies-title,
    .outcome-title {
        font-size: 34px;
    }
    
    .framework-section,
    .typologies-section,
    .outcome-section {
        padding: 60px 0;
    }
    
    .next-steps-section {
        padding: 50px 0 60px;
    }
}

@media (max-width: 768px) {
    .service-detail-hero {
        min-height: 60vh;
    }

    .service-detail-hero-content {
        padding: 100px 0 60px;
    }

    .service-detail-hero-title {
        font-size: 34px;
    }

    .service-detail-hero-title-underline {
        width: 60px;
        height: 3px;
        margin-bottom: 16px;
    }

    .service-detail-hero-subtitle {
        font-size: 15px;
    }

    .framework-section,
    .typologies-section,
    .outcome-section {
        padding: 50px 0;
    }

    .framework-title,
    .typologies-title,
    .outcome-title {
        font-size: 28px;
    }
    
    .framework-header,
    .typologies-header {
        margin-bottom: 35px;
    }
}

@media (max-width: 576px) {
    .service-detail-hero {
        min-height: 55vh;
    }

    .service-detail-hero-title {
        font-size: 28px;
    }

    .service-detail-hero-title-underline {
        width: 50px;
        height: 3px;
        margin-bottom: 14px;
    }

    .service-detail-hero-buttons {
        flex-direction: column;
    }

    .btn-hero-gold,
    .btn-hero-outline-light {
        width: 100%;
        justify-content: center;
    }

    .framework-title,
    .typologies-title,
    .outcome-title {
        font-size: 24px;
    }
    
    .framework-section,
    .typologies-section,
    .outcome-section {
        padding: 40px 0;
    }
    
    .next-steps-section {
        padding: 40px 0 50px;
    }
}
