:root {
    --gold: #ad9861;
    --gold-light: #c9b47d;
    --gold-dark: #8a7849;
    --gold-glow: rgba(173, 152, 97, 0.3);
    --navy-deep: #202080;
    --navy-mid: #404080;
    --navy-bright: #6060a0;
    --navy-light: #8a8aba;
    --navy-dark: #1a1a60;
    --bg-navy: #f0f0f8;
    --bg-light: #ffffff;
}

/* SweetAlert2 RTL styling */
.rtl-alert {
    direction: rtl;
    font-family: 'Almarai', sans-serif;
    text-align: right;
}

/* Ensure dropdown is visible */
.dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s linear;
    z-index: 1050;
}

.dropdown-menu.show {
    visibility: visible;
    opacity: 1;
}

/* Fix for notification dropdown */
#notificationsDropdown {
    cursor: pointer;
}

/* Mobile navbar improvements */
@media (max-width: 768px) {
    .navbar .container {
        padding: 0 15px;
    }
    
    /* Make notifications dropdown more mobile-friendly */
    .dropdown-menu {
        width: 300px !important;
        max-width: calc(100vw - 30px);
        left: auto !important;
        right: 0 !important;
        transform: translateX(-10px);
    }
    
    /* Adjust navbar spacing on mobile */
    .d-flex.align-items-center.gap-2 {
        gap: 0.5rem !important;
    }
    
    /* Ensure buttons don't shrink too much */
    .btn.btn-danger {
        min-width: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Logo size adjustment for mobile */
    .navbar-brand img,
    .fixed-top img[src="images/logo.png"] {
        max-width: 50px !important;
    }
}

@media (max-width: 576px) {
    /* Further mobile optimizations */
    .dropdown-menu {
        width: 280px !important;
    }
    
    .fixed-top .container {
        padding: 0 10px;
    }
}
.main-content {
    position: relative;
    z-index: 1;
}

.hero-section {
    background-size: cover;
    background-position: 57% 5%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 100vh;
    height: 100vh;
    position: relative;
    width: 100%;
    color: white;
}

#welcomeMessage {
    margin-top: 300px;
    padding-right: 50px;
}

/* Adjust welcome message position for small screens */
@media (max-width: 768px) {
    #welcomeMessage {
        margin-top: 120px; /* Add space above the welcome message */
        padding-top: 20px; /* Optional: additional padding */
    }
}

@media (max-width: 576px) {
    #welcomeMessage {
        margin-top: 100px; /* Even more space on very small screens */
        padding-top: 30px;
    }
}
.hero-floating-svgs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
}

.hero-float-svg {
    position: absolute;
    animation: heroFloat 20s ease-in-out infinite;
    opacity: 0.9;
}

.svg-compass { top: 12%; left: 5%; animation-delay: 0s; width: 75px; height: 75px; }
.svg-globe { bottom: 20%; right: 4%; animation-delay: -5s; width: 65px; height: 65px; }
.svg-monument { top: 60%; left: 3%; animation-delay: -10s; width: 60px; height: 60px; }
.svg-map { top: 30%; right: 3%; animation-delay: -15s; width: 70px; height: 70px; }
.svg-scroll { bottom: 35%; left: 8%; animation-delay: -7s; width: 55px; height: 55px; }

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(-5px) rotate(-3deg); }
    75% { transform: translateY(-20px) rotate(4deg); }
}

@media (max-width: 768px) {
    .hero-floating-svgs {
        opacity: 0.4;
    }
    .hero-float-svg {
        width: 40px !important;
        height: 40px !important;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(32, 32, 128, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(96, 96, 160, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(64, 64, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(32, 32, 96, 0.08) 0%, transparent 40%);
    animation: backgroundShift 15s ease-in-out infinite;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-section .row {
    position: relative;
    z-index: 3;
}

.hero-section .col-lg-6 {
    position: relative;
    z-index: 3;
}

.page-floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.float-icon {
    position: absolute;
    animation: floatDrift 18s ease-in-out infinite;
}

.float-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(32, 32, 128, 0.2));
    opacity: 0.3;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.float-icon:hover .float-img {
    opacity: 0.55;
    transform: scale(1.15);
}

.float-icon-1 { top: 10%; left: 3%; animation-delay: 0s; width: 80px; height: 80px; animation-name: floatDrift; }
.float-icon-2 { top: 22%; right: 2%; animation-delay: -3s; width: 70px; height: 70px; animation-name: floatDriftRev; }
.float-icon-3 { top: 55%; right: 4%; animation-delay: -6s; width: 95px; height: 95px; animation-name: floatDrift; }
.float-icon-4 { top: 40%; left: 2%; animation-delay: -9s; width: 65px; height: 65px; animation-name: floatDriftRev; }
.float-icon-5 { bottom: 15%; left: 5%; animation-delay: -2s; width: 90px; height: 90px; animation-name: floatDriftRev; }
.float-icon-6 { bottom: 30%; right: 6%; animation-delay: -5s; width: 75px; height: 75px; animation-name: floatDrift; }
.float-icon-7 { bottom: 8%; right: 3%; animation-delay: -8s; width: 85px; height: 85px; animation-name: floatDriftRev; }
.float-icon-8 { top: 68%; left: 6%; animation-delay: -11s; width: 70px; height: 70px; animation-name: floatDrift; }

@keyframes floatDrift {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-18px) rotate(6deg) scale(1.05); }
    50% { transform: translateY(-6px) rotate(-4deg) scale(0.98); }
    75% { transform: translateY(-24px) rotate(3deg) scale(1.03); }
}

@keyframes floatDriftRev {
    0%, 100% { transform: translateY(0) rotate(0deg) scaleX(-1); }
    25% { transform: translateY(-18px) rotate(-6deg) scaleX(-1) scale(1.05); }
    50% { transform: translateY(-6px) rotate(4deg) scaleX(-1) scale(0.98); }
    75% { transform: translateY(-24px) rotate(-3deg) scaleX(-1) scale(1.03); }
}

/* Remove image container styles since we're using background */
.hero-image-container,
.hero-image-wrapper,
.hero-image,
.hero-image-overlay {
    display: none;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
    .float-img {
        opacity: 0.2;
    }
}



/* Section Divider */
.section-divider {
    position: relative;
    height: 60px;
    background: transparent;
    overflow: visible;
    z-index: 2;
    pointer-events: none;
}

.section-divider-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-divider-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(32, 32, 128, 0.15), transparent);
    transform: translateY(-50%);
}

.section-divider-icon {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
box-shadow: 0 2px 10px rgba(32, 32, 128, 0.15);
    color: #202080;
    font-size: 1.1rem;
    animation: dividerPulse 3s ease-in-out infinite;
}

.section-divider-icon i {
    line-height: 1;
}

@keyframes dividerPulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(32, 32, 128, 0.1); transform: scale(1); }
    50% { box-shadow: 0 2px 20px rgba(32, 32, 128, 0.2); transform: scale(1.08); }
}

.section-divider.divider-teal .section-divider-icon {
    background: var(--bg-teal);
}

.section-divider.divider-white .section-divider-icon {
    background: var(--bg-light);
}

/* Divider with molecular SVG decoration */




.carousel-item img {
    will-change: transform;
}

/* Accessibility improvements */
.login-btn:focus,
.register-btn:focus {
    outline: 2px solid #D4A847;
    outline-offset: 2px;
}

/* Loading states moved to global styles.css */

/* Enhanced Courses Section */
.courses-section {
    background: var(--bg-navy);
    position: relative;
    overflow: hidden;
}

.courses-section::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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23dee2e6" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

.section-header {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    margin-top: 0.4rem;
    line-height: 1.2;
}

.title-main {
    color: #2c3e50;
    display: block;
}

.title-accent {
    color: #e74c3c;
    display: block;
    font-size: 0.9em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.section-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.feature-item span {
    font-weight: 500;
    color: #2c3e50;
}

/* Enhanced Carousel */
.carousel-container {
    position: relative;
    z-index: 2;
}

.modern-carousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.carousel-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(267deg, #202080 0%, #404080 50%, #6060a0 100%);
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.carousel-item:hover .carousel-image {
    transform: scale(1.05);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel-item:hover .carousel-overlay {
    opacity: 1;
}

.carousel-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-link:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.carousel-link-icon {
    font-size: 2rem;
    color: #e74c3c;
}

.modern-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent) !important;
    border: none;
    border-radius: 0;
    text-align: right;
}

.caption-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.caption-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.modern-price {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.content-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Placeholder Content */
.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    text-align: center;
    padding: 2rem;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.placeholder-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.placeholder-content p {
    opacity: 0.8;
    margin: 0;
}

/* Carousel Controls Enhancement */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modern-carousel:hover .carousel-control-prev,
.modern-carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    width: 20px;
    height: 20px;
}

/* Carousel Indicators Enhancement */
.carousel-indicators {
    bottom: 15px;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background: #e74c3c;
    border-color: #e74c3c;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        text-align: center;
    }

    .section-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .feature-item {
        flex: 1;
        min-width: 150px;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .carousel-image-container {
        height: 300px;
    }

    .modern-caption {
        padding: 1rem;
    }

    .caption-title {
        font-size: 1.2rem;
    }

    .carousel-link {
        width: 60px;
        height: 60px;
    }

    .carousel-link-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .courses-section {
        padding: 3rem 0;
    }

    .carousel-image-container {
        height: 250px;
    }

    .section-features {
        gap: 0.5rem;
    }

    .feature-item {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Arabic Subjects Section */
.arabic-subjects-section {
    background: linear-gradient(170deg, #f8f9fa 0%, #ffffff 50%, #f0f7fa 100%);
    position: relative;
    overflow: hidden;
}

.section-heading {
    position: relative;
    z-index: 1;
}

.heading-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
    color: white;
    padding: 0.4rem 1.5rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.subjects-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--navy-deep);
    margin-bottom: 0.75rem;
}

.subjects-subtitle {
    font-size: 1.15rem;
    color: #6c757d;
    margin-bottom: 0;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.subject-card {
    --subj-color: #202080;
    --subj-glow: rgba(32,32,128,0.15);
}

.subject-card-inner {
    background: white;
    border-radius: 20px;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
}

.card-top {
    background: var(--subj-color);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.card-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.subject-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--subj-color);
    background: rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(4px);
}

.subject-card:hover .subject-icon-wrap {
    background: rgba(255,255,255,0.35);
    transform: scale(1.1) rotate(-6deg);
}

.subject-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(255,255,255,0.25);
    line-height: 1;
    transition: all 0.4s ease;
}

.subject-card:hover .subject-num {
    color: rgba(255,255,255,0.5);
    transform: scale(1.15);
}

.card-bottom {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.subject-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    transition: color 0.3s ease;
}

.subject-card:hover .subject-name {
    color: var(--subj-color);
}

.subject-desc {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.subject-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.6rem;
}

.subject-tags span {
    display: inline-block;
    background: transparent;
    padding: 0.15rem 0.7rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--subj-color);
    border: 1.5px solid var(--subj-color);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.subject-card:hover .subject-tags span {
    background: var(--subj-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--subj-glow);
}

.subject-tags span:nth-child(2) {
    transition-delay: 0.04s;
}

.subject-tags span:nth-child(3) {
    transition-delay: 0.08s;
}

.subject-card:hover .subject-card-inner {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 0 0 1px var(--subj-color);
}

@media (max-width: 992px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .subjects-title {
        font-size: 2.2rem;
    }

    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .card-top {
        padding: 1rem;
    }

    .subject-name {
        font-size: 1.05rem;
    }

    .card-bottom {
        padding: 1rem;
    }
}

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

    .subjects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* New entrance animations */
[data-aos="card-rise"] {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-aos="card-rise"].aos-animate {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

[data-aos="card-flip"] {
    opacity: 0;
    transform: translateY(50px) scale(0.92);
    filter: blur(6px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-aos="card-flip"].aos-animate {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

[data-aos="card-swirl"] {
    opacity: 0;
    transform: rotate(-8deg) scale(0.85) translateY(50px);
    filter: blur(5px);
    transition: all 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-aos="card-swirl"].aos-animate {
    opacity: 1;
    transform: rotate(0) scale(1) translateY(0);
    filter: blur(0);
}

[data-aos="card-zoom"] {
    opacity: 0;
    transform: scale(0.7) translateY(30px);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-aos="card-zoom"].aos-animate {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
}

@keyframes elasticIn {
    0% { opacity: 0; transform: scale(0.3) translateY(-20px); }
    50% { transform: scale(1.08); }
    70% { transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.animate-elastic {
    animation: elasticIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.enhanced-hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}



/* Improved carousel transitions */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-item.active {
    transform: scale(1);
}

.carousel-item-next,
.carousel-item-prev {
    transform: scale(0.95);
}

/* Honor Roll Section */
.honor-roll-section {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.honor-roll-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(32, 32, 128, 0.1), transparent);
}

.honor-roll-section::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"><path d="M50 10 L60 40 L90 40 L70 60 L80 90 L50 70 L20 90 L30 60 L10 40 L40 40 Z" fill="%23ffd700" opacity="0.05"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

.honor-student-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border: 2px solid transparent;
}

.honor-student-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #ffd700;
}

.honor-card-header {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.honor-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: honorShimmer 4s ease-in-out infinite;
}

@keyframes honorShimmer {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.honor-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    color: #b8860b;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 2;
    animation: honorPulse 2s ease-in-out infinite;
}

@keyframes honorPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
}

.honor-rank {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #b8860b;
    font-size: 1.3rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(184, 134, 11, 0.3);
    z-index: 3;
}

.honor-card-body {
    padding: 2rem;
    text-align: center;
}

.student-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.student-grade {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.achievement-text {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
    font-style: italic;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

/* Honor Roll Student Image */
.honor-student-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.student-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.honor-student-card:hover .student-photo {
    transform: scale(1.05);
}

.honor-rank-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #b8860b;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2;
}

/* Honor roll card with image adjustments */
.honor-student-card:has(.honor-student-image) .honor-card-body {
    padding: 1.5rem;
}

.honor-student-card:has(.honor-student-image) {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border: 2px solid transparent;
}

/* Student Opinions Section */
.student-opinions-section {
    background: var(--bg-navy);
    position: relative;
    overflow: hidden;
}

.student-opinions-section::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="%23007bff" opacity="0.1"/><circle cx="80" cy="40" r="1.5" fill="%23007bff" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%23007bff" opacity="0.1"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.opinion-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border: 2px solid transparent;
    overflow: hidden;
}

.opinion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(212, 168, 71, 0.15);
    border-color: #D4A847;
}

.opinion-card.featured {
    border-color: #D4A847;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.opinion-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50px 50px 0;
    border-color: transparent #ffd700 transparent transparent;
}

.opinion-card.featured::after {
    content: '★';
    position: absolute;
    top: 8px;
    right: 8px;
    color: white;
    font-size: 1.2rem;
    z-index: 2;
}

.opinion-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.opinion-text {
    position: relative;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.quote-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2rem;
    color: #e9ecef;
    z-index: 1;
}

.opinion-text p {
    color: #495057;
    line-height: 1.6;
    font-size: 1rem;
    position: relative;
    z-index: 2;
    margin: 0;
    padding-right: 1rem;
}

.opinion-rating {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.opinion-rating .fas.fa-star {
    color: #ddd;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.opinion-rating .fas.fa-star.active {
    color: #D4A847;
}

.opinion-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #D4A847, #B88A2E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.author-info {
    flex-grow: 1;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
}

.author-date {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Add Opinion Form */
.add-opinion-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.add-opinion-card:hover {
    border-color: #D4A847;
    box-shadow: 0 15px 35px rgba(212, 168, 71, 0.15);
}

.add-opinion-card h4 {
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.add-opinion-card .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.add-opinion-card .form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.add-opinion-card .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Rating Input */
.rating-input {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-direction: row-reverse;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
    transition: color 0.3s ease;
}

.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #D4A847;
}

.rating-input input[type="radio"]:checked ~ label,
.rating-input label.selected {
    color: #D4A847;
}

/* Character counter for opinion text */
.form-text {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Loading state for submit button */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Enhanced rating input hover effects */
.rating-input label:hover {
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* Success message styling */
.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
    border-radius: 10px;
    border-left: 4px solid #17a2b8;
}

/* Character counter styling */
.character-counter {
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.character-counter.text-warning {
    color: #ffc107 !important;
}

.character-counter.text-danger {
    color: #dc3545 !important;
}

.character-counter.text-success {
    color: #28a745 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .honor-student-card,
    .opinion-card {
        margin-bottom: 2rem;
    }

    .honor-card-header,
    .opinion-card-body {
        padding: 1.5rem;
    }

    .honor-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .honor-rank {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .add-opinion-card {
        padding: 1.5rem;
    }

    .rating-input label {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .honor-card-body,
    .opinion-card-body {
        padding: 1rem;
    }

    .student-name {
        font-size: 1.2rem;
    }

    .opinion-text p {
        font-size: 0.95rem;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
/* Hero text animations */
.hero-title-reveal {
    opacity: 0;
    animation: titleScaleIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s forwards;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.hero-subtitle-slide {
    opacity: 0;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    font-family: 'Almarai', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    animation: subtitleRise 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
}

.hero-subtitle-slide::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2.5px;
    background: #8a8aba;
    border-radius: 2px;
    animation: lineExpand 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.8s forwards;
}

.hero-text-fade {
    opacity: 0;
    animation: textBlurIn 0.8s ease-out 1.5s forwards;
}

@keyframes titleScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(20px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes subtitleRise {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textBlurIn {
    0% {
        opacity: 0;
        filter: blur(6px);
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@keyframes lineExpand {
    0% { width: 0; opacity: 0; }
    100% { width: 100%; opacity: 1; }
}

