
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Hind+Siliguri:wght@400;500;600;700&display=swap');

/* ==========================================
   DTSC ALUMNI ASSOCIATION
   PROFESSIONAL DESIGN
   Navy Green + Gold
========================================== */

:root {
  --green: #103e35;
  --green-dark: #092c26;
  --green-light: #176052;
  --gold: #c9a646;
  --gold-light: #e5cf82;
  --white: #ffffff;
  --light: #f5f7f6;
  --gray: #666666;
  --dark: #222222;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 225px;
}

body {
  font-family: 'Poppins', 'Hind Siliguri', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  padding-top: 225px;
}

body.modal-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ==========================================
   MAIN HEADER
========================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 3px 15px rgba(0,0,0,.12);
}

.header {
  width: 100%;
  min-height: 160px;
  padding: 12px 3%;
  display: grid;
  grid-template-columns: 100px 1fr 100px;
  align-items: center;
  gap: 15px;
  background: var(--white);
  border-bottom: 4px solid var(--gold);
}

.header-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-logo img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.header-title {
  text-align: center;
}

.header-title h1 {
  color: var(--green);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.3;
}

.header-title p {
  color: #777;
  font-size: 15px;
  margin-top: 7px;
}

.header-title span {
  display: block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  margin-top: 13px;
}

/* ==========================================
   NAVIGATION
========================================== */

.navbar {
  width: 100%;
  min-height: 65px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 3%;
  position: relative;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  list-style: none;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a,
.nav-menu li button {
  display: block;
  padding: 17px 11px;
  color: var(--white);
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: .3s;
}

.nav-menu li a:hover,
.nav-menu li button:hover {
  color: var(--gold-light);
  background: rgba(255,255,255,.08);
}

.nav-menu li a:focus-visible,
.nav-menu li button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: -3px;
}

/* HAMBURGER */

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--white);
  border: none;
  font-size: 34px;
  line-height: 1;
  padding: 8px 12px;
}

/* ==========================================
   HERO BANNER
========================================== */

.hero {
  width: 100%;
  min-height: 343px;
  aspect-ratio: 1536 / 343;
  background:
    linear-gradient(
      90deg,
      rgba(3,48,37,.88) 0%,
      rgba(3,48,37,.70) 42%,
      rgba(3,48,37,.08) 100%
    ),
    url("./assets/institute.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 25px 5%;
  text-align: left;
  color: var(--white);
}

.hero-content {
  width: 100%;
  max-width: 760px;
}

.hero-label {
  color: var(--white);
  font-size: 25px;
  font-weight: 500;
}

.hero-content h2 {
  color: var(--gold-light);
  font-size: clamp(30px,4vw,44px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-content h3 {
  color: var(--white);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 7px;
}

.hero-message {
  color: var(--white);
  font-size: 15px;
  line-height: 1.6;
  max-width: 650px;
  margin: 0 0 15px;
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-btn {
  display: inline-block;
  padding: 9px 20px;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gold);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  transition: .3s;
}

.hero-btn:hover {
  background: var(--gold);
  color: var(--green);
}

.secondary-btn {
  border-color: rgba(255,255,255,.8);
}

.secondary-btn:hover {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
}

/* ==========================================
   COMMON SECTIONS
========================================== */

section:not(.hero) {
  padding: 65px 7%;
}

.section-title {
  text-align: center;
  margin-bottom: 35px;
}

.section-title h2 {
  color: var(--green);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 5px;
  background: var(--gold);
  margin: 20px auto 0;
  border-radius: 5px;
}

.section-title p {
  color: var(--gray);
  font-size: 15px;
}

/* ABOUT */

.about-section {
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,.10);
}

.about-text h3 {
  color: var(--green);
  font-size: 22px;
  margin-bottom: 15px;
}

.about-text p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 15px;
}

.read-more {
  display: inline-block;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
  margin-top: 8px;
}

/* NOTICE */

.notice-section {
  background: var(--light);
}

.notice-box {
  max-width: 900px;
  margin: auto;
  padding: 25px;
  text-align: center;
  background: var(--white);
  border-left: 5px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0,0,0,.06);
}

.notice-box p {
  color: var(--gray);
  font-size: 14px;
}

/* EVENTS */

.events-section {
  background: var(--white);
}

.event-box {
  max-width: 900px;
  margin: auto;
  padding: 30px;
  text-align: center;
  background: var(--light);
  border-radius: 8px;
}

.event-box p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 15px;
}

.event-box a {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

/* GALLERY */

.gallery-section {
  background: var(--light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

.gallery-grid:empty {
  display: none;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: .3s;
}

.gallery-grid img:hover {
  transform: translateY(-4px);
}

.gallery-link {
  text-align: center;
  margin-top: 25px;
}

.gallery-link a {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

/* MEMBERSHIP */

.membership-section {
  text-align: center;
  background: var(--green);
  color: var(--white);
}

.membership-section .section-title h2 {
  color: var(--white);
}

.membership-section .section-title p {
  color: #e0e9e5;
}

.membership-btn {
  display: inline-block;
  margin: 7px;
  padding: 13px 24px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  transition: .3s;
}

.membership-btn:hover {
  background: var(--gold);
  color: var(--green);
}

/* CONTACT */

.contact-section {
  text-align: center;
  background: var(--white);
}

.contact-section p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 15px;
}

.contact-section a {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

/* ==========================================
   FOOTER
========================================== */

.footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 50px 6% 0;
  border-top: 4px solid var(--gold);
  text-align: left;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 35px;
  padding-bottom: 35px;
}

.footer-column h3 {
  color: var(--gold-light);
  font-size: 21px;
  margin-bottom: 16px;
}

.footer-column h4 {
  color: var(--gold-light);
  font-size: 16px;
  margin-bottom: 17px;
}

.footer-column p {
  color: #d4e0db;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 9px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a,
.footer-column > a {
  color: #d4e0db;
  font-size: 13px;
  transition: .3s;
}

.footer-column ul li a:hover,
.footer-column > a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: auto;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  color: #bdcbc5;
  font-size: 12px;
}

/* ==========================================
   POPUP MODALS
========================================== */

.register-modal,
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.register-modal.active,
.login-modal.active {
  display: flex;
}

.register-modal-overlay,
.login-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(5px);
}

.register-modal-content,
.login-modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 35px 28px 25px;
  background: var(--white);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0,0,0,.25);
  animation: popupShow .25s ease;
}

@keyframes popupShow {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.register-close,
.login-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  background: var(--light);
  color: var(--green);
  font-size: 27px;
  line-height: 1;
}

.register-modal-icon,
.login-modal-icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.register-modal-content h2,
.login-modal-content h2 {
  color: var(--green);
  font-size: 21px;
  margin-bottom: 7px;
}

.register-modal-content > p,
.login-modal-content > p {
  color: var(--gray);
  font-size: 13px;
  margin-bottom: 22px;
}

.register-options,
.login-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.register-option,
.login-option {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid #e5eae7;
  border-radius: 9px;
  text-align: left;
  transition: .25s;
}

.register-option:hover,
.login-option:hover {
  border-color: var(--gold);
  background: #faf8f0;
  transform: translateX(4px);
}

.option-icon {
  width: 43px;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 9px;
  background: #edf4f1;
  font-size: 23px;
}

.option-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.option-text strong {
  color: var(--green);
  font-size: 14px;
}

.option-text small {
  color: var(--gray);
  font-size: 11px;
}

.option-arrow {
  color: var(--gold);
  font-size: 23px;
  font-weight: 700;
}

.admin-option .option-icon {
  background: #f8f0df;
}

.register-modal-footer,
.login-modal-footer {
  margin: 22px 0 0 !important;
  padding-top: 15px;
  border-top: 1px solid #eee;
  color: #999 !important;
  font-size: 11px !important;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 950px) {

  body {
    padding-top: 210px;
  }

  .header {
    min-height: 145px;
    grid-template-columns: 75px 1fr 75px;
  }

  .header-logo img {
    width: 70px;
    height: 70px;
  }

  .header-title h1 {
    font-size: 23px;
  }

  .header-title p {
    font-size: 12px;
  }

  .header-title span {
    font-size: 11px;
  }

  .navbar {
    min-height: 65px;
    justify-content: flex-end;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--green);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 5px 12px rgba(0,0,0,.15);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a,
  .nav-menu li button {
    width: 100%;
    text-align: left;
    padding: 13px 22px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .about-content {
    gap: 25px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 650px) {

  body {
    padding-top: 145px;
  }

  html {
    scroll-padding-top: 155px;
  }

  .header {
    min-height: 95px;
    grid-template-columns: 52px 1fr 52px;
    padding: 8px 10px;
    gap: 6px;
  }

  .header-logo img {
    width: 46px;
    height: 46px;
  }

  .header-title h1 {
    font-size: 16px;
    line-height: 1.3;
  }

  .header-title p {
    font-size: 9px;
    line-height: 1.4;
    margin-top: 4px;
  }

  .header-title span {
    font-size: 9px;
    margin-top: 5px;
  }

  .navbar {
    min-height: 50px;
    padding: 0 15px;
    justify-content: flex-end;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    font-size: 30px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--green);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .hero {
    aspect-ratio: auto;
    min-height: 343px;
    padding: 30px 20px;
    justify-content: center;
    text-align: center;
    background-position: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-label {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .hero-content h2 {
    font-size: 27px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .hero-content h3 {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .hero-message {
    font-size: 13px;
    line-height: 1.7;
    margin: 0 auto 17px;
  }

  .hero-buttons {
    justify-content: center;
    gap: 9px;
  }

  .hero-btn {
    padding: 9px 14px;
    font-size: 12px;
  }

  section:not(.hero) {
    padding: 42px 18px;
  }

  .section-title {
    margin-bottom: 25px;
  }

  .section-title h2 {
    font-size: 23px;
  }

  .section-title p {
    font-size: 12px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .about-image img {
    height: 210px;
  }

  .about-text h3 {
    font-size: 19px;
  }

  .about-text p {
    font-size: 13px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
  }

  .gallery-grid img {
    height: 135px;
  }

  .membership-btn {
    display: block;
    max-width: 250px;
    margin: 10px auto;
  }

  .footer {
    padding: 35px 22px 0;
    text-align: center;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 25px 15px;
  }

  .footer-column h3 {
    font-size: 18px;
  }

  .footer-column h4 {
    font-size: 14px;
  }

  .footer-column p,
  .footer-column ul li a,
  .footer-column > a {
    font-size: 12px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .register-modal-content,
  .login-modal-content {
    padding: 32px 18px 22px;
  }

  .register-modal-content h2,
  .login-modal-content h2 {
    font-size: 18px;
  }
}

/* SMALL MOBILE */

@media (max-width: 380px) {

  .header-title h1 {
    font-size: 14px;
  }

  .header-title p,
  .header-title span {
    font-size: 8px;
  }

  .header-logo img {
    width: 42px;
    height: 42px;
  }

  .hero-content h2 {
    font-size: 24px;
  }

  .hero-content h3 {
    font-size: 16px;
  }

  .hero-message {
    font-size: 12px;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}
