/* IBM Plex Sans Arabic Font */
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('fonts/IBMPlexSansArabic-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('fonts/IBMPlexSansArabic-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('fonts/IBMPlexSansArabic-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('fonts/IBMPlexSansArabic-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('fonts/IBMPlexSansArabic-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('fonts/IBMPlexSansArabic-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('fonts/IBMPlexSansArabic-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FFFFFF;
    direction: rtl;
    font-weight: 400;
}

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

.container-small {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo .logo {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-link {
    display: block;
    text-decoration: none;
    color: #213A58;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 25px;
}

.nav-link.active {
    background-color: #213A58;
    color: white;
}

.cta-button {
    background: #86C753;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(134, 199, 83, 0.3);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #213A58;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1rem;
    font-weight: 500;
    color: #233E57;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    background: #213A58;
    color: white;
    border: none;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 58, 88, 0.3);
}

.hero-image {
    padding-top: 20px;
    flex: 1;
    text-align: center;
}

.hero-phone {
    max-width: 90%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

/* Sponsors Section */
.sponsors {
    padding: 80px 0;
}

.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    /* spacing between cards */
    padding: 20px;
}

.sponsor-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 240px;
}

.sponsor-image {
    width: 230px;
    margin-top: auto;
    object-fit: contain;
}

.sponsor-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #213A58;
    margin-bottom: 1rem;
}

.sponsors-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 100%;
}

/* Features Section */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #213A58;
    margin-bottom: 3rem;
    line-height: 1.3;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* responsive */
    gap: 20px;
    /* spacing between cards */
    padding: 20px;
}

.feature-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Section Common Styles */
.consultation-sessions,
.support-groups,
.metrics,
.open-conversations {
    padding: 80px 0;
}

.consultation-content,
.support-content,
.metrics-content,
.conversations-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.consultation-text,
.support-text,
.metrics-text,
.conversations-text {
    flex: 1;
}

.consultation-text h2,
.support-text h2,
.metrics-text h2,
.conversations-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #213A58;
    margin-bottom: 1.5rem;
}

.consultation-text p,
.support-text p,
.metrics-text p,
.conversations-text p {
    font-size: 1.25rem;
    color: #6c757d;
    line-height: 1.6;
}

.consultation-image,
.support-image,
.metrics-image,
.conversations-image {
    flex: 1;
    text-align: center;
}

.consultation-phone,
.support-phone,
.metrics-phone,
.conversations-phone {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.1));
}

/* Footer */
.footer {
    color: #213A58;
    padding: 50px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: right;
}

.footer-start img {
    max-width: 250px;
    border: 9px solid #213A58;
    border-radius: 37px;
}

.footer-center h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: #213A58;
}

.app-links {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    justify-content: center;
    margin-top: 2rem;
}

.app-links img {
    height: 55px;
    transition: transform 0.2s;
}

.app-links img:hover {
    transform: scale(1.05);
}

.footer-end {
    text-align: right;
}

.footer-end h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #213A58;
}

.footer-end p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
    color: #213A58;
}

.footer-end .footer-end-title {
    font-size: 0.75rem;
}

.contact-details img {
    width: 18px;
    margin-left: 8px;
    vertical-align: middle;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 0.7rem;
    justify-content: flex-start;
}

.social-links img {
    width: 28px;
    transition: opacity 0.2s;
}

.social-links img:hover {
    opacity: 0.7;
}

.footer-bottom {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 0.9rem;
    gap: 3rem;
}

.footer-bottom a {
    color: #42A5F5;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.scroll-top {
    position: fixed;
    left: 20px;
    bottom: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.scroll-top img {
    width: 50px;
}

.footer-bottom-container {
    padding: 30px 0;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    border-color: #213A58;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .hero-content,
    .consultation-content,
    .support-content,
    .metrics-content,
    .conversations-content,
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: 80vh;
    }

    .hero-text {
        padding: 80px 30px 0px 30px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        padding: 12px 18px;
        font-size: 1rem;
    }

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

@media (max-width: 768px) {
    .navbar {
        gap: 1rem;
        padding: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        text-align: center;
    }

    .nav-link {
        border-radius: 0;
        padding: 20px 0;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-content {
        gap: 3rem;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
        padding: 50px 20px 0px 20px;
    }

    .hero-text h1 {
        font-size: 1.75rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .hero-cta {
        padding: 14px 24px;
        font-size: 1rem;
        gap: 8px;
        margin: 0 auto;
        display: inline-flex;
    }

    .hero-phone {
        max-width: 85%;
        margin-top: 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .consultation-sessions,
    .support-groups,
    .metrics,
    .open-conversations {
        padding: 60px 0;
    }

    .consultation-text h2,
    .support-text h2,
    .metrics-text h2,
    .conversations-text h2 {
        font-size: 2rem;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .app-links {
        justify-content: center;
    }

    .contact-details {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        font-size: 0.85rem;
    }

    .footer-bottom-container {
        padding: 15px 0;
        margin-top: 30px;
    }

    .policy-content {
        padding: 90px 15px 50px;
    }

    .policy-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .policy-content h2 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.8rem 0;
    }

    .policy-content p,
    .policy-content li {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .policy-content ul,
    .policy-content ol {
        padding-right: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 0 50px;
        min-height: auto;
    }

    .hero-content {
        gap: 2.5rem;
    }

    .hero-text {
        padding: 50px 15px 0px 15px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
        line-height: 1.6;
    }

    .hero-cta {
        padding: 12px 20px;
        font-size: 0.95rem;
        gap: 6px;
    }

    .hero-phone {
        max-width: 80%;
        margin-top: 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .consultation-text h2,
    .support-text h2,
    .metrics-text h2,
    .conversations-text h2 {
        font-size: 1.8rem;
    }

    .feature-content {
        padding: 1.5rem;
    }

    .navbar {
        padding: 0.5rem 1.5rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding: 0 15px;
    }

    .footer-bottom-container {
        padding: 10px 0;
        margin-top: 20px;
    }


    .policy-content {
        padding: 80px 10px 40px;
    }

    .policy-content h1 {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .policy-content h2 {
        font-size: 1.1rem;
        margin: 1.2rem 0 0.6rem 0;
    }

    .policy-content p,
    .policy-content li {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }

    .policy-content ul,
    .policy-content ol {
        padding-right: 1rem;
        margin: 0.8rem 0;
    }
}

/* Policy Pages Styles */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 80px;
    line-height: 1.8;
}

.policy-content h1 {
    color: #213A58;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.policy-content h2 {
    color: #213A58;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.policy-content p {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1rem;
}

.policy-content ul {
    margin: 1rem 0;
    padding-right: 2rem;
}

.policy-content ol {
    margin: 1rem 0;
    padding-right: 2rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1rem;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}