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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f9f9f9;
}

/* -------------------- General & Mobile-First Styles -------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #004080;
  color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo-bar {
  display: flex;
  justify-content: space-between; /* Keeps the groups at the edges */
  align-items: center;
  padding: 5px 10px;
}

.logo-bar img {
  height: 40px; /* Uniform height for all logos on mobile */
  width: auto;
}

/* This is the key change to align the AICTE logo in the middle.
   It creates a 3-column-like layout where the center column's width is flexible. */
.logo-group {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between the logos within each group */
}

/* This will grow and push the other content to the sides, naturally centering the middle group. */
.logo-group.left {
    flex-grow: 1;
}

.logo-group.center {
    justify-content: center;
}

.logo-group.right {
    justify-content: flex-end; /* Pushes the logo to the right side of its container */
    flex-grow: 1;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  position: relative;
}

.hamburger-menu {
  display: block;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2em;
  cursor: pointer;
  z-index: 1001;
}

.nav-links-container {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #004080;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-links-container.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 15px;
}

nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  width: 100%;
  text-align: center;
  margin-top: 15px;
}

nav ul li a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 12px 10px;
  transition: background 0.3s;
  width: 100%;
}

.lang-switch {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  width: 100%;
}

.lang-switch button {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  margin: 0 5px;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
}

.lang-switch button.active {
  background: #fff;
  color: #004080;
}

/* Sections */
section {
  padding: 80px 15px;
  min-height: 100vh;
}

/* Fix for content hiding under fixed header */
#home {
  padding-top: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #222;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
}

#about { background: #fff; }
#about p { text-align: justify; }
#about li { text-align: justify; }
#committee { background: #f0f4ff; }
#schedule { background: #eaf6ff; }
#contact { background: #fff; padding: 50px 15px; }

/* Hero */
.hero-content {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 10px;
    max-width: 100%;
}

.hero h1 {
  font-size: 1.5em;
  margin-bottom: 8px;
}
.hero h2 {
    font-size: 1.2em;
    margin-bottom: 4px;
}
.hero h3 {
    font-size: 1em;
    margin-bottom: 15px;
}
.hero p {
  font-size: 0.9em;
  margin-bottom: 15px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.countdown div {
  background: rgba(0,0,0,0.4);
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
  text-align: center;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 15px;
  margin: 5px;
  background: #0066cc;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
  width: 100%;
  max-width: 250px;
}
.btn:hover { background: #004080; }

/* Slideshow controls */
.slideshow-controls {
  position: absolute;
  bottom: 60px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
}
.slideshow-controls button {
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  font-size: 18px;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
}
#prev {
  left: 10px;
}
#next {
  right: 10px;
}

.dots {
  bottom: 10px;
  display: flex;
  gap: 6px;
  justify-content: center;
  width: 100%;
}
.dots span {
  height: 10px;
  width: 10px;
}

.jointly { margin-top: 30px; }
.jointly p { font-size: 0.9em; }

/* Centered headings */
section h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8em;
}

/* About Section */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.block {
    background: #eaf6ff;
    padding: 15px;
    border-radius: 8px;
}
.block.light {
    background: #f0f4ff;
}
.block h3 {
    margin-bottom: 8px;
    font-size: 1.2em;
}
.block ul {
    margin-top: 8px;
    margin-left: 15px;
    font-size: 0.9em;
}

/* Committee Cards */
.committee-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.committee-card {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.committee-card:hover { transform: translateY(-5px); }
.committee-card h4 { font-size: 1em; }
.committee-card p { font-size: 0.9em; }

/* Accordion for schedule - Increased font size */
.accordion {
  max-width: 100%;
  margin: auto;
}
.accordion-item {
  background: #fff;
  margin-bottom: 8px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.accordion-header {
  padding: 15px;
  cursor: pointer;
  background: #0066cc;
  color: #fff;
  font-size: 1.1em;
}
.accordion-body {
  display: none;
  padding: 15px;
  background: #f9f9f9;
}
.accordion-body p { 
  font-size: 1em;
  text-align: center;
}

/* Contact */
.contact-card {
  background: #f0f4ff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Footer */
footer {
  background: #004080;
  color: #fff;
  text-align: center;
  padding: 15px;
}

footer .quick-links {
  margin-top: 15px;
}

footer .quick-links h3 {
  font-size: 1em;
  margin-bottom: 8px;
}

footer .quick-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

footer .quick-links ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.9em;
}

footer .quick-links ul li a:hover {
  color: #00b0f0;
}


/* -------------------- Media Queries for Tablet and Desktop -------------------- */
@media (min-width: 768px) {
  .logo-bar img {
    height: 60px;
  }
  
  .hamburger-menu {
    display: none;
  }

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    flex-wrap: wrap;
  }

  .nav-links-container {
    display: flex;
    position: static;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: auto;
    background: transparent;
    box-shadow: none;
  }

  nav ul {
    flex-direction: row;
    margin-top: 0;
    gap: 15px;
  }

  nav ul li a {
    display: inline-block;
    white-space: nowrap;
    padding: 6px 10px;
  }

  .lang-switch {
    margin-top: 0;
  }

  #home {
    padding-top: 150px;
  }

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

  .hero h1 {
    font-size: 2.5em;
  }
  .hero h2 {
    font-size: 1.8em;
  }
  .hero h3 {
    font-size: 1.5em;
  }
  .hero p {
    font-size: 1.2em;
  }

  .countdown div {
    padding: 10px 15px;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .btn {
    width: auto;
  }

  .slideshow-controls {
    bottom: 60px;
    gap: 20px;
  }
  .slideshow-controls button {
    font-size: 24px;
    padding: 8px 12px;
  }
  #prev { left: 20px; }
  #next { right: 20px; }

  .dots {
    bottom: 20px;
    gap: 8px;
  }
  .dots span {
    height: 12px;
    width: 12px;
  }

  section h2 {
    margin-bottom: 40px;
    font-size: 2em;
  }

  .about-container {
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
  }
  
  .block {
      flex: 1;
      min-width: 45%;
  }
  .block h3 {
      font-size: 1.5em;
  }

  /* Committee & Contact Grids */
  .committee-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }

  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  .committee-card h4, .contact-card h4 {
    font-size: 1.2em;
  }
  .committee-card p, .contact-card p {
    font-size: 1em;
  }
  
  /* Accordion for schedule */
  .accordion-header {
      font-size: 1.2em;
  }
  .accordion-body p {
      font-size: 1.1em;
  }
}

/* Optional: Additional breakpoint for large desktops */
@media (min-width: 1200px) {
  .logo-bar img {
    height: 70px;
  }

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

  .about-container {
    flex-direction: row;
  }

  .block {
    min-width: 300px;
  }
}