:root {
    --primary-color: #1e3a8a;
    --secondary-color: #e63946;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Header Styles */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.logo-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.left-header {
    display: flex;
    align-items: center;
}

.school-logo img {
    max-width: 100px;
    height: auto;
}

.school-title h1 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-left: 15px;
    color: var(--primary-color);
}

.university-logo img {
    max-width: 150px;
    height: auto;
}

/* Navigation */
.main-nav .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav .nav-list li {
    position: relative;
}

.main-nav .nav-list li a {
    color: var(--dark-bg);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav .nav-list li a:hover {
    color: var(--secondary-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border-radius: 4px;
}

.dropdown-content a {
    padding: 12px 15px;
    display: block;
    color: var(--dark-bg);
    font-size: 0.9rem;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 30px;
}

/* News Ticker */
.news-ticker {
    background-color: var(--light-bg);
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
}

.ticker-title {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 15px;
}

.ticker-container {
    overflow: hidden;
    width: 100%;
}

.ticker-items {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 20s linear infinite;
}

.ticker-item {
    margin-right: 40px;
    font-size: 0.9rem;
}

.new-tag {
    background-color: var(--secondary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-right: 5px;
}

@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/*new section for upcoming events ticker*/
.upcoming-events {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    padding: 14px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.upcoming-events .ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.upcoming-events .ticker-title {
    background-color: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.upcoming-events .ticker-container {
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.upcoming-events .ticker-items {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 20s linear infinite;
}

.upcoming-events .ticker-item {
    margin-right: 50px;
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 600;
}

.upcoming-events .ticker-item span {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: #d1fae5;
    padding: 2px 8px;
    border-radius: 6px;
    margin-right: 10px;
    font-size: 0.8rem;
}


/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('./images/Ai.jpeg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 100px 0;
    text-align: left;
}

.hero-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-left {
    width: 65%;
    max-width: 65%;
    text-align: left;
}

.hero-right {
    width: 33%;
    max-width: 33%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    align-self: flex-start;
}

.scrolling-content {
    height: 400px;
    overflow: hidden;
    position: relative;
    padding: 10px;
}

.scrolling-list {
    animation: verticalScroll 60s linear infinite;
    will-change: transform;
}

.scroll-item {
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 5px;
}

.scroll-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: rgb(80, 199, 247);
    text-align: left;
    display: block;
    padding-left: 1.6rem;
    text-indent: -1.6rem;
}

@keyframes verticalScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: left;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.alternate-bg {
    background-color: var(--light-bg);
}

.colored-bg {
    background-color: #e6f2ff;
}

.two-column {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.column {
    flex: 1;
    min-width: 300px;
}

.column img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Cards */
.cards-container {
    display: flex;
    gap: 10px;
    justify-items: center;
}

.card {
    width: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

/* Admission Section */
.admission-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 60px 0 0;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 10px;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
}

/* Image Gallery */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.image-item {
    position: relative;
    width: 300px;
    height: 300px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease;
    flex: 0 0 auto;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.3s;
}

.image-item:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.image-item:hover .image-overlay {
    opacity: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    border-radius: 10px;
}

.modal-caption {
    color: #fff;
    text-align: center;
    margin-top: 10px;
    font-size: 1.1rem;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.nav-btn {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    transform: translateY(-50%);
}

#prevBtn {
    left: 10px;
}

#nextBtn {
    right: 10px;
}

.event-subtitle {
    font-size: 1rem;
    color: #666;
    margin-top: -10px;
    margin-bottom: 10px;
    font-style: italic;
}

/* =====================
   RESPONSIVE BREAKPOINTS
   ===================== */

/* Large tablets / small desktops */
@media (max-width: 1200px) {
    .cards-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .card {
        width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
    }

    .image-item {
        width: calc(33.333% - 14px);
        height: 250px;
        flex: 0 0 calc(33.333% - 14px);
    }
}

/* Tablets */
@media (max-width: 992px) {
    .two-column {
        flex-direction: column;
    }

    .section-title {
        text-align: center;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-left,
    .hero-right {
        width: 100%;
        max-width: 100%;
    }

    .hero-right {
        margin-top: 24px;
    }

    .scrolling-content {
        height: 320px;
    }

    .cards-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .card {
        width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
    }

    .image-item {
        width: calc(50% - 10px);
        height: 220px;
        flex: 0 0 calc(50% - 10px);
    }

    .column {
        min-width: 100%;
    }

    .footer-title {
        margin-top: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header */
    .main-header {
        position: relative;
    }

    .logo-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .left-header {
        flex-wrap: wrap;
    }

    .school-title h1 {
        font-size: 1rem;
        margin-left: 10px;
    }

    .university-logo {
        margin-top: 15px;
    }

    .menu-toggle {
        display: block !important;
    }

    /* Nav */
    .main-nav .nav-list {
        flex-direction: column;
        display: none;
        width: 100%;
    }

    .main-nav .nav-list.active {
        display: flex;
    }

    .main-nav .nav-list li a {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 20px;
        min-width: unset;
        width: 100%;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    /* Ticker */
    .ticker-title {
        font-size: 0.8rem;
        padding: 5px 10px;
        white-space: nowrap;
    }

    .ticker-item {
        font-size: 0.8rem;
    }

    /* Hero */
    .hero-section {
        padding: 50px 0;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .scrolling-content {
        height: 260px;
    }

    .scroll-item {
        margin-bottom: 20px;
        padding: 8px;
    }

    .scroll-item h4 {
        font-size: 0.95rem;
        padding-left: 1.2rem;
        text-indent: -1.2rem;
    }

    .scroll-item li {
        font-size: 0.85rem;
    }

    /* Cards */
    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        flex: unset;
    }

    .card-img {
        width: 100%;
        max-width: 100%;
    }

    .card-img img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* Gallery */
    .image-gallery {
        gap: 12px;
    }

    .image-item {
        width: calc(50% - 6px);
        height: 160px;
        flex: 0 0 calc(50% - 6px);
    }

    /* Buttons */
    .btn {
        padding: 9px 18px;
        font-size: 0.9rem;
    }

    .admission-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Modal */
    .modal-content {
        max-width: 95%;
    }

    .close {
        right: 15px;
        font-size: 28px;
    }

    /* Footer */
    footer {
        padding: 40px 0 0;
    }

    .social-links {
        flex-wrap: wrap;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .school-logo img {
        max-width: 70px;
    }

    .school-title h1 {
        font-size: 0.9rem;
    }

    .university-logo img {
        max-width: 110px;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .scrolling-content {
        height: 220px;
    }

    .section {
        padding: 40px 0;
    }

    .image-item {
        width: 100%;
        height: 200px;
        flex: 0 0 100%;
    }

    .card {
        width: 100%;
    }

    .ticker-title {
        display: none; /* hide label on very small screens to save space */
    }

    .modal-content {
        max-width: 98%;
    }

    .nav-btn {
        font-size: 1.4rem;
    }
}