* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  max-width: 100%;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.6;
  font-size: 20px;
}

.header {
  width: 100%;
  min-height: 64px;
  background-color: #011222;
  color: #f9f9f9;
  padding-inline: 15px;
  padding-block: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  z-index: 2;
  & > img {
    display: none;
    cursor: pointer;
  }
  & > nav {
    display: flex;
    gap: 25px;
    & > #close {
      display: none;
      cursor: pointer;
    }
  }
} 

.heading {
  display: flex;
  align-items: center;
  gap: 10px;
  a {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}

.menus {
  display: flex;
  list-style: none;
  gap: 15px;
  font-size: 1rem;
}

.top-menu {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.top-menu:hover {
  text-decoration: underline;
}

.nav {
  display: none;
}

@media (max-width: 1006px) {
  #ham {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: absolute;
    right: 15px; 
    top: 18px;
  }

  nav {
    display: none;
    flex-direction: column;       
    align-items: flex-end;        
    width: 100%;
    background-color: #011222;
    padding: 20px;
  }

  .menus {
    display: flex;
    flex-direction: column;        
    gap: 1px;
    list-style: none;
    align-items: flex-end;
    width: 100%;
  }

  .top-menu {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 3px 0;
  }
  
  #close {
    display: block;
    cursor: pointer;
    position: relative;
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: absolute;
    right: 15px;   
    top: 18px;
  }
}
@media (min-width: 1007px) {
  #ham,
  #close {
    display: none !important; 
  }

  nav {
    display: flex !important; 
    position: static;         
    flex-direction: row;      
    align-items: center;
    background: none;
    height: auto;
    width: auto;
    padding: 0;
  }

  .menus {
    flex-direction: row;
    gap: 15px;
    align-items: center;
  }

  .top-menu {
    padding: 0;
    text-align: left;
  }
}

.top-section {
  position: relative;
  width: 100%;
  height: 80vh; 
  background: url("./assets/cover.jpg") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.inner-top-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55); 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px; 
  text-align: center;
  border-radius: 0; 
}

.sanga-heading {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111827;
}

.explore-btn {
  padding: 12px 28px;
  background: #cd2e2c;
  border: none;
  color: white;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.explore-btn:hover {
  background: #a61f1f;
}

.intro {
  padding: 10px 15%;
  text-align: center;
  position: relative;
  z-index: 1;
  > .intro-texts {
    & > ol {
      text-align: left;
    }
    & > span {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 20px;
      & > img {
        width: 200px;
        height: 100%;
        object-fit: contain;
        align-self: center;
        z-index: 1;
      }
    }
  }
}

.intro-heading {
  font-weight: 600;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

* {
  box-sizing: border-box
}

.slideshow-container {
  max-width: 100%;
  position: relative;
  overflow: hidden;
  &.top-adjustment {
    top: 64px;
  }
  > img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
  }
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%; /* Keep arrows vertically centered */
  transform: translateY(-50%); /* Align perfectly middle */
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 22px;
  transition: 0.3s ease;
  border-radius: 3px;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.3);
}

/* Position the "next button" to the right */
.next {
  right: 0;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

.active {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* About */
.about {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap; 
  max-width: 1200px;
  margin: 0 auto;
  gap: 80px;
}

.about-img img {
  width: 100%;
  max-width: 350px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  object-fit: cover;
}

.about-text {
  max-width: 400px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  text-align: center;
}

.about-text p {
  text-align: center;
  background: #f8f8f8;
}


/* GPL */
#gpl {
  & > img {
    vertical-align: middle;
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }
  & > div {
    border: 1px solid #011222;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding-bottom: 3%;
    & > h2, h3 {
      margin-top: 12px;
    }
  }
}

.gpl {
  text-align: center;
  padding: 20px 15%;
}

.gpl-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #011222;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1.25rem;
}

a {
  text-decoration: none;
  color: white;
}

/* Science and Business */
.science-business {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 40px 5%;
  & > .science {
    background: #D4EAFF;
  }
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 45%;
}

.card.red {
  background: #011222;
  color: white;
}

.card img {
  width: 100%;
  border-radius: 10px;
  margin-top: 15px;
}

@media (max-width: 1006px) {
  .header {
    & > img {
      display: block;
    }
    & > nav {
      display: none;
    }
  }
}

@media (max-width: 768px) {
  .science-business {
    flex-direction: column;
  }

  .card {
    width: 100%;
  }
}

/* Members */
.members {
  text-align: center;
  padding: 60px 6%;
}

.members-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  & > .member-div {
    background: #ebebeb;
    border-radius: 12px;
    padding: 20px;
    outline-offset: 2px;
    border: 2px dotted #011222;
    outline: 3px solid #011222;
    width: 250px;
    & > img {
      width: 120px;
      height: 150px;
      border-radius: 15%;
      object-fit: cover;
    }
    & > .name {
      font-weight: bold;
      font-size: 1.25rem;
    }
    & > .role {
      font-size: 1rem;
    }
  }
}


.member {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  width: 180px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.member img {
  border-radius: 50%;
  width: 80px;
  margin-bottom: 10px;
}

/* Events */
.events {
  padding: 40px 5%;
  background: #f8f8f8;
}

.event-img {
  width: 100%;
  border-radius: 10px;
  margin-top: 20px;
}

/* Culture */
.culture {
  padding: 40px 15%;
  text-align: center;
}

.culture-grid {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.culture-grid img {
  width: 33%;
  border-radius: 10px;
}

/* Scholarship */
.scholarship {
  text-align: center;
  padding: 60px 10%;
  background: #f8f8f8;
}

.scholarship-grid {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.scholarship-grid img {
  width: 48%;
  border-radius: 10px;
}

.wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.image {
  height: 275px;
  min-width: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.image:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .image {
    min-width: 250px;
  }
}

.image-grid {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Left big, right small */
  gap: 10px; /* Space between columns */
  align-items: center;
  max-width: 1000px;
  margin: 20px auto 0px auto;
}

.main-image img {
  margin-top: 20px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.main-image img {
  height: 400px; 
}

.side-images {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-wrap: wrap;
}

.side-images img {
  margin-top: 5px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  /* flex-wrap: wrap; */
}

.side-images img {
  height: 190px; 

}

@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: 1fr;
  }

  .side-images {
    flex-direction: row;
  }

  .side-images img {
    height: auto;
  }
}

/* Speech */
.speech {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 10%;
  gap: 40px;
  flex-wrap: wrap; 
  text-align: center;
}

.speech-img {
  flex: 1 1 20%; 
}

.speech-img img {
  width: 100%; 
  border-radius: 10px;
}

.speech-text {
  flex: 1 1 45%; 
}

/* Responsive: stack text above image on small screens */
@media (max-width: 768px) {
  .intro {
    padding: 10px 2%;
  }
  .ol-intro-parent {
    margin-left: 30px;
  }
  .gpl {
    padding: 30px 3%;
  }
  .culture {
    padding: 40px 3%;
  }
  .speech {
    flex-direction: row-reverse; /* text first, image below */
    align-items: center;
    padding: 40px 3%;
  }

  .speech-text,
  .speech-img {
    flex: 1 1 100%; /* full width */
  }

  .speech-img img {
    max-width: 300px; /* optional: limit image size on small screens */
  }
}

/* Footer */
.footer {
  background: #081321;
  color: white;
  padding: 50px 10% 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Added for responsiveness */
}

.footer-text {
  & > span {
    display: flex;
    align-items: center;
  }
  strong {
    padding-left: 12px;
  }
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap; /* Added for responsiveness */
  font-size: 1rem;
}

.footer-links h4 {
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  line-height: 1.8;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 30px;
  }

  .footer-links {
    gap: 30px;
  }

  .sanga-heading {
    font-size: 1.8rem;
  }

  .explore-btn {
    font-size: 0.9rem;
    padding: 10px 22px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 30px 5% 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 20px;
  }
}

.sanga-subdivisions {
  --bg: #0b1220;
  --fg: #111827;
  --text: white;
  --text-dark: #e2e8f0;
  --card: #fff;
  --radius: 1rem;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
}

.sanga-subdivisions {
  --card: #011222;
  --text: white;
}

.sanga-subdivisions h2 {
  text-align: center;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.sanga-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.sanga-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 320px;
}

.sanga-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.sanga-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.sanga-card figcaption {
  padding: 0.9rem 1rem 1rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
}

.arivu {
  color: #DC2626;
  font-family: monospace;
}

.albums {
  text-align: center;
  & > .albumWrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    padding: 20px;
    & > div {
      flex: 1 1 300px;
      position: relative;
      & > a {
        & > h4 {
          position: absolute;
          bottom: 0;
          left: 50%;
          transform: translate(-50%);
          width: 100%;
          background-color: white;
          color: #011222;
          border-bottom: 2px dotted #011222;
        }
        & > img {
          border-radius: 15px 25px 155px 25px / 225px 150px 25px 115px;
          object-fit: cover;
        }
      }
    }
  }
}
