/* =====================================================
   alfalschools PORTAL - PREMIUM PROFESSIONAL DESIGN
   Modern, Bold, and Vibrant Educational Platform
   ===================================================== */

/* ===== GOOGLE FONTS - PREMIUM TYPOGRAPHY ===== */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&family=Inter:wght@400;500;600;700;800;900&display=swap");

/* ===== CSS VARIABLES - AL-FAAL EDUCATION COLOR PALETTE ===== */
:root {
    /* Primary Brand Colors - Burgundy/Maroon (العنابي) */
    --primary-50: #fdf2f4;
    --primary-100: #fce7eb;
    --primary-200: #f9d0d9;
    --primary-300: #f4a9ba;
    --primary-400: #ec7793;
    --primary-500: #8b1538;
    --primary-600: #7a1230;
    --primary-700: #651028;
    --primary-800: #540d21;
    --primary-900: #3d0918;

    /* Secondary Colors - Gold/Beige (الذهبي) */
    --secondary-50: #fdfbf7;
    --secondary-100: #faf5e8;
    --secondary-200: #f5ead1;
    --secondary-300: #eddbb0;
    --secondary-400: #e2c78a;
    --secondary-500: #c4a45a;
    --secondary-600: #b0914a;
    --secondary-700: #8d7439;
    --secondary-800: #6a572b;
    --secondary-900: #473a1d;

    /* Accent Colors - Complementary */
    --accent-cyan: #06b6d4;
    --accent-teal: #14b8a6;
    --accent-emerald: #10b981;
    --accent-green: #22c55e;
    --accent-lime: #84cc16;
    --accent-amber: #c4a45a;
    --accent-orange: #d4a855;
    --accent-rose: #8b1538;
    --accent-pink: #a52049;
    --accent-fuchsia: #9b1f4c;

    /* Neutral Colors - Warm Tones */
    --neutral-50: #faf9f7;
    --neutral-100: #f5f3f0;
    --neutral-200: #e8e4df;
    --neutral-300: #d4d0ca;
    --neutral-400: #a3a096;
    --neutral-500: #73706a;
    --neutral-600: #524f4a;
    --neutral-700: #403d39;
    --neutral-800: #262422;
    --neutral-900: #171615;

    /* Premium Gradients - Burgundy & Gold Theme */
    --gradient-primary: linear-gradient(
        135deg,
        #8b1538 0%,
        #a52049 50%,
        #c4a45a 100%
    );
    --gradient-royal: linear-gradient(
        135deg,
        #8b1538 0%,
        #7a1230 50%,
        #651028 100%
    );
    --gradient-ocean: linear-gradient(
        135deg,
        #c4a45a 0%,
        #d4a855 50%,
        #e2c78a 100%
    );
    --gradient-sunset: linear-gradient(
        135deg,
        #8b1538 0%,
        #c4a45a 50%,
        #e2c78a 100%
    );
    --gradient-aurora: linear-gradient(
        135deg,
        #8b1538 0%,
        #a52049 25%,
        #c4a45a 50%,
        #d4a855 75%,
        #e2c78a 100%
    );
    --gradient-cosmic: linear-gradient(
        135deg,
        #3d0918 0%,
        #540d21 25%,
        #651028 50%,
        #8b1538 75%,
        #a52049 100%
    );
    --gradient-nature: linear-gradient(
        135deg,
        #c4a45a 0%,
        #b0914a 50%,
        #8d7439 100%
    );
    --gradient-fire: linear-gradient(
        135deg,
        #8b1538 0%,
        #a52049 50%,
        #c24568 100%
    );
    --gradient-glass: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
    --gradient-dark: linear-gradient(
        135deg,
        #2d1f1f 0%,
        #3d2929 50%,
        #4d3535 100%
    );

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow-primary: 0 0 40px rgba(139, 21, 56, 0.4);
    --shadow-glow-secondary: 0 0 40px rgba(196, 164, 90, 0.4);
    --shadow-glow-accent: 0 0 40px rgba(139, 21, 56, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: "Cairo", "Tajawal", "Inter", -apple-system, BlinkMacSystemFont,
        sans-serif !important;
    background: linear-gradient(180deg, var(--neutral-50) 0%, #f0f4ff 100%);
    color: var(--neutral-800);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Cairo", "Tajawal", sans-serif !important;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

p,
span,
div,
input,
select,
textarea,
button,
a {
    font-family: "Cairo", "Tajawal", "Inter", sans-serif !important;
}

/* Preserve Icon Fonts */
.fa,
.fas,
.far,
.fal,
.fab,
.fad,
i.fa,
i.fas,
i.far,
i.fal,
i.fab,
i.fad,
i[class*="fa-"],
span[class*="fa-"],
[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fab,
i.fab,
[class*="fa-"].fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

.ri,
i.ri,
i[class*="ri-"],
span[class*="ri-"],
[class*="ri-"] {
    font-family: "RemixIcon" !important;
    font-style: normal !important;
}

.bi,
i.bi,
i[class*="bi-"],
span[class*="bi-"],
[class*="bi-"] {
    font-family: "bootstrap-icons" !important;
}

.material-symbols-outlined,
[class*="material-symbols"] {
    font-family: "Material Symbols Outlined" !important;
}

/* Selection Color */
::selection {
    background: var(--primary-500);
    color: white;
}

/* ===== PREMIUM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-royal);
    border-radius: var(--radius-full);
    border: 2px solid var(--neutral-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary);
}

/* ===== ANIMATIONS ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatRotate {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(2deg);
    }

    50% {
        transform: translateY(-20px) rotate(0deg);
    }

    75% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(139, 21, 56, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(139, 21, 56, 0.8);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes morphing {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

@keyframes textGlow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }

    50% {
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.8),
            0 0 60px rgba(139, 21, 56, 0.5);
    }
}

/* ===== NAVBAR - PREMIUM GLASS MORPHISM ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--neutral-800) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-normal);
    text-decoration: none;
    flex-shrink: 1;
}

.brand-text {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

.navbar-brand img {
    height: 38px;
    border-radius: var(--radius-sm);
    transition: var(--transition-bounce);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.navbar-brand:hover {
    color: var(--primary-600) !important;
    transform: translateY(-2px);
}

.navbar-brand:hover img {
    transform: scale(1.1) rotate(5deg);
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 14px !important;
    margin: 0 2px;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.navbar-nav .nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-royal);
    border-radius: var(--radius-lg);
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition-normal);
    z-index: -1;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    transform: translateY(-3px);
}

.navbar-nav .nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.navbar-nav .nav-link.active {
    color: white !important;
    background: var(--gradient-royal);
    box-shadow: var(--shadow-glow-primary);
}

/* Dropdown */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    padding: 12px;
    margin-top: 10px !important;
    border: 1px solid rgba(99, 102, 241, 0.1);
    animation: slideInUp 0.3s ease;
}

.dropdown-item {
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-weight: 500;
    color: var(--neutral-700);
    transition: var(--transition-normal);
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item:hover {
    background: var(--gradient-ocean);
    color: white;
    transform: translateX(5px);
}

.dropdown-item img {
    border-radius: 4px;
}

/* Navbar Toggler */
.navbar-toggler {
    border: 2px solid var(--primary-500);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    transition: var(--transition-normal);
}

.navbar-toggler:hover {
    background: var(--gradient-royal);
    border-color: transparent;
}

.navbar-toggler:hover .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
}

/* ===== HERO SECTION - EPIC DESIGN ===== */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
    background: var(--gradient-cosmic);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 20%,
            rgba(99, 102, 241, 0.3) 0%,
            transparent 50%),
        radial-gradient(ellipse at 80% 80%,
            rgba(168, 85, 247, 0.3) 0%,
            transparent 50%),
        radial-gradient(ellipse at 50% 50%,
            rgba(6, 182, 212, 0.2) 0%,
            transparent 50%);
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, var(--neutral-50), transparent);
    z-index: 2;
}

.hero-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.7) 0%,
            rgba(30, 41, 59, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    animation: slideInLeft 1s ease;
}

.hero-accent-line {
    width: 80px;
    height: 5px;
    background: var(--gradient-aurora);
    background-size: 200% 200%;
    animation: gradientFlow 3s ease infinite, pulse 2s ease infinite;
    border-radius: var(--radius-full);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

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

.hero-buttons .btn {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: none;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-buttons .btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-buttons .btn:hover::before {
    width: 400px;
    height: 400px;
}

.hero-buttons .btn-primary {
    background: var(--gradient-aurora);
    background-size: 200% 200%;
    animation: gradientFlow 5s ease infinite;
    color: white;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.hero-buttons .btn-warning {
    background: var(--gradient-sunset);
    color: white;
    box-shadow: 0 8px 30px rgba(244, 63, 94, 0.4);
}

.hero-buttons .btn-warning:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(244, 63, 94, 0.5);
}

.hero-buttons .btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-5px);
}

/* Hero Image Area */
.hero-image-container {
    position: relative;
    z-index: 10;
    animation: slideInRight 1s ease;
}

.hero-image-wrapper {
    position: relative;
    min-height: 400px;
}

/* Floating Cards */
.hero-floating-elements {
    position: relative;
    width: 100%;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-2xl);
    animation: floatRotate 6s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    color: var(--neutral-800);
}

.floating-card i {
    font-size: 2rem;
    background: var(--gradient-royal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-1 {
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    left: 0;
    animation-delay: 2s;
}

.card-3 {
    bottom: 10%;
    right: 10%;
    animation-delay: 4s;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.scroll-arrow {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-normal);
    animation: bounce 2s infinite;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ===== SECTION STYLES ===== */
section {
    position: relative;
}

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

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

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

/* Section Title */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--neutral-800);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-aurora);
    border-radius: var(--radius-full);
}

.section-title i {
    color: var(--primary-500);
    margin: 0 10px;
}

.emoji-decoration {
    font-size: 1.5rem;
    margin: 0 8px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

/* ===== ABOUT SECTION ===== */
.about-school {
    background: linear-gradient(180deg, var(--neutral-50) 0%, #f0f4ff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about-school::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--gradient-royal);
    border-radius: 50%;
    opacity: 0.05;
    animation: pulse 10s ease infinite;
}

.about-accent-line {
    width: 80px;
    height: 5px;
    background: var(--gradient-aurora);
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.about-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--neutral-800);
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.15rem;
    color: var(--neutral-600);
    line-height: 1.9;
    margin-bottom: 2rem;
}

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

.about-main-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    transition: var(--transition-slow);
    border: 4px solid white;
}

.about-main-image:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.25);
}

.about-stats-card {
    position: absolute;
    bottom: -30px;
    right: 20px;
    background: white;
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-2xl);
    min-width: 320px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

[dir="rtl"] .about-stats-card {
    right: auto;
    left: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-royal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--neutral-500);
    font-weight: 600;
    margin: 0;
}

/* ===== BREAKING NEWS ===== */
.breaking-news {
    background: var(--gradient-fire);
    padding: 18px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(244, 63, 94, 0.3);
}

.breaking-news::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 100%);
    animation: shimmer 3s infinite;
}

.breaking-news .badge {
    background: white !important;
    color: var(--accent-rose) !important;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s ease infinite;
}

.breaking-news-slider {
    overflow: hidden;
    white-space: nowrap;
}

.breaking-news-item {
    display: inline-block;
    margin: 0 50px;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

[dir="rtl"] .breaking-news-item {
    animation: marquee-rtl 20s linear infinite;
}

@keyframes marquee-rtl {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.breaking-news-item a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.breaking-news-item a:hover {
    color: var(--accent-amber);
}

/* ===== CARDS - NEWS, ARTICLES, ALBUMS ===== */
.news-card,
.article-card,
.album-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-slow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover,
.article-card:hover,
.album-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl), var(--shadow-glow-primary);
}

.news-card .card-img-top,
.article-card .card-img-top,
.album-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.news-card:hover .card-img-top,
.article-card:hover .card-img-top,
.album-card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.card-title a {
    color: var(--neutral-800);
    text-decoration: none;
    transition: var(--transition-fast);
}

.card-title a:hover {
    color: var(--primary-600);
}

.card-text {
    color: var(--neutral-600);
    font-size: 0.95rem;
    line-height: 1.7;
    flex: 1;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-slow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-aurora);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-2xl), var(--shadow-glow-secondary);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-royal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transition: var(--transition-bounce);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.service-title {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--neutral-800);
    margin-bottom: 0.75rem;
}

.service-description {
    color: var(--neutral-600);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ===== SCHOOL COMMUNITY SECTION ===== */
.school-community {
    min-height: 60vh;
    background: var(--gradient-ocean);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.school-community::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 30%,
            rgba(255, 255, 255, 0.15) 0%,
            transparent 50%),
        radial-gradient(ellipse at 70% 70%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%);
}

.community-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.community-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.community-content {
    position: relative;
    z-index: 10;
}

.community-accent-line {
    width: 100px;
    height: 5px;
    background: white;
    border-radius: var(--radius-full);
    opacity: 0.8;
}

.community-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.community-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.social-media-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-bounce);
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-8px) scale(1.15);
    color: white;
}

.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-link.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.social-link.linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
}

.social-link.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg,
            #f09433,
            #e6683c,
            #dc2743,
            #cc2366,
            #bc1888);
    border-color: #e4405f;
}

/* ===== QUICK ACCESS ===== */
.quick-access {
    background: linear-gradient(180deg, #f0f4ff 0%, var(--neutral-50) 100%);
    padding: 100px 0;
    position: relative;
}

/* ===== FEATURED SECTIONS ===== */
.featured-news,
.featured-articles,
.featured-albums {
    padding: 80px 0;
}

.featured-news {
    background: var(--neutral-50);
}

.featured-articles {
    background: linear-gradient(180deg, white 0%, var(--neutral-50) 100%);
}

.featured-albums {
    background: var(--neutral-50);
}

.latest-news {
    background: white;
    padding: 80px 0;
}

/* ===== BUTTONS ===== */
.btn {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-royal);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: var(--gradient-royal);
}

.btn-success {
    background: var(--gradient-nature);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-info {
    background: var(--gradient-ocean);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.btn-warning {
    background: var(--gradient-sunset);
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-500);
    color: var(--primary-600);
}

.btn-outline-primary:hover {
    background: var(--gradient-royal);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
}

.btn-light {
    background: white;
    color: var(--primary-600);
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.rounded-pill {
    border-radius: var(--radius-full) !important;
}

/* ===== FOOTER ===== */
footer {
    background: var(--gradient-dark) !important;
    position: relative;
    padding: 80px 0 30px !important;
    border-top: 4px solid var(--primary-500);
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 20%,
            rgba(99, 102, 241, 0.1) 0%,
            transparent 50%),
        radial-gradient(ellipse at 80% 80%,
            rgba(168, 85, 247, 0.08) 0%,
            transparent 50%);
}

footer>.container {
    position: relative;
    z-index: 1;
}

footer h5,
footer h6 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer p,
footer li {
    color: rgba(255, 255, 255, 0.7);
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--primary-400);
    transform: translateX(5px);
}

footer .list-unstyled li {
    margin-bottom: 0.75rem;
}

footer .list-unstyled a {
    display: inline-block;
}

footer .social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 10px;
    transition: var(--transition-normal);
}

footer .social-links a:hover {
    background: var(--primary-500);
    transform: translateY(-5px);
}

footer form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: var(--radius-lg);
    padding: 12px 16px;
}

footer form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

footer form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

footer form .btn {
    padding: 12px 20px;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 3rem 0 2rem;
}

/* ===== FORM STYLES ===== */
.form-control,
.form-select {
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-size: 1rem;
    transition: var(--transition-fast);
    background: white;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
}

.form-check-input:checked {
    background-color: var(--primary-500);
    border-color: var(--primary-500);
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: var(--gradient-royal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-royal) !important;
}

.bg-gradient-ocean {
    background: var(--gradient-ocean) !important;
}

.bg-gradient-sunset {
    background: var(--gradient-sunset) !important;
}

.shadow-glow {
    box-shadow: var(--shadow-glow-primary);
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .me-2,
[dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

[dir="rtl"] .ms-2,
[dir="rtl"] .ms-3 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

[dir="rtl"] .fa-arrow-left::before {
    content: "\f061";
}

[dir="rtl"] .fa-arrow-right::before {
    content: "\f060";
}

[dir="rtl"] footer a:hover {
    transform: translateX(-5px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .floating-card {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .floating-card {
        display: none;
    }

    .hero-image-wrapper {
        display: none;
    }

    .about-stats-card {
        position: relative;
        bottom: auto;
        right: auto;
        left: auto;
        margin-top: 2rem;
        min-width: auto;
    }

    [dir="rtl"] .about-stats-card {
        left: auto;
        right: auto;
    }
}

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

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

    .hero-title {
        font-size: 2rem;
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
        font-size: 1rem;
    }

    .hero-accent-line {
        margin: 0 auto 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

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

    .about-school,
    .school-community,
    .quick-access {
        padding: 60px 0;
    }

    .about-main-image {
        height: 300px;
    }

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

    .service-card {
        padding: 30px 20px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    footer {
        padding: 60px 0 20px !important;
    }
}

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

    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .about-stats-card {
        padding: 20px;
    }

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

    .breaking-news .badge {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .navbar,
    footer,
    .hero-scroll-indicator,
    .floating-card {
        display: none !important;
    }

    .hero-section {
        min-height: auto;
        padding: 20px 0;
        background: white !important;
    }

    .hero-title,
    .hero-subtitle {
        color: black !important;
        text-shadow: none !important;
    }
}

/* ===== MOBILE OVERFLOW FIX ===== */
@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative !important;
    }


    body {
        overflow-x: clip !important;
    }

    .container,

    .container,
    .container-fluid,
    .row,
    section,
    header,
    footer,
    main,
    nav,
    .navbar,
    .hero-section,
    .news-section,
    .about-school,
    .features-section,
    .albums-section,
    .cta-section,
    .section {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        overflow-x: clip !important;
    }


    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }


    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
    }


    /* Hide decorative elements that may overflow */
    .floating-shape,
    .hero-particles span,
    .decoration-element {
        display: none !important;
    }


    /* Hide decorative pseudo-elements on mobile */
    .about-school::before,
    .about-school::after,
    .school-community::before,
    .school-community::after,
    footer::before,
    footer::after,
    .breaking-news::before,
    .breaking-news::after {
        display: none !important;
    }


    /* Ensure images don't overflow */
    img {
        max-width: 100% !important;
        height: auto !important;
    }


    /* Fix navbar logo size on mobile */
    .navbar-brand img {
        height: 40px !important;
        max-height: 40px !important;
        width: auto !important;
        max-width: 40px !important;
        object-fit: contain !important;
    }
}