/* ========================================
   PARTNERS PAGE - SPECIFIC STYLES
   ======================================== 
   
   This file contains styles ONLY for the Partners page.
   Global styles (navbar, footer, buttons, etc.) are in style.css
   
   ======================================== */

/* ========================================
   HERO BANNER
   Full viewport height with two-line title
   Second line has black background for emphasis
   ======================================== */
.page-hero {
    position: relative;
    height: 100vh; /* UPDATED: Changed from 85vh to 100vh to match mission page */
    min-height: 600px; /* UPDATED: Changed from 550px to 600px */
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.7) 100%
    ); /* UPDATED: Changed to black gradient to match mission page */
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1280px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem; /* UPDATED: Added gap for spacing */
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 0; /* UPDATED: Changed from 1.5rem to 0 for tighter title spacing */
}

.hero-title {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1.25; /* UPDATED: Changed from 1.1 to 1.25 */
    letter-spacing: -0.01em;
    overflow: visible; /* UPDATED: Added for proper display */
}

/* First line of title - white text */
.title-line-1 {
    color: #ffffff;
    display: block;
    margin-bottom: 0.5rem; /* UPDATED: Added spacing between lines */
    overflow: visible; /* UPDATED: Added for proper display */
}

/* Second line of title - white text with BLACK BACKGROUND */
.title-line-2 {
    color: #ffffff; /* UPDATED: Changed from cyan to white */
    display: inline-block; /* UPDATED: Changed from block to inline-block for background fit */
    background-color: #000000; /* UPDATED: Added black background */
    padding: 0.5rem 1rem 0.5rem 0; /* UPDATED: Added padding for black background */
    margin-left: -0.25rem; /* UPDATED: Added negative margin for alignment */
    overflow: visible; /* UPDATED: Added for proper display */
}

/* Hero Subtitle - Descriptive text below title */
.hero-subtitle {
    color: #ffffff; /* UPDATED: Changed from rgba to solid white */
    font-size: 1.25rem; /* UPDATED: Changed from 1.5rem to 1.25rem to match mission */
    font-weight: 300;
    line-height: 1.6;
    max-width: 700px;
    margin-top: 1.5rem; /* UPDATED: Added top margin */
}

/* ========================================
   AUTHORITY SECTION
   ======================================== */
.authority-section {
    background-color: #ffffff;
    padding: 6rem 1rem;
    text-align: center;
}

.authority-content {
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.authority-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.authority-heading {
    font-family: 'League Gothic', 'Impact', sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #011A38;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1;
}

.authority-subheading {
    color: #22d3ee;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.authority-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 1.5rem;
}

.authority-text:last-child {
    margin-bottom: 0;
}

/* ========================================
   APPROACH SECTION
   ======================================== */
.approach-section {
    background-color: #f4f7f9;
    padding: 6rem 1rem;
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.approach-content {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.approach-content.visible {
    opacity: 1;
    transform: translateX(0);
}

.approach-heading {
    font-family: 'League Gothic', 'Impact', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    color: #011A38;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.approach-heading-highlight {
    color: #22d3ee;
    display: block;
}

.approach-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444444;
    margin-bottom: 1rem;
}

.approach-text strong {
    color: #011A38;
    font-weight: 700;
}

.approach-text em {
    color: #22d3ee;
    font-style: normal;
    font-weight: 600;
}

.approach-text-emphasis {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #011A38;
    font-weight: 600;
    margin-top: 1.5rem;
}

.approach-image {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.approach-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.approach-img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ========================================
   PARTNERS SHOWCASE SECTION
   ======================================== */
.partners-showcase-section {
    background-color: #011A38;
    padding: 6rem 2rem;
}

.showcase-header {
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.showcase-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.showcase-title {
    font-family: 'League Gothic', 'Impact', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.showcase-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.sector-block {
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.sector-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.sector-block:last-child {
    margin-bottom: 0;
}

.sector-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #22d3ee;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-bottom: 1rem;
    border-bottom: 2px solid #22d3ee;
    margin-bottom: 2.5rem;
}

.sector-heading i {
    width: 24px;
    height: 24px;
}

/* --- 4-Column Grid Layout: Card, Description, Card, Description --- */
.partners-grid {
    display: grid;
    /* Card columns MUST match .partner-card width (300px) */
    /* Description columns: just enough space for text */
    grid-template-columns: 300px auto 300px auto; 
    
    /* Small gap between card and text, larger gap between pairs */
    column-gap: 1.5rem; /* Space between card and its description */
    row-gap: 2rem; /* Space between rows */
    
    width: 100%; 
    max-width: 1400px;
    margin: 0 auto;
    align-items: center; /* Changed from 'left' - 'left' is not a valid value */
}

/* --- Partner Card --- */
.partner-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 1rem;
    padding: 1.00rem;
    display: flex;
    align-items: center; /* Changed from 'left' */
    gap: 1.0rem;
    height: 150px;
    width: 300px; /* This MUST match grid column width */
    transition: all 0.3s ease;
    cursor: pointer;
}

.partner-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(34, 211, 238, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* --- Partner Logo --- */
.partner-logo-large {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: left;
    justify-content: left;
    border-radius: 0.25rem;
    padding: 0.25rem;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo-large {
    transform: scale(1.05);
}

.partner-logo-large img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* --- Partner Info --- */
.partner-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.partner-name {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    text-transform: uppercase;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.partner-category {
    color: #22d3ee;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* --- Partner Description --- */
.partner-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: normal;
    
    /* THIS pulls the text to the LEFT */
    margin-left: -80px; /* Adjust this value - try -30px, -50px, -80px */
    padding-right: 20px; /* Prevents text from getting too close to next card */
}

.partner-description p {
    margin: 0;
    height: 150px;
    width: 300px;
}

/* ========================================
   TESTIMONIALS SECTION (Styled but commented out)
   ======================================== */
.testimonials-section {
    background-color: #ffffff;
    padding: 6rem 1rem;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.testimonials-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonials-title {
    font-family: 'League Gothic', 'Impact', sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #011A38;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.testimonials-subtitle {
    color: #666666;
    font-size: 1.125rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.testimonial-card {
    background: #f4f7f9;
    padding: 3rem;
    border-radius: 0.5rem;
    border-left: 4px solid #22d3ee;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-quote i {
    width: 40px;
    height: 40px;
    color: #22d3ee;
    margin-bottom: 1rem;
}

.testimonial-quote p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #333333;
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.testimonial-author h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #011A38;
    margin: 0 0 0.25rem 0;
}

.testimonial-author p {
    font-size: 0.875rem;
    color: #666666;
    margin: 0;
}

/* ========================================
   CASE STUDIES SECTION (Styled but commented out)
   ======================================== */
.case-studies-section {
    background-color: #f4f7f9;
    padding: 6rem 1rem;
}

.case-studies-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.case-studies-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.case-studies-title {
    font-family: 'League Gothic', 'Impact', sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #011A38;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.case-studies-subtitle {
    color: #666666;
    font-size: 1.125rem;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.case-study-card {
    background: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.case-study-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.case-study-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.05);
}

.case-study-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(1, 26, 56, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.case-study-tag {
    background: #22d3ee;
    color: #011A38;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0.25rem;
}

.case-study-content {
    padding: 2rem;
}

.case-study-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #011A38;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.case-study-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666666;
    margin: 0 0 1.5rem 0;
}

.btn-case-study {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #22d3ee;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-case-study:hover {
    gap: 0.75rem;
    color: #011A38;
}

.btn-case-study i {
    width: 18px;
    height: 18px;
}

/* ========================================
   CALL TO ACTION SECTION
   ======================================== */
.cta-section {
    background: #e8e8e8;
    padding: 6rem 1rem;
    position: relative;
}

.cta-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.cta-heading {
    font-family: 'League Gothic', 'Impact', 'Arial Black', sans-serif;
    font-size: 5rem;
    font-weight: 400;
    line-height: 0.95;
    color: #000000;
    text-transform: lowercase;
    letter-spacing: -0.02em;
}

.cta-heading br {
    display: block;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: #000000;
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.btn-cta-primary:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.btn-cta-secondary {
    background: transparent;
    color: #000000;
    border: 2px solid #000000;
    padding: 1.25rem 3rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-cta-secondary:hover {
    background: #000000;
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet and Desktop */
@media (min-width: 768px) and (max-width: 1199px) {
    .approach-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    /* 2-column layout on tablets: Card, Description stacked */
    .partners-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 2rem;
    }
    
    .partner-card {
        height: auto;
        min-height: 120px;
    }
    
    .partner-logo-large {
        width: 70px;
        height: 70px;
    }
    
    .partner-name {
        font-size: 1rem;
    }
    
    .partner-category {
        font-size: 0.65rem;
    }
    
    .partner-description {
        font-size: 0.9rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: row;
    }
}

@media (min-width: 1200px) {
    .hero-title {
        font-size: 7rem;
        line-height: 1.25; /* UPDATED: Added line-height for consistency */
    }
    
    .title-line-1 {
        margin-bottom: 0.5rem; /* UPDATED: Added for proper spacing */
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
    }
    
    .authority-heading {
        font-size: 4rem;
    }
    
    .approach-heading {
        font-size: 3.5rem;
    }
    
    .approach-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .showcase-title {
        font-size: 4rem;
    }
    
    /* Keep 4-column grid on large screens */
    .partners-grid {
        grid-template-columns: 380px 1fr 380px 1fr;
    }
    
    .case-studies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cta-heading {
        font-size: 7rem;
    }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .authority-heading {
        font-size: 2rem;
    }
    
    .authority-subheading {
        font-size: 0.75rem;
    }
    
    .authority-text {
        font-size: 1rem;
    }
    
    .approach-heading {
        font-size: 2rem;
    }
    
    .approach-text,
    .approach-text-emphasis {
        font-size: 1rem;
    }
    
    .showcase-title {
        font-size: 2rem;
    }
    
    .showcase-subtitle {
        font-size: 1rem;
    }
    
    /* Single column on mobile */
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .partner-card {
        height: auto;
        padding: 1.5rem;
        flex-direction: row;
    }
    
    .partner-logo-large {
        width: 80px;
        height: 80px;
    }
    
    .partner-name {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .partner-category {
        font-size: 0.65rem;
        line-height: 1.4;
    }
    
    .partner-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .cta-section {
        padding: 4rem 1rem;
    }
    
    .cta-heading {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .authority-heading {
        font-size: 1.75rem;
    }
    
    .approach-heading {
        font-size: 1.75rem;
    }
    
    .showcase-title {
        font-size: 1.75rem;
    }
    
    .partner-card {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .partner-logo-large {
        width: 70px;
        height: 70px;
    }
    
    .partner-name {
        font-size: 0.95rem;
    }
    
    .partner-category {
        font-size: 0.6rem;
    }
    
    .partner-description {
        font-size: 0.85rem;
    }
    
    .cta-heading {
        font-size: 3rem;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
}

/* Footer Logo Image */
.footer-logo-image {
    height: 40px;
    width: 320px;
    display: block;
    transition: opacity 0.2s ease;
}

.footer-logo-image:hover {
    opacity: 0.8;
}

.footer-logo a {
    display: inline-block;
}

/* Mobile Logo Sizing */
@media (max-width: 768px) {
    .logo img,
    .footer-logo-image {
        height: 28px !important;
        width: auto;
    }
}
/* ========================================
   INLINE SEARCH BAR (Expandable)
   ======================================== */
.inline-search-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    overflow: hidden;
}

.inline-search-input {
    width: 0;
    opacity: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #ffffff;
    font-size: 1rem;
    padding: 0.5rem 0;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.inline-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

/* Search icon button */
.search-icon-btn {
    background: none;
    border: none;
    color: #d1d5db;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.search-icon-btn i {
    width: 1.25rem;
    height: 1.25rem;
    transition: color 0.3s ease;
}

.search-icon-btn:hover i {
    color: #22d3ee;
}

/* EXPANDED STATE */
.inline-search-container.expanded .inline-search-input {
    width: 180px;
    opacity: 1;
    border-bottom-color: #22d3ee;
    padding-right: 0.5rem;
    pointer-events: auto;
    margin-right: 0.5rem;
}

.inline-search-container.expanded .search-icon-btn {
    transform: translateX(-10px);
}

.inline-search-container.expanded .search-icon-btn i {
    color: #22d3ee;
}

/* ========================================
   SEARCH EXPANDED STATE - Fade out nav items
   ======================================== */

/* When search is expanded, fade out all nav links */
.nav-links.search-active > a,
.nav-links.search-active > .spacer,
.nav-links.search-active > .btn-get-started {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Keep the search container visible */
.nav-links.search-active .inline-search-container {
    opacity: 1;
    pointer-events: auto;
}

/* Make search bar wider when nav items are hidden */
.nav-links.search-active .inline-search-container.expanded .inline-search-input {
    width: 320px;
}

/* Smooth transition for nav links when NOT in search mode */
.nav-links > a,
.nav-links > .spacer,
.nav-links > .btn-get-started {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.2s ease;
}

/* Mobile: Hide inline search, use mobile menu search instead */
@media (max-width: 767px) {
    .inline-search-container {
        display: none;
    }
}