/* =========================================
   BASIC CSS
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Roboto", Arial, sans-serif;
    color: #1E293B;
    background-color: #ffffff;
}


a {
    color: inherit;
    text-decoration: none;
}


button {
    font-family: inherit;
}


/* =========================================
   TOP BAR
========================================= */

.topbar {
    min-height: 42px;
    padding: 6px 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #ffffff;

    background: linear-gradient(
        105deg,
        #0F4C81 0%,
        #1F7A8C 45%,
        #F4B400 100%
    );
}


.topbar-contact {
    display: flex;
    align-items: center;
    gap: 10px;
}


.topbar-contact a {
    font-size: 15px;
    font-weight: 500;
}


.social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}


.social-links a {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.25);

    border-radius: 3px;
}


/* =========================================
   COLLEGE HEADER
========================================= */

.college-header {
    min-height: 165px;
    padding: 10px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background-color: #ffffff;

    border-top: 4px solid #F4B400;
}


.college-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}


.college-logo {
    width: 135px;
    height: 135px;

    object-fit: contain;
}


.college-title h1 {
    color: #0F2F5F;

    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1;

    text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.28);
}


.college-title h2 {
    margin-top: 7px;

    color: #D62828;

    font-family: "Noto Serif Devanagari", serif;
    font-size: clamp(26px, 2.8vw, 40px);
    line-height: 1.15;
}


.college-title p {
    margin-top: 5px;

    color: #111111;

    font-size: clamp(18px, 1.8vw, 28px);
    letter-spacing: 1px;
}


.header-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}


.header-logos img {
    width: 105px;
    height: 110px;

    object-fit: contain;
}


.header-logos .g20-logo {
    width: 220px;
}


/* =========================================
   NAVIGATION
========================================= */

.main-nav {
    width: 100%;

    position: sticky;
    top: 0;
    z-index: 1000;

    background-color: #0F4C81;

    border-bottom: 3px solid #38A3B8;
}


.mobile-menu-btn {
    display: none;

    width: 100%;

    padding: 14px 18px;

    align-items: center;
    justify-content: space-between;

    color: #ffffff;
    background-color: #0F4C81;

    border: none;

    font-size: 18px;
    font-weight: 600;

    cursor: pointer;
}


.main-menu {
    display: flex;
    justify-content: space-between;

    list-style: none;
}


.main-menu > li {
    position: relative;
    flex-grow: 1;
}


.main-menu > li > a,
.main-menu > li > button {
    width: 100%;
    min-height: 50px;

    padding: 8px 11px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    color: #F8FAFC;
    background-color: transparent;

    border: none;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;
}


.main-menu > li:hover > a,
.main-menu > li:hover > button,
.main-menu > li.active > a {
    color: #ffffff;
    background-color: #1F7A8C;
}


/* Dropdown */

.submenu {
    min-width: 225px;

    position: absolute;
    top: 100%;
    left: 0;

    display: none;

    list-style: none;

    background-color: #ffffff;

    border-top: 3px solid #f47a25;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}


.submenu-right {
    right: 0;
    left: auto;
}


.submenu a {
    display: block;

    padding: 12px 16px;

    color: #334155;

    border-bottom: 1px solid #eeeeee;

    font-size: 15px;
}


.submenu a:hover {
    color: #ffffff;
    background-color: #1F7A8C;
}


.has-submenu:hover > .submenu {
    display: block;
}


/* =========================================
   HERO SLIDER AND ANNOUNCEMENT
========================================= */

.hero-layout {
    min-height: 470px;

    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
}


/* Slider */

.slider {
    height: 470px;

    position: relative;

    overflow: hidden;

    background-color: #222222;
}


.slide {
    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}


.slide.active {
    opacity: 1;
    visibility: visible;
}


.slide img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.slide::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72),
        rgba(0, 0, 0, 0.08)
    );
}


.slide-caption {
    width: 70%;

    position: absolute;
    left: 8%;
    bottom: 17%;

    z-index: 2;

    color: #ffffff;
}


.slide-caption h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(34px, 4vw, 60px);
    line-height: 1.1;
}


.slide-caption p {
    margin-top: 10px;

    font-size: 21px;
}


.slider-button,
.button {
    display: inline-block;

    margin-top: 20px;
    padding: 12px 20px;

    color: #ffffff;
    background-color: #E63946;

    font-size: 14px;
    font-weight: 700;

    transition: 0.3s;
}


.slider-button:hover,
.button:hover {
    background-color: #0F4C81;
}


/* Slider Arrows */

.slider-arrow {
    width: 44px;
    height: 60px;

    position: absolute;
    top: 50%;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.45);

    border: none;

    font-size: 20px;

    transform: translateY(-50%);

    cursor: pointer;
}


.previous-slide {
    left: 10px;
}


.next-slide {
    right: 10px;
}


/* Slider Dots */

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    z-index: 5;

    display: flex;
    gap: 8px;

    transform: translateX(-50%);
}


.slider-dots button {
    width: 12px;
    height: 12px;

    padding: 0;

    background-color: rgba(255, 255, 255, 0.55);

    border: 2px solid #ffffff;
    border-radius: 50%;

    cursor: pointer;
}


.slider-dots button.active {
    width: 30px;

    background-color: #f47a25;

    border-radius: 8px;
}


/* Announcement */

.announcement {
    background-color: #EEF6FF;

    border-left: 1px solid #dddddd;
}


.announcement h3 {
    padding: 17px;

    color: #0F2F5F;

    text-align: center;

    font-family: "Playfair Display", Georgia, serif;
    font-size: 26px;

    border-bottom: 1px solid #dddddd;
}


.announcement-scroll {
    height: 410px;

    overflow: hidden;

    padding: 5px 17px;
}


.announcement-scroll a {
    display: block;

    padding: 14px 5px;

    color: #334155;

    border-bottom: 1px dashed #aaaaaa;

    font-size: 14px;
    line-height: 1.5;
}


.announcement-scroll span {
    margin-right: 5px;
    padding: 3px 7px;

    color: #ffffff;
    background-color: #E63946;

    border-radius: 3px;
}


/* =========================================
   LATEST NEWS
========================================= */

.latest-news {
    height: 52px;

    display: flex;

    color: #ffffff;
    background-color: #0F4C81;
}


.latest-label {
    width: 120px;

    padding: 0 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #E63946;

    font-size: 16px;
    font-weight: 700;
}


.ticker {
    flex-grow: 1;

    display: flex;
    align-items: center;

    overflow: hidden;
}


.ticker div {
    white-space: nowrap;

    animation: newsTicker 22s linear infinite;
}


@keyframes newsTicker {

    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }

}


/* =========================================
   QUICK LINKS
========================================= */

.quick-links {
    padding: 14px 4%;

    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;

    background-color: #F8FAFC;
}


.quick-links a {
    min-height: 90px;

    padding: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background-color: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 4px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);

    text-align: center;

    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 600;

    transition: 0.3s;
}


.quick-links a:hover {
    color: #ffffff;
    background-color: #0F4C81;

    transform: translateY(-3px);
}


.quick-links i {
    color: #F4B400;

    font-size: 30px;
}


/* =========================================
   COMMON SECTION
========================================= */

.section {
    padding: 60px 6%;
}


.section-title {
    margin-bottom: 38px;

    color: #0F2F5F;

    text-align: center;

    font-family: "Playfair Display", Georgia, serif;
    font-size: 36px;
}


.section-title::after {
    content: "";

    width: 150px;
    height: 2px;

    display: block;

    margin: 11px auto 0;

    background-color: #E63946;
}


/* =========================================
   WELCOME SECTION
========================================= */

.welcome-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 45px;
    align-items: center;
}


.welcome-grid h3 {
    margin: 17px 0 9px;

    color: #0F2F5F;

    font-family: "Playfair Display", Georgia, serif;
    font-size: 25px;
}


.welcome-grid p {
    color: #333333;

    font-size: 15px;
    line-height: 1.8;
}


.welcome-grid img {
    width: 100%;
    max-height: 360px;

    object-fit: cover;

    border-radius: 14px;

    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}


/* =========================================
   MESSAGE SECTION
========================================= */

.message-section {
    padding: 55px 6%;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.58),
            rgba(0, 0, 0, 0.58)
        ),
        url("images/campus.jpg") center / cover;
}


.message-card {
    padding: 23px;

    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 19px;

    background-color: rgba(255, 255, 255, 0.95);

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}


.message-card img {
    width: 110px;
    height: 110px;

    object-fit: cover;

    border-radius: 50%;
}


.message-card h3 {
    color: #0F2F5F;

    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px;
}


.message-card h4 {
    margin: 6px 0 12px;

    color: #E63946;
}


.message-card p {
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================
   ACADEMIC SECTION
========================================= */

.academic-section {
    background-color: #F8FAFC;

    border-top: 8px solid #E63946;
}


.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}


.feature-grid article {
    min-height: 195px;

    padding: 29px 21px;

    background-color: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 5px;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);

    text-align: center;

    transition: 0.3s;
}


.feature-grid article:hover {
    color: #ffffff;
    background-color: #2C7A8A;

    transform: translateY(-5px);
}


.feature-grid i {
    color: #F4B400;

    font-size: 38px;
}


.feature-grid h3 {
    margin: 13px 0;

    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
}


.feature-grid p {
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================
   IMPORTANT LINKS
========================================= */

.important-links {
    padding: 48px 6%;

    display: grid;
    grid-template-columns: 1fr 0.45fr 1fr;
    gap: 19px;

    background-color: #ffffff;
}


.links-card {
    padding: 23px;

    background-color: #ffffff;

    border: 1px solid #dddddd;
    border-bottom: 3px solid #F4B400;

    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.13);
}


.links-card a {
    display: block;

    padding: 6px 0;

    font-family: Georgia, serif;
}


.links-card a::before {
    content: "☑ ";

    color: #6f7c85;
}


.links-card a:hover {
    color: #E63946;
}


.links-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    font-size: 20px;
}


.links-logo i {
    color: #1F7A8C;

    font-size: 72px;
}


/* =========================================
   EVENTS SECTION
========================================= */

.events-section {
    background-color: #F8FAFC;

    border-top: 8px solid #E63946;
}


.event-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}


.event-card {
    display: grid;
    grid-template-columns: 170px 1fr;

    background-color: #ffffff;

    border: 1px solid #cccccc;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
}


.event-card img {
    width: 170px;
    height: 120px;

    object-fit: cover;
}


.event-card div {
    padding: 20px;
}


.event-card h3 {
    font-size: 18px;
}


.event-card p {
    margin-top: 11px;

    color: #E63946;

    font-size: 13px;
}


/* =========================================
   PHOTO GALLERY
========================================= */

.gallery-section {
    padding: 38px 5%;

    color: #ffffff;
    background-color: #0B2545;
}


.gallery-section h2 {
    margin-bottom: 22px;

    text-align: center;

    font-family: "Playfair Display", Georgia, serif;
    font-size: 30px;
}


.gallery-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 13px;
}


.gallery-row img {
    width: 100%;
    height: 150px;

    object-fit: cover;

    border: 3px solid rgba(255, 255, 255, 0.16);

    transition: 0.3s;
}


.gallery-row img:hover {
    transform: scale(1.04);
}


/* =========================================
   FOOTER
========================================= */

.footer-top {
    padding: 19px 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #ffffff;
    background-color: #1565C0;

    border-radius: 28px 28px 0 0;
}


.footer-search {
    display: flex;
}


.footer-search input {
    width: 270px;

    padding: 10px 13px;

    border: none;
}


.footer-search button {
    width: 40px;

    color: #ffffff;
    background-color: #F4B400;

    border: none;
}


.footer-top p {
    font-weight: 700;
    font-style: italic;

    text-align: right;
}


.footer-grid {
    padding: 42px 6%;

    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 32px;

    color: #E2E8F0;
    background-color: #0A2342;
}


.footer-grid h3 {
    margin-bottom: 15px;

    color: #ffffff;
}


.footer-grid p,
.footer-grid a {
    display: block;

    margin: 8px 0;

    font-size: 13px;
    line-height: 1.6;
}


.footer-grid a:hover {
    color: #F4B400;
}


.copyright {
    padding: 14px;

    color: #CBD5E1;
    background-color: #071A2F;

    text-align: center;

    font-size: 13px;
}


/* =========================================
   BACK TO TOP
========================================= */

.back-to-top {
    width: 40px;
    height: 40px;

    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1100;

    display: none;

    color: #ffffff;
    background-color: #E63946;

    border: none;

    cursor: pointer;
}


/* =========================================
   LAPTOP RESPONSIVE
========================================= */

@media screen and (max-width: 1200px) {

    .header-logos img {
        width: 82px;
        height: 90px;
    }


    .header-logos .g20-logo {
        width: 165px;
    }


    .main-menu > li > a,
    .main-menu > li > button {
        padding: 7px;
        font-size: 14px;
    }


    .quick-links {
        grid-template-columns: repeat(4, 1fr);
    }

}


/* =========================================
   TABLET RESPONSIVE
========================================= */

@media screen and (max-width: 850px) {

    .topbar {
        flex-direction: column;
        gap: 7px;
    }


    .college-header {
        flex-direction: column;

        text-align: center;
    }


    .college-brand {
        flex-direction: column;
    }


    .header-logos {
        margin-top: 14px;

        flex-wrap: wrap;
        justify-content: center;
    }


    .main-nav {
        position: relative;
    }


    .mobile-menu-btn {
        display: flex;
    }


    .main-menu {
        display: none;
        flex-direction: column;
    }


    .main-menu.open {
        display: flex;
    }


    .main-menu > li {
        width: 100%;
    }


    .main-menu > li > a,
    .main-menu > li > button {
        justify-content: space-between;

        padding: 13px 18px;

        font-family: Arial, sans-serif;
        font-size: 16px;

        text-align: left;
    }


    .submenu,
    .submenu-right {
        min-width: 100%;

        position: static;

        box-shadow: none;

        border-top: none;
    }


    .has-submenu:hover > .submenu {
        display: none;
    }


    .has-submenu.open > .submenu {
        display: block;
    }


    .hero-layout {
        grid-template-columns: 1fr;
    }


    .slider {
        height: 390px;
    }


    .announcement {
        display: none;
    }


    .welcome-grid,
    .message-section,
    .important-links {
        grid-template-columns: 1fr;
    }


    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .gallery-row {
        grid-template-columns: repeat(3, 1fr);
    }


    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

}


/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media screen and (max-width: 560px) {

    .topbar-contact {
        flex-direction: column;
        gap: 5px;
    }


    .topbar-contact span {
        display: none;
    }


    .college-logo {
        width: 100px;
        height: 100px;
    }


    .college-title h1 {
        font-size: 34px;
    }


    .college-title h2 {
        font-size: 24px;
    }


    .college-title p {
        font-size: 16px;
    }


    .header-logos img {
        width: 67px;
        height: 72px;
    }


    .header-logos .g20-logo {
        width: 130px;
    }


    .slider {
        height: 300px;
    }


    .slide-caption {
        width: 78%;

        right: 11%;
        left: 11%;
        bottom: 17%;

        text-align: center;
    }


    .slide-caption h2 {
        font-size: 29px;
    }


    .slide-caption p {
        font-size: 15px;
    }


    .slider-arrow {
        width: 35px;
        height: 49px;
    }


    .latest-news {
        height: 48px;
    }


    .latest-label {
        width: 90px;

        font-size: 13px;
    }


    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }


    .section {
        padding: 45px 18px;
    }


    .section-title {
        font-size: 29px;
    }


    .feature-grid,
    .event-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }


    .message-card {
        grid-template-columns: 1fr;

        text-align: center;
    }


    .message-card img {
        margin: auto;
    }


    .event-card {
        grid-template-columns: 115px 1fr;
    }


    .event-card img {
        width: 115px;
        height: 100%;
    }


    .gallery-row {
        grid-template-columns: repeat(2, 1fr);
    }


    .footer-top {
        flex-direction: column;
        gap: 16px;
    }


    .footer-top p {
        text-align: center;
    }


    .footer-search input {
        width: 215px;
    }

}