/* ===========================
   Variables & Base
   =========================== */
:root {
    --primary: #546e7a;
    --primary-light: #78909c;
    --primary-dark: #455a64;
    --accent: #78909c;
    --accent-light: #b0bec5;
    --gradient: linear-gradient(135deg, #607d8b 0%, #b0bec5 100%);
    --gradient-text: linear-gradient(135deg, #455a64 0%, #90a4ae 50%, #455a64 100%);
    --gold: #f0a500;
    --success: #10b981;
    --white: #ffffff;
    --light: #f7f8fa;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
}

.section-padding {
    padding: 100px 0;
}

/* ===========================
   Section Headers
   =========================== */
.section-badge {
    display: inline-block;
    padding: 6px 20px;
    background: linear-gradient(135deg, rgba(96,125,139,0.08), rgba(176,190,197,0.12));
    color: var(--primary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid rgba(96,125,139,0.15);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   Custom Buttons
   =========================== */
.btn-primary-custom {
    background: var(--gradient);
    color: var(--white);
    border: none;
    font-weight: 600;
    padding: 12px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #90a4ae 0%, #546e7a 100%);
    opacity: 0;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(69,90,100,0.3);
}

.btn-primary-custom:hover::before {
    opacity: 1;
}

.btn-primary-custom span,
.btn-primary-custom i {
    position: relative;
    z-index: 1;
}

.btn-accent {
    background: var(--gold);
    color: var(--gray-900);
    border: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-accent:hover {
    background: #d4920a;
    color: var(--gray-900);
    transform: translateY(-1px);
}

/* ===========================
   Top Bar
   =========================== */
.top-bar {
    background: #eceff1;
    color: #546e7a;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #cfd8dc;
}

.top-bar a {
    color: #546e7a;
    margin-left: 20px;
    font-size: 13px;
}

.top-bar a:hover {
    color: #37474f;
}

.top-social a {
    margin-left: 12px;
    font-size: 14px;
    color: #607d8b;
}

.lang-switch {
    background: #cfd8dc;
    color: #455a64;
    padding: 3px 14px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
    transition: var(--transition);
}

.lang-switch:hover {
    background: #b0bec5;
}

/* ===========================
   Logo Centered Bar
   =========================== */
.logo-bar {
    background: #90a4ae;
    padding: 20px 0;
    text-align: center;
}

.logo-bar .navbar-logo {
    height: 60px !important;
    max-height: 60px !important;
    max-width: 220px !important;
    width: auto !important;
    object-fit: contain;
}

/* ===========================
   Navbar
   =========================== */
.navbar {
    background: var(--white);
    padding: 0;
    box-shadow: none;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-200);
}

@media (min-width: 992px) {
    .navbar .container {
        justify-content: center;
    }
}

.navbar.scrolled {
    padding: 0;
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.navbar .navbar-brand {
    display: none;
}

.navbar-logo {
    height: 40px !important;
    max-height: 40px !important;
    max-width: 150px !important;
    width: auto !important;
    object-fit: contain;
    transition: var(--transition);
}

.navbar.scrolled .navbar-logo {
    height: 34px !important;
    max-height: 34px !important;
}

.footer-logo {
    height: 50px;
    max-width: 170px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
}

.navbar-toggler {
    border: none;
    padding: 8px 12px;
    color: var(--primary);
    font-size: 1.3rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    padding: 14px 14px !important;
    font-size: 14px;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 14px;
    left: 14px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: 8px;
    animation: fadeDown 0.3s ease;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--light);
    color: var(--primary);
}

/* ===========================
   Hero Slider
   =========================== */
.hero-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    min-height: 90vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(55,71,79,0.82) 0%, rgba(69,90,100,0.72) 40%, rgba(96,125,139,0.62) 70%, rgba(120,144,156,0.52) 100%);
    z-index: 1;
}

.hero-slide .container {
    z-index: 2;
}

.min-vh-80 {
    min-height: 80vh;
}

/* Slide Content Animation */
.hero-content {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.carousel-item.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255,255,255,0.1);
    color: var(--accent-light);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #cfd8dc, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    max-width: 600px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btns .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}

.hero-btns .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    opacity: 0;
    transition: var(--transition);
    z-index: 5;
}

.hero-slider-wrapper:hover .carousel-control-prev,
.hero-slider-wrapper:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-icon {
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.carousel-control-icon:hover {
    background: rgba(255,255,255,0.25);
}

/* Carousel Indicators */
#heroCarousel .carousel-indicators {
    bottom: 50px;
    z-index: 5;
}

#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    opacity: 1;
    margin: 0 6px;
    transition: var(--transition);
}

#heroCarousel .carousel-indicators button.active {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: scale(1.2);
}

/* Wave */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 6;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ===========================
   Stats Section
   =========================== */
.stats-section {
    padding: 60px 0 80px;
    margin-top: -40px;
    position: relative;
    z-index: 4;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.stat-icon i {
    font-size: 22px;
    color: var(--white);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-number::after {
    content: '+';
    font-size: 1.5rem;
}

.stat-label {
    font-size: 15px;
    color: var(--gray-500);
    font-weight: 500;
}

/* ===========================
   About Section
   =========================== */
.about-section {
    background: var(--light);
}

.about-image-wrapper {
    position: relative;
}

.about-img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.about-img-float {
    position: absolute;
    bottom: -40px;
    left: -30px;
    z-index: 2;
}

.about-img-float img {
    width: 220px;
    height: 160px;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-md);
}

.about-experience {
    position: absolute;
    top: -20px;
    left: 20px;
    background: var(--gradient);
    color: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    text-align: center;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(69,90,100,0.3);
}

.exp-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.exp-text {
    font-size: 13px;
    opacity: 0.9;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin-bottom: 28px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, rgba(96,125,139,0.1), rgba(176,190,197,0.15));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
}

.about-feature h5 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
    font-size: 16px;
}

.about-feature p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
}

/* ===========================
   Values Section
   =========================== */
.values-section {
    background: var(--white);
}

.value-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 36px 24px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.value-card:hover .value-icon {
    background: var(--gradient);
    color: var(--white);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--gray-100);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 26px;
    color: var(--primary);
    transition: var(--transition);
}

.value-card h5 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.value-card p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
}

/* ===========================
   Programs Section
   =========================== */
.programs-section {
    background: var(--light);
}

.program-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--gray-100);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.program-card:hover .program-img img {
    transform: scale(1.08);
}

.program-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.program-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.program-body {
    padding: 24px;
}

.program-body h5 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
    font-size: 16px;
}

.program-body p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 16px;
    line-height: 1.7;
}

.program-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.program-link:hover {
    color: var(--accent);
    gap: 10px;
}

/* ===========================
   News Section
   =========================== */
.news-section {
    background: var(--white);
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.news-featured {
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    height: 100%;
}

.news-featured:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-body {
    padding: 24px;
}

.news-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.news-meta span {
    font-size: 13px;
    color: var(--gray-500);
}

.news-meta i {
    margin-left: 5px;
    color: var(--accent);
}

.news-body h4 {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-body h6 {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.news-body p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

.news-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-link:hover {
    color: var(--accent);
    gap: 10px;
}

.news-small {
    padding: 16px;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.news-small:hover {
    border-color: var(--accent-light);
    box-shadow: var(--shadow-sm);
}

.news-small img {
    height: 100px;
    object-fit: cover;
}

/* ===========================
   Partners Section
   =========================== */
.partners-section {
    background: var(--light);
}

.partners-slider {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to left, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, transparent 0%, black 10%, black 90%, transparent 100%);
}

.partners-track {
    display: flex;
    animation: scrollPartners 30s linear infinite;
    gap: 24px;
    width: max-content;
}

@keyframes scrollPartners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partners-slider:hover .partners-track {
    animation-play-state: paused;
}

.partner-item {
    flex-shrink: 0;
}

.partner-box {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    transition: var(--transition);
    color: var(--gray-500);
}

.partner-box:hover {
    border-color: var(--accent-light);
    box-shadow: var(--shadow-sm);
    color: var(--primary);
}

.partner-box span {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    padding: 80px 0;
    background: var(--white);
}

.cta-card {
    background: var(--gradient);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.cta-card h3 {
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.cta-card p {
    opacity: 0.85;
    position: relative;
    z-index: 1;
    margin: 0;
}

.newsletter-form {
    position: relative;
    z-index: 1;
}

.newsletter-form .form-control {
    border: none;
    padding: 16px 20px;
    border-radius: 50px 0 0 50px;
    font-size: 15px;
    font-family: 'Tajawal', sans-serif;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 16px 30px;
    white-space: nowrap;
}

/* ===========================
   Footer
   =========================== */
.main-footer {
    background: #455a64;
    color: rgba(255,255,255,0.7);
    padding-top: 60px;
}

.footer-brand {
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gradient);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-heading {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-right: 6px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
}

.footer-contact i {
    color: var(--accent);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ===========================
   WhatsApp Float
   =========================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    color: var(--white);
    transform: scale(1.1);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

/* ===========================
   Back to Top
   =========================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(69,90,100,0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    color: var(--white);
    transform: translateY(-3px);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem;
    }

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

    .hero-slide {
        min-height: 70vh;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: var(--radius-md);
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border: 1px solid var(--gray-200);
    }

    .nav-link.active::after {
        display: none;
    }

    .cta-card {
        text-align: center;
        padding: 36px 24px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.8rem;
    }

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

    .section-padding {
        padding: 60px 0;
        overflow-x: hidden;
    }

    section {
        overflow-x: hidden;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .about-img-float {
        display: none;
    }

    .about-experience {
        top: auto;
        bottom: -20px;
        left: auto;
        right: 20px;
    }

    .top-bar .top-links {
        display: none;
    }

    .newsletter-form .input-group {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form .form-control {
        border-radius: 50px;
    }

    .newsletter-form .btn {
        border-radius: 50px;
    }

    .row.g-5 {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
    }

    .modal-dialog {
        margin: 10px;
    }

    .modal-body {
        padding: 15px !important;
    }

    .modal-header {
        padding: 20px 15px 15px !important;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .membership-card {
        padding: 24px 16px;
    }

    .partner-box {
        padding: 16px 20px;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ===========================
   Navbar Buttons (light theme)
   =========================== */
.navbar .btn-primary-custom {
    padding: 8px 24px;
    font-size: 13px;
}

.navbar .btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    padding: 8px 24px;
    font-size: 13px;
}

.navbar .btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===========================
   Page Header
   =========================== */
.page-header {
    background: var(--gradient);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.page-header h1 {
    color: var(--white);
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.page-header .breadcrumb {
    margin: 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.page-header .breadcrumb-item.active {
    color: var(--white);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ===========================
   Contact Page
   =========================== */
.contact-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.contact-card .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(96,125,139,0.1), rgba(176,190,197,0.15));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
}

.contact-card:hover .icon {
    background: var(--gradient);
    color: var(--white);
}

.contact-card h5 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.contact-card p,
.contact-card a {
    color: var(--gray-500);
    font-size: 14px;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-family: 'Tajawal', sans-serif;
    transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(96,125,139,0.1);
}

/* ===========================
   Employment Card
   =========================== */
.employment-card {
    background: var(--gradient);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.employment-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.employment-card h4 {
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.employment-card p {
    opacity: 0.85;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.employment-card .btn {
    position: relative;
    z-index: 1;
}

/* ===========================
   Survey Section
   =========================== */
.survey-section .survey-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 36px;
}

.survey-section .form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.survey-section .form-check-label {
    font-size: 14px;
    color: var(--gray-500);
}

/* ===========================
   Membership Cards
   =========================== */
.membership-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.membership-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.membership-card.featured::before {
    content: 'الأكثر طلباً';
    position: absolute;
    top: 16px;
    left: -30px;
    background: var(--gold);
    color: var(--gray-900);
    padding: 4px 40px;
    font-size: 12px;
    font-weight: 700;
    transform: rotate(45deg);
}

.membership-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.membership-card .card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.membership-card .price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 4px;
}

.membership-card .price-unit {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.membership-card .features {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
    text-align: right;
}

.membership-card .features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 8px;
}

.membership-card .features li i {
    color: var(--success);
    font-size: 12px;
}

/* ===========================
   Team Section
   =========================== */
.team-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-card .team-img {
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card .team-img i {
    font-size: 60px;
    color: rgba(255,255,255,0.3);
}

.team-card .team-body {
    padding: 20px;
}

.team-card h5 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.team-card p {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0;
}

/* ===========================
   Governance Cards
   =========================== */
.gov-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
    height: 100%;
}

.gov-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.gov-card .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(96,125,139,0.1), rgba(176,190,197,0.15));
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
    color: var(--primary);
}

.gov-card h5 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.gov-card p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

/* ===========================
   News Detail Page
   =========================== */
.news-detail-article {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.news-detail-title {
    color: var(--dark);
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 1.8;
}

.news-detail-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.news-detail-share a:hover {
    transform: translateY(-2px);
}

.news-sidebar a .d-flex:hover {
    background: var(--gray-100) !important;
    transform: translateX(-4px);
}

@media (max-width: 768px) {
    .news-detail-article {
        padding: 20px;
    }
    .news-detail-title {
        font-size: 1.3rem;
    }
}

/* ===========================
   Scroll Animations Override
   =========================== */
[data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
