@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

:root {
    --primary-color: #0f56f0;
    --primary-color-dark: #1E2D88;
    --text-dark: #333333;
    --text-light: #767268;
    --header-font: "Bebas Neue", sans-serif;
}

* {
    margin: 0;
    padding: 0.4rem;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html,
body {
    font-size: 16px;
    color: #242424;
}

.container {
    width: 1300px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
}

/****************HEADER SECTION****************/
.header {
    background: var(--primary-color-dark);
    padding: 6px;
}

.header b {
    background: #fff;
    color: var(--primary-color-dark);
    padding: 15px;
    font-size: 30px;
}

.header marquee {
    transform: translateY(15%);
    font-size: 25px;
    color: #ffffff;
    width: 85%;
}

/**********LOGO SECTION**********/
.logo {
    height: 6.3rem;
    transform: translateX(30%) translateY(8%);
}

.logo:hover {
    transform: scale(1.1) translateX(25%) translateY(8%);
    transition: 0.5s ease-in-out;
}

/**********MENU SECTION**********/
nav {
    float: right;
    padding: 25px 0;
    transform: translateY(5%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

nav .menu {
    display: flex;
    gap: 1rem;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 5px;
    font-weight: 500;
    transition: 0.5s ease;
}

nav a:hover {
    color: var(--primary-color);
}

.menu a {
    position: relative;
    color: inherit;
    text-decoration: none;
}

.menu a span {
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.menu a:hover span {
    color: var(--primary-color);
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.menu a:hover::after {
    width: 100%;
}

.nav__btns {
    display: flex;
    gap: 1rem;
}

/****************BUTTONS****************/
.nav__btns .btn {
    padding: 0.75rem 1.5rem;
    outline: none;
    border: none;
    font-size: 1rem;
    white-space: nowrap;
    border-radius: 10px;
    transition: 0.3s;
    cursor: pointer;
}

.sign__up {
    color: var(--text-dark);
    background-color: transparent;
    border: 1px solid var(--primary-color);
}

.sign__up:hover {
    color: white;
    background-color: var(--primary-color-dark);
}

.sign__in {
    color: white;
    background-color: var(--primary-color-dark);
}

.sign__in:hover {
    background-color: var(--primary-color);
}

/*****SLIDER SECTION*****/
.slider img {
    width: 100%;
    transform: translateY(3%);
}

/****************EVENT SECTION*************/
.main-section {
    width: 100%;
    float: left;
    padding: 60px 0 50px 0;
}

.event {
    width: 49%;
    margin-right: 1%;
    float: left;
    background-color: #fff;
}

.event i {
    color: red;
    font-size: 14px;
}

.event div {
    padding: 10px;
}

.event .heading {
    padding: 10px;
    color: #fff;
    background: var(--primary-color-dark);
    text-align: center;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 10px;
}

.event ul li {
    margin-bottom: 20px;
    width: 100%;
    float: left;
    list-style: none;
}

.event-date {
    background: red;
    float: left;
    text-align: center;
    font-size: 14px;
    color: #fff;
    padding: 8px 12px;
    margin-right: 10px;
}

/*******CAMPUS NEWS SECTION***********/
.campus-news {
  margin: 2rem 0;
}

/* Remove bullets and default padding from the list */
.campus-news ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Each <li> becomes a flex container */
.campus-news ul li {
  display: flex;             /* Lay out items in a row */
  align-items: flex-start;   /* Align them at the top */
  gap: 1rem;                 /* Space between the image & text */
  margin-bottom: 1rem;       /* Spacing between news items */
  background-color: #fff;    /* White background */
  padding: 1rem;
  border: 1px solid #ddd;    /* Optional border */
  border-radius: 4px;        /* Slightly rounded corners */
}

/* Make sure images have a set width and maintain aspect ratio */
.campus-news .campus-img img,
.campus-news .event-img img {
  width: 120px;        /* Adjust to your preference */
  height: auto;        /* Maintain aspect ratio */
  object-fit: cover;   /* Crop if the image is bigger */
  border-radius: 4px;  /* Optional rounding */
}

/* Headings and text styling inside each <li> */
.campus-news ul li h2 {
  margin: 0 0 0.25rem; 
  font-size: 1.1rem;
}

.campus-news ul li h6 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: red;
}

.campus-news ul li p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
}

.marquee-container {
  height: 340px;
  overflow: hidden;
  position: relative;
}

.marquee {
  list-style: none;
  margin: 0;
  padding: 0;
}

/****************ABOUT US SECTION****************/
.heading {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 30px;
    color: #0055a4;
}

.subhead {
    font-size: 18px;
    color: red;
    font-weight: 500;
}

.about-us div {
    width: 45%;
    float: left;
    line-height: 30px;
    font-size: 18px;
}

.about-us h4 {
    font-size: 18px;
    color: red;
    font-weight: 500;
}

.about-us p {
    font-size: 16px;
    margin-bottom: 20px;
    padding-right: 30px;
    line-height: 23px;
}

.about-us img {
    width: 40%;
    float: left;
}

/****************AWARD SECTION****************/
.award p {
    width: 100%;
    text-align: center;
    font-size: 16px;
}

.award img {
    width: 60%;
}

.award b {
    min-width: 115px;
    text-align: center;
    margin-bottom: 20px;
}

.award h3 {
    font-size: 23px;
    margin-bottom: 20px;
    text-align: center;
}

/****************CHAIRMAN SECTION****************/
.chairman img {
    width: 150px;
    float: left;
    margin-right: 10px;
}

.chairman h2 {
    font-size: 22px;
    margin-top: 30px;
}

.chairman h4 {
    font-size: 16px;
    color: red;
    font-weight: 400;
}

/****************TESTIMONIAL SECTION****************/
.testimonial {
    width: 30.5%;
    float: left;
    margin-right: 2.5%;
}

.testimonial-text {
    background: #0055a40f;
    padding: 20px;
    line-height: 35px;
    border-radius: 10px;
    font-size: 18px;
    text-align: center;
    border: 1px solid #0055a4;
}

.testimonial-detail {
    float: left;
    margin-top: 10px;
}

.testimonial-img {
    float: left;
}

.testimonial-name {
    margin-left: 10px;
    float: left;
}

.testimonial-name h5 {
    font-size: 18px;
    margin-top: 8px;
}

/****************GALLERY SECTION****************/
.gallery img {
    width: 23.2%;
    margin-right: 9%;
    margin-bottom: 20px;
}

/****************FOOTER SECTION****************/
.footer {
    background-color: #f0f3fa;
    padding: 40px 0;
    width: 100%;
    float: left;
}

.footer-logo {
    height: 70px;
    width: auto;
}

.footer-sect {
    width: 100%;
    float: left;
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
}

.footer-sect a {
    color: #202020;
    margin-left: 10px;
    text-decoration: none;
}

/* Global: Hide the mobile menu button on desktop */
.mobile-menu-btn {
    display: none;
}


/* Desktop-specific styles */
@media (min-width: 769px) {
    .menu {
        display: flex;
    }
    .nav__btns {
        display: flex;
    }
    .mobile-menu-btn {
        display: none;
    }
}
    .footer-sect .img {
        display: none;
    }
    /* ====== FLEX LAYOUT FOR TOP ROW ====== */

/******************* Mobile Styles *******************/
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    .header {
        background: --primary-color-dark;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .header b {
        color: --primary-color-dark;
                font-size: 20px;
    }
    .header marquee {
        color: white;
        font-size: 20px;
    }

    .header b {
        margin: 10px auto;
        padding: 5px;
        display: block;
        align-items: center;
    }

    .header marquee {
        font-size: 18px;
        width: 100%;
    }

.logo {
  /* Override the existing transform */
  transform: none !important;
  /* Make the image a block element so margin auto works */
  display: block;
  /* Center horizontally */
  margin: 0 auto;
  /* Adjust height as needed */
  height: 6.3rem;
}


    .logo:hover {
        transform: scale(1.05);
    }

    /* Navigation adjustments */
    nav {
        width: 100%;
        background: white;
        float: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin: 0;
        padding: 15px 0;
    }
    
    .menu {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        z-index: 4;
    }
    
    nav a {
        color: white;
        font-size: 0.9rem;
        padding: 5px 10px;
        text-align: center;
        width: 100%;
        display: block;
    }

    /* Navigation buttons and slider */
    .nav__btns {
        transform: translateY(-7%);
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        align-items: center;
        transition: .3s ease;
    }
    
    .nav__btns .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        width: 90%;
    }
    
    .slider img {
        transform: none;
    }
    
    .main-section {
        padding: 40px 0;
    }
    
    .event {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .event .heading {
        font-size: 20px;
    }

    /* About Us, Campus News, and Awards */
    .about-us div {
        width: 100%;
        float: none;
        text-align: center;
        line-height: 28px;
    }
    
    .about-us img {
        width: 80%;
        float: none;
        display: block;
        margin: 0 auto 20px;
    }
    
    .campus-news span {
        width: 100%;
        float: none;
        display: block;
        text-align: center;
    }
    
    .award img {
        width: 80%;
        display: block;
        margin: 0 auto;
    }
    
    .award b {
        display: block;
        text-align: center;
    }

    /* Chairman, Testimonial, and Gallery */
    .chairman img {
        width: 120px;
        float: none;
        display: block;
        margin: 0 auto 10px;
    }
    
    .chairman h2,
    .chairman h4 {
        text-align: center;
        margin-top: 10px;
    }
    
    .testimonial {
        width: 100%;
        float: none;
        margin-bottom: 20px;
    }
    
    .testimonial-text {
        font-size: 16px;
        line-height: 30px;
    }
    
    .testimonial-detail {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .testimonial-name {
        margin-left: 5px;
    }
    
    .gallery img {
        width: 48%;
        margin-right: 2%;
    }

    /* Mobile Menu Button Styles */
    .mobile-menu-btn {
        transform: translateY(-7%);
        display: block;
        cursor: pointer;
        font-size: 2.5rem;
        color: #fff;
        background-color: var(--primary-color-dark);
        padding: 8px 12px;
        border-radius: 4px;
        margin: 10px auto;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }
    
    .mobile-menu-btn:hover {
        background-color: var(--primary-color);
        transform: scale(1.05) translateY(-15%);
    }

    /* Animate menu open and close using max-height, opacity, and transform */
    .menu,
    .nav__btns {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background: white;
        overflow: hidden;
        /* Initially closed */
        max-height: 0;
        opacity: 0;
        transform: translateY(-20px);
        transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
    }

    /* When nav gets the 'open' class, expand the menu */
    .nav.open .menu,
    .nav.open .nav__btns {
        /* Set a max-height large enough to accommodate the content */
        max-height: 500px;
        opacity: 1;
        transform: translateY(-7%);
    }

    /* Responsive Campus News Styles */
    .campus-news ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .campus-news ul li {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
        padding: 1rem;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 4px;
        text-align: center;
    }
    
    .campus-news ul li span {
        margin-bottom: 1rem;
    }
    
    .campus-news ul li img {
        width: 100%;
        max-width: 200px;
        height: auto;
        object-fit: cover;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 4px;
    }
    
    .header b {
        font-size: 18px;
        margin: 10px auto;
        padding: 5px;
        display: block;
        align-items: center;
    }
    
    .header marquee {
        font-size: 16px;
    }
    
    .logo {
        height: 5rem;
    }
    
    nav {
        gap: 0.5rem;
    }
    
    nav a {
        font-size: 0.85rem;
    }
    
    .nav__btns .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        border-radius: 8px;
    }
    
    .event .heading {
        font-size: 18px;
    }
    
    .heading {
        font-size: 24px;
    }
    
    .subhead {
        font-size: 16px;
    }
    
    .about-us p {
        font-size: 14px;
        padding-right: 10px;
        line-height: 21px;
    }
    
    .campus-news h2 {
        font-size: 14px;
    }
    
    .campus-news h6 {
        font-size: 12px;
    }
    
    .testimonial-text {
        font-size: 14px;
        line-height: 28px;
        padding: 15px;
    }
    
    .gallery img {
        width: 100%;
        margin-right: 0;
    }
    
    .footer-sect {
        width: 100%;
        font-size: 14px;
        margin-top: 10px;
    }
    
    .footer-sect .img {
        display: none;
    }
    
    .footer-logo {
        height: 50px;
    }
}

