@import "../../fonts/Cairo/stylesheet.css";

* {
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
}


html {
    scroll-padding-top: 100px; /* Adjust the value for your needs */
}


body{
    background-color:  #F1F2FF;
    background-position: center;
    background-repeat: repeat;
    overflow-x: hidden;
}
/* Root Variables - University Brand Colors */
:root {
    --primary-color: #B31F4A;
    --primary-dark: #8E1639;
    --primary-light: #D3486A;
    --secondary-color: #3A4F63;
    --secondary-light: #556C82;
    --secondary-color: #2C3E50;
    --accent-color: #D4AF37;
    --primary-rgb: 196, 46, 46;
    --royal-blue-rgb: 21, 101, 192;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --top-bar-height: 44px;

    /*color header*/
    --color-bg1: rgb(9, 50, 213);
    --color-bg2: rgb(57, 117, 185);
    --color1: 18, 113, 255;
    --color2: 221, 74, 255;
    --color3: 100, 220, 255;
    --color4: 200, 50, 50;
    --color5: 180, 180, 50;
    --color-interactive: 140, 100, 255;
    --circle-size: 80%;
    --blending: hard-light;


}






/*color header*/



@-webkit-keyframes moveInCircle {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes moveInCircle {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@-webkit-keyframes moveVertical {
    0% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(50%);
    }
    100% {
        transform: translateY(-50%);
    }
}
@keyframes moveVertical {
    0% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(50%);
    }
    100% {
        transform: translateY(-50%);
    }
}
@-webkit-keyframes moveHorizontal {
    0% {
        transform: translateX(-50%) translateY(-10%);
    }
    50% {
        transform: translateX(50%) translateY(10%);
    }
    100% {
        transform: translateX(-50%) translateY(-10%);
    }
}
@keyframes moveHorizontal {
    0% {
        transform: translateX(-50%) translateY(-10%);
    }
    50% {
        transform: translateX(50%) translateY(10%);
    }
    100% {
        transform: translateX(-50%) translateY(-10%);
    }
}
.gradient-bg {
    width: 100%;
    height: 145px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(40deg, rgb(222 222 222 / 21%), rgb(169 182 196 / 46%));
    top: 0;
    left: 0;
}
.gradient-bg svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
}
.gradient-bg .gradients-container {
    filter: url(#goo) blur(92px);
    width: 100%;
    height: 100%;
}
.gradient-bg .g1 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: center center;
    -webkit-animation: moveVertical 30s ease infinite;
    animation: moveVertical 30s ease infinite;
    opacity: 1;
}
.gradient-bg .g2 {
    position: absolute;
    background: radial-gradient(circle at center, #ffc107 0, rgba(var(--color2), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: calc(50% - 400px);
    animation: moveInCircle 20s reverse infinite;
    opacity: 1;
}
.gradient-bg .g3 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2 + 200px);
    left: calc(50% - var(--circle-size) / 2 - 500px);
    transform-origin: calc(50% + 400px);
    -webkit-animation: moveInCircle 40s linear infinite;
    animation: moveInCircle 40s linear infinite;
    opacity: 1;
}
.gradient-bg .g4 {
    position: absolute;
    background: radial-gradient(circle at center, rgb(4 4 4 / 80%) 0, rgba(var(--color4), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: calc(50% - 200px);
    -webkit-animation: moveHorizontal 40s ease infinite;
    animation: moveHorizontal 40s ease infinite;
    opacity: 0.7;
}
.gradient-bg .g5 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: calc(var(--circle-size) * 2);
    height: calc(var(--circle-size) * 2);
    top: calc(50% - var(--circle-size));
    left: calc(50% - var(--circle-size));
    transform-origin: calc(50% - 800px) calc(50% + 200px);
    -webkit-animation: moveInCircle 20s ease infinite;
    animation: moveInCircle 20s ease infinite;
    opacity: 1;
}
.gradient-bg .interactive {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: 100%;
    height: 100%;
    top: -50%;
    left: -50%;
    opacity: 0.7;
}



/*------------------*/








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

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.7;
}

html {
    scroll-behavior: smooth;
}

/* Bootstrap RTL Overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Header Styles */
.header-wrapper {
    backdrop-filter: blur(40px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(20, 30, 45, 0.5);
    position: fixed;
    width: 100%;
}

.header-scrolled {
    box-shadow: var(--shadow-md);
}

.top-bar {
    font-size: 0.875rem;
    max-height: var(--top-bar-height);
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease-out,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
    will-change: max-height, opacity, transform;
}

.top-bar-hidden .top-bar {
    max-height: 0;
    opacity: 0;
    transform: translateY(-100%);
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.btn-outline-light{border: 1px solid rgba(255, 255, 255, 0.2);}
.main-nav {
    transition: var(--transition);
    border-top: 1px solid rgb(255 255 255 / 20%);
}

.logo-circle {
    width: 70px;
    height: 70px;
    /* background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); */
    background: url('../../localfile/logo.svg');
    /* border: 1px solid #1d2b4c; */
    background-position: center;
    background-size: cover;
    /* box-shadow: var(--shadow-sm); */
    transform: scale(1.3);
    margin: 5px 0;
    /* Smooth transition for scroll animation - using will-change for GPU acceleration */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* will-change: width, height, transform, margin; */
}

/* Scrolled state for logo-circle */
.header-scrolled .logo-circle {
    width: 54px;
    height: 54px;
    transform: none;
    margin: 0;
}

.logo-text {
    color: white;
    font-size: 28px;
    font-weight: 900;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--white);
}

/* Navigation Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 1rem;
    min-width: 300px;
}

.mega-dropdown {
    min-width: 600px;
    padding: 2rem;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background-color: rgba(139, 21, 56, 0.1);
    color: var(--primary-color);
    transform: translateX(-5px);
}

.nav-link {
    font-weight: 600;
    color: var(--white);
    transition: var(--transition);
    position: relative;
    padding: 0 17px !important;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 40%;
    right: 0;
    width: 0;
    height: 3px;
    transition: var(--transition);
}


/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}
.glass-morphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(33, 33, 33, 0.15);
}
/* Hero Video Background */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Hardware acceleration for smooth playback */
    transform: translateZ(0);
    will-change: transform;
    /* Optimize video rendering */
    filter: contrast(1.1) saturate(0.9) brightness(0.85);
    transition: filter 0.3s ease;
}

.hero-fallback-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Video Overlay for Text Readability */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.6) 0%, rgba(var(--primary-rgb), 0.5) 50%, rgba(var(--royal-blue-rgb), 0.4) 100%);
    z-index: 3;
    mix-blend-mode: multiply;
}

/* Enhanced Gradient with Sophisticated Effects */
.hero-gradient-enhanced {
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        /* Radial gradients for depth */
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 60% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 60%),
            /* Linear gradient for overall depth */
        linear-gradient(45deg,
        rgba(139, 21, 56, 0.3) 0%,
        transparent 30%,
        rgba(212, 175, 55, 0.1) 50%,
        transparent 70%,
        rgba(107, 15, 42, 0.2) 100%
        );
    pointer-events: none;
    animation: gradientShift 8s ease-in-out infinite alternate;
}


/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    .hero-video,
    .particle,
    .hero-gradient-enhanced {
        animation: none;
    }

    .hero-video {
        filter: none;
    }
}

/* Low-end device optimizations */
@media (max-width: 768px) {
    .hero-video {
        /* Reduce video quality on mobile for better performance */
        filter: contrast(1.05) saturate(0.95) brightness(0.9);
    }

    .particle {
        display: none; /* Remove particles on mobile to improve performance */
    }

    .hero-gradient-enhanced {
        animation-duration: 12s; /* Slower animation on mobile */
    }
}

/* High-end device enhancements */
@media (min-width: 1400px) and (min-height: 800px) {
    .hero-video {
        filter: contrast(1.15) saturate(0.85) brightness(0.8);
    }
}

/* Animations */
@keyframes gradientShift {
    0% {
        opacity: 1;
        transform: translateX(0px) scale(1);
    }
    50% {
        opacity: 0.9;
        transform: translateX(10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(0px) scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.1);
    }
    50% {
        transform: translateY(-15px) translateX(-5px) scale(0.9);
    }
    75% {
        transform: translateY(-25px) translateX(8px) scale(1.05);
    }
}

@keyframes glow {
    0% {
        opacity: 0.6;
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.4);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    }
}

/* Hero Content - Enhanced for Video Background */
.container {
     position: relative;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 14px;
    font-weight: 600;
    animation: fadeInUp 0.8s ease-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    animation: badgePulse 3s infinite;
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    letter-spacing: -0.02em;
}

.highlight-text {
    color: #D4AF37;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F  50%, #D4AF37 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    animation: textShine 3s ease-in-out infinite;
}

/* Hero Description */
.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

/* Hero Buttons - Enhanced */
.hero-actions {
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn-hero-primary {
    padding: 16px 36px;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 14px;
    border: none;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, #F4D03F 0%, #D4AF37 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.6);
    color: var(--primary-color);
}

.btn-hero-secondary {
    padding: 16px 36px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px) scale(1.02);
    color: white;
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
}

/* Hero Stats - Enhanced */
.hero-stats {
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}



/* Additional Animations */
@keyframes textShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Image Container */
.hero-image-container {
    animation: fadeInRight 0.8s ease-out 0.3s backwards;
}
#university-council .card{border-color: #8b153817;}
.card-body:hover .circle-bg{
    transform: scale(1.3);
}
.circle-bg{
    position:absolute;
    border-radius: 50%;
    width: 84px;
    height: 84px;
    background-color: color-mix(in oklab, var(--primary-color) 5%, transparent);
    top: -24px;
    left: -24px;
}
.hero-image-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}
a{transition: all ease-in-out 0.3s;}
.hero-image-card:hover {
    transform: translateY(-10px);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    border: 5px solid rgba(255, 255, 255, 0.3);
}
.president-activity-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.35));
    pointer-events: none;
}
/* Hero Badge Overlay */
.hero-badge-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(212, 175, 55, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.8s ease-out 0.6s backwards;
}

.badge-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
}

/* Floating Decorations */
/* .floating-decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(20px);
    animation: float 6s ease-in-out infinite;
}

.decoration-1 {
    width: 120px;
    height: 120px;
    top: -60px;
    right: -60px;
    animation-delay: 0s;
}

.decoration-2 {
    width: 80px;
    height: 80px;
    bottom: 50px;
    right: -40px;
    animation-delay: 1s;
} */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* ============================================
   NEWS SECTION - MODERN DESIGN
============================================ */

/* News Section Background */
.news-section {
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
}

/* Background Gradient Text */
.bg-gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 50%, var(--primary-dark) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* News Hero Section */
.news-hero {
    transition: var(--transition);
    cursor: pointer;
}

.news-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.news-hero:hover::before {
    opacity: 1;
}

/* Inset utility class */
.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Gradient backgrounds for overlays */
.bg-gradient-to-t {
    background: linear-gradient(to top, var(--bg-from, rgba(0,0,0,0.8)), var(--bg-via, rgba(0,0,0,0.4)), var(--bg-to, transparent));
}

/* News Cards */
.news-card {
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: var(--transition);
    border-radius: inherit;
    z-index: 1;
}

.news-card:hover::before {
    opacity: 1;
}

.news-card > * {
    position: relative;
    z-index: 2;
}

/* News Card Mini */
.news-card-mini {
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.news-card-mini:hover {
    transform: translateX(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    background: rgba(255,255,255,1);
}

/* Badge Styles */
.badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

/* Hover Lift Effect */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Button Animations */
.btn {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s;
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

.btn > * {
    position: relative;
    z-index: 2;
}

/* Rounded Pills */
.rounded-pill {
    border-radius: 50px !important;
}

/* Custom Colors */
.bg-orange {
    background-color: #fd7e14 !important;
}

.bg-purple {
    background-color: #6f42c1 !important;
}

/* News Section Responsive */
@media (max-width: 768px) {
    .news-hero {
        min-height: 300px !important;
    }

    .news-card-mini .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .news-card-mini img {
        width: 100% !important;
        height: 150px !important;
        margin-bottom: 1rem;
    }

    .display-6 {
        font-size: 1.5rem !important;
    }
}

/* Loading Animation for Images */
.news-card img,
.news-hero img,
.news-card-mini img {
    transition: var(--transition);
    filter: blur(0);
}

.news-card img[loading="lazy"],
.news-hero img[loading="lazy"],
.news-card-mini img[loading="lazy"] {
    filter: blur(5px);
    transition: filter 0.3s;
}

.news-card img[loading="lazy"]:loaded,
.news-hero img[loading="lazy"]:loaded,
.news-card-mini img[loading="lazy"]:loaded {
    filter: blur(0);
}

/* Icon Animations */
.bi {
    transition: var(--transition);
}

.btn:hover .bi-arrow-left {
    transform: translateX(-3px);
}

.btn:hover .bi {
    animation: iconBounce 0.6s ease-in-out;
}

@keyframes iconBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

/* Glassmorphism Effect */
.bg-white {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Shadow Enhancements */
.shadow-sm {
    box-shadow: 0 2px 0px rgba(0,0,0,0.08) !important;
}

.shadow-lg {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

/* Improved Typography */
.display-5 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.display-6 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* News Badge Position Fix */
.position-absolute.top-3.start-3 {
    top: 1rem !important;
    right: 1rem !important;
}

.position-absolute.bottom-3.end-3 {
    bottom: 1rem !important;
    right: 1rem !important;
}

/* Performance Optimization */
.news-card,
.news-card-mini,
.news-hero {
    will-change: transform;
    contain: layout style paint;
}

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: no-preference) {
    .news-card,
    .news-card-mini,
    .news-hero,
    .btn {
        animation-duration: 0.3s;
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* High Performance Transforms */
.news-card:hover,
.news-card-mini:hover,
.news-hero:hover,
.hover-lift:hover {
    transform: translateY(-5px) translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-badge-overlay {
        left: 20px;
        bottom: 20px;
        padding: 15px 20px;
    }

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

    .stat-value {
        font-size: 1.5rem;
    }

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

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   STATS SECTION - PROFESSIONAL UI/UX DESIGN
   ========================================== */

.stats-section {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
    padding: 60px 0;
    margin: 0;
    min-height: 200px;
    display: flex;
    align-items: center;
}


/* Stats Container Enhancement */
.stats-section .container {
    position: relative;
    z-index: 10;
}

.stats-section .row {
    align-items: center;
    justify-content: center;
}

/* Individual Stat Card - Modern Design */
.stat-card {
    position: relative;
    padding: 2.5rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    cursor: pointer;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin: 10px 0;
    overflow: hidden;
}

/* Glassmorphism Effect Enhancement */
.stat-card::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 64px;
    height: 64px;
    background:
        color-mix(in oklab, var(--primary-color) 5%, transparent);
    transition: left 0.6s
    ease;
    z-index: 1;
    border-radius: 50%;
}

.stat-card:hover::before {
    left: 85%;
}

/* Hover Effects */
.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Stat Icon - Enhanced */
.stat-icon {
    position: relative;
    z-index: 2;
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    opacity: 0.95;
    transition: all 0.3s ease;
    display: inline-block;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotateY(5deg);
    color: #F4D03F;
    text-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Stat Number - Professional Typography */
.stat-number {
    position: relative;
    z-index: 2;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 0.8rem;
    line-height: 1;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.05);
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}
.details-button{border: 1px solid var(--primary-color) !important;color: var(--primary-color);}
.details-button:hover{background: var(--primary-color); color: #fff;}
.details-button:hover .card-body,.details-button:hover .card-body div,.details-button:hover .card-body p,
.details-button:hover .card-body div a,.details-button:hover .card-body a{color: #fff !important;}
/* Stat Label - Clean Typography */
.stat-label {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.4;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.stat-card:hover .stat-label {
    transform: translateY(-2px);
}

/* Divider Lines Between Stats */
.stat-card::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.stat-card:last-child::after {
    display: none;
}

.stat-card:hover::after {
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
    .stats-section {
        padding: 50px 0;
    }

    .stat-card {
        padding: 2rem 1rem;
        margin: 8px 0;
    }

    .stat-icon {
        font-size: 2.3rem;
        margin-bottom: 0.8rem;
    }

    .stat-number {
        font-size: 2.5rem;
        margin-bottom: 0.6rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    /* Remove divider lines on mobile */
    .stat-card::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .stats-section {
        padding: 40px 0;
    }

    .stat-card {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }

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

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

    .stat-label {
        font-size: 0.9rem;
    }
}

/* High-performance optimizations */
.stat-card {
    background-color: #fff;
    will-change: transform;
    backface-visibility: hidden;
    flex-direction: column;
    display: flex;
    align-items: center;
    perspective: 1000px;
    border: 1px solid rgb(145 35 68 / 20%);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .stat-card,
    .stat-icon,
    .stat-number,
    .stat-label,
    .stats-pattern {
        transition: none;
        animation: none;
        transform: none;
    }
}

/* Focus states for accessibility */
.stat-card:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* Print styles */
@media print {
    .stats-section {
        background: var(--primary-color) !important;
        color: white !important;
    }

    .stat-card {
        background: none !important;
        border: 1px solid var(--primary-color) !important;
    }
}

/* Card Hover Effects */
.hover-lift {
    transition: var(--transition);
}

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

/* ==========================================
   FACULTY SECTION - ENHANCED
   ========================================== */

.faculty-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Faculty Card */
.faculty-card-new {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.faculty-card:hover img {
    transform: scale(1.08);
}

.faculty-card img {
    transition: transform 0.6s
    cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.president-activities-section .president-activity-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}
.president-activities-section .president-activity-card {
    transition: var(--transition);
    will-change: transform;
}
.faculty-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(139, 21, 56, 0.08);
}

/* Image Wrapper */
.faculty-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.faculty-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.faculty-card-new:hover .faculty-img-wrapper img {
    transform: scale(1.1);
}

/* Faculty Badge */
.faculty-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(139, 21, 56, 0.408);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.08);
    transition: all 0.3s ease;
}

.faculty-card-new:hover .faculty-badge {
    transform: scale(1.1) rotate(10deg);
}

/* Faculty Info */
.faculty-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.faculty-info h5 {
    font-size: 1.1rem;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.faculty-info p {
    font-size: 0.85rem;
    line-height: 1.4;
    flex: 1;
}

/* Faculty Actions */
.faculty-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.faculty-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.faculty-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.08);
}

/* Badge Styles */
.faculty-info .badge {
    font-size: 0.7rem;
    font-weight: 600;
    width: max-content;
}
.news-card{transition: transform 0.5s
ease-in-out;}
.news-card:hover img{
    transform: scale(1.1);

}
.faculty-card .btn:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Legacy styles for backwards compatibility */
.faculty-card {
    cursor: pointer;
    border-radius: 1.5rem;
}

.faculty-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 21, 56, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faculty-card:hover .faculty-overlay {
    opacity: 1;
}

/* Service Cards */
.service-card {
    transition: var(--transition);
    cursor: pointer;
}

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

.service-icon {
    transition: var(--transition);
}
.service-icon i {
     font-size: 2rem;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Icon Box */
.icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* News Carousel */
.carousel-caption {
    right: auto;
    left: auto;
}

/* Footer */
.footer-section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.logo-circle-footer {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-links a:hover {
    color: var(--primary-light) !important;
    padding-right: 5px;
}

.newsletter-box {
    backdrop-filter: blur(10px);
}

/* ==========================================
   ENHANCED STUDENT PORTAL SECTION STYLES
   ========================================== */

/* Portal Section Base */
.student-portal-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    overflow: hidden;
}



/* Portal Header Styles */
.portal-header .portal-badge {
    position: relative;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    animation: fadeInDown 0.6s ease;
}

.portal-badge-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 21, 56, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.portal-header .portal-badge:hover .portal-badge-glow {
    opacity: 1;
}

.portal-title {
    animation: fadeInUp 0.8s ease;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   ANNOUNCEMENTS CARD - ENHANCED
   ========================================== */

.announcements-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.announcements-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.announcements-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
}

.announcements-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.badge-pulse {
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.announcements-body {
    padding: 8px;
    max-height: 520px;
    overflow-y: auto;
    background: #fafbfc;
}

.announcements-body::-webkit-scrollbar {
    width: 6px;
}

.announcements-body::-webkit-scrollbar-track {
    background: transparent;
}

.announcements-body::-webkit-scrollbar-thumb {
    background: rgba(139, 21, 56, 0.2);
    border-radius: 3px;
}

.announcements-body::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 21, 56, 0.3);
}

.announcement-item {
    background: white;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 12px;
    display: flex;
    gap: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.announcement-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.announcement-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateX(-4px);
    border-color: rgba(139, 21, 56, 0.1);
}

.announcement-item:hover::before {
    transform: scaleY(1);
}

.announcement-item[data-priority="urgent"] .announcement-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.announcement-item[data-priority="normal"] .announcement-icon {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.announcement-item[data-priority="info"] .announcement-icon {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
}

.announcement-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.announcement-content {
    flex: 1;
}

.announcement-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.announcement-meta .date {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.announcement-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.5;
}

.btn-read-more {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
}

.btn-read-more:hover {
    color: var(--primary-dark);
    gap: 8px;
}

.announcements-footer {
    background: linear-gradient(to top, #f8f9fa 0%, #ffffff 100%);
    padding: 16px 24px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-view-all {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 28px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-view-all:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 21, 56, 0.3);
}

/* ==========================================
   SERVICE CARDS - ENHANCED
   ========================================== */

.portal-service-card {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
}

.service-card-inner {
    background: white;
    border-radius: 20px;
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.03) 0%, rgba(13, 110, 253, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.portal-service-card:hover .service-card-inner {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: rgba(139, 21, 56, 0.2);
}

.portal-service-card:hover .card-hover-effect {
    opacity: 1;
}

.service-icon-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    position: relative;
}

.portal-service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.bg-success-gradient {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
}

.bg-primary-gradient {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.bg-purple-gradient {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

.bg-warning-gradient {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.bg-danger-gradient {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.service-category {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.portal-service-card:hover .service-title {
    color: var(--primary-color);
}

.service-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.feature-tag {
    background: rgba(139, 21, 56, 0.08);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.portal-service-card:hover .feature-tag {
    background: rgba(139, 21, 56, 0.15);
    transform: translateX(-2px);
}

.service-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    padding-top: 16px;
    border-top: 2px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.portal-service-card:hover .service-action {
    border-color: var(--primary-color);
}

.action-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.portal-service-card:hover .action-icon {
    transform: translateX(-6px);
}

/* ==========================================
   CTA CARD - ENHANCED
   ========================================== */

.portal-cta-card {
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.portal-cta-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

.cta-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: ctaPatternMove 15s ease-in-out infinite;
}

@keyframes ctaPatternMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, -10px) scale(1); }
}

.cta-content {
    position: relative;
    z-index: 1;
    padding: 32px;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cta-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.cta-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.cta-description {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-cta-primary,
.btn-cta-secondary {
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cta-primary {
    background: white;
    color: var(--primary-color);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ==========================================
   STATS BAR - ENHANCED
   ========================================== */

.portal-stats-bar {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    padding: 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.05) 0%, rgba(13, 110, 253, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    color: var(--white);
    margin-bottom: 12px;
    display: inline-block;
    transition: all 0.3s ease;
    background: var(--primary-color);
    padding: 0 12px;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1) rotate(-5deg);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1;
}



/* ==========================================
   ANIMATIONS
   ========================================== */

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 991px) {
    .student-portal-section {
        padding: 60px 0;
    }

    .portal-title {
        font-size: 1.8rem;
    }

    .announcements-body {
        max-height: 400px;
    }

    .service-card-inner {
        padding: 24px;
    }

    .cta-content {
        padding: 28px;
    }
}

@media (max-width: 767px) {
    .student-portal-section {
        padding: 50px 0;
    }

    .portal-title {
        font-size: 1.5rem;
    }

    .service-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

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

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

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

    .portal-stats-bar {
        padding: 24px 16px;
    }
}

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

    .service-description {
        font-size: 0.85rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .announcement-item {
        flex-direction: column;
        text-align: center;
    }

    .announcement-meta {
        justify-content: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Forms & Applications Section */
#forms-section {
    position: relative;
    overflow: hidden;
}

#forms-section .card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

#forms-section .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}

#forms-section .card-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.bg-card{
    background: linear-gradient(135deg, #f8f9fa 0%, #94989e0f 100%);
}
#forms-section .icon-box {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#forms-section .card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

#forms-section ul li {
    transition: var(--transition);
}

#forms-section ul li:hover {
    transform: translateX(-5px);
}

#forms-section .btn-outline-primary {
    transition: var(--transition);
    border-width: 2px;
}

#forms-section .btn-outline-primary:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(var(--primary-color), 0.3);
}

#forms-section .bg-light {
    background-color: rgba(0,0,0,0.02) !important;
    transition: var(--transition);
}

#forms-section .bg-light:hover {
    background-color: rgba(0,0,0,0.04) !important;
}

#forms-section .alert {
    box-shadow: 0 8px 24px rgba(13,110,253,0.15);
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */

/* ============================================
   RELATED SITES SECTION - PREMIUM DESIGN
============================================ */

.related-sites-section {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 50%, #e8eef5 100%);
    position: relative;
}

/* Animated Background Shapes */
.related-sites-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(60px);
}

.bg-shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(179, 31, 74, 0.15), rgba(179, 31, 74, 0.05));
    top: -100px;
    right: -100px;
    animation: floatShape 20s ease-in-out infinite;
}

.bg-shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    bottom: -50px;
    left: -50px;
    animation: floatShape 15s ease-in-out infinite reverse;
}

.bg-shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseShape 10s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

@keyframes pulseShape {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.3; }
}

/* Swiper Wrapper */
.related-sites-swiper-wrapper {
    position: relative;
}

/* Navigation Buttons */
.swiper-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(179, 31, 74, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(179, 31, 74, 0.4);
}

.swiper-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.swiper-nav-prev {
    right: -10px;
}

.swiper-nav-next {
    left: -10px;
}

/* Related Site Card */
.related-site-card {
    display: block;
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 28px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(179, 31, 74, 0.08);
    height: 100%;
    min-height: 280px;
}

.related-site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.related-site-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(179, 31, 74, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(179, 31, 74, 0.15) 0%, transparent 70%);
    top: -75px;
    right: -75px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.related-site-card:hover .card-glow {
    opacity: 1;
    transform: scale(1.5);
}

/* Site Card Inner */
.site-card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Logo Wrapper */
.site-logo-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.site-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(179, 31, 74, 0.25);
}

.related-site-card:hover .site-logo {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 12px 30px rgba(179, 31, 74, 0.35);
}

/* Logo Color Variants */
.site-logo-research {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

.related-site-card:hover .site-logo-research {
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

.site-logo-standards {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.related-site-card:hover .site-logo-standards {
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.35);
}

.site-logo-library {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.related-site-card:hover .site-logo-library {
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.35);
}

.site-logo-arid {
    background: linear-gradient(135deg, #ec4899, #db2777);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.25);
}

.related-site-card:hover .site-logo-arid {
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.35);
}

.site-logo-scopus {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
}

.related-site-card:hover .site-logo-scopus {
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

.site-logo-scholar {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.related-site-card:hover .site-logo-scholar {
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35);
}

.site-logo-rg {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25);
}

.related-site-card:hover .site-logo-rg {
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.35);
}

/* Logo Ring Animation */
.logo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 2px solid rgba(179, 31, 74, 0.2);
    opacity: 0;
    transition: all 0.5s ease;
}

.related-site-card:hover .logo-ring {
    opacity: 1;
    width: 110%;
    height: 110%;
    border-color: rgba(179, 31, 74, 0.3);
}

/* Site Info */
.site-info {
    flex-grow: 1;
}

.site-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.related-site-card:hover .site-title {
    color: var(--primary-color);
}

.site-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Meta Tags */
.site-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(179, 31, 74, 0.08), rgba(179, 31, 74, 0.04));
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.related-site-card:hover .meta-tag {
    background: linear-gradient(135deg, rgba(179, 31, 74, 0.15), rgba(179, 31, 74, 0.08));
}

/* Arrow Icon */
.site-arrow {
    position: absolute;
    top: 28px;
    left: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(179, 31, 74, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translate(10px, 10px);
}

.related-site-card:hover .site-arrow {
    opacity: 1;
    transform: translate(0, 0);
    background: var(--primary-color);
    color: white;
}

/* Swiper Pagination */
.related-sites-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 30px;
}

.related-sites-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(179, 31, 74, 0.2);
    opacity: 1;
    transition: all 0.4s ease;
    border-radius: 6px;
}

.related-sites-pagination .swiper-pagination-bullet-active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    width: 32px;
    box-shadow: 0 4px 15px rgba(179, 31, 74, 0.3);
}

/* Quick Links */
.related-quick-links {
    border-top: 1px solid rgba(179, 31, 74, 0.1);
}

.quick-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 1px solid rgba(179, 31, 74, 0.15);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quick-link-pill i {
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.quick-link-pill:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: transparent;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(179, 31, 74, 0.25);
}

.quick-link-pill:hover i {
    color: white;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .swiper-nav-prev { right: 0; }
    .swiper-nav-next { left: 0; }
}

@media (max-width: 991px) {
    .swiper-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .related-site-card {
        padding: 24px;
        min-height: 260px;
    }

    .site-logo-wrapper,
    .site-logo {
        width: 70px;
        height: 70px;
    }

    .site-logo {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .swiper-nav-btn {
        display: none;
    }

    .related-sites-swiper-wrapper {
        padding: 0;
    }

    .related-site-card {
        padding: 20px;
        min-height: 240px;
    }

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

    .quick-link-pill {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .bg-shape-1,
    .bg-shape-2,
    .bg-shape-3 {
        display: none;
    }
}

@media (max-width: 576px) {
    .related-site-card {
        min-height: auto;
    }

    .site-arrow {
        top: 20px;
        left: 20px;
        width: 36px;
        height: 36px;
    }
}

/* ==========================================
   VIDEO FOCUS TOGGLE BUTTON - PREMIUM DESIGN
   ========================================== */

/* Toggle Button Base */
.video-focus-toggle {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.video-focus-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.video-focus-toggle:hover::before {
    left: 100%;
}

.video-focus-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 30px rgba(212, 175, 55, 0.3);
}

/* Toggle Icon Wrapper */
.toggle-icon-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-icon {
    position: absolute;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.show-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.hide-icon {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}

/* Toggle Text */
.toggle-text {
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Ripple Effect */
.toggle-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Active State - When Content is Hidden */
.video-focus-toggle.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.9) 0%, rgba(244, 208, 63, 0.9) 100%);
    border-color: rgba(212, 175, 55, 0.8);
    color: var(--primary-color);
    box-shadow:
        0 10px 35px rgba(212, 175, 55, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.video-focus-toggle.active:hover {
    background: linear-gradient(135deg, rgba(244, 208, 63, 1) 0%, rgba(212, 175, 55, 1) 100%);
    box-shadow:
        0 15px 45px rgba(212, 175, 55, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.video-focus-toggle.active .show-icon {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

.video-focus-toggle.active .hide-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Ripple Animation */
@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

.video-focus-toggle.ripple .toggle-ripple {
    animation: rippleEffect 0.6s ease-out;
}

/* Hero Content Wrapper Animations */
.hero-content-wrapper {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}

.hero-content-wrapper.hidden {
    opacity: 0;
    transform: scale(0.95) translateY(-30px);
    pointer-events: none;
    visibility: hidden;
}

/* Individual Content Elements Animation */
.hero-content-wrapper .hero-content,
.hero-content-wrapper .hero-image-container {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content-wrapper.hidden .hero-content {
    transform: translateX(100px);
    opacity: 0;
    transition-delay: 0s;
}

.hero-content-wrapper.hidden .hero-image-container {
    transform: translateX(-100px) scale(0.9);
    opacity: 0;
    transition-delay: 0.1s;
}

/* Hero Overlay Animations */
.hero-video-overlay,
.hero-gradient-enhanced {
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-section.video-focus-mode .hero-video-overlay {
    opacity: 0.3;
}

.hero-section.video-focus-mode .hero-gradient-enhanced {
    opacity: 0.2;
}

/* Video Enhancement in Focus Mode */
.hero-section.video-focus-mode .hero-video {
    filter: contrast(1.15) saturate(1) brightness(0.95);
}

/* Pulse Animation for Button */
@keyframes buttonPulse {
    0%, 100% {
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 0 10px rgba(212, 175, 55, 0);
    }
}

.video-focus-toggle:not(.active) {
    animation: buttonPulse 3s infinite;
}

.video-focus-toggle:hover {
    animation: none;
}

/* Floating Label Animation */
@keyframes floatLabel {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.video-focus-toggle .toggle-text {
    animation: floatLabel 3s ease-in-out infinite;
}

.video-focus-toggle:hover .toggle-text {
    animation: none;
}

/* Responsive Design for Toggle Button */
@media (max-width: 768px) {
    .video-focus-toggle {
        bottom: 20px;
        left: 20px;
        padding: 12px 18px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .toggle-icon {
        font-size: 1.1rem;
    }

    .toggle-icon-wrapper {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .video-focus-toggle {
        bottom: 15px;
        left: 15px;
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .toggle-text {
        display: none;
    }

    .video-focus-toggle {
        padding: 12px;
        border-radius: 50%;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .video-focus-toggle,
    .hero-content-wrapper,
    .hero-content-wrapper .hero-content,
    .hero-content-wrapper .hero-image-container,
    .hero-video-overlay,
    .hero-gradient-enhanced,
    .toggle-icon,
    .toggle-text {
        transition: none;
        animation: none;
    }
}

/* Focus States for Accessibility */
.video-focus-toggle:focus {
    outline: none;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 3px rgba(212, 175, 55, 0.6);
}

.video-focus-toggle:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.8);
    outline-offset: 3px;
}





/* Breadcrumb Navigation Styles */
.breadcrumbWebSite {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 4px 0;
    margin-bottom: 30px;
    margin-top: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

.breadcrumbWebSite .breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumbWebSite .breadcrumb-item {
    font-size: 14px;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.breadcrumbWebSite .breadcrumb-item a {
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.breadcrumbWebSite .breadcrumb-item a:hover {
    color: #007bff;
    background: rgba(0,123,255,0.1);
}

.breadcrumbWebSite .breadcrumb-item.active {
    color: #007bff;
    font-weight: 600;
}

/* Separator Arrow */
.breadcrumbWebSite .breadcrumb-item + .breadcrumb-item::before {
    content: "‹";
    color: #6c757d;
    padding: 0 8px;
    font-size: 18px;
    line-height: 1;
}

/* RTL Support for Arabic */
html[dir="rtl"] .breadcrumbWebSite .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

/* Arrow Right Class (if needed for custom arrow) */
/*.breadcrumbWebSite .breadcrumb-item.arrow_right::after {*/
/*    content: "";*/
/*    margin: 0 5px;*/
/*}*/

/* Responsive */
@media (max-width: 768px) {
    .breadcrumbWebSite {
        padding: 15px 0;
    }

    .breadcrumbWebSite .breadcrumb-item {
        font-size: 13px;
    }

    .breadcrumbWebSite .breadcrumb-item a {
        padding: 3px 6px;
    }
}



.cardTitleUniversity_council
{
    text-decoration: none;
    font-size: 22px;
    display: block;
    color: #000000;
}



/*-----------------------------------*/


.public_card {
    background: #fff;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    color: #333;
    justify-content: flex-start !important;
    height: 100%;
    padding: 0;
    text-align: center;
    text-decoration: none;
}



.public_card .public_card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

.public_card .service-icon {
    margin-top: 30px;
}

.public_card .card-body {
    padding: 0;
}
.public_card .card-body.noicon{
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.name_public_card {
    padding: 15px 10px;
    font-size: 20px;
    font-weight: bold;
}
.name_public_card {
    padding: 15px 10px;
     font-weight: bold;
}

.title_details
{
    font-size: 23px;
    margin-bottom: 20px;
}


/*----------details page------------------*/


.most_read
{
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 6px 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}


.news-card img {
    border-radius: 8px;
    object-fit: cover;
}

.otherMedia video{
    width: 100%;
    height: 200px;
    background-color: #000;

}

.imageNews
{
    width: 100%;
    height: 200px;
    display: block;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}


.content{
    line-height: 2;
    color: #524f4f;
    text-align: justify;
}


.detailsNews span
{

    display: inline-block;
    border-bottom: 1px solid;
    font-size: 20px;
    font-weight: bold;
}

.content img
{

    max-width: 100% !important;

}


.otherMedia
{
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 12px 0 #00000070;
}



.sharePost a {
    text-decoration: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #707975 !important;
    font-size: 15px;
}

.poster img
{
    width: 100%;
    margin-bottom: 5px;
    border-radius: 5px;
}



.content{
    color: #524f4f;
    text-align: justify;

    line-height: 2.7;
}


.content img
{

    max-width: 100% !important;

}


.fullFile video{

    width: 100%;
    height: auto;

}


.fullFile video{

    width: 100%;
    height: auto;

}



.content  video
{
    width: 100% !important;
    height: auto !important;
}
.content  iframe
{
    width: 100%;

}
.content img
{

    max-width: 100% !important;

}


.fullFile video{

    width: 100%;
    height: auto;

}


.fullFile video{

    width: 100%;
    height: auto;

}

.bodyDetails {
    background: #f7f7f7;
    padding: 15px;
    border-radius: 15px;
    height: 100%;
}
/*------------------------------------*/
