/* =====================================================
   كلية التقنيات الصحية والطبية
   College of Health and Medical Technologies
   Stylesheet - Isolated Styles
   ===================================================== */

/* ===========================================
   CSS VARIABLES (College-Specific)
   =========================================== */
:root {
    --college-primary: #002147;
    --college-gold: #D4AF37;
    --college-gold-light: rgba(212, 175, 55, 0.15);
    --college-gold-hover: #B8860B;
    --college-color-from-CMS: rgba(71, 25, 90, 0.72);



    --transition-delay: 0.3s;
}

/* ===========================================
   COLLEGE HEADER MODIFICATIONS
   =========================================== */




/* College Logo Section - Modified navbar-middle */
.college-navbar-middle .college-logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.college-navbar-middle .university-logo img {
    height: 95px;
    width: auto;
    transition: transform 0.3s ease;
}

.college-navbar-middle .university-logo:hover img {
    transform: scale(1.05);
}

/* College Logo Icon */
/* .college-logo-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--college-primary) 0%, #003366 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 33, 71, 0.3);
    transition: all 0.3s ease;
}

.college-logo-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 33, 71, 0.4);
}

.college-logo-icon i {
    font-size: 24px;
    color: var(--college-gold);
} */
/* .college-logo {
    border-right: 2px solid var(--college-gold);
} */
.logo-section .inline {
    width: 2px;
    height: 80px;
    background-color: var(--college-gold);
}

.college-logo img {
    height: 90px;
    width: auto;
    transition: transform 0.3s ease;
}

.college-logo:hover img {
    transform: scale(1.05);
}

/* College Name */
.college-name {
    margin-right: -10px;
}

.college-name h1 {
    font-size: 24px;
    padding-right: 8px;
    font-weight: 800;
    color: var(--college-primary);
    margin-bottom: 2px;
    line-height: 1.3;
}

.college-name p {
    font-size: 14px;
    color: #666;
    font-weight: 500;

    letter-spacing: 0.5px;
}

/* ===========================================
   COLLEGE NAVIGATION - Simplified (No Dropdowns)
   =========================================== */
.college-navbar-main {
    background: linear-gradient(135deg, var(--college-primary) 0%, #003366 100%);
}

.college-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.college-menu>li {
    position: relative;
}

.college-menu>li>a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.college-menu>li>a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--college-gold);
    transition: width 0.3s ease;
}

.college-menu>li>a:hover::before,
.college-menu>li>a.active::before {
    width: 100%;
}

.college-menu>li>a:hover,
.college-menu>li>a.active {
    color: var(--college-gold);

}

/* ===========================================
   NEW HERO SECTION - Animated Design
   =========================================== */

/* Floating Paths Background */
.floating-paths-background {
    width: 100%;
    height: 100%;
    position: absolute;
}

.paths-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.paths-container svg
{
    width: 100%;
    height: 100%;
    color: var(--college-color-from-CMS);
}


.paths-svg {
    width: 100%;
    height: 100%;
    color: var(--college-color-from-CMS);
}

.animated-path {
    fill: none;
    stroke: currentColor;
}

/* Hero Container */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Cairo', sans-serif;
}

/* Video/Background Container */
.hero__video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* Video Overlay - Academic Formal Style */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg,
    rgba(0, 33, 71, 0.5) 0%,
        /* University Navy Blue - Light */
    rgba(0, 33, 71, 0.75) 50%,
        /* University Navy Blue - Medium */
    rgba(0, 20, 50, 0.9) 100%);
    /* Deep Academic Blue */
    z-index: -1;
}

/* Animated Pattern Overlay */
.hero__pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    z-index: -1;
    animation: patternFloat 20s ease-in-out infinite;
}

@keyframes patternFloat {

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

    50% {
        transform: scale(1.05) translateY(-10px);
    }
}

/* Content Container */
.hero__container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Text Content */
.hero__content {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease forwards;
    animation-delay: 0.3s;
}

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

/* Badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--college-gold);
    color: var(--college-gold);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.5s;
}

.hero__badge-icon {
    width: 20px;
    height: 20px;
}

/* Title */
.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.7s;
}

.hero__title-highlight {
    color: var(--college-gold);
    position: relative;
    display: inline-block;
}

/* .hero__title-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 0;
    width: 100%;
    height: 8px;
    background: var(--college-gold);
    opacity: 0.3;
    border-radius: 4px;
    z-index: -1;
} */

/* Subtitle */
.hero__subtitle {
    font-size: 1.15rem;
    color: #e9ecef;
    max-width: 550px;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.9s;
}

/* Buttons */
.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 1.1s;
}

/*.btn {*/
/*    display: inline-flex;*/
/*    align-items: center;*/
/*    gap: 0.75rem;*/
/*    padding: 1rem 2rem;*/
/*    font-family: 'Cairo', sans-serif;*/
/*    font-size: 1rem;*/
/*    font-weight: 700;*/
/*    border-radius: 12px;*/
/*    text-decoration: none;*/
/*    cursor: pointer;*/
/*    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);*/
/*    border: 2px solid transparent;*/
/*}*/

.btn--primary {
    background: var(--college-gold);
    color: var(--college-primary);
    border-color: var(--college-gold);
}

.btn--primary:hover {
    background: #e6c555;
    border-color: #e6c555;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.btn--outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn--outline:hover {
    background: #fff;
    color: var(--college-primary);
    transform: translateY(-3px);
}

.btn__icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn:hover .btn__icon {
    transform: translateX(-5px);
}

/* Stats */

/* Image Collage */
.hero__images {
    position: relative;
    height: 550px;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
    animation-delay: 0.5s;
}

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

.hero__image-card {
    position: absolute;
    background: var(--college-color-from-CMS);
    padding: 2px;
    border-radius: 20px;
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all var(--transition-delay) cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__image-card:hover {
    transform: scale(1.03);

}

.hero__image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: all var(--transition-delay) cubic-bezier(0.4, 0, 0.2, 1);
}

/* .hero__image-card:hover img {
    transform: scale(1.08);
} */

/* Image Card Overlay - Always Visible with Filter */
.hero__image-overlay {
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background: linear-gradient(to top,
    rgba(0, 33, 71, 0.9) 0%,
    rgba(0, 33, 71, 0.1) 40%,
    rgba(0, 0, 0, 0.2) 100%);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Category Badge - Above Title on Right */
.hero__image-category {
    position: absolute;
    bottom: 60px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    /* margin-bottom: 5px; */
    padding: 4px 10px;
    background: rgba(0, 33, 71, 0.9);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 2;
}

.hero__image-category i {
    font-size: 0.9rem;
}

.hero__image-category:hover {
    font-size: 1rem;
    font-weight: 700;
}



/* Hover Effect */
.hero__image-card:hover .hero__image-category {
    background: var(--college-gold);
    color: #002147;
    right: 20px;
    top: 20px;
    bottom: auto;
}

/* Text Content Wrapper - Bottom with Background on Hover */
.hero__text-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: transparent;
    border-radius: 0 0 14px 14px;
    transition: all 0.4s ease;
    z-index: 2;

}

.hero__image-card:hover .hero__text-content {
    background: linear-gradient(to top, rgba(0, 33, 71, 0.95) 0%, rgba(0, 33, 71, 0.8) 70%, transparent 100%);
    padding: 25px 15px 15px;
}

/* Title */
.hero__image-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-align: right;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    margin: 0;
    transition: all 0.3s ease;
}

.hero__image-card:hover .hero__image-title {
    color: var(--college-gold);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* Description - Shows on Hover */
.hero__image-desc {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-align: right;
    line-height: 1.5;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.hero__image-card:hover .hero__image-desc {
    max-height: 100px;
    opacity: 1;
    margin-top: 5px;
}

.hero__image-card--1 {
    top: 0;
    right: 50%;
    transform: translateX(50%);
    width: 360px;
    height: 260px;
    animation: float1 10s ease-in-out infinite;
    animation-delay: 0s;
    z-index: 3;
}

.hero__image-card--1:hover {
    width: 100%;
    height: 100%;
}

.hero__image-card--2 {
    top: 40%;
    right: 0;
    width: 340px;
    height: 240px;
    animation: float2 15s ease-in-out infinite;
    animation-delay: 1s;
    z-index: 1;
}

.hero__image-card--2:hover {
    top: 0;
    /* right: 50%; */
    width: 100%;
    height: 100%;
    z-index: 99;
}

.hero__image-card--3 {
    bottom: 2%;
    right: 45%;
    width: 340px;
    height: 240px;
    animation: float3 10s ease-in-out infinite;
    animation-delay: 2s;
}

.hero__image-card--3:hover {
    bottom: 0;
    right: 0;
    z-index: 99;
    width: 100%;
    height: 100%;

}

@keyframes float1 {

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

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

@keyframes float2 {

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

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

@keyframes float3 {

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

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

/* Decorative Shapes */


/* Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    animation-delay: 1.8s;
}

.hero__scroll-text {
    font-size: 0.85rem;
    color: #e9ecef;
}

.hero__scroll-icon {
    width: 30px;
    height: 50px;
    border: 2px solid var(--college-gold);
    border-radius: 15px;
    position: relative;
}

.hero__scroll-dot {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: var(--college-gold);
    border-radius: 3px;
    animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        top: 8px;
        opacity: 1;
    }

    50% {
        top: 25px;
        opacity: 0.5;
    }
}

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

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Hero Responsive Design */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero__content {
        order: 1;
    }

    .hero__images {
        display: none !important;
    }

    .hero__subtitle {
        margin-right: auto;
        margin-left: auto;
    }

    .hero__image-card--1 {
        width: 220px;
        height: 160px;
    }

    .hero__image-card--2 {
        width: 180px;
        height: 140px;
    }

    .hero__image-card--3 {
        width: 150px;
        height: 120px;
    }
}

@media (max-width: 640px) {
    .hero__container {
        padding: 1.5rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }


    .hero__images {
        display: none !important;

    }

    .hero__image-card--1 {
        width: 180px;
        height: 130px;
    }

    .hero__image-card--2 {
        width: 140px;
        height: 110px;
        top: 40%;
    }

    .hero__image-card--3 {
        width: 120px;
        height: 100px;
    }

    .hero__scroll {
        display: none;
    }
}

/* ===========================================
   COLLEGE ABOUT SECTION
   =========================================== */
.college-about {
    padding: 80px 20px;
    background: #fff;
}

.college-about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.college-about-content .section-header {
    text-align: right;
    margin-bottom: 25px;
}

.college-about-content .section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--college-primary);
    margin-bottom: 10px;
}

.college-about-intro {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.9;
    margin-bottom: 30px;
}

/* College Tabs - Vision/Mission/Goals */
.college-tabs {
    margin-top: 30px;
}

.college-tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.college-tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.college-tab-btn:hover {
    background: #e9ecef;
    color: var(--college-primary);
}

.college-tab-btn.active {
    background: var(--college-primary);
    color: #fff;
    border-color: var(--college-primary);
}

.college-tab-btn.active i {
    color: var(--college-gold);
}

.college-tabs-content {
    position: relative;
}

.college-tab-panel {
    display: none;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    animation: fadeInTab 0.4s ease;
}

.college-tab-panel.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.college-tab-panel .tab-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--college-primary), #003366);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.college-tab-panel .tab-icon i {
    font-size: 22px;
    color: var(--college-gold);
}

.college-tab-panel h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--college-primary);
    margin-bottom: 12px;
}

.college-tab-panel p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

.goals-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.goals-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    border-bottom: 1px solid #e9ecef;
}

.goals-list li:last-child {
    border-bottom: none;
}

.goals-list li i {
    color: var(--college-gold);
    font-size: 1rem;
    margin-top: 3px;
}

/* About Video Section */
.college-about-video {
    position: relative;
    order: -1;
}

.college-about-video .video-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 33, 71, 0.25);
}

.college-about-video .about-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.college-about-video .video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 33, 71, 0.3) 0%, rgba(71, 25, 90, 0.2) 100%);
    pointer-events: none;
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    z-index: 10;
}

.video-controls-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-controls-right {
    display: flex;
    align-items: center;
}

.video-control-btn {
    width: 45px;
    height: 45px;
    background: rgba(0, 33, 71, 0.85);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.video-control-btn i {
    font-size: 16px;
    color: #fff;
}

.video-control-btn:hover {
    background: var(--college-gold);
    transform: scale(1.1);
}

.video-control-btn:hover i {
    color: var(--college-primary);
}

/* Video Progress Bar */
.video-progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.video-progress {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    outline: none;
}

.video-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--college-gold);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.video-progress::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.video-progress::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--college-gold);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.video-time {
    font-size: 0.7rem;
    color: #fff;
    text-align: center;
    font-weight: 500;
}

/* ===========================================
   DEPARTMENTS SECTION
   =========================================== */
.college-departments {
    padding: 80px 20px;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.departments-container {
    max-width: 1200px;
    margin: 0 auto;
}

.departments-container .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.departments-container .section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--college-primary);
    margin-bottom: 10px;
}

.departments-container .section-desc {
    font-size: 1.1rem;
    color: #666;
    margin-top: 15px;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.department-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.department-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 33, 71, 0.15);
    border-color: var(--college-gold);
}

.dept-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--college-primary) 0%, #003366 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.department-card:hover .dept-icon {
    background: linear-gradient(135deg, var(--college-gold) 0%, var(--college-gold-hover) 100%);
    transform: scale(1.1) rotate(5deg);
}

.dept-icon i {
    font-size: 28px;
    color: var(--college-gold);
    transition: all 0.3s ease;
}

.department-card:hover .dept-icon i {
    color: #fff;
}

.dept-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--college-primary);
    margin-bottom: 10px;
}

.dept-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.dept-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--college-gold);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

.dept-link i {
    transition: transform 0.3s ease;
}

.department-card:hover .dept-link i {
    transform: translateX(-5px);
}

/* ===========================================
   DEAN'S MESSAGE SECTION
   =========================================== */
.dean-message-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--college-primary) 0%, #001a35 100%);
}

.dean-container {
    max-width: 1000px;
    margin: 0 auto;
}

.dean-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.dean-card:hover {
    transform: translateY(-6px);
}

.dean-image-wrapper {
    text-align: center;
}

.dean-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--college-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dean-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dean-info-badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
}

.dean-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.dean-title {
    font-size: 0.85rem;
    color: var(--college-gold);
}

.dean-content {
    position: relative;
}

.dean-quote-mark {
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: var(--college-gold);
    opacity: 0.3;
    line-height: 1;
}

.dean-quote {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.9;
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.dean-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--college-gold);
    color: var(--college-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dean-btn:hover {
    background: #fff;
    transform: translateX(-5px);
}

.dean-btn i {
    transition: transform 0.3s ease;
}

.dean-btn:hover i {
    transform: translateX(-5px);
}

/* ===========================================
   FACULTY SECTION
   =========================================== */
.college-faculty {
    padding: 80px 20px;
    background: #fff;
}

.faculty-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.faculty-container .section-header {
    margin-bottom: 50px;
}

.faculty-container .section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--college-primary);
    margin-bottom: 10px;
}

.faculty-container .section-desc {
    font-size: 1.1rem;
    color: #666;
    margin-top: 15px;
}

.faculty-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.faculty-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.faculty-stat:hover {
    background: var(--college-gold-light);
    transform: translateY(-5px);
}

.faculty-stat .stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--college-primary) 0%, #003366 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faculty-stat .stat-icon i {
    font-size: 20px;
    color: var(--college-gold);
}

.stat-info {
    text-align: right;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--college-primary);
}

.stat-text {
    font-size: 0.9rem;
    color: #666;
}

.faculty-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--college-primary) 0%, #003366 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faculty-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 33, 71, 0.3);
}

.faculty-btn i {
    transition: transform 0.3s ease;
}

.faculty-btn:hover i {
    transform: translateX(-5px);
}

/* ===========================================
   STUDENTS SECTION
   =========================================== */
.college-students {
    padding: 80px 20px;
    background: #fff;
}

.students-container {
    max-width: 1000px;
    margin: 0 auto;
}

.students-container .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.students-container .section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--college-primary);
    margin-bottom: 10px;
}

.students-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.student-link-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.student-link-card:hover {
    background: #fff;
    border-color: var(--college-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.student-link-card i {
    font-size: 2.5rem;
    color: var(--college-primary);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.student-link-card:hover i {
    color: var(--college-gold);
    transform: scale(1.1);
}

.student-link-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--college-primary);
    margin-bottom: 8px;
}

.student-link-card p {
    font-size: 0.85rem;
    color: #666;
}

/* ===========================================
   FACULTY SECTION - Simple Slider
   =========================================== */
.faculty-section {
    padding: 80px 20px;
    background: #FFFFFF;
}

.faculty-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Header */
.faculty-header {
    text-align: center;
    margin-bottom: 40px;
}

.faculty-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--college-primary);
    margin: 0 0 15px 0;
}

.faculty-underline {
    width: 80px;
    height: 4px;
    background: var(--college-gold);
    margin: 0 auto 15px;
    border-radius: 2px;
}

.faculty-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Faculty Slider */
.faculty-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    padding: 0 10px;
}

/* Slider Viewport */
.faculty-viewport {
    width: calc(260px * 4 + 25px * 3);
    flex-shrink: 0;
    overflow: hidden;
    padding: 15px 5px;
}

/* Slider Track */
.faculty-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    will-change: transform;
}

/* Navigation Arrows */
.faculty-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--college-primary);
    border: none;
    color: var(--college-gold);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 33, 71, 0.2);
}

.faculty-arrow:hover {
    background: #003366;
    transform: scale(1.08);
}

.faculty-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Slider Dots */
.faculty-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
}

.faculty-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #CCCCCC;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.faculty-dots .dot:hover {
    transform: scale(1.2);
    background: #999;
}

.faculty-dots .dot.active {
    background: var(--college-gold);
    transform: scale(1.2);
}

/* Faculty Card */
.faculty-card {
    width: 260px;
    min-width: 260px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #E8E8E8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    padding: 30px 20px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--college-gold);
    background: #FFFFFF;

}

/* Photo */
.faculty-card-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--college-gold);
    overflow: hidden;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.faculty-card:hover .faculty-card-photo {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.faculty-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Name */
.faculty-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--college-primary);
    margin: 0 0 5px 0;
    line-height: 1.4;
}

/* Title */
.faculty-card-title {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px 0;
}

/* Department Badge */
.faculty-card-dept {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.12);
    color: #996515;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 12px;
}

/* Contact Icons */
.faculty-card-contacts {
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 1;
    transform: translateY(8px);
    transition: all 0.3s ease;
    margin-top: auto;

}

.faculty-card:hover .faculty-card-contacts {
    opacity: 1;
    transform: translateY(0);
}

.faculty-card-contacts a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    color: var(--college-gold);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid var(--college-gold);
    border-radius: 20px;
}

.faculty-card-contacts a:hover {
    background: var(--college-gold);
    color: #fff;
    transform: scale(1.1);
}

/* Profile Link - Appears on Hover */
.faculty-card-profile {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--college-gold);
    text-decoration: none;
    border: 1px solid var(--college-gold);
    border-radius: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.faculty-card:hover .faculty-card-profile {
    opacity: 1;
    transform: translateY(0);
}

.faculty-card-profile:hover {
    background: var(--college-gold);
    color: #fff;
}

/* View All Link */
.faculty-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 35px auto 0;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--college-primary) 0%, #003366 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
    width: fit-content;
}


.faculty-view-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 33, 71, 0.3);
}

.faculty-view-all i {
    transition: transform 0.3s ease;
}

.faculty-view-all:hover i {
    transform: translateX(-5px);
}

/* ============================================
   FACULTY SECTION - RESPONSIVE STYLES
   ============================================ */

/* Tablet (768px - 1199px) - 3 cards */
@media (max-width: 1199px) {
    .faculty-viewport {
        max-width: calc(260px * 3 + 25px * 2);
    }
}

/* Small Tablet (576px - 991px) - 2 cards */
@media (max-width: 991px) {
    .faculty-viewport {
        max-width: calc(260px * 2 + 25px * 1);
    }

    .faculty-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .faculty-section {
        padding: 60px 15px;
    }

    .faculty-title {
        font-size: 28px;
    }

    .faculty-slider {
        gap: 10px;
    }

    .faculty-viewport {
        max-width: 280px;
        padding: 10px 0;
    }

    .faculty-card {
        width: 260px;
        min-width: 260px;
    }

    .faculty-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .faculty-dots .dot {
        width: 12px;
        height: 12px;
    }

    .faculty-view-all {
        padding: 10px 22px;
        font-size: 14px;
    }
}

/* Small Mobile (< 400px) */
@media (max-width: 400px) {
    .faculty-viewport {
        max-width: 250px;
    }

    .faculty-card {
        width: 230px;
        min-width: 230px;
        padding: 20px 15px;
    }

    .faculty-card-photo {
        width: 85px;
        height: 85px;
    }

    .faculty-card-name {
        font-size: 15px;
    }
}

/* ===========================================
   NEWS SECTION
   =========================================== */
.college-news {
    position: relative;
    z-index: 5;
    padding: 80px 20px;
    background: #f8f9fa;
}

.college-news .news-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 6;
}

.college-news .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.college-news .section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--college-primary);
    margin-bottom: 10px;
}

.college-news .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.college-news .news-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    /* Ensure visibility */
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.college-news .news-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Category Badge - Top Right */
.college-news .news-category {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    /* Gold Color for all categories */
    background: var(--college-gold);
    color: var(--college-primary);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.college-news .news-category i {
    font-size: 0.8rem;
}

.college-news .news-card:hover .news-category {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

.college-news .news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.college-news .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.college-news .news-card:hover .news-image img {
    transform: scale(1.1);
}

/* News Content */
.college-news .news-content {
    padding: 25px;
}

/* News Meta with Date */
.college-news .news-meta {
    margin-bottom: 12px;
}

.college-news .news-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
    background: transparent;
    padding: 0;
    position: static;
}

.college-news .news-date i {
    color: var(--college-gold);
    font-size: 0.9rem;
}

.college-news .news-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--college-primary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.college-news .news-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.college-news .news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--college-gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.college-news .news-link i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.college-news .news-link:hover {
    color: var(--college-primary);
    border-bottom-color: var(--college-gold);
}

.college-news .news-link:hover i {
    transform: translateX(-5px);
}

.view-all-news {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--college-primary) 0%, #003366 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    width: fit-content;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.view-all-news:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 33, 71, 0.3);
}

.view-all-news i {
    transition: transform 0.3s ease;
}

.view-all-news:hover i {
    transform: translateX(-5px);
}

/* ===========================================
   MEDIA SECTION
   =========================================== */
.college-media {
    padding: 80px 20px;
    background: #fff;
}

.media-container {
    max-width: 1000px;
    margin: 0 auto;
}

.media-container .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.media-container .section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--college-primary);
    margin-bottom: 10px;
}

.media-container .section-desc {
    font-size: 1.1rem;
    color: #666;
    margin-top: 15px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.media-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-item:hover img {
    transform: scale(1.1);
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 33, 71, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.media-overlay i {
    font-size: 2rem;
    color: var(--college-gold);
}

.view-all-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--college-gold);
    color: var(--college-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    width: fit-content;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.view-all-media:hover {
    background: var(--college-primary);
    color: #fff;
    transform: translateY(-3px);
}

.view-all-media i {
    transition: transform 0.3s ease;
}

.view-all-media:hover i {
    transform: translateX(-5px);
}

/* ===========================================
   COLLEGE FOOTER
   =========================================== */
.college-footer .footer-college-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--college-gold);
    margin-bottom: 15px;
}

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

/* Tablet */
@media (max-width: 992px) {

    /* Navigation */
    .mobile-menu-btn {
        display: flex;
        position: absolute;
        top: 20px;
        left: 20px;
    }

    .college-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        flex-direction: column;
        padding: 80px 20px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .college-menu.active {
        right: 0;
    }

    .college-menu>li>a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* College Name */
    .college-name h1 {
        font-size: 18px;
    }

    .college-name p {
        font-size: 10px;
    }

    /* Grids */
    .departments-grid,
    .students-links,
    .divisions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .news-grid {
        grid-template-columns: 1fr;
    }

    .college-about-container {
        grid-template-columns: 1fr;
    }

    .dean-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .faculty-stats {
        flex-direction: column;
        align-items: center;
    }
}

/* Mobile */
@media (max-width: 576px) {

    /* Hero */
    .college-hero {
        min-height: 80vh;
    }

    .college-hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .hero-stat {
        width: 100%;
    }

    .college-hero-buttons {
        flex-direction: column;
    }

    .college-hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* College Logo Section */
    .college-logo-section {
        flex-wrap: wrap;
    }

    .college-name {
        width: 100%;
        padding-right: 0;
        border-right: none;
    }

    .navbar-middle .college-navbar-middle {
        padding: 0;
    }

    .college-name h1 {
        font-size: 16px;
    }

    /* Grids */
    .departments-grid,
    .students-links,
    .divisions-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }

    /* Sections */
    .college-about,
    .college-departments,
    .dean-message-section,
    .college-faculty,
    .college-students,
    .college-news,
    .college-media,
    .college-contact {
        padding: 60px 15px;
    }

    /* Cards */
    .dean-card {
        padding: 25px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 25px;
    }
}

/* ===========================================
   E-LIBRARY SECTION - Unique Banner Design
   =========================================== */
.elibrary-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f0f8 100%);
}

.elibrary-container {
    max-width: 1200px;
    margin: 0 auto;
}

.elibrary-banner {
    position: relative;
    background: linear-gradient(135deg, var(--college-primary) 0%, #003366 50%, #001a33 100%);
    border-radius: 24px;
    padding: 50px 40px;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    box-shadow: 0 20px 60px rgba(0, 33, 71, 0.25);
}

/* Decorative Pattern */
.elibrary-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* Book Icon Decoration */
.elibrary-decoration {
    position: relative;
    z-index: 2;
}

.book-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--college-gold) 0%, #c9a227 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-5deg);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.book-icon-wrapper i {
    font-size: 3.5rem;
    color: var(--college-primary);
}

.icon-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, transparent 70%);
    border-radius: 30px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

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

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Content Area */
.elibrary-content {
    position: relative;
    z-index: 2;
}

.elibrary-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.elibrary-title i {
    color: var(--college-gold);
    font-size: 1.8rem;
}

.elibrary-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin: 0 0 25px 0;
    max-width: 500px;
}

.elibrary-main-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: var(--college-gold);
    color: var(--college-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.elibrary-main-btn:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.2);
}

.elibrary-main-btn i {
    transition: transform 0.3s ease;
}

.elibrary-main-btn:hover i {
    transform: translateX(-5px);
}

/* Quick Links */
.elibrary-links {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.elibrary-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
}

.elibrary-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
    border-color: var(--college-gold);
}

.elibrary-link .link-icon {
    width: 36px;
    height: 36px;
    background: var(--college-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.elibrary-link .link-icon i {
    font-size: 16px;
    color: var(--college-primary);
}

.elibrary-link span {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .elibrary-banner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 30px;
    }

    .elibrary-decoration {
        order: 1;
    }

    .elibrary-content {
        order: 2;
    }

    .elibrary-links {
        order: 3;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .elibrary-title {
        justify-content: center;
    }

    .elibrary-desc {
        margin: 0 auto 25px;
    }

    .book-icon-wrapper {
        margin: 0 auto;
    }

    .elibrary-link {
        min-width: auto;
    }

    .elibrary-link:hover {
        transform: translateY(-3px);
    }
}

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

    .elibrary-banner {
        padding: 30px 20px;
    }

    .book-icon-wrapper {
        width: 90px;
        height: 90px;
    }

    .book-icon-wrapper i {
        font-size: 2.5rem;
    }

    .elibrary-title {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 10px;
    }

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

    .elibrary-links {
        flex-direction: column;
    }

    .elibrary-link {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================================
   GALLERY SECTION - Elegant Masonry Gallery
   =========================================== */
.gallery-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Gallery Header */
.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-subtitle {
    font-size: 16px;
    color: #666;
    margin-top: 15px;
}

/* Filter Buttons */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gallery-filter {
    padding: 10px 24px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.gallery-filter:hover {
    border-color: var(--college-gold);
    color: var(--college-gold);
}

.gallery-filter.active {
    background: var(--college-gold);
    border-color: var(--college-gold);
    color: #fff;
}

/* Uniform Grid - 4 columns, 2 rows max */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 15px;
    max-height: calc(220px * 2 + 15px);
    /* 2 rows + gap */
    overflow: hidden;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 220px;
    /* Fixed height for all items */
}

/* Override wide/tall to be uniform */
.gallery-item--wide,
.gallery-item--tall {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 33, 71, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

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

.gallery-overlay-content {
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--college-gold);
    color: var(--college-primary);
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 8px;
}

.gallery-overlay h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.gallery-expand-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-expand-btn {
    opacity: 1;
    transform: scale(1);
}

.gallery-expand-btn:hover {
    background: var(--college-gold);
    color: var(--college-primary);
}

/* View All Button */
.gallery-view-all {
    text-align: center;
    margin-top: 50px;
}

.gallery-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--college-primary) 0%, #003366 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.gallery-view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 33, 71, 0.3);
}

.gallery-view-all-btn i {
    transition: transform 0.3s ease;
}

.gallery-view-all-btn:hover i {
    transform: translateX(-5px);
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    text-align: center;
    margin-top: 20px;
}

.lightbox-info h3 {
    color: #fff;
    font-size: 18px;
    margin: 0;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--college-gold);
    color: var(--college-primary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--college-gold);
    color: var(--college-primary);
}

.lightbox-prev {
    right: 20px;
}

.lightbox-next {
    left: 20px;
}

/* Filter Animation */
.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 200px);
        max-height: calc(200px * 2 + 15px);
    }

    .gallery-item {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 15px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 180px);
        max-height: calc(180px * 2 + 10px);
        gap: 10px;
    }

    .gallery-item {
        height: 180px;
    }

    .gallery-filters {
        gap: 8px;
    }

    .gallery-filter {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 160px);
        max-height: calc(160px * 2 + 10px);
    }

    .gallery-item {
        height: 160px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
}

/* RTL Adjustments for LTR Mode */
[dir="ltr"] .college-name {
    padding-right: 0;
    padding-left: 15px;
    border-right: none;
}

[dir="ltr"] .college-menu>li>a::before {
    right: auto;
    left: 0;
}

[dir="ltr"] .dept-link i,
[dir="ltr"] .dean-btn i,
[dir="ltr"] .faculty-btn i,
[dir="ltr"] .view-all-news i,
[dir="ltr"] .view-all-media i,
[dir="ltr"] .submit-btn i {
    transform: rotate(180deg);
}

[dir="ltr"] .department-card:hover .dept-link i,
[dir="ltr"] .dean-btn:hover i,
[dir="ltr"] .faculty-btn:hover i,
[dir="ltr"] .view-all-news:hover i,
[dir="ltr"] .view-all-media:hover i,
[dir="ltr"] .submit-btn:hover i {
    transform: rotate(180deg) translateX(-5px);
}

[dir="ltr"] .feature-item:hover {
    transform: translateX(5px);
}

[dir="ltr"] .dean-btn:hover {
    transform: translateX(5px);
}

/* ===========================================
   STATISTICS SECTION - Parallax with Glassmorphism
   =========================================== */


/* Section Container */
.college-stats {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    overflow: hidden;

    /* Parallax Background */
    background-image: url('../../or-images/bgs5.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Gradient Overlay */
.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
    rgba(0, 33, 71, 0.88) 0%,
    rgba(0, 33, 71, 0.70) 50%,
    rgba(201, 162, 39, 0.15) 100%);
    z-index: 11;
}

/* Stats Container */
.stats-container {
    position: relative;
    z-index: 12;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Stats Section Header */
.stats-header {
    text-align: center;
    margin-bottom: 50px;
}

.stats-title {
    font-family: 'Cairo', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.stats-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--college-gold);
    margin: 15px auto 0;
    border-radius: 2px;
}

.stats-desc {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Stats Grid - 5 columns on desktop */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    direction: rtl;
    position: relative;
    z-index: 15;
}

/* Stat Card - Glassmorphism Design */
/* Using .college-stats for higher specificity to override main style.css */
.college-stats .stat-card {
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 30px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    /* Override main style.css */
    opacity: 1 !important;
    transform: none !important;
}

.college-stats .stat-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
    border-color: rgba(212, 175, 55, 0.4);
}

/* Icon Container with Ring Animation */
.college-stats .stat-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.college-stats .stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--college-gold) 0%, #B8860B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    /* Override main style.css */
    opacity: 1 !important;
    transform: scale(1) !important;
}

.college-stats .stat-icon i {
    font-size: 26px;
    color: var(--college-primary);
}

/* Simple Ring Glow Animation */
.college-stats .stat-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    z-index: 1;
    animation: simpleGlow 3s ease-in-out infinite;
}

@keyframes simpleGlow {

    0%,
    100% {
        opacity: 0.4;
        border-color: rgba(212, 175, 55, 0.3);
    }

    50% {
        opacity: 0.8;
        border-color: rgba(212, 175, 55, 0.6);
    }
}

/* Stat Number */
.stat-number {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--college-gold);
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

/* Stat Label */
.stat-label {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    opacity: 0.95;
}

/* Responsive Design */

/* Large Tablet - 3 columns */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Tablet - 2 columns */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .college-stats {
        min-height: auto;
        padding: 60px 20px;
    }

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

    .stats-header {
        margin-bottom: 40px;
    }
}

/* Mobile - 1 column, 50vh height */
@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .college-stats {
        min-height: 50vh;
        padding: 40px 15px;
        /* Disable fixed attachment on mobile for performance */
        background-attachment: scroll;
    }

    .stat-card {
        padding: 25px 20px;
    }

    .stat-number {
        font-size: 40px;
    }

    .stat-label {
        font-size: 16px;
    }

    .stat-icon {
        width: 55px;
        height: 55px;
    }

    .stat-icon i {
        font-size: 22px;
    }

    .stat-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .stat-ring-1,
    .stat-ring-2,
    .stat-ring-3 {
        animation: ringPulseMobile 2s ease-out infinite;
    }

    @keyframes ringPulseMobile {
        0% {
            width: 55px;
            height: 55px;
            opacity: 0.8;
        }

        100% {
            width: 85px;
            height: 85px;
            opacity: 0;
        }
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .stat-ring-1,
    .stat-ring-2,
    .stat-ring-3 {
        animation: none;
        opacity: 0;
    }

    .stat-card {
        transition: none;
    }

    .stat-card:hover {
        transform: none;
    }
}

/* ===========================================
   ACADEMIC DESCRIPTION SECTION - الوصف الأكاديمي
   =========================================== */
.academic-desc-section {
    position: relative;
    padding: 80px 30px;
    overflow: visible;
}

.academic-desc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    background: linear-gradient(135deg, var(--college-primary) 0%, #003366 100%);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 33, 71, 0.3);
    overflow: hidden;
}

.academic-desc-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 40%);
    pointer-events: none;
    border-radius: 20px;
}

/* Content - Right Side */
.academic-desc-content {
    flex: 1;
    max-width: 550px;
}

.academic-desc-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    font-family: 'Cairo', sans-serif;
}

.academic-desc-content .title-underline {
    width: 80px;
    height: 4px;
    background: var(--college-gold);
    margin-bottom: 25px;
    border-radius: 2px;
}

.academic-desc-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-family: 'Cairo', sans-serif;
}

.academic-desc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--college-gold);
    color: var(--college-primary);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.academic-desc-btn:hover {
    background: #e6c555;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.academic-desc-btn i {
    transition: transform 0.3s ease;
}

.academic-desc-btn:hover i {
    transform: translateX(-5px);
}

/* Image - Left Side (Floating Animation) */
.academic-desc-image {
    flex: 0 0 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.academic-desc-image .floating-image {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: floatUpDown 4s ease-in-out infinite;
}

/* Floating Animation */
@keyframes floatUpDown {

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .academic-desc-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
        margin: 0 10px;

    }

    .academic-desc-content {
        max-width: 100%;
    }

    .academic-desc-content .title-underline {
        margin-left: auto;
        margin-right: auto;
    }

    .academic-desc-image {
        flex: 0 0 auto;
    }

    .academic-desc-image .floating-image {
        max-height: 280px;
    }
}

@media (max-width: 576px) {
    .academic-desc-section {
        padding: 60px 0;
    }

    .academic-desc-title {
        font-size: 1.8rem;
    }

    .academic-desc-text {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .academic-desc-image .floating-image {
        max-height: 220px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .academic-desc-image .floating-image {
        animation: none;
    }
}

/* ===========================================
   MOBILE RESPONSIVE - 768px and below
   =========================================== */
@media (max-width: 768px) {

    /* Hide Hero Images on Mobile */
    .hero__images {
        display: none !important;
    }

    /* Hero Section - Full Width Content */
    .hero__container {
        grid-template-columns: 1fr;
        padding: 0 20px;
        text-align: center;
    }

    .hero__content {
        padding: 30px 0;
    }

    .hero__title {
        font-size: 1.8rem;
        line-height: 1.4;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero__buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Header Adjustments */
    .navbar-top .container {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .college-logo-section {
        /* flex-direction: column; */
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .college-logo-section .logo img {
        height: 80px;
    }

    .college-text h1 {
        font-size: 1.2rem;
    }

    .college-text p {
        font-size: 0.8rem;
    }

    /* News Section - Single Column */
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .news-card {
        margin-bottom: 15px;
    }

    /* About Section */
    .about-content {
        flex-direction: column;
    }

    .about-tabs .tab-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    /* Dean Section */
    .dean-content {
        flex-direction: column;
        gap: 30px;
    }

    .dean-image {
        max-width: 200px;
        margin: 0 auto;
    }

    /* Faculty Slider */
    .faculty-cards-wrapper {
        gap: 15px;
    }

    .faculty-card {
        min-width: 280px;
    }

    /* Departments Grid */
    .departments-grid {
        grid-template-columns: 1fr !important;
    }

    /* Academic Description Section */
    .academic-desc-container {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
    }

    .academic-desc-btn {
        position: relative;
        /* bottom: 30px; */
        /* left: 50%; */
        /* transform: translateX(-50%); */
        bottom: -330px;
    }

    .academic-desc-image {
        /* order: 1; */
        margin: -30px 0 100px;
    }

    /* Statistics Cards */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    /* Gallery Section */
    .gallery-container {
        padding: 0 15px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .footer-map iframe {
        height: 200px;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.6rem;
    }

    /* Container Padding */
    section {
        padding: 50px 15px;
    }
}

/* ===========================================
   MOBILE RESPONSIVE - 480px and below (Small Phones)
   =========================================== */
@media (max-width: 480px) {

    /* Hero Section */
    .hero__title {
        font-size: 1.5rem;
    }

    .hero__badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* Header */
    .navbar-middle .container {
        padding: 10px 15px;
    }

    .college-text h1 {
        font-size: 1rem;
    }

    /* Statistics */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

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

    /* Cards */
    .news-card,
    .elibrary-card {
        padding: 20px 15px;
    }

    /* Section Padding */
    section {
        padding: 40px 10px;
    }

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

    /* Footer */
    .footer-content {
        padding: 30px 15px;
    }
}

/* ===========================================
   MOBILE RESPONSIVE - 360px (Minimum)
   =========================================== */
@media (max-width: 360px) {
    .hero__title {
        font-size: 1.3rem;
    }

    .hero__subtitle {
        font-size: 0.9rem;
    }

    .college-text h1 {
        font-size: 0.95rem;
    }

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

    .elibrary-card h3 {
        font-size: 0.95rem;
    }

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

html[dir="ltr"] .fa-arrow-left {
    transform: rotate(180deg);
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */

/* Initial state - hidden */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Revealed state */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Slide from right animation */
.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from left animation */
.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up animation */
.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children animation */
.scroll-reveal-stagger .stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scroll-reveal-stagger.revealed .stagger-item:nth-child(1) {
    transition-delay: 0.05s;
}

.scroll-reveal-stagger.revealed .stagger-item:nth-child(2) {
    transition-delay: 0.1s;
}

.scroll-reveal-stagger.revealed .stagger-item:nth-child(3) {
    transition-delay: 0.15s;
}

.scroll-reveal-stagger.revealed .stagger-item:nth-child(4) {
    transition-delay: 0.2s;
}

.scroll-reveal-stagger.revealed .stagger-item:nth-child(5) {
    transition-delay: 0.25s;
}

.scroll-reveal-stagger.revealed .stagger-item:nth-child(6) {
    transition-delay: 0.3s;
}

.scroll-reveal-stagger.revealed .stagger-item:nth-child(7) {
    transition-delay: 0.35s;
}

.scroll-reveal-stagger.revealed .stagger-item:nth-child(8) {
    transition-delay: 0.4s;
}

.scroll-reveal-stagger.revealed .stagger-item {
    opacity: 1;
    transform: translateY(0);
}



/*style college_elements */


/* ===========================================
   E-LIBRARY CARDS SECTION - المكتبة الإلكترونية
   =========================================== */
.elibrary-cards-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.elibrary-cards-container {
    max-width: 1200px;
    margin: 0 auto;
}

.elibrary-cards-container .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.elibrary-cards-container .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--college-primary);
    margin-bottom: 15px;
}

.elibrary-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.elibrary-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.elibrary-card.NewCard
{
    display: inline-grid;
    align-items: center;
    justify-content: center;
}



.elibrary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--college-gold) 0%, var(--college-gold-hover) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.elibrary-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 33, 71, 0.15);
}

.elibrary-card i {
    font-size: 2.5rem;
    color: var(--college-gold);
    margin-bottom: 20px;
    display: block;
    transition: all 0.4s ease;
}

.elibrary-card:hover i {
    color: var(--college-primary);
    transform: scale(1.15) rotateY(10deg);
}

.elibrary-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--college-primary);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.elibrary-card:hover h3 {
    color: var(--college-gold-hover);
}

.elibrary-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .elibrary-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .elibrary-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .elibrary-card {
        padding: 25px 20px;
    }

    .elibrary-card i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .elibrary-cards-section {
        padding: 60px 15px;
    }

    .elibrary-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .elibrary-cards-container .section-title {
        font-size: 1.8rem;
    }
}



     /* =========================================================
    Horizontal Cards Layout
    ========================================================= */
 .elibrary-cards-horizontal {
     display: flex;
     flex-direction: column;
     gap: 16px;
     width: 100%;
 }

.elibrary-card-horizontal {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.elibrary-card-horizontal::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--main-color, #0a6e3a);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.elibrary-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--main-color, #0a6e3a);
}

.elibrary-card-horizontal:hover::before {
    transform: scaleY(1);
}

.horizontal-card-image-wrap-small {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.horizontal-card-image-wrap-large {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.horizontal-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.horizontal-card-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 110, 58, 0.08);
    border-radius: 50%;
    color: var(--main-color, #0a6e3a);
    font-size: 26px;
}

.horizontal-card-content {
    flex: 1;
    min-width: 0;
}

.horizontal-card-content h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.horizontal-card-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.horizontal-card-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    color: var(--main-color, #0a6e3a);
    font-size: 14px;
    transition: all 0.3s ease;
}

.elibrary-card-horizontal:hover .horizontal-card-arrow {
    background: var(--main-color, #0a6e3a);
    color: #fff;
    transform: translateX(-4px);
}

[dir="ltr"] .elibrary-card-horizontal:hover .horizontal-card-arrow {
    transform: translateX(4px);
}

[dir="ltr"] .horizontal-card-arrow i {
    transform: rotate(180deg);
}

@media (max-width: 600px) {
    .elibrary-card-horizontal {
        padding: 12px 14px;
        gap: 12px;
    }

    .horizontal-card-image-wrap-small,
    .horizontal-card-image-wrap-large {
        width: 60px;
        height: 60px;
    }

    .horizontal-card-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .horizontal-card-content h3 {
        font-size: 16px;
    }

    .horizontal-card-content p {
        font-size: 13px;
    }

    .horizontal-card-arrow {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}


/* =========================================================
   Accordion Layout
   ========================================================= */
.elibrary-cards-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.accordion-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.accordion-item:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-color: rgba(10, 110, 58, 0.3);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    text-align: start;
    cursor: pointer;
    transition: background 0.3s ease;
    color: inherit;
}

.accordion-header:hover {
    background: rgba(10, 110, 58, 0.04);
}

.accordion-header:not(.collapsed) {
    background: rgba(10, 110, 58, 0.06);
    border-bottom: 1px solid rgba(10, 110, 58, 0.15);
}

.accordion-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.accordion-card-image-wrap-small {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.accordion-card-image-wrap-large {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.accordion-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.accordion-card-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 110, 58, 0.08);
    border-radius: 50%;
    color: var(--main-color, #0a6e3a);
    font-size: 18px;
}

.accordion-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
}

.accordion-toggle-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    color: var(--main-color, #0a6e3a);
    font-size: 13px;
    transition: all 0.3s ease;
}

.accordion-header:not(.collapsed) .accordion-toggle-icon {
    background: var(--main-color, #0a6e3a);
    color: #fff;
    transform: rotate(180deg);
}

.accordion-body {
    padding: 16px 20px 20px;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

.accordion-body p {
    margin: 0 0 14px;
}

.accordion-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--main-color, #0a6e3a);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.accordion-link:hover {
    background: #084d28;
    color: #fff;
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(10, 110, 58, 0.3);
}

[dir="ltr"] .accordion-link:hover {
    transform: translateX(4px);
}

[dir="ltr"] .accordion-link i {
    transform: rotate(180deg);
}

@media (max-width: 600px) {
    .accordion-header {
        padding: 12px 14px;
        gap: 10px;
    }

    .accordion-card-image-wrap-small {
        width: 38px;
        height: 38px;
    }

    .accordion-card-image-wrap-large {
        width: 52px;
        height: 52px;
    }

    .accordion-card-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .accordion-header h3 {
        font-size: 15px;
    }

    .accordion-toggle-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .accordion-body {
        padding: 14px 16px 16px;
        font-size: 14px;
    }
}

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