/* Root variables for consistency */
:root {
    --primary-dark: #1a365d;
    --primary-blue: #2563eb;
    --accent-green: #10b981;
    --light-gray: #f8fafc;
    --dark-gray: #64748b;
    --white: #ffffff;
}

/* General resets */
body {
    font-family: 'Poppins', sans-serif;
    color: #334155;
    line-height: 1.7;
    background-color: var(--white);
    padding-top: 80px; /* Space for fixed navbar */
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    position: relative;
    margin-top: -80px;
    padding-top: 180px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--white), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 10;
    transition: color 0.3s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-indicator:hover {
    color: var(--accent-green);
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-section img {
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.about-section img:hover {
    transform: scale(1.05);
}

.about-section h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.about-section ul {
    padding-left: 0;
    list-style: none;
    margin-top: 2rem;
}

.about-section li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--dark-gray);
}

.about-section li i {
    font-size: 1.3rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Mission & Vision Cards */
.bg-light {
    background-color: var(--light-gray) !important;
}

.mission-vision-card {
    background: var(--white);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1) !important;
}

.mission-vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--accent-green) !important;
}

.mission-vision-card h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.mission-vision-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.mission-vision-card i {
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.mission-vision-card:hover i {
    transform: scale(1.1);
    color: var(--accent-green);
}

/* Why Choose Us Cards */
.why-card {
    background: var(--white);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1) !important;
    opacity: 1;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--accent-green) !important;
}

.why-card i {
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.why-card:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--accent-green);
}

.why-card h5 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 600;
}

.why-card p {
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.7;
}

/* RTL Specific Adjustments for About Page */
body.rtl .about-section li {
    flex-direction: row-reverse;
}

body.rtl .about-section li i {
    margin-right: 0;
    margin-left: 0.75rem;
}

body.rtl .about-section img {
    margin: 0 auto;
}

body.rtl .page-header h1,
body.rtl .page-header p {
    direction: rtl;
}

/* Responsive */
@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }

    .page-header {
        margin-top: -70px;
        padding-top: 150px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .page-header {
        padding: 100px 0 60px;
        margin-top: -70px;
        padding-top: 150px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .about-section {
        padding: 60px 0;
    }

    .about-section h2 {
        font-size: 1.8rem;
    }

    .about-section p,
    .about-section li {
        font-size: 1rem;
    }

    .mission-vision-card h3 {
        font-size: 1.5rem;
    }

    .why-card h5 {
        font-size: 1.1rem;
    }

    .scroll-indicator {
        font-size: 1.5rem;
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .about-section img {
        max-width: 100%;
    }

    .mission-vision-card i,
    .why-card i {
        font-size: 2rem !important;
    }
}