    :root {
      --primary: #38bdf8;
      --dark: #0f172a;
      --light: #f1f5f9;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Poppins', sans-serif;
    }

    body {
      background: #fff;
      color: var(--dark);
    }

    /* NAV */
    nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 8%;
      background: #fff;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      position: sticky;
      top: 0;
      z-index: 1000;
    }

    nav h1 {
      color: var(--primary);
    }

    nav ul li a {
      text-decoration: none;
      /* remove underline */
      color: var(--dark);
      /* same color as normal text */
      transition: color 0.3s;
    }

    nav ul li a:hover {
      color: var(--primary);
      /* highlight on hover */
    }

    nav ul {
      display: flex;
      gap: 20px;
      list-style: none;
    }

    .menu-btn {
      display: none;
      font-size: 25px;
      cursor: pointer;
    }

    @media(max-width:768px) {
      nav ul {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        display: none;
        text-align: center;
      }

      nav ul.active {
        display: flex;
      }

      .menu-btn {
        display: block;
      }
    }

    /* HERO */
    .hero {
      position: relative;
      height: 90vh;
      min-height: 500px;
      overflow: hidden;
    }

    @media(max-width:768px) {
      .hero {
        height: 80vh;
      }
    }

    .slide {
      position: absolute;
      width: 100%;
      height: 100%;
      background-size: cover;
      background-position: center;
      opacity: 0;
      transform: scale(1.1);
      transition: 1s, transform 6s;
    }

    .slide.active {
      opacity: 1;
      transform: scale(1);
    }

    .overlay {
      position: absolute;
      width: 100%;
      height: 100%;
      background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
    }

    .hero-content {
      position: absolute;
      top: 50%;
      left: 10%;
      transform: translateY(-50%);
      color: #fff;
      max-width: 600px;
    }

    .hero h2 {
      font-size: 3rem;
    }

    @media(max-width:768px) {
      .hero-content {
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
      }

      .hero h2 {
        font-size: 2rem;
      }
    }

    .btn {
      margin-top: 20px;
      padding: 12px 25px;
      background: var(--primary);
      border: none;
      color: white;
      border-radius: 8px;
      cursor: pointer;
    }

    /* ARROWS */
    .arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 32px;
      color: #fff;
      background: rgba(0, 0, 0, 0.4);
      padding: 10px;
      cursor: pointer;
      border-radius: 6px;
    }

    .arrow:hover {
      background: var(--primary);
    }

    .arrow.left {
      left: 20px;
    }

    .arrow.right {
      right: 20px;
    }

    /* DOTS */
    .dots {
      position: absolute;
      bottom: 20px;
      width: 100%;
      text-align: center;
    }

    .dot {
      height: 12px;
      width: 12px;
      margin: 0 6px;
      display: inline-block;
      background: #ddd;
      border-radius: 50%;
      cursor: pointer;
    }

    .dot.active {
      background: var(--primary);
    }

    /* SECTION */
    section {
      padding: 80px 8%;
    }

    /* TITLES */
    .title h2 {
      font-size: 2rem;
      color: var(--primary);
      text-align: center;
      margin-bottom: 30px;
      animation: slideInCenter 1s ease forwards;
    }

    /* RESEARCH CORNER TITLE LEFT */
    .about-section-title {
      display: flex;
      justify-content: flex-start;
      margin-bottom: 30px;
    }

    .about-section-title h2 {
      font-size: 2rem;
      color: var(--primary);
      animation: slideInLeft 1s ease forwards;
    }

    @keyframes slideInLeft {
      0% {
        opacity: 0;
        transform: translateX(-50px);
      }

      100% {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes slideInCenter {
      0% {
        opacity: 0;
        transform: translateY(20px);
      }

      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* RESEARCH CORNER SECTION */
    .about-left:hover .news-scroll {
      animation-play-state: paused;
    }

    .about {
      display: flex;
      align-items: flex-start;
      gap: 60px;
      flex-wrap: wrap;
    }

    /* LEFT SCROLLING NEWS */
    .about-left {
      flex: 1;
      min-width: 280px;
      max-height: 400px;
      overflow: hidden;
      position: relative;
      border-radius: 15px;
      background: var(--light);
      padding: 15px;
    }

    .about-leftblank {
      flex: 1;
      min-width: 280px;
      max-height: 400px;
      overflow: hidden;
      position: relative;
      border-radius: 15px;
      padding: 15px;
    }

    .news-scroll {
      display: flex;
      flex-direction: column;
      animation: scrollNews 25s linear infinite;
    }

    .news-item {
      margin-bottom: 25px;
      border-radius: 12px;
      overflow: hidden;
      background: white;
      padding: 5px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .news-item img {
      width: 100%;
      display: block;
      border-radius: 12px;
    }

    @keyframes scrollNews {
      0% {
        transform: translateY(0);
      }

      100% {
        transform: translateY(-50%);
      }
    }

    /* RIGHT CARD WITH IMAGE OVERLAY */
    .about-right {
      flex: 1;
      min-width: 280px;
      position: relative;
      overflow: hidden;
      border-radius: 20px;
      animation: fadeIn 2s ease forwards;
    }

    .about-right img {
      width: 100%;
      border-radius: 20px;
      display: block;
      transition: transform 0.5s;
    }

    .about-right .about-content {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      color: #fff;
      background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 20px;
      text-align: center;
    }

    .about-right .about-content h3 {
      font-size: 1.8rem;
      margin-bottom: 15px;
    }

    .about-right .about-content p {
      font-size: 1rem;
      line-height: 1.5;
    }

    .about-right:hover img {
      transform: scale(1.05);
    }

    @keyframes fadeIn {
      0% {
        opacity: 0;
        transform: translateY(20px);
      }

      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* STATS */
    .stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
    }

    .card {
      background: var(--light);
      padding: 30px;
      text-align: center;
      border-radius: 10px;
      transition: 0.3s;
    }

    .card:hover {
      transform: translateY(-5px);
    }

    /* FACILITIES SECTION */
    .facilities {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 25px;
    }

    .facility-card {
      position: relative;
      overflow: hidden;
      border-radius: 15px;
      height: 250px;
      cursor: pointer;
    }

    .facility-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: 0.5s;
    }

    .facility-overlay {
      position: absolute;
      bottom: 0;
      width: 100%;
      padding: 20px;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
      color: #fff;
    }

    .facility-overlay h3 {
      margin: 0;
    }

    .facility-card:hover img {
      transform: scale(1.1);
    }

    .facility-card:hover .facility-overlay {
      background: linear-gradient(to top, rgba(56, 189, 248, 0.8), transparent);
    }

    /* FACULTIES GRID */
    .faculty-card {
      position: relative;
      border-radius: 15px;
      overflow: hidden;
      height: 100%;
      /* fixed height for desktop */
      width: 100%;
      display: flex;
      flex-direction: column;
      background: #f1f5f9;
    }

    .faculty-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      /* ensures image fills card */
      display: block;
      transition: transform 0.5s;
    }

    .faculty-overlay {
      position: absolute;
      bottom: 0;
      width: 100%;
      padding: 15px;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
      color: #fff;
      text-align: center;
    }

    .faculty-overlay h3 {
      margin: 0;
      font-size: 1rem;
    }

    .faculty-overlay p {
      font-size: 0.85rem;
      margin-top: 5px;
    }

    .faculty-card:hover img {
      transform: scale(1.05);
    }

    .faculty-card:hover .faculty-overlay {
      background: linear-gradient(to top, rgba(56, 189, 248, 0.8), transparent);
    }

    /* responsive */
    @media(max-width:1024px) {
      .faculty-card {
        height: 300px;
      }
    }

    @media(max-width:768px) {
      .faculty-card {
        height: 250px;
      }
    }

    /* GALLERY GRID */
    .gallerynew-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
    }




    .gallerynew-card {
      border-radius: 10px;
      overflow: hidden;
      height: 300px;
      /* fixed card height */
    }

    .gallerynew-card img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      /* fits full image inside card without cropping */
      display: block;
      border-radius: 10px;
    }

    /* GALLERY GRID */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 25px;
    }

    .gallery-grid .facility-card {
      height: 100%
    }

    .gallery-grid .facility-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 15px;
      transition: 0.3s;
    }

    .gallery-grid .facility-card:hover img {
      transform: scale(1.05);
    }

    /* SPONSORED PROJECTS */
    .sponsored-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 25px;
    }

    .sponsored-card {
      background: var(--light);
      border-radius: 10px;
      padding: 20px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      animation: fadeInUp 0.8s ease forwards;
      opacity: 0;
      transform: translateY(20px);
    }

    .sponsored-card h3 {
      margin-bottom: 10px;
      color: var(--primary);
    }

    .sponsored-card p {
      font-size: 0.95rem;
      color: #333;
    }

    @keyframes fadeInUp {
      0% {
        opacity: 0;
        transform: translateY(20px);
      }

      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* FOOTER */
    footer {
      background: var(--dark);
      color: #fff;
      padding: 50px 8%;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 30px;
    }

    .footer-logo h2 {
      color: var(--primary);
      margin-bottom: 10px;
    }

    .footer-logo p {
      font-size: 0.9rem;
      line-height: 1.6;
    }

    .footer-links h3 {
      margin-bottom: 15px;
      color: var(--primary);
    }

    .footer-links ul {
      list-style: none;
    }

    .footer-links ul li {
      margin-bottom: 10px;
    }

    .footer-links ul li a {
      color: #fff;
      text-decoration: none;
      transition: 0.3s;
    }

    .footer-links ul li a:hover {
      color: var(--primary);
    }

    @media(max-width:768px) {

      .facility-card,
      .faculty-card {
        height: auto;
      }

      .about {
        flex-direction: column;
      }

      .about-left,
      .about-right {
        max-height: none;
      }

      .sponsored-grid {
        grid-template-columns: 1fr;
      }

      .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
      }
    }