/*
 * IMPORTANT: For editing rules and coding guidelines, see AI_documents/Rules/Rules_for_the_AI.txt
 * For project overview and details, see AI_documents/Project_Overview_Doc.txt
 *
 * Production Directory: http://ainspire.ai/css/partners_page.css
 * Development Directory: http://localhost:8000/css/partners_page.css
 *
 * Development Partners Page Styles
 * Extends services_page.css styling patterns with 2-column responsive layout
 * Used in /templates/partners_page.php
 */

/* ===== PARTNERS PAGE MAIN CONTAINER ===== */
.partners-main {
    background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
    min-height: 100vh;
}

/* ===== HERO SECTION (Services Page Style) ===== */
.partners-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #000 0%, #0a0a0a 50%, #000 100%);
    z-index: 1;
}

.partners-hero-split {
    background: linear-gradient(135deg, rgb(59 130 246 / 43%) 0%, rgb(30 64 175 / 8%) 30%, rgb(37 99 235 / 5%) 60%, rgb(247 247 247 / 3%) 100%);
    position: relative;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.partners-hero-split::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(59, 130, 246, 0.05) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

.partners-hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: opacity(0.12);
    pointer-events: none;
}

.partners-content-split {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    align-items: center;
}

.partners-hero-visual {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.partners-hero-image {
    width: 95%;
    filter: brightness(2.5);
    aspect-ratio: 16/10;
    min-height: 375px;
    border-radius: 12px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.1) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; 
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.partners-hero-image.has-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; 
    z-index: 1;
}

.partners-hero-image > * {
    position: relative;
    z-index: 2;
}

.partners-hero-image:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(59, 130, 246, 0.3);
}

.partners-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    padding: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.partners-hero-info {
    color: white;
}

.partners-category {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(59, 130, 246, 1);
    margin-bottom: 16px;
}

.partners-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 24px 0;
    color: white;
}

.partners-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 32px 0;
}

.hero-action-section {
    margin-top: 32px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(37, 99, 235, 0.8));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.action-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(37, 99, 235, 1));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* ===== CONTENT LAYOUT ===== */
.partners-content-limited {
    max-width: 70%;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== SECTION STYLING ===== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 24px 0;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 32px 0;
}

/* ===== ROW SPACING ===== */
.partners-row-1,
.partners-row-2,
.partners-row-3 {
    margin: 60px 0;
}

/* ===== ROW 1: PARTNERSHIP ROLES ===== */
.partnership-roles-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.partnership-intro {
    padding: 0px 20px 0px 20px;
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 32px 0;
    text-align: left;
}

.roles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.role-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 24px;
}

/* Use services page style for role titles */
.overview-item-title {
    text-align: center;
    color: #3b82f6;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.role-list li {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.role-list li::before {
    content: '*';
    position: absolute;
    left: 0;
    color: rgba(59, 130, 246, 0.8);
}

/* ===== ROW 2: OUR PREFERRED PARTNER (2x2 Grid) ===== */
.partner-grid-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Top Row: Logo + Description */
.partner-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.partner-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 32%, rgba(17, 19, 128, 0.79) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 40px;
}

.partner-logo {
    max-width: 100%;
    height: auto; 
}

.partner-description-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0 0 16px 0;
}

.partner-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Bottom Row: Stats Grid */
.partner-stats-row {
    margin-bottom: 32px;
}

.partner-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 8px 0 4px 0;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Links Section */
.partner-links-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.partner-action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: rgba(59, 130, 246, 1);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.partner-action-link:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.partner-download-btn {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(37, 99, 235, 0.8));
    color: white;
    border: none;
}

.partner-download-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(37, 99, 235, 1));
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ===== ROW 3: TECHNICAL EXPERTISE (Two Column Layout) ===== */
.tech-areas-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tech-areas-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.tech-column {
    display: flex;
    flex-direction: column;
}

.tech-areas-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-area-item {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid rgba(59, 130, 246, 0.5);
    border-radius: 4px;
}

.tech-category {
    color: rgba(59, 130, 246, 0.9);
    font-weight: 600;
    margin-right: 8px;
}

.tech-skills {
    color: rgba(255, 255, 255, 0.75);
}

/* ============================================
   CONTACT CTA SECTION
   ============================================ */

/* Contact CTA Wrapper */
.service-contact-cta-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0px 40px 0px;
    background-image: url('../assets/images/dot_background.webp');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Service Content Width Limitation */
.service-content-limited {
    max-width: 70%;
    margin: 0 auto;
    padding: 0 40px;
}

/* Contact CTA Box */
.service-contact-cta {
    background: #01011ea1;
    border: 1px solid #2609a599;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.service-contact-cta:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
}

/* Contact CTA Content Layout */
.service-contact-cta-content {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.service-contact-cta-text {
    flex: 1;
}

.service-contact-cta-text p {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.service-contact-cta-button {
    flex-shrink: 0;
}

.service-contact-cta-button .action-btn {
    white-space: nowrap;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .partners-content-limited {
        max-width: 85%;
    }

    .service-content-limited {
        max-width: 85%;
    }
}

@media (max-width: 768px) {
    /* Content Limited Adjustments */
    .partners-content-limited {
        max-width: 95%;
        padding: 0 20px;
    }

    /* Hero Section - Stack Vertically */
    .partners-content-split {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 20px;
    }

    .partners-hero-title {
        font-size: 1.75rem;
    }

    .partners-title {
        font-size: 2rem;
    }

    .partners-subtitle {
        font-size: 1.125rem;
    }

    /* Row 1: Roles Grid - Stack Vertically */
    .roles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .partnership-roles-container {
        padding: 24px;
    }

    /* Row 2: Partner Grid - Stack Vertically */
    .partner-top-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .partner-logo-box {
        padding: 24px;
    }

    .partner-grid-container {
        padding: 24px;
    }

    /* Partner Stats - 2x2 Grid on Mobile */
    .partner-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Partner Links - Stack Vertically */
    .partner-links-row {
        flex-direction: column;
        gap: 16px;
    }

    .partner-action-link {
        width: 100%;
        justify-content: center;
    }

    /* Row 3: Tech Areas - Stack Vertically */
    .tech-areas-container {
        padding: 24px;
    }

    .tech-areas-two-col {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.5rem;
    }

    /* Service Content Limited */
    .service-content-limited {
        max-width: 95%;
        padding: 0 20px;
    }

    /* Contact CTA responsive */
    .service-contact-cta-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .service-contact-cta-text {
        text-align: center;
    }

    .service-contact-cta-button {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* ===== TABLET ADJUSTMENTS ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .partners-content-split {
        gap: 40px;
    }

    .partners-two-col-grid {
        gap: 40px;
    }

    .partners-title {
        font-size: 2.5rem;
    }
}
