@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&display=swap');

:root {
  --primary-color: #0b1c3c;
  /* Deep college blue */
  --secondary-color: #1e3a8a;
  /* Lighter blue */
  --accent-color: #f59e0b;
  /* Vibrant gold */
  --bg-color: #f8fafc;
  /* Very light slate */
  --text-color: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;

  --font-main: 'Open Sans', sans-serif;
  --font-heading: 'Open Sans', sans-serif;

  --transition: all 0.3s ease;
  --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 15px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-color);
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  bottom: 0;
  left: 0;
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 1000;
  border-radius: 5px;
  flex-direction: column;
  padding: 10px 0;
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

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

.dropdown-menu a {
  padding: 10px 20px;
  display: block;
  color: var(--text-color);
  font-weight: 500;
}

.dropdown-menu a::after {
  display: none; /* No underline on dropdown links */
}

.dropdown-menu a:hover {
  background-color: var(--bg-color);
  color: var(--accent-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  background-color: var(--primary-color);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(11, 28, 60, 0.8) 0%, rgba(30, 58, 138, 0.7) 100%);
  z-index: 1;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 0;
}

.hero-slideshow li {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroFade 24s infinite;
}

.hero-slideshow li:nth-child(1) {
  background-image: url('hero-1.jpg');
  animation-delay: 0s;
}

.hero-slideshow li:nth-child(2) {
  background-image: url('hero-2.jpg');
  animation-delay: 6s;
}

.hero-slideshow li:nth-child(3) {
  background-image: url('hero-3.jpg');
  animation-delay: 12s;
}

.hero-slideshow li:nth-child(4) {
  background-image: url('hero-4.jpg');
  animation-delay: 18s;
}

@keyframes heroFade {
  0% {
    opacity: 0;
    animation-timing-function: ease-in;
  }

  8% {
    opacity: 1;
    animation-timing-function: ease-out;
  }

  25% {
    opacity: 1;
  }

  33% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.hero-content {
  max-width: 1400px;
  padding: 0 20px;
  z-index: 10;
  animation: fadeInDown 1s ease;
}

.hero-title {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

@media (min-width: 992px) {
  .hero-title {
    white-space: nowrap;
    font-size: clamp(2rem, 3vw, 3rem);
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 40px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #d97706;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  margin-left: 20px;
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Card Sections (About, Messages) */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.team-card {
  background-color: var(--white);
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  text-align: center;
  border-top: 4px solid var(--primary-color);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.team-card-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.info-box {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.info-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.info-box.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.content-text p {
  margin-bottom: 20px;
  color: var(--text-light);
}

/* Team/Bearers Section */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.team-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.team-card-header {
  height: 100px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  position: relative;
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--bg-color);
  border: 4px solid var(--white);
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-color);
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-body {
  padding: 60px 20px 30px;
}

.team-name {
  font-size: 1.25rem;
  margin-bottom: 5px;
}

.team-role {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.team-desc {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Events Section */
.events-section {
  background-color: var(--primary-color);
  color: var(--white);
}

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

.event-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  transition: var(--transition);
}

.event-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
}

.event-date {
  display: inline-block;
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.event-title {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* Sponsors */
.sponsors-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.sponsors-track {
  display: flex;
  width: max-content;
  animation: scrollLogos 20s linear infinite;
}

.sponsors-track:hover {
  animation-play-state: paused;
  /* Pause on hover for better UX */
}

.sponsor-group {
  display: flex;
  gap: 40px;
  padding-right: 40px;
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-100% / 3));
  }
}

.sponsor-item {
  width: 300px;
  height: 180px;
  background: var(--white);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  padding: 20px;
  flex-shrink: 0;
}

.sponsor-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sponsor-item:hover {
  transform: scale(1.05);
  box-shadow: var(--box-shadow-hover);
}

/* About Section Layout */
.about-container {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
}

.about-text-col {
  flex: 3;
}

.about-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 25px;
  font-family: var(--font-main);
}

.about-text-col p {
  color: #475569;
  line-height: 1.8;
  font-size: 0.95rem;
  text-align: justify;
}

.about-img-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.about-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.btn-about {
  width: 100%;
  max-width: 220px;
  text-align: center;
  border-radius: 25px;
  background-color: #2563eb;
  padding: 12px 20px;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-about:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column-reverse;
  }
}

/* Leadership Section */
.leadership-section {
  background-color: #1b5a7d;
  padding: 80px 0;
}

.leader-block {
  margin-bottom: 80px;
}

.leader-section-title {
  color: #e2e8f0;
  font-weight: 300;
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-family: var(--font-main);
}

.leader-card {
  border: 2px solid #e2e8f0;
  padding: 20px;
  display: flex;
  gap: 40px;
  background-color: transparent;
}

.leader-img {
  width: 220px;
  height: 280px;
  object-fit: cover;
}

.leader-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leader-role {
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.leader-name {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.leader-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Alignments */
.left-align .leader-section-title,
.left-align .leader-info {
  text-align: left;
}

.right-align .leader-section-title,
.right-align .leader-info {
  text-align: right;
}

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

  .right-align .leader-card {
    flex-direction: column-reverse;
  }

  .leader-img {
    width: 100%;
    height: auto;
  }
}

/* Upcoming Events Section Layout */
.upcoming-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}

.upcoming-poster img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.upcoming-content p {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 20px;
  line-height: 1.6;
}

.upcoming-list {
  list-style: none;
  margin-bottom: 25px;
  margin-left: 15px;
}

.upcoming-list li {
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: #475569;
  position: relative;
}

.upcoming-list li strong {
  color: #1e293b;
  display: inline-block;
  margin-bottom: 5px;
}

.upcoming-list li::before {
  content: "▪";
  color: #475569;
  position: absolute;
  left: -15px;
  top: 0;
}

.highlights-list {
  list-style: none;
  margin-bottom: 25px;
}

.highlights-list li {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 8px;
}

@media (max-width: 992px) {
  .upcoming-container {
    grid-template-columns: 1fr;
  }
}

/* Summit Section Layout */
.summit-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}

.summit-heading {
  font-size: 3rem;
  font-weight: 300;
  color: #1e293b;
  line-height: 1.2;
  margin-bottom: 20px;
  font-family: var(--font-main);
}

.summit-divider {
  width: 50px;
  height: 3px;
  background-color: #3b82f6;
  /* Blue matching screenshot */
  margin-bottom: 30px;
}

.summit-text-col p {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 40px;
  font-size: 1rem;
  text-align: justify;
}

.btn-summit {
  display: inline-block;
  background-color: #2563eb;
  color: white;
  border-radius: 50px;
  padding: 12px 30px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-summit:hover {
  background-color: #1d4ed8;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.summit-gallery-col {
  display: flex;
  gap: 15px;
}

.gallery-col-left {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

.gallery-col-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1.2;
}

.gallery-img,
.gallery-img-tall {
  width: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.gallery-img {
  height: 180px;
}

.gallery-img-tall {
  height: 375px;
  /* Two normal images + gap: 180 + 180 + 15 */
}

@media (max-width: 992px) {
  .summit-container {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  background-color: #020617;
  color: #94a3b8;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-heading {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-text {
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: -100%;
    width: 100%;
    background-color: var(--white);
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    gap: 15px;
  }

  .nav-links.active {
    left: 0;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background-color: #f8fafc;
    width: 100%;
    align-items: center;
  }

  .dropdown:hover .dropdown-menu {
    display: flex;
  }

  /* Hamburger to X animation */
  .menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }
}