/* style/partners.css */

/* Base styles for the page */
.page-partners {
    color: #ffffff; /* Light text for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Ensure main content is not hidden by fixed header */
.page-partners__hero-section {
    padding-top: calc(80px + 10px); /* Add 10px to existing 80px for fixed header offset */
}

/* Hero Section */
.page-partners__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 80px; /* Only add to bottom as top is handled by calc */
    padding-left: 20px;
    padding-right: 20px;
    background: linear-gradient(135deg, #1A202C, #000000); /* Dark gradient for hero */
    min-height: 600px; /* Minimum height for hero */
}

.page-partners__hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    text-align: center;
    color: #ffffff;
    margin-right: 30px; /* Space between content and image */
}

.page-partners__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD700; /* Gold color for title */
    line-height: 1.2;
}

.page-partners__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
}

.page-partners__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-partners__hero-image {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 50%; /* Adjust width for image */
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-partners__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* General Section Styles */
.page-partners__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-partners__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #FFD700; /* Gold color for section titles */
}

.page-partners__section-intro {
    font-size: 18px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px auto;
    color: #f0f0f0;
}

/* Why Us Section */
.page-partners__why-us-section {
    padding: 80px 0;
    background-color: #1A202C; /* Auxiliary dark color */
}

.page-partners__why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-partners__why-us-item {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-partners__why-us-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-partners__why-us-icon {
    width: 200px; /* Min size 200x200px */
    height: 200px;
    object-fit: contain;
    margin: 0 auto 20px;
    border-radius: 50%; /* Example for round icons, ensure content fits */
    background-color: #FFD700; /* Background for visibility if image is small */
    padding: 15px; /* Internal padding for the icon */
}

.page-partners__item-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFD700; /* Gold color for item titles */
}

.page-partners__item-description {
    font-size: 16px;
    color: #f0f0f0;
}

/* Partnership Models Section */
.page-partners__models-section {
    padding: 80px 0;
    background-color: #121212; /* Body background color */
}

.page-partners__models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-partners__model-card {
    padding: 30px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-partners__model-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-partners__model-image {
    width: 100%;
    height: 250px; /* Example height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

.page-partners__model-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFD700;
}

.page-partners__model-description {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 25px;
}

/* How to Join Section */
.page-partners__how-to-join-section {
    padding: 80px 0;
    background-color: #1A202C;
}

.page-partners__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-partners__step-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-partners__step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    margin: 0 auto 20px;
    background-color: #FFD700;
    color: #1A202C; /* Dark text for gold background */
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
}

.page-partners__step-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFD700;
}

.page-partners__step-description {
    font-size: 16px;
    color: #f0f0f0;
}

.page-partners__how-to-join-cta {
    text-align: center;
    margin-top: 40px;
}

/* Testimonials Section */
.page-partners__testimonials-section {
    padding: 80px 0;
    background-color: #121212;
}

.page-partners__testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-partners__testimonial-card {
    padding: 30px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-partners__testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid #FFD700;
}

.page-partners__testimonial-text {
    font-size: 17px;
    font-style: italic;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-partners__testimonial-author {
    font-size: 18px;
    font-weight: bold;
    color: #FFD700;
}

/* FAQ Section */
.page-partners__faq-section {
    padding: 80px 0;
    background-color: #1A202C;
}

.page-partners__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-partners__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for FAQ item */
}

/* FAQ default state - answer hidden */
.page-partners__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    color: #cccccc; /* Lighter text for answers */
    background: rgba(255, 255, 255, 0.03); /* Even lighter background for answer area */
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-partners__faq-item.active .page-partners__faq-answer {
    max-height: 2000px !important; /* 🚨 Use!important to ensure priority, value large enough to accommodate any content */
    padding: 20px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

/* Question style */
.page-partners__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for question */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-partners__faq-question:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.page-partners__faq-question:active {
    background: rgba(255, 255, 255, 0.15);
}

/* Question title style */
.page-partners__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 tag from blocking click events */
    color: #FFD700; /* Gold color for FAQ questions */
}

/* Toggle icon */
.page-partners__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click events */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-partners__faq-item.active .page-partners__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
    color: #ffffff; /* White color when active */
}

/* Call to Action Section */
.page-partners__cta-section {
    padding: 80px 0;
    background-color: #121212;
    text-align: center;
}

.page-partners__cta-description {
    font-size: 18px;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-partners__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-partners__btn-primary,
.page-partners__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box; /* For responsive buttons */
    white-space: normal; /* For responsive buttons */
    word-wrap: break-word; /* For responsive buttons */
}

.page-partners__btn-primary {
    background-color: #FFD700;
    color: #1A202C; /* Dark text for gold background */
    border: 2px solid #FFD700;
}

.page-partners__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #000000;
}

.page-partners__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-partners__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A202C;
}

/* Global image responsive styles */
.page-partners img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-partners__hero-section {
        flex-direction: column;
        padding-top: calc(60px + 10px); /* Adjust for fixed header */
        padding-bottom: 60px;
        min-height: auto;
    }

    .page-partners__hero-content {
        margin-right: 0;
        margin-bottom: 40px;
        max-width: 100%;
    }

    .page-partners__hero-image {
        width: 80%;
    }

    .page-partners__hero-title {
        font-size: 40px;
    }

    .page-partners__section-title {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .page-partners__section-intro {
        margin-bottom: 50px;
    }
}