/* modern-hightech-rtl.css - Modern RTL Redesign with Enhanced Animations - IMPROVED CAROUSEL */

/* ===== CSS Variables for Color Scheme ===== */
:root {
    /* Primary Colors - Deep Blue for professionalism and trust */
    --primary: #1a3a6f;    /* Dark blue from academic institutions */
    --primary-dark: #0d284c;
    --primary-light: #2d5aa0;
    --primary-lighter: #4a7bc8;
    
    /* Secondary Colors - Gold for excellence and prestige */
    --secondary: #d4af37;  /* Gold/Mustard from academic seals */
    --secondary-dark: #b8941e;
    --secondary-light: #e6c76c;
    --secondary-lightest: #f8f0d7;
    
    /* Accent Colors */
    --accent-blue: #0066cc;
    --accent-teal: #20b2aa;
    --accent-success: #28a745;
    --accent-warning: #ffc107;
    
    /* Neutral Colors */
    --dark: #1e2a3a;
    --gray-dark: #2c3e50;
    --gray: #7f8c8d;
    --gray-light: #ecf0f1;
    --white: #ffffff;
    --off-white: #f8f9fa;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 15px 50px rgba(0, 0, 0, 0.25);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    --gradient-light: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50%;
}

/* ===== Base Resets & RTL Direction ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--off-white);
    overflow-x: hidden;
    text-align: right;
}

/* ===== Enhanced Spinner/Loader with Large Icon ===== */
#spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#spinner.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.spinner-logo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    border: 4px solid var(--secondary);
    padding: 10px;
    background: var(--white);
    animation: logoPulse 2s infinite alternate, logoRotate 4s infinite linear;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
}

.spinner-text {
    color: var(--white);
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    animation: textFade 2s infinite alternate;
}

@keyframes logoPulse {
    0% { transform: scale(1) rotate(0deg); box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
    50% { transform: scale(1.1) rotate(180deg); box-shadow: 0 0 40px rgba(212, 175, 55, 0.6); }
    100% { transform: scale(1) rotate(360deg); box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
}

@keyframes logoRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes textFade {
    0%, 100% { opacity: 0.7; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-10px); }
}

/* ===== Ultra Modern Topbar ===== */
.top-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 12px 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--secondary);
    font-weight: 900;
}

.top-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-secondary);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.top-bar-logo-section {
    display: flex;
    align-items: center;
    flex-direction: row;
    /* gap: 20px; */
    animation: slideInRight 0.8s ease-out;
}

.top-bar-logo {
    width: 55px;
    height: 55px;
    border-radius: var(--radius-md);
    border: 3px solid var(--secondary);
    padding: 3px;
    background: var(--white);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.top-bar-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.top-bar-logo:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
}

.top-bar-org-info {
    display: flex;
    flex-direction: column;
}

.top-bar-org-info span:first-child {
    color: var(--secondary);
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.top-bar-org-info span:last-child {
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
    margin-top: 5px;
}

.top-bar .contact-info {
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.top-bar .social-icons {
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.top-bar .btn-outline-light {
    width:34px;
    height:34px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    /* padding: 8px; */
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.top-bar .btn-outline-light::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    transform: translateX(100%);
    transition: var(--transition-normal);
    z-index: -1;
}

.top-bar .btn-outline-light:hover {
    border-color: transparent;
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.top-bar .btn-outline-light:hover::before {
    transform: translateX(0);
}

/* ===== Ultra Modern Navigation ===== */
.navbar-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 998;
    border-bottom: 1px solid rgba(26, 58, 111, 0.1);
    transition: all 0.4s ease;
}

.navbar-container.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.navbar {
    padding: 0;
    transition: var(--transition-normal);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    font-size: 1rem !important;
    animation: fadeIn 0.8s ease;
}

.navbar-logo {
    width: 65px;
    height: 65px;
    border-radius: var(--radius-lg);
    border: 3px solid var(--primary);
    padding: 5px;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 15px rgba(26, 58, 111, 0.2);
}

.navbar-logo:hover {
    transform: rotate(-10deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(26, 58, 111, 0.3);
}

.navbar-toggler {
    border: none;
    padding: 10px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    transition: var(--transition-bounce);
}

.navbar-toggler:hover {
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(26, 58, 111, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.7)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    filter: invert(1);
    transition: var(--transition-normal);
}

.navbar-collapse {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-nav {
    gap: 4px;
    padding: 15px 0;
}

.nav-item {
    position: relative;
    animation: navItemFadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes navItemFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-item:nth-child(5) { animation-delay: 0.5s; }
.nav-item:nth-child(6) { animation-delay: 0.6s; }
.nav-item:nth-child(7) { animation-delay: 0.7s; }

.nav-link {
    color: var(--gray-dark) !important;
    font-weight: 600;
    padding: 10px 10px !important;
    position: relative;
    transition: var(--transition-normal);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: bolder;
    letter-spacing: 0.5px;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transform: translateX(100%);
    transition: var(--transition-normal);
    z-index: -1;
    border-radius: var(--radius-md);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 25px;
    left: 25px;
    height: 3px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: var(--transition-normal);
    border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
    color: var(--white) !important;
    transform: translateX(-5px);
}

.nav-link:hover::before, .nav-link.active::before {
    transform: translateX(0);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

.nav-link i {
    margin-left: 8px;
    transition: var(--transition-normal);
}

.nav-link:hover i {
    transform: translateX(-5px);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    padding: 10px;
    animation: dropdownFadeIn 0.3s ease-out;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 58, 111, 0.1);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    padding: 12px 20px;
    transition: var(--transition-bounce);
    border-radius: var(--radius-sm);
    position: relative;
    color: var(--gray-dark);
    font-weight: 500;
    text-align: start;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--secondary);
    transform: scaleY(0);
    transition: var(--transition-normal);
}

.dropdown-item:hover {
    background-color: rgba(26, 58, 111, 0.05);
    color: var(--primary);
    padding-right: 30px;
    transform: translateX(-5px);
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

/* ===== IMPROVED Modern Hero Carousel ===== */
#header-carousel {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin: 30px auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    max-width: 95%;
}

.carousel-inner {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.carousel-item {
    position: relative;
    height: 650px;
}

.carousel-image {
    /* width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.2); */
    animation: kenBurns 20s infinite alternate;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;  /* Changed from default */
    top: 0;
    left: 0;
    /* Remove problematic animations */
    /* animation: none !important; */
    /* Ensure proper stacking */
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease;
}

@keyframes kenBurns {
    0% { transform: scale(1) translateX(0); }
    100% { transform: scale(1.15) translateX(20px); }
}

/* IMPROVED Carousel Caption - Transparent and Positioned Better */
.carousel-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: transparent;
    /* border: 3px solid var(--secondary); */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    /* background: linear-gradient(to top, 
        rgba(26, 58, 111, 0.95) 0%, 
        rgba(26, 58, 111, 0.85) 30%,
        rgba(26, 58, 111, 0.7) 70%,
        rgba(26, 58, 111, 0.4) 100%); */
    /* backdrop-filter: blur(8px); */
    padding: 40px 50px;
    animation: slideUpFade 1s ease-out;
    border-top: 3px solid var(--secondary);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

/* Alternative lighter caption for better visibility */
.carousel-item.active .carousel-caption {
    background: transparent;
    /* border: 3px solid var(--secondary); */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    /* background: linear-gradient(to top, 
        rgba(26, 58, 111, 0.92) 0%, 
        rgba(26, 58, 111, 0.82) 30%,
        rgba(26, 58, 111, 0.75) 70%,
        rgba(26, 58, 111, 0.5) 100%); */
}

/* Make sure image is visible behind caption */
.carousel-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 50%;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.8) 0%, 
        transparent 100%);
    z-index: 1;
}

.carousel-caption {
    position: relative;
    z-index: 2;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alternative caption positioning - Side caption */
@media (min-width: 992px) {
    .carousel-caption {
        position: absolute;
        top: 50%;
        right: 5%;
        bottom: auto;
        left: auto;
        transform: translateY(-50%);
        width: 45%;
        background: rgba(26, 58, 111, 0.88);
        /* backdrop-filter: blur(12px); */
        border-radius: var(--radius-xl);
        padding: 40px;
        border: 2px solid rgba(212, 175, 55, 0.4);
        box-shadow: var(--shadow-xl);
        animation: slideInRightFade 1s ease-out;
    }
}

@keyframes slideInRightFade {
    from {
        opacity: 0;
        transform: translateX(50px) translateY(-50%);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(-50%);
    }
}

.caption-content {
    width: 100%;
    position: relative;
    z-index: 3;
}

.caption-content h6 {
    color: var(--secondary);
    font-size: 18px;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
    animation: fadeInLeft 1s ease-out 0.3s both;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.caption-content h5 {
    color: var(--white);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInRight 1s ease-out 0.5s both;
}

.caption-content ul {
    text-align: right;
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.caption-content li {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 12px;
    position: relative;
    padding-right: 30px;
    transition: var(--transition-normal);
    opacity: 0.9;
}

.caption-content li:hover {
    transform: translateX(-10px);
    color: var(--secondary-light);
    opacity: 1;
}

.caption-content li::before {
    content: '✦';
    position: absolute;
    right: 0;
    color: var(--secondary);
    font-size: 22px;
    animation: spin 4s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-carousel {
    background: var(--gradient-secondary);
    color: var(--dark);
    border: none;
    padding: 16px 40px;
    font-weight: 700;
    border-radius: var(--radius-lg);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    font-size: 18px;
    margin-top: 20px;
    animation: fadeInUp 1s ease-out 0.9s both;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 4;
}

.btn-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transform: translateX(100%);
    transition: var(--transition-normal);
    z-index: -1;
}

.btn-carousel:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.5);
    color: var(--white);
}

.btn-carousel:hover::before {
    transform: translateX(0);
}

.carousel-indicators {
    bottom: 20px;
    z-index: 5;
}

.carousel-indicators li {
    width: 15px;
    height: 15px;
    border-radius: var(--radius-full);
    border: 3px solid var(--white);
    background: transparent;
    margin: 0 10px;
    transition: var(--transition-bounce);
    position: relative;
    opacity: 0.8;
}

.carousel-indicators li::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: var(--radius-full);
    transition: var(--transition-bounce);
}

.carousel-indicators li.active {
    border-color: var(--secondary);
    transform: scale(1.3);
    opacity: 1;
}

.carousel-indicators li.active::before {
    transform: translate(-50%, -50%) scale(1);
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 70px;
    height: 70px;
    background: rgba(26, 58, 111, 0.8);
    border-radius: var(--radius-full);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: var(--transition-normal);
    backdrop-filter: blur(5px);
    border: 2px solid var(--secondary);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(26, 58, 111, 0.95);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    right: 20px;
    left: auto;
}

.carousel-control-next {
    left: 20px;
    right: auto;
}

/*  new */
.carousel-inner {
    height: 600px; /* Fixed height prevents jumping */
}

.carousel-item {
    position: absolute; /* All items in same position */
    opacity: 0; /* Hide all by default */
}

.carousel-item.active {
    opacity: 1; /* Show only active */
    position: relative;
}

/* ===== Modern About Section ===== */
#About {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary-lightest) 100%);
    position: relative;
    overflow: hidden;
}

#About::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--secondary);
    border-radius: var(--radius-full);
    opacity: 0.1;
    animation: float 20s infinite linear;
}

#About::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--primary);
    border-radius: var(--radius-full);
    opacity: 0.1;
    animation: float 25s infinite linear reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(100px, 50px) rotate(90deg); }
    50% { transform: translate(0, 100px) rotate(180deg); }
    75% { transform: translate(-100px, 50px) rotate(270deg); }
}

.section-title {
    position: relative;
    padding-bottom: 25px;
    margin-bottom: 50px;
}

.section-title h4 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

#depts .section-title h4 {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary);
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.section-title h4::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 0;
    width: 200px;
    height: 6px;
    background: var(--gradient-secondary);
    border-radius: 3px;
    animation: widthGrow 2s ease-out forwards;
}

@keyframes widthGrow {
    from { width: 0; }
    to { width: 100px; }
}

.section-title-sm h5 {
    font-size: 28px;
    color: var(--gray-dark);
    position: relative;
    padding-right: 20px;
    font-weight: 700;
}

.section-title-sm h5::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 35px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-sm);
    animation: heightGrow 1s ease-out forwards;
}

@keyframes heightGrow {
    from { height: 0; }
    to { height: 35px; }
}

.feature {
    background: rgba(255, 255, 255, 0.9);
    padding: 35px;
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-bounce);
    border: 2px solid transparent;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(212, 175, 55, 0.05) 100%);
    z-index: 0;
}

.feature:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

.feature-content {
    position: relative;
    z-index: 1;
}

.feature-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 15px;
    position: relative;
    padding-right: 25px;
    font-size: 17px;
}

.feature-content p::before {
    content: '›';
    position: absolute;
    right: 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 24px;
    animation: bounceIn 0.5s ease-out forwards;
    opacity: 0;
}

.feature:hover .feature-content p::before {
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    50% {
        transform: translateX(-5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition-normal);
}

.about-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    transition: var(--transition-slow);
    min-height: 500px;
}

.about-image:hover img {
    transform: scale(1.1);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(26, 58, 111, 0.3) 0%, transparent 100%);
}

/* ===== Modern Departments Section ===== */
#depts {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.header-subtitle {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 60px;
    /* max-width: 800px; */
    margin-right: auto;
    margin-left: auto;
    line-height: 1.6;
}

#depts-wrapper {
    perspective: 1000px;
}

.card-custom {
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-bounce);
    height: 100%;
    background: var(--white);
    position: relative;
    transform-style: preserve-3d;
    animation: cardFloat 6s ease-in-out infinite;
    margin-bottom: 30px;
}

.card-custom:nth-child(2) { animation-delay: 1s; }
.card-custom:nth-child(3) { animation-delay: 2s; }
.card-custom:nth-child(4) { animation-delay: 3s; }

@keyframes cardFloat {
    0%, 100% { transform: translateY(0) rotateX(0); }
    50% { transform: translateY(-20px) rotateX(5deg); }
}

.card-custom:hover {
    transform: translateY(-20px) rotateY(10deg);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(212, 175, 55, 0.3);
}

.card-custom::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 8px;
    background: var(--gradient-secondary);
    z-index: 2;
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.card-custom:hover::before {
    transform: scaleX(1);
}

.course-image {
    height: 240px;
    object-fit :fill ;
    transition: var(--transition-slow);
    filter: brightness(0.9);
}

.card-custom:hover .course-image {
    transform: scale(1.15);
    filter: brightness(1);
}

.card-body {
    padding: 30px;
    text-align: center;
    background: linear-gradient(to bottom, var(--white) 0%, var(--off-white) 100%);
}

.card-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.4;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 10px;
    height: 50px;
}

.course-link {
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.course-link::after {
    content: 'استكشاف القسم →';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(26, 58, 111, 0.9) 0%, rgba(212, 175, 55, 0.9) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    transform: translateY(100%);
    transition: var(--transition-bounce);
    z-index: 3;
    backdrop-filter: blur(5px);
}

.course-link:hover::after {
    transform: translateY(0);
}

/* ===== Modern News Section ===== */
#News {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

#News::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 10px;
    background: var(--gradient-primary);
}

.news-articles {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px; */
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 35px;
}

.news-article {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid var(--gray-light);
    position: relative;
}

.truncate {
    /* display: -webkit-box;
    -webkit-line-clamp: 8; 
    -webkit-box-orient: vertical; */
    overflow: scroll;
    /* text-overflow: ellipsis; */
    line-height: 1.6;
    max-height: calc(1.6em * 8); /* 4 lines */
}

.news-article:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

.news-article.featured {
    grid-column: 1 / -1;
    flex-direction: row;
    min-height: 350px;
}

.news-article.featured .article-image-link {
    flex: 0 0 400px;
}

.news-article.featured:hover {
    transform: translateY(-20px) scale(1.01);
}

.article-image-link {
    display: block;
    overflow: hidden;
    height: 250px;
    position: relative;
}

.news-article.featured .article-image-link {
    height: auto;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    transition: var(--transition-slow);
    filter: brightness(0.9);
}

.news-article:hover .article-image {
    transform: scale(1.1);
    filter: brightness(1);
}

.article-image-link::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-normal);
}

.news-article:hover .article-image-link::after {
    opacity: 1;
}

.article-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, var(--white) 0%, var(--off-white) 100%);
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-date, .article-category {
    font-size: 12px;
    font-weight: 900;
    padding: 8px 12px;
    border-radius: 25px;
    transition: var(--transition-normal);
}

.article-date {
    background: rgba(26, 58, 111, 0.1);
    color: var(--primary);
}

.article-category {
    background: rgba(212, 175, 55, 0.1);
    color: var(--secondary-dark);
}

.news-article:hover .article-date {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.news-article:hover .article-category {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 10px;
    text-decoration: none;
    transition: var(--transition-normal);
    /* flex-grow: 1; */
    position: relative;
    padding-bottom: 15px;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: var(--transition-normal);
    transform-origin: right;
}

.article-title:hover {
    color: var(--secondary);
}

.article-title:hover::after {
    transform: scaleX(1);
}

/* ===== Modern Video Section (Replacing Facebook) ===== */
.video-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
    border-radius: var(--radius-xl);
    margin: 50px 0;
}

.video-library {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.video-item {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-bounce);
    position: relative;
}

.video-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.video-iframe-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.video-iframe {
    /* position: absolute; */
    /* top: 0;
    right: 0; */
    /* width: 100%; */
    height: 100%;
    border: none;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.video-item {
    height: 380px !important; /* Force same height */
    display: flex;
    flex-direction: column;
}

/* 2. Fix video container height */
.video-iframe-container {
    height: 210px !important; /* Fixed video height */
    min-height: 210px;
    max-height: 210px;
}

/* 3. Make video info section fill remaining space */
.video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 4. Ensure video title has consistent height */
.video-title {
    min-height: 56px; /* Fixed for 2 lines */
}

/* 5. Make video description fill space */
.video-description {
    flex: 1;
    min-height: 72px; /* Fixed for 3 lines */
}

/* 6. Featured video adjustments */
.video-item.featured {
    height: 420px !important; /* Slightly taller for featured */
}


/* ===== Modern Contact CTA ===== */
#contact-cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

#contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100"><path d="M0,50 C200,0 400,100 600,50 C800,0 1000,100 1000,50 L1000,100 L0,100 Z" fill="%23d4af37" opacity="0.1"/></svg>');
    background-size: cover;
    animation: wave 20s infinite linear;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

#contact-cta .section-title h4 {
    color: var(--white);
    font-size: 48px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#contact-cta .lead {
    font-size: 26px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* ===== Modern Footer ===== */
.bg-dark {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%) !important;
    position: relative;
    overflow: hidden;
}

.bg-dark::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-secondary);
}

.footer-about {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 30px !important;
    position: relative;
}

.footer-about::before {
    content: '';
    position: absolute;
    top: 30px;
    right: 30px;
    width: 100px;
    height: 100px;
    background: var(--secondary);
    border-radius: var(--radius-full);
    opacity: 0.1;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

.footer-about img {
    border: 4px solid var(--secondary);
    border-radius: var(--radius-lg);
    padding: 8px;
    background: var(--white);
    transition: var(--transition-bounce);
    position: relative;
    z-index: 1;
}

.footer-about:hover img {
    transform: rotate(-15deg) scale(1.15);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
}

.link-animated a {
    position: relative;
    padding-right: 30px;
    transition: var(--transition-normal);
    margin-bottom: 12px;
    display: inline-block;
}

.link-animated a:hover {
    color: var(--secondary) !important;
    padding-right: 40px;
    transform: translateX(-10px);
}

.link-animated a::before {
    content: '◀';
    position: absolute;
    right: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-normal);
}

.link-animated a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 15px 30px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-bounce);
    border: 3px solid #25D366;
    position: relative;
    overflow: hidden;
}

.whatsapp-button::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: var(--transition-normal);
}

.whatsapp-button:hover {
    background: transparent;
    color: #25D366;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover::before {
    transform: translateX(0);
}

.btn-square {
    border-radius: var(--radius-lg) !important;
    transition: var(--transition-bounce) !important;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-square:hover {
    transform: translateY(-5px) rotate(15deg);
    box-shadow: 0 10px 20px rgba(26, 58, 111, 0.3);
}

/* ===== Modern Cookie Consent ===== */
#cookieConsent {
    position: fixed;
    bottom: 30px;
    right: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark);
    padding: 25px;
    z-index: 9999;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary);
    transform: translateY(150%);
    transition: var(--transition-bounce);
    max-width: 500px;
    margin: 0 auto;
}

#cookieConsent.show {
    transform: translateY(0);
}

.cookie-banner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-banner a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.cookie-banner a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: var(--transition-normal);
    transform-origin: right;
}

.cookie-banner a:hover {
    color: var(--secondary);
}

.cookie-banner a:hover::after {
    transform: scaleX(1);
}

#acceptCookies {
    background: var(--gradient-secondary);
    color: var(--dark);
    border: none;
    padding: 15px 40px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-bounce);
    align-self: flex-start;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

#acceptCookies:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full) !important;
    background: var(--gradient-secondary) !important;
    border: none;
    color: var(--dark);
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-bounce);
    z-index: 997;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transform: scale(0);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.back-to-top:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: var(--shadow-xl);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, var(--gray-light) 0%, var(--white) 100%);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-secondary);
    border-radius: 6px;
    border: 3px solid var(--white);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary);
}

/* ===== Selection Color ===== */
::selection {
    background-color: rgba(212, 175, 55, 0.4);
    color: var(--primary);
    text-shadow: none;
}

/* ===== Focus Styles ===== */
:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .carousel-caption {
        padding: 35px;
    }
    
    .caption-content h5 {
        font-size: 32px;
    }
    
    .news-article.featured .article-image-link {
        flex: 0 0 300px;
    }
}

@media (max-width: 992px) {
    .navbar-nav {
        background: rgba(255, 255, 255, 0.98);
        padding: 20px;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-xl);
        margin-top: 10px;
    }
    
    .nav-link {
        padding: 15px 20px !important;
    }
    
    .carousel-item {
        /* height: 550px; */
        position: relative;
        height: 370px;
        /* Ensure proper stacking context */
        z-index: 1;
    }

    .carousel-inner {
        height:360px; /* Fixed height prevents jumping */
    }
    
    .carousel-caption {
        padding: 30px;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
    }
    
    .caption-content h6 {
        font-size: 16px;
    }
    
    .caption-content h5 {
        font-size: 28px;
    }
    
    .news-article.featured {
        flex-direction: column;
    }
    
    .news-article.featured .article-image-link {
        flex: 0 0 auto;
        height: 300px;
    }
    
    .video-library {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-logo-section {
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .top-bar .row {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .carousel-item {
        height: 450px;
    }
    
    .carousel-caption {
        padding: 25px;
    }
    
    .caption-content h5 {
        font-size: 24px;
    }
    
    .caption-content li {
        font-size: 18px;
    }
    
    .section-title h4 {
        font-size: 32px;
    }
    
    .news-articles {
        grid-template-columns: 1fr;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .spinner-logo {
        width: 80px;
        height: 80px;
    }
    
    .spinner-text {
        font-size: 20px;
    }
    
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption {
        padding: 20px;
    }
    
    .caption-content h6 {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .caption-content h5 {
        font-size: 20px;
    }
    
    .btn-carousel {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .section-title h4 {
        font-size: 28px;
    }
    
    .feature {
        padding: 25px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .whatsapp-button {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        display: none; /* Hide on very small screens */
    }
}

/* ===== Loading Animation for Images ===== */
img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.loaded {
    opacity: 1;
}

/* ===== Utility Classes ===== */
.text-gradient {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Loading Animation ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== JavaScript Classes ===== */
.hidden {
    display: none !important;
}

.show {
    display: block !important;
}


/* ===== Enhanced Spinner with Timeout and Shine Effect ===== */
#spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#spinner.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
}

.spinner-logo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    border: 4px solid var(--secondary);
    padding: 10px;
    background: var(--white);
    position: relative;
    overflow: hidden;
    animation: logoPulse 2s infinite alternate;
}

/* Shine Animation Effect */
.spinner-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%
    );
    animation: shine 2s infinite linear;
    z-index: 1;
}

.spinner-logo img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.spinner-text {
    color: var(--white);
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    animation: textGlow 2s infinite alternate;
}

/* Loading dots animation */
.spinner-text::after {
    content: '...';
    display: inline-block;
    width: 20px;
    text-align: left;
    animation: dots 1.5s infinite steps(4, end);
}

/* Progress bar for loading */
.spinner-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}

.spinner-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-secondary);
    border-radius: 2px;
    animation: progressFill 3s ease-in-out forwards;
}

/* Animation for timeout - starts after 2.5s */
.spinner.timeout .spinner-logo {
    animation: timeoutPulse 0.5s infinite alternate;
}

.spinner.timeout .spinner-text {
    color: var(--secondary-light);
    animation: timeoutText 0.5s infinite alternate;
}

@keyframes logoPulse {
    0% { 
        transform: scale(0.95); 
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); 
    }
    100% { 
        transform: scale(1.05); 
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.6), 
                    0 0 60px rgba(212, 175, 55, 0.3); 
    }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes textGlow {
    0% { 
        opacity: 0.8; 
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); 
    }
    100% { 
        opacity: 1; 
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 
                     0 0 30px rgba(212, 175, 55, 0.4); 
    }
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

@keyframes progressFill {
    0% { width: 0%; }
    70% { width: 90%; }
    100% { width: 100%; }
}

@keyframes timeoutPulse {
    0% { 
        transform: scale(1); 
        border-color: var(--secondary); 
    }
    100% { 
        transform: scale(1.1); 
        border-color: #ff6b6b; 
        box-shadow: 0 0 30px rgba(255, 107, 107, 0.6); 
    }
}

@keyframes timeoutText {
    0% { color: var(--secondary-light); }
    100% { color: #ff6b6b; }
}

/* Fade out animation */
@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}
/* ===== Print Styles ===== */
@media print {
    .top-bar, .navbar-container, .back-to-top, #cookieConsent,
    .carousel-control-prev, .carousel-control-next,
    .carousel-indicators {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
        font-size: 12pt;
    }
    
    .carousel-caption, .feature, .card-custom, .news-article {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .btn-carousel, .whatsapp-button {
        display: none !important;
    }
}