/* --- FONT & GLOBAL STYLES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600;900&display=swap');

body {
    background-color: #FFFFFF;
    font-family: 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
    color: #060507;
}

*:focus-visible {
    outline: 2px solid rgba(6, 5, 7, 0.35);
    outline-offset: 2px;
}

/* --- LAYOUT CONTAINER --- */
.page-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    /* Mobile padding */
}

/* --- PAGE TITLE --- */
h1 {
    text-align: center;
    font-size: 56px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #060507;
    margin-top: 40px;
    margin-bottom: 56px;
}

/* --- BODY COPY BLOCK --- */
.body-copy-block {
    max-width: 760px;
    margin: 0 auto;
}

.body-copy-block p {
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(6, 5, 7, 0.95);
    margin-bottom: 12px;
    /* Mobile */
}

.body-copy-block p:last-child {
    margin-bottom: 0;
}

.body-copy-block .about-subheader {
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 800;
    color: #060507;
    margin-top: 28px;
    margin-bottom: 12px;
}

body.dark-mode .body-copy-block .about-subheader {
    color: #ffffff;
}

/* --- SOCIAL BUTTONS --- */
.social-buttons-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
    /* Mobile */
}

.social-pill {
    display: inline-flex;
    /* Use inline-flex for better alignment */
    align-items: center;
    /* Vertically center icon and text */
    gap: 10px;
    /* Space between icon and text */
    height: 44px;
    padding: 0 28px;
    border-radius: 9999px;
    background-color: transparent;
    border: 1.5px solid rgba(6, 5, 7, 0.12);
    color: #060507;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.social-pill i.fab {
    font-family: "Font Awesome 5 Brands";
    /* Override the global font-family */
    font-weight: 400;
    /* Font Awesome 5 Brands uses a regular font-weight */
}


.social-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    color: #ffffff;
}

/* Social Media Brand Colors on Hover */
.social-pill.facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
}

.social-pill.instagram:hover {
    background-color: #C13584;
    border-color: #C13584;
}

.social-pill.linkedin:hover {
    background-color: #0A66C2;
    border-color: #0A66C2;
}

/* --- REVIEWS SECTION (SHUFFLE CARDS) --- */
.reviews-section {
    margin-top: 80px;
    margin-bottom: 100px;
    overflow: hidden;
}

.reviews-title {
    text-align: center;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #060507;
    margin-bottom: 60px;
}

.shuffle-cards-container {
    display: grid;
    place-content: center;
    padding: 24px 8px;
    min-height: 550px;
}

.shuffle-cards-stack {
    position: relative;
    height: 450px;
    width: 350px;
    margin-left: -100px;
}

.testimonial-card {
    position: absolute;
    left: 0;
    top: 0;
    height: 450px;
    width: 350px;
    display: grid;
    place-content: center;
    padding: 32px 24px;
    border-radius: 16px;
    border: 2px solid rgba(6, 5, 7, 0.2);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.35s ease;
    user-select: none;
    -webkit-user-select: none;
}

.testimonial-avatar {
    text-align: center;
    margin-bottom: 24px;
}

.testimonial-avatar img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 2px solid rgba(6, 5, 7, 0.2);
    background-color: #f3f4f6;
    object-fit: cover;
    pointer-events: none;
}

.testimonial-text {
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    font-style: italic;
    color: rgba(6, 5, 7, 0.7);
    margin-bottom: 20px;
    flex: 1;
}

.testimonial-rating {
    text-align: center;
    font-size: 24px;
    color: #FDDD3C;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonial-author {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #4F46E5;
}

.drag-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: rgba(6, 5, 7, 0.4);
    animation: pulseHint 2s ease-in-out infinite;
}

@keyframes pulseHint {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

/* Dark mode support */
body.dark-mode .reviews-title {
    color: #FFFFFF;
}

body.dark-mode .testimonial-card {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(253, 221, 60, 0.3);
}

body.dark-mode .testimonial-text {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .testimonial-author {
    color: #818CF8;
}

body.dark-mode .drag-hint {
    color: rgba(255, 255, 255, 0.4);
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .shuffle-cards-stack {
        margin-left: 0;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .testimonial-card {
        width: 100%;
        max-width: 350px;
    }
}

/* --- FOOTER --- */
footer {
    text-align: left;
    padding: 24px;
    max-width: 1240px;
    margin: 40px auto 0;
}

footer p {
    font-size: 12px;
    color: #5D5257;
}

/* --- TABLET STYLES --- */
@media (min-width: 768px) {
    .page-container {
        padding: 0 40px;
    }

    h1 {
        font-size: 56px;
        margin-bottom: 40px;
    }

    .social-buttons-row {
        margin-top: 36px;
    }

    .reviews-title {
        font-size: 40px;
    }

    .shuffle-cards-stack {
        margin-left: -175px;
    }

    footer {
        padding: 24px 40px;
    }
}

/* --- DESKTOP STYLES --- */
@media (min-width: 1024px) {
    .page-container {
        padding: 0 64px;
    }

    h1 {
        font-size: 72px;
        margin-bottom: 56px;
    }

    .body-copy-block p {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .reviews-title {
        font-size: 48px;
    }

    .shuffle-cards-stack {
        margin-left: -175px;
    }

    footer {
        padding: 24px 64px;
    }
}


/* --- TRANSFERRED PARTNERS STYLES --- */

/* Partners Section Title */
.partners-section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #060507;
    margin-top: 80px;
    margin-bottom: 40px;
}

body.dark-mode .partners-section-title {
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .partners-section-title {
        font-size: 32px;
        margin-top: 60px;
        margin-bottom: 32px;
    }
}

@media (min-width: 1024px) {
    .partners-section-title {
        font-size: 48px;
        margin-top: 100px;
        margin-bottom: 48px;
    }
}

/* --- ITAUN MAIN PARTNER STYLES --- */
.partners-lead {
    font-size: 1.125rem;
    color: #5D5257;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.6;
    text-align: center;
}

.main-partner-card {
    background: #FAFAFA;
    border-radius: 32px;
    padding: 48px;
    margin-bottom: 80px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
}

.main-partner-header {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
    margin-bottom: 48px;
}

.logo-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 24px;
    display: grid;
    place-items: center;
    padding: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.glare-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 40%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.4) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg) translateX(-100%);
    animation: glare 4s infinite;
}

@keyframes glare {
    0% { transform: rotate(45deg) translateX(-100%); }
    20%, 100% { transform: rotate(45deg) translateX(100%); }
}

.main-partner-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.main-partner-title-group {
    flex: 1;
    min-width: 300px;
}

.main-partner-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #060507;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.main-partner-title .badge {
    font-size: 1rem;
    font-weight: 600;
    background: #C4687E;
    color: white;
    padding: 6px 16px;
    border-radius: 999px;
}

.main-partner-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #7BBCB0;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.main-partner-link {
    color: #5D5257;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.main-partner-link:hover {
    color: #C4687E;
}

.main-partner-content {
    color: #5D5257;
    line-height: 1.8;
}

.main-partner-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 48px 0;
}

.feature-box {
    background: white;
    padding: 24px;
    border-radius: 20px;
    border-left: 4px solid #7BBCB0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.feature-box h4 {
    font-size: 1.2rem;
    color: #060507;
    margin-bottom: 12px;
}

.programs-section, .why-section {
    margin-top: 48px;
    background: white;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
}

.programs-section h3, .why-section h3 {
    font-size: 1.8rem;
    color: #060507;
    margin-bottom: 24px;
}

.programs-list, .benefits-list {
    list-style: none;
    padding: 0;
}

.programs-list li, .benefits-list li {
    margin-bottom: 16px;
    padding-left: 24px;
    position: relative;
}

.programs-list li::before, .benefits-list li::before {
    content: "\2022";
    color: #C4687E;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.benefits-list li::before {
    content: none;
}

.benefits-list strong {
    color: #C4687E;
    margin-right: 8px;
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: #C4687E;
    display: block;
    line-height: 1;
    margin-bottom: 12px;
    font-family: inherit;
}

.stat-label {
    font-size: 1rem;
    color: #5D5257;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* --- DARK MODE ADJUSTMENTS FOR TRANSFERRED CONTENT --- */
body.dark-mode .main-partner-card {
    background: #1A1A1A;
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .feature-box,
body.dark-mode .programs-section,
body.dark-mode .why-section {
    background: #242424;
}

body.dark-mode .main-partner-title,
body.dark-mode .feature-box h4,
body.dark-mode .programs-section h3,
body.dark-mode .why-section h3 {
    color: #ffffff;
}

body.dark-mode .main-partner-content,
body.dark-mode .stat-label,
body.dark-mode .programs-list li,
body.dark-mode .benefits-list li {
    color: rgba(255,255,255,0.8);
}

body.dark-mode .logo-wrapper {
    background: #ffffff;
}

body.dark-mode .stats-row {
    border-top-color: rgba(255,255,255,0.1);
}

body.dark-mode .stat-number {
    color: #C4687E;
}

body.dark-mode .feature-box {
    border-left-color: #7BBCB0;
}

.powered-by-section {
  margin-top: 3rem;
  padding: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.powered-by-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-bottom: 1rem;
  text-align: center;
}

.powered-by-partner {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  max-width: 920px;
  margin: 0 auto;
}

.powered-by-partner > div,
.powered-by-description {
  min-width: 0;
}

.powered-by-logo {
  max-height: 60px;
  max-width: 100%;
  width: auto;
}

.powered-by-logo-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.powered-by-description {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(6, 5, 7, 0.72);
  text-align: left;
}

body.dark-mode .powered-by-description {
  color: rgba(255, 255, 255, 0.72);
}

/* Dark mode: make the MENA logo fully white */
@media (prefers-color-scheme: dark) {
  .mena-logo {
    filter: brightness(0) invert(1);
  }
}

[data-theme="dark"] .mena-logo,
.dark-mode .mena-logo {
  filter: brightness(0) invert(1);
}

/* --- RESPONSIVE ADJUSTMENTS FOR TRANSFERRED CONTENT --- */
@media (max-width: 768px) {
    .body-copy-block .about-subheader {
        font-size: 1.1rem;
    }

    .powered-by-partner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .powered-by-description {
        text-align: center;
    }

    .main-partner-header {
        gap: 24px;
    }

    .main-partner-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .main-partner-card {
        padding: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .main-partner-card {
        padding: 32px;
    }
}

@media (min-width: 1024px) {
    .main-partner-card {
        padding: 48px;
    }
}
