/* style/partners.css */

/* Variables */
:root {
    --page-partners-primary-color: #1A202C;
    --page-partners-accent-color: #FFD700;
    --page-partners-text-light: #F0F2F5;
    --page-partners-text-dark: #1A202C;
    --page-partners-bg-dark: #1A202C;
    --page-partners-bg-light: #F8F9FA;
    --page-partners-border-color: #333;
}

.page-partners {
    font-family: 'Arial', sans-serif;
    color: var(--page-partners-text-light);
    background-color: var(--page-partners-bg-dark);
    line-height: 1.6;
}

.page-partners__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-partners__section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-partners__section:nth-of-type(even) {
    background-color: #2a303c; /* Slightly lighter dark background for contrast */
}

.page-partners__hero-section {
    background: linear-gradient(135deg, var(--page-partners-bg-dark), #333d4e);
    padding: 100px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-partners__hero-title {
    font-size: 3.5em;
    color: var(--page-partners-accent-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.page-partners__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--page-partners-text-light);
}

.page-partners__hero-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-partners__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

.page-partners__btn--primary {
    background-color: var(--page-partners-accent-color);
    color: var(--page-partners-text-dark);
}

.page-partners__btn--primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-partners__btn--secondary {
    background-color: transparent;
    color: var(--page-partners-accent-color);
    border: 2px solid var(--page-partners-accent-color);
    padding: 10px 20px;
    font-size: 1em;
}

.page-partners__btn--secondary:hover {
    background-color: var(--page-partners-accent-color);
    color: var(--page-partners-text-dark);
    transform: translateY(-3px);
}

.page-partners__btn--small {
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 4px;
}

.page-partners__section-title {
    font-size: 2.8em;
    color: var(--page-partners-accent-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-partners__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--page-partners-accent-color);
    border-radius: 2px;
}

.page-partners__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: -20px auto 60px;
    color: #b0b0b0;
}

.page-partners__about .page-partners__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-partners__about .page-partners__text-content p {
    margin-bottom: 15px;
    color: var(--page-partners-text-light);
    font-size: 1.05em;
}

.page-partners__image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-partners__image--bottom {
    margin-top: 40px;
    max-width: 800px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-partners__program-card {
    background-color: #272d3a;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-partners__program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.page-partners__program-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 25px;
    border-radius: 8px;
}

.page-partners__program-title {
    font-size: 1.8em;
    color: var(--page-partners-accent-color);
    margin-bottom: 15px;
}

.page-partners__program-text {
    font-size: 1em;
    color: #c0c0c0;
    margin-bottom: 25px;
    flex-grow: 1;
}

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

.page-partners__benefit-item {
    background-color: #272d3a;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.page-partners__benefit-item:hover {
    background-color: #333b4d;
}

.page-partners__benefit-title {
    font-size: 1.5em;
    color: var(--page-partners-accent-color);
    margin-bottom: 10px;
}

.page-partners__benefit-text {
    color: #c0c0c0;
    font-size: 0.95em;
}

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

.page-partners__step {
    background-color: #272d3a;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.page-partners__step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--page-partners-accent-color);
    color: var(--page-partners-text-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.3);
}

.page-partners__step-title {
    font-size: 1.6em;
    color: var(--page-partners-accent-color);
    margin-bottom: 10px;
}

.page-partners__step-text {
    color: #c0c0c0;
    font-size: 0.95em;
}

.page-partners__image--process {
    max-width: 700px;
    margin: 0 auto;
    display: block;
}

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

.page-partners__faq-item {
    background-color: #272d3a;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px 30px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.page-partners__faq-question {
    font-size: 1.3em;
    color: var(--page-partners-accent-color);
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-partners__faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page-partners__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-partners__faq-answer {
    color: #c0c0c0;
    font-size: 1em;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 0 0 0;
}

.page-partners__faq-answer.active {
    max-height: 200px; /* Adjust based on content */
    padding: 10px 0 0 0;
}

.page-partners__contact-cta {
    background-color: var(--page-partners-accent-color);
    color: var(--page-partners-text-dark);
    text-align: center;
    padding: 60px 0;
}

.page-partners__contact-cta .page-partners__section-title {
    color: var(--page-partners-text-dark);
}

.page-partners__contact-cta .page-partners__section-title::after {
    background-color: var(--page-partners-text-dark);
}

.page-partners__contact-cta .page-partners__section-description {
    color: var(--page-partners-text-dark);
    margin-bottom: 30px;
}

.page-partners__contact-cta .page-partners__btn--primary {
    background-color: var(--page-partners-bg-dark);
    color: var(--page-partners-accent-color);
}

.page-partners__contact-cta .page-partners__btn--primary:hover {
    background-color: #333d4e;
    color: #FFD700;
}

.page-partners__image--contact {
    max-width: 600px;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Floating Ad */
.page-partners__floating-ad {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 280px;
    background-color: #272d3a;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    overflow: hidden;
    transform: translateX(calc(100% + 20px)); /* Hidden by default */
    transition: transform 0.5s ease-out;
}

.page-partners__floating-ad.active {
    transform: translateX(0); /* Visible */
}

.page-partners__floating-ad a {
    text-decoration: none;
    display: block;
    color: inherit;
}

.page-partners__floating-ad-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.page-partners__floating-ad-content {
    padding: 15px;
    text-align: center;
}

.page-partners__floating-ad-text {
    font-size: 1em;
    color: var(--page-partners-text-light);
    margin-bottom: 15px;
}

.page-partners__floating-ad .page-partners__btn--small {
    background-color: var(--page-partners-accent-color);
    color: var(--page-partners-text-dark);
    width: 100%;
}

.page-partners__floating-ad .page-partners__btn--small:hover {
    background-color: #e6c200;
}

.page-partners__floating-ad-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    transition: background-color 0.3s ease;
}

.page-partners__floating-ad-close:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-partners__hero-title {
        font-size: 2.8em;
    }
    .page-partners__section-title {
        font-size: 2.2em;
    }
    .page-partners__about .page-partners__content-grid {
        grid-template-columns: 1fr;
    }
    .page-partners__about .page-partners__image {
        order: -1; /* Image above text on smaller screens */
        margin-bottom: 30px;
    }
    .page-partners__program-list, .page-partners__benefits-grid, .page-partners__process-steps {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-partners__hero-title {
        font-size: 2.2em;
    }
    .page-partners__hero-description {
        font-size: 1em;
    }
    .page-partners__section {
        padding: 60px 0;
    }
    .page-partners__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-partners__section-description {
        margin-bottom: 40px;
    }
    .page-partners__btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-partners__program-card, .page-partners__benefit-item, .page-partners__step, .page-partners__faq-item {
        padding: 20px;
    }
    .page-partners__floating-ad {
        width: 250px;
        right: 10px;
        bottom: 10px;
    }
    .page-partners__floating-ad-image {
        height: 100px;
    }
    .page-partners__floating-ad-text {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .page-partners__container {
        padding: 0 15px;
    }
    .page-partners__hero-title {
        font-size: 1.8em;
    }
    .page-partners__section-title {
        font-size: 1.5em;
    }
    .page-partners__program-list, .page-partners__benefits-grid, .page-partners__process-steps {
        grid-template-columns: 1fr;
    }
    .page-partners__btn--primary, .page-partners__btn--secondary {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    .page-partners__floating-ad {
        width: calc(100% - 20px);
        right: 10px;
        bottom: 10px;
        transform: translateX(calc(100% + 10px));
    }
    .page-partners__floating-ad.active {
        transform: translateX(0);
    }
}