﻿@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700&family=Forum&display=swap");

:root {
    /* Base colors */
    --primary-color: #8B4513; /* Brown/rust from logo */
    --secondary: #f2f2f2; /* Light gray */
    /* More sophisticated palette */
    --primary-light: #9B5523; /* Slightly lighter brown */
    --primary-dark: #7A3B10; /* Darker brown */
    --accent: #A44A2A; /* More muted orange */
    --accent-light: #B45535; /* Slightly lighter but still muted */
    --accent-dark: #943F21; /* Deeper, more sophisticated */
    /* Supporting colors - all more muted */
    --success: #4A6741; /* Muted green */
    --warning: #B67C45; /* Muted orange */
    --info: #466D87; /* Muted blue */
    /* Neutral tones */
    --gray-100: #F8F9FA; /* Lightest gray */
    --gray-200: #E9ECEF; /* Light gray */
    --gray-300: #DEE2E6; /* Medium light gray */
    --gray-600: #6C757D; /* Medium gray for text */
    --white: #ffffff;
    --black: #2D2D2D;
    --box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.1);
}

* {
    font-family: 'DM Sans', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: all .2s linear;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top: 9rem;
    scroll-behavior: smooth;
}

    html::-webkit-scrollbar {
        width: 1rem;
    }

    html::-webkit-scrollbar-track {
        background: transparent;
    }

    html::-webkit-scrollbar-thumb {
        background: var(--primary-color);
    }

section {
    padding: 5rem 7%;
}

.heading {
    position: relative;
    color: var(--accent-dark); /* Using deeper, less bright orange */
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4rem;
    text-align: center;
    margin-bottom: 3rem;
}

    .heading::after {
        content: url('../images/separator.svg');
        display: block;
        width: 10rem;
        margin-inline: auto;
        margin-top: -1rem;
    }

.btn {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    max-width: max-content;
    border: 1px solid var(--accent-dark);
    background: var(--accent-dark);
    padding: 1.2rem 4.5rem;
    overflow: hidden;
    z-index: 1;
    border-radius: .5rem;
    transition: all 0.3s ease;
    opacity: 0.95; /* Slightly reduce intensity */
}

    .btn::before {
        content: "";
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 200%;
        height: 200%;
        border-radius: 50%;
        background-color: var(--accent);
        transition: 500ms ease;
        z-index: -1;
    }

    .btn .text {
        transition: 250ms ease;
    }

    .btn .text-2 {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        min-width: max-content;
        color: var(--secondary);
    }

    .btn:is(:hover, :focus-visible)::before {
        bottom: -50%;
    }

    .btn:is(:hover, :focus-visible) .text-1 {
        transform: translateY(-4rem);
    }

    .btn:is(:hover, :focus-visible) .text-2 {
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .btn:hover {
        background: var(--accent);
        border-color: var(--accent);
        opacity: 1;
    }

    /* Primary buttons - for main calls to action */
    .btn.btn-primary {
        background: var(--accent-dark);
        border-color: var(--accent-dark);
        color: var(--white);
    }

    /* Secondary buttons - for less prominent actions */
    .btn.btn-secondary {
        background: transparent;
        border: 1px solid var(--accent-dark);
        color: var(--accent-dark);
    }

        .btn.btn-secondary:hover {
            background: var(--gray-100);
            color: var(--accent-dark);
        }

    /* Text buttons - for minimal visual impact */
    .btn.btn-text {
        background: transparent;
        border: none;
        color: var(--accent-dark);
        padding: 1rem 2rem;
    }

        .btn.btn-text:hover {
            background: var(--gray-100);
        }

/* Update specific section buttons */
.home .content .btn {
    background: var(--accent-dark); /* Keep primary style for hero section */
}

.courses .box .btn,
.programs .box .btn {
    background: transparent; /* Secondary style for cards */
    border: 1px solid var(--accent-dark);
    color: var(--accent-dark);
}

.research .view-more {
    background: transparent; /* Secondary style for view more */
    border: 1px solid var(--accent-dark);
    color: var(--accent-dark);
}

.elibrary .buttons .btn:nth-child(2) { /* Second button in e-library */
    background: transparent;
    border: 1px solid var(--accent-dark);
    color: var(--accent-dark);
}

.contact .btn {
    background: var(--accent-dark); /* Keep primary style for form submission */
}

.shine {
    position: relative;
}

    .shine::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        background-image: linear-gradient(to right, transparent 0%, #fff6 100%);
        transform: skewX(-0.08turn) translateX(-180%);
    }

    .shine:is(:hover, :focus-within)::after {
        transform: skewX(-0.08turn) translateX(275%);
        transition: 1000ms ease;
    }

/* header */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 9%;
    border-bottom: 1px solid var(--gray-200);
}

    .header .logo {
        font-size: 2.5rem;
        font-weight: bolder;
        color: var(--primary-color);
    }

        .header .logo img {
            color: var(--primary-color);
            padding-right: .5rem;
            width: 6rem;
        }

    .header .navbar a {
        font-size: 1.7rem;
        color: var(--black);
        margin: 0 1rem;
        padding-block: 1rem;
    }

        .header .navbar a:hover {
            color: var(--accent);
        }

    .header .navbar .hover-underline {
        position: relative;
        max-width: max-content;
    }

        .header .navbar .hover-underline::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: .5rem;
            border-block: .1rem solid var(--accent);
            transform: scaleX(0.2);
            opacity: 0;
            transition: 500ms ease;
        }

        .header .navbar .hover-underline:is(:hover, :focus-visible)::after {
            transform: scaleX(1);
            opacity: 1;
        }

    .header .icons div {
        font-size: 2.5rem;
        margin-left: 1.7rem;
        color: var(--black);
        cursor: pointer;
    }

        .header .icons div:hover {
            color: var(--accent);
        }

#menu-btn {
    display: none;
}

.header .login-form {
    position: absolute;
    top: 115%;
    right: -105%;
    background: var(--white);
    box-shadow: .5rem;
    width: 35rem;
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

    .header .login-form.active {
        right: 2rem;
        transition: .4s linear;
    }

    .header .login-form h3 {
        font-size: 2.2rem;
        color: var(--black);
        text-align: center;
        margin-bottom: .7rem;
    }

    .header .login-form .box {
        font-size: 1.5rem;
        margin: .7rem 0;
        border: .1rem solid rgba(0, 0, 0, 0.1);
        padding: 1rem 1.2rem;
        color: var(--black);
        text-transform: none;
        width: 100%;
    }

    .header .login-form .remember {
        display: flex;
        align-items: center;
        gap: .5rem;
        margin: .7rem 0;
    }

        .header .login-form .remember label {
            font-size: 1.5rem;
            color: var(--black);
            cursor: pointer;
        }

/* home */

.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center the content horizontally */
    padding: 0 2rem;
    /* Add some horizontal padding for smaller screens */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/campus.jpeg) no-repeat center/cover;
}

    .home .content {
        max-width: 50rem;
        text-align: center;
        /* Center-align text for better focus */
        color: var(--white);
    }

        .home .content h3 {
            font-size: 4rem;
            /* Adjust for better scalability */
            font-weight: bold;
            color: var(--white);
            line-height: 1.2;
            text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
            /* Add subtle shadow for readability */
        }

        .home .content p {
            font-size: 1.6rem;
            line-height: 1.8;
            color: var(--white);
            padding: 1rem 0;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
            /* Improve readability */
        }

        .home .content a {
            display: inline-block;
            margin-top: 1rem;
            padding: 0.8rem 2rem;
            font-size: 1.5rem;
            color: var(--white);
            background-color: var(--primary-color);
            /* Add a primary color for the button */
            border-radius: 5px;
            text-decoration: none;
            transition: all 0.3s ease;
        }

            .home .content a:hover {
                background-color: var(--secondary-color);
                /* Add a hover effect for the button */
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
                /* Subtle shadow for hover */
            }

/* ends */

/* about */

.about .container {
    display: flex;
    flex-wrap: wrap;
    background: var(--gray-100);
}

    .about .container .about-image {
        position: relative;
        flex: 1 1 40rem;
    }

        .about .container .about-image img {
            width: 80%;
        }

        .about .container .about-image .about-img {
            position: absolute;
            bottom: -10rem;
            right: -1rem;
            width: 25rem;
            padding-block: 5rem;
        }

    .about .container .about-content {
        flex: 1 1 50rem;
        padding-left: 6rem;
        padding-top: 8rem;
    }

        .about .container .about-content h3 {
            font-size: 3rem;
            color: var(--primary-color);
        }

        .about .container .about-content p {
            font-size: 1.6rem;
            color: #444;
            padding: 1rem 0;
            line-height: 1.8;
        }

/* ends */

/* courses */

.courses .box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
}

    .courses .box-container .box {
        flex: 0 1 35rem;
        min-width: 30rem;
        max-width: 40rem;
        margin: 1rem 0;
        background: var(--white);
        border-radius: 0.5rem;
        overflow: hidden;
        box-shadow: var(--box-shadow);
        transition: transform 0.3s ease;
    }

        .courses .box-container .box:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .courses .box-container .box .image {
            height: 25rem;
            overflow: hidden;
            position: relative;
        }

            .courses .box-container .box .image img {
                height: 100%;
                width: 100%;
                object-fit: cover;
            }

            .courses .box-container .box .image .course-code {
                position: absolute;
                top: 1rem;
                right: 1rem;
                background: rgba(255, 255, 255, 0.9);
                padding: 0.5rem 1rem;
                font-size: 1.4rem;
                font-weight: bold;
                color: var(--primary-color);
                border-radius: 0.3rem;
            }

        .courses .box-container .box .content {
            padding: 2rem;
            border: 0.1rem solid var(--primary-color);
        }

            .courses .box-container .box .content .price-tag {
                margin-bottom: 1.5rem;
            }

                .courses .box-container .box .content .price-tag .currency {
                    font-size: 1.6rem;
                    color: var(--success);
                }

                .courses .box-container .box .content .price-tag .amount {
                    font-size: 2rem;
                    font-weight: bold;
                    color: var(--black);
                }

            .courses .box-container .box .content .course-name {
                font-size: 2rem;
                color: var(--black);
                margin-bottom: 1rem;
            }

            .courses .box-container .box .content .description {
                font-size: 1.4rem;
                color: #666;
                line-height: 1.8;
                margin-bottom: 1.5rem;
            }

            .courses .box-container .box .content .course-details {
                display: flex;
                justify-content: space-between;
                padding: 1rem 0;
                border-top: 0.1rem solid #eee;
                border-bottom: 0.1rem solid #eee;
                margin-bottom: 1.5rem;
            }

                .courses .box-container .box .content .course-details span {
                    font-size: 1.4rem;
                    color: #666;
                }

                    .courses .box-container .box .content .course-details span i {
                        color: var(--primary-color);
                        margin-right: 0.5rem;
                    }

        .courses .box-container .box .image.placeholder-image {
            background: var(--secondary);
            display: flex;
            justify-content: center;
            align-items: center;
            height: 20rem; /* Reduced height from 25rem */
        }

        .courses .box-container .box .image .placeholder-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            color: var(--primary-color);
        }

            .courses .box-container .box .image .placeholder-content i {
                font-size: 4rem;
                opacity: 0.8;
            }

            .courses .box-container .box .image .placeholder-content .course-title {
                font-size: 1.8rem;
                font-weight: bold;
                text-transform: uppercase;
                letter-spacing: 0.1rem;
            }

/* ends */

/* teacher */

.teacher .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2rem;
}

    .teacher .box-container .box {
        background: var(--white);
        border-radius: .5rem;
        position: relative;
        overflow: hidden;
        text-align: center;
        border: 1px solid #eee;
    }

        .teacher .box-container .box:hover {
            transform: none;
            box-shadow: none;
        }

        .teacher .box-container .box .image {
            position: relative;
            overflow: hidden;
        }

            .teacher .box-container .box .image img {
                background: var(--gray-100);
                width: 100%;
            }

        .teacher .box-container .box:hover .image .share {
            bottom: 0;
        }

        .teacher .box-container .box .image .share {
            position: absolute;
            bottom: -10rem;
            left: 0;
            right: 0;
            padding: 2rem;
        }

            .teacher .box-container .box .image .share a {
                height: 4rem;
                width: 4rem;
                line-height: 4rem;
                font-size: 2rem;
                margin: 0 1rem;
                color: var(--accent);
                background: var(--gray-100);
                border-radius: .5rem;
            }

                .teacher .box-container .box .image .share a:hover {
                    background: var(--accent);
                    color: var(--white);
                }

        .teacher .box-container .box .content {
            padding: 2rem;
            padding-top: 1rem;
            align-items: center;
        }

            .teacher .box-container .box .content h3 {
                font-size: 2rem;
                color: var(--black);
            }

            .teacher .box-container .box .content span {
                font-size: 1.5rem;
                line-height: 2;
                color: #777;
            }

/* ends */

/* events */
.events .events-slider {
    padding: 1rem;
    padding-bottom: 4rem;
}

.events .slide {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #eee;
    transition: none;
}

    .events .slide:hover {
        transform: none;
        box-shadow: none;
    }

    .events .slide .image {
        height: 25rem;
        width: 100%;
        overflow: hidden;
        position: relative;
    }

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

    .events .slide .placeholder-image {
        height: 25rem;
        background: var(--secondary);
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

        .events .slide .placeholder-image i {
            font-size: 5rem;
            color: var(--primary-color);
        }

    .events .slide .event-date {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: var(--accent);
        color: var(--white);
        padding: 1rem;
        border-radius: 0.5rem;
        text-align: center;
    }

        .events .slide .event-date .day {
            font-size: 2.5rem;
            font-weight: bold;
            display: block;
            line-height: 1;
        }

        .events .slide .event-date .month {
            font-size: 1.4rem;
            text-transform: uppercase;
        }

    .events .slide .content {
        padding: 2rem;
    }

        .events .slide .content h3 {
            font-size: 2.2rem;
            color: var(--black);
            margin-bottom: 1rem;
        }

        .events .slide .content p {
            font-size: 1.5rem;
            color: #666;
            line-height: 1.8;
            margin-bottom: 1.5rem;
        }

        .events .slide .content .event-meta {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

            .events .slide .content .event-meta span {
                font-size: 1.4rem;
                color: #666;
                display: flex;
                align-items: center;
                gap: 0.8rem;
            }

            .events .slide .content .event-meta i {
                color: var(--accent);
            }

/* research publications */
.research {
    margin-bottom: 4rem; /* Keep margin for spacing */
}

    .research .research-grid {
        display: flex; /* Use flexbox for the grid */
        flex-wrap: wrap; /* Allow cards to wrap to the next line */
        justify-content: center; /* Center the cards */
        gap: 1.5rem; /* Space between cards */
    }

    .research .research-card {
        background: var(--white);
        border-radius: 1.5rem;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        position: relative;
        padding: 1.5rem;
        width: 30rem; /* Increased width for larger cards */
        min-height: 350px; /* Set a minimum height for consistency */
        box-sizing: border-box; /* Include padding in width calculation */
    }

        .research .research-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
        }

        .research .research-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(93, 135, 255, 0.1); /* Light blue overlay */
            border-radius: 1.5rem;
            z-index: 0;
        }

    .research .research-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        z-index: 1; /* Ensure it appears above the overlay */
    }

    .research .research-date {
        text-align: center;
        color: var(--primary-color);
    }

        .research .research-date .month {
            font-size: 1.6rem;
            font-weight: 700;
            display: block;
        }

        .research .research-date .year {
            font-size: 1.2rem;
        }

    .research .research-category {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        background: var(--light-primary);
        border-radius: 1rem;
        color: var(--primary-color);
    }

Allowed
.research .research-category i {
    font-size: 1.4rem;
}

.research .research-category span {
    font-size: 1.2rem;
    font-weight: 600;
}

.research .research-content {
    padding: 1rem;
    z-index: 1; /* Ensure it appears above the overlay */
}

    .research .research-content h3 {
        font-size: 1.8rem;
        color: var(--black);
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .research .research-content p {
        font-size: 1.4rem;
        color: var(--gray-600);
        line-height: 1.6;
        margin-bottom: 1rem;
        display: -webkit-box; /* Use flexbox for the text */
        -webkit-box-orient: vertical; /* Set the orientation */
        -webkit-line-clamp: 4; /* Limit to 3 lines */
        overflow: hidden; /* Hide overflow */
        text-overflow: ellipsis; /* Add ellipsis for overflow text */
    }

.research .research-authors {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--gray-600);
}

    .research .research-authors i {
        font-size: 1.4rem;
        color: var(--primary-color);
    }

    .research .research-authors span {
        font-size: 1.2rem;
    }

.research .research-actions {
    margin-top: auto; /* Push actions to the bottom */
    display: flex;
    gap: 1rem;
}

.research .btn-download {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

    .research .btn-download:hover {
        background: var(--accent);
    }

    .research .btn-download i {
        font-size: 1.4rem;
    }

.research .view-more-container {
    text-align: center;
    margin-top: 2rem;
}

/* Remove old blog section styles */
.blog {
    /* Remove this entire block */
}

/* contact */

.contact .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

    .contact .row .image {
        flex: 1 1 40rem;
    }

        .contact .row .image img {
            width: 100%;
        }

    .contact .row form {
        flex: 1 1 40rem;
        background: var(--white);
        border-radius: 1rem;
        border: 1px solid var(--gray-300);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        padding: 2rem;
    }

        .contact .row form h3 {
            font-size: 2.5rem;
            color: #444;
            padding-bottom: 1rem;
        }

        .contact .row form .box {
            width: 100%;
            font-size: 1.6rem;
            padding: 1.2rem 1.4rem;
            border: 2px solid var(--gray-300);
            margin: .7rem 0;
        }

            .contact .row form .box:focus {
                border-color: var(--accent);
            }

        .contact .row form textarea {
            height: 15rem;
            resize: none;
        }

/* ends */

/* footer */

.footer {
    background: var(--gray-100);
    text-align: center;
}

    .footer .box-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
        gap: 2rem;
    }

        .footer .box-container .box h3 {
            font-size: 2.2rem;
            color: var(--primary-color);
            padding: 1rem 0;
        }

        .footer .box-container .box p {
            font-size: 1.5rem;
            color: var(--black);
            line-height: 2;
            padding: 1rem 0;
        }

        .footer .box-container .box .share {
            margin-top: 1rem;
        }

            .footer .box-container .box .share a {
                height: 4.5rem;
                width: 4.5rem;
                line-height: 4.5rem;
                border-radius: 10%;
                font-size: 1.7rem;
                border: .1rem solid var(--primary-color);
                color: var(--primary-color);
                margin-right: .3rem;
                text-align: center;
            }

                .footer .box-container .box .share a:hover {
                    background: var(--primary-color);
                    color: var(--white);
                }

        .footer .box-container .box .link {
            font-size: 1.7rem;
            line-height: 2;
            color: var(--black);
            padding: .5rem 0;
            display: block;
        }

            .footer .box-container .box .link:hover {
                color: var(--primary-color);
                text-decoration: underline;
            }

    .footer .credit {
        font-size: 2rem;
        margin-top: 3rem;
        padding-top: 3rem;
        text-align: center;
        color: var(--primary-color);
        border-top: .1rem solid var(--primary-color);
    }

        .footer .credit span {
            color: var(--primary-color);
        }

/* ends */

/* media queries */

@media (max-width:991px) {

    html {
        font-size: 55%;
    }

    .header {
        padding: 2rem 4rem;
    }

    section {
        padding: 3rem 2rem;
    }
}

@media (max-width:768px) {

    #menu-btn {
        display: inline-block;
    }

    .header .navbar {
        position: absolute;
        top: 110%;
        right: -110%;
        width: 30rem;
        box-shadow: var(--box-shadow);
        border-radius: .5rem;
        background: var(--white);
    }

        .header .navbar.active {
            right: 2rem;
            transition: .4s linear;
        }

        .header .navbar a {
            font-size: 2rem;
            margin: 1rem 2.5rem;
            display: block;
        }

    .home .content h3 {
        font-size: 3rem;
    }

    .about .container .about-content {
        padding-left: 0;
    }
}

@media (max-width:450px) {
    html {
        font-size: 50%;
    }
}

/* programs */
.programs .box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    padding: 2rem;
}

    .programs .box-container .box {
        flex: 0 1 35rem;
        min-width: 30rem;
        max-width: 40rem;
        background: var(--white);
        position: relative;
        border-radius: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        box-shadow: var(--box-shadow);
    }

        .programs .box-container .box:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .programs .box-container .box .side-accent {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 0.5rem;
            background: var(--accent);
        }

        .programs .box-container .box .content {
            padding: 2.5rem 2rem 2rem 3rem;
        }

        .programs .box-container .box .program-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2.5rem;
        }

        .programs .box-container .box .code {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--accent);
            letter-spacing: 0.1rem;
        }

        .programs .box-container .box .duration {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            color: #666;
            font-size: 1.4rem;
        }

            .programs .box-container .box .duration i {
                color: var(--primary-color);
            }

        .programs .box-container .box .program-main {
            text-align: left;
            margin-bottom: 2.5rem;
        }

        .programs .box-container .box .program-icon {
            font-size: 3.5rem;
            color: var(--primary-color);
            margin-bottom: 1.5rem;
            display: block;
        }

        .programs .box-container .box h3 {
            font-size: 2.2rem;
            color: var(--black);
            margin-bottom: 1.5rem;
            line-height: 1.3;
        }

        .programs .box-container .box p {
            font-size: 1.4rem;
            color: #666;
            line-height: 1.8;
            margin-bottom: 1rem;
        }

        .programs .box-container .box:hover .side-accent {
            background: var(--accent-light);
        }

        .programs .box-container .box .btn {
            width: 100%;
            text-align: center;
        }

/* Status indicators */
.badge-success {
    background: var(--success);
}

.badge-warning {
    background: var(--warning);
}

/* Text colors */
.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent);
}

.text-success {
    color: var(--success);
}

.text-gray {
    color: var(--gray-600);
}

/* E-Library Section */
.elibrary {
    background: var(--gray-100);
    padding: 5rem 2%; /* Reduced from 7% to 2% */
}

    .elibrary .container {
        display: flex;
        align-items: center;
        gap: 4rem;
        margin-top: 3rem;
        max-width: 1200px; /* Add max-width */
        margin-left: auto;
        margin-right: auto;
        padding: 0 2rem; /* Add some padding */
    }

    .elibrary .content {
        flex: 1.2;
    }

        .elibrary .content h3 {
            font-size: 2.8rem;
            color: var(--accent-dark);
            margin-bottom: 2rem;
        }

        .elibrary .content p {
            font-size: 1.6rem;
            color: var(--gray-600);
            margin-bottom: 2rem;
        }

        .elibrary .content ul {
            list-style: none;
            margin-bottom: 3rem;
        }

            .elibrary .content ul li {
                font-size: 1.6rem;
                color: var(--black);
                margin-bottom: 1.5rem;
                display: flex;
                align-items: center;
                gap: 1rem;
            }

                .elibrary .content ul li i {
                    color: var(--accent);
                    font-size: 2rem;
                }

    .elibrary .buttons {
        display: flex;
        gap: 2rem;
    }

    .elibrary .image {
        flex: 0.8;
        position: relative;
        max-width: 500px;
    }

        .elibrary .image img {
            width: 100%;
            height: 350px; /* Fixed height */
            border-radius: 1rem;
            object-fit: cover;
        }

        /* Make stats more visible */
        .elibrary .image .overlay {
            position: absolute;
            bottom: 2rem;
            left: 2rem;
            right: 2rem;
            display: flex;
            justify-content: space-around;
            background: rgba(255, 255, 255, 0.95); /* More opaque background */
            padding: 2rem;
            border-radius: 1rem;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .elibrary .image .stat {
            text-align: center;
        }

            .elibrary .image .stat .number {
                display: block;
                font-size: 2.4rem; /* Slightly larger */
                font-weight: 700;
                color: var(--accent-dark);
            }

            .elibrary .image .stat .label {
                font-size: 1.4rem;
                color: var(--gray-600);
                font-weight: 500; /* Slightly bolder */
            }

/* Media Queries */
@media (max-width: 991px) {
    .elibrary .container {
        flex-direction: column;
    }

    .elibrary .content {
        text-align: center;
    }

        .elibrary .content ul li {
            justify-content: center;
        }

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

@media (max-width: 450px) {
    .elibrary .buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Login button styles */
.header .icons .login-btn {
    background: transparent;
    border: 1px solid var(--accent-dark);
    color: var(--accent-dark);
    padding: 0.8rem 2rem;
    font-size: 1.6rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .header .icons .login-btn:hover {
        background: var(--gray-100);
    }

@media (max-width: 768px) {
    .header .icons .login-btn {
        font-size: 1.4rem;
        padding: 0.6rem 1.5rem;
    }
}

/* For all card descriptions */
.research .research-content p,
.programs .program-main p,
.courses .course-name,
.courses .description {
    font-size: 1.4rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box; /* Use flexbox for the text */
    -webkit-box-orient: vertical; /* Set the orientation */
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for overflow text */
}

.swiper-slide {
    width: 150px; /* Set a smaller fixed width for event cards */
    margin: 0 5px; /* Adjust margin for spacing */
}

.events .content {
    padding: 0.5rem; /* Reduce padding for smaller cards */
    font-size: 0.9rem; /* Optional: Adjust font size for a more compact look */
}
