/* ====================================================== */
/* FINAL CORRECTED STYLES - styles.css                  */
/* ====================================================== */

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

:root {
  --primary-color: #1e3a8a;
  --secondary-color: #3b82f6;
  --accent-color: #f59e0b;
  --background-color: #f8f9fa;
  --text-color: #1f2937;
  --light-gray: #e5e7eb;
  --white: #ffffff;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

html {
  scroll-behavior: smooth;
}

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

/* Header */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
}
/* Make all logos the same height */
.logo-container img {
  height: 100px; /* adjust as needed */
  width: auto; /* maintains aspect ratio */
  object-fit: contain;
}

/* Center align them if needed */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 240px; /* space between logos */
  flex-wrap: wrap; /* allows responsiveness */
  margin-bottom: 24px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

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

.cta-button {
  background: var(--accent-color);
  color: var(--white);
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.cta-button:hover {
  background: #e55a2b;
  transform: translateY(-2px);
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background-color: white;
  color: var(--primary-color);
  padding: 150px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><path fill="rgba(255,255,255,0.1)" d="M0,100 Q300,150 600,100 T1200,100 V200 H0 Z"/></svg>')
    no-repeat bottom;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.hero-year {
  color: #f59e0b;
  font-size: 2rem;
  font-weight: bold;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* Style for the new theme/tagline in the hero section */
.hero-theme {
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 500;
  color: var(--primary-color);
  margin-top: 1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  justify-items: center;
  align-items: center;
  margin-bottom: 2rem;
}

.logo-img {
  max-width: 150px;
  height: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-card {
  background: rgba(238, 238, 249, 0.9);
  padding: 1.5rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-color);
}

/* Main Section Titles */
.section-title {
  display: table;
  margin: 0 auto 4rem auto;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.section-title::after {
  content: "";
  width: 100%;
  height: 5px;
  background: var(--accent-color);
  position: absolute;
  bottom: -15px;
  left: 0;
}

/* About Section */
#about {
  padding: 80px 0;
}

#about h3,
#about .section-subtitle {
  font-size: 1.5rem; /* Smaller Font Size */
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

#about .section-subtitle {
  text-align: center;
  font-size: 1.8rem; /* Smaller Font Size */
  margin-top: 4rem;
}

#about p {
  color: #4a5568;
  line-height: 1.8;
}

#about .about-grid {
  gap: 3rem;
  margin-bottom: 3rem;
}

#about .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
#about .feature-box {
  background: #ffffff;
  padding: 2rem;
  border-radius: 15px;
  border-left: 5px solid var(--accent-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
#about .feature-box h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
#about .feature-box ul {
  list-style-type: none;
  padding-left: 0;
}
#about .feature-box li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}
#about .feature-box li::before {
  content: "✔";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Accordion styles */
#about .accordion-container {
  max-width: 900px;
  margin: 0 auto;
}
#about .accordion-item {
  background-color: #ffffff;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
#about .accordion-header {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1rem 1.5rem;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#about .accordion-header:hover {
  background-color: var(--secondary-color);
}
#about .accordion-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
#about .accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}
#about .accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
#about .accordion-content ul {
  padding-left: 20px;
  margin-top: 1rem;
}
.accordion-item.active .accordion-content {
  max-height: 1000px;
  padding: 1.5rem;
}

#about .info-box-container {
  margin-top: 4rem;
}
#about .info-box {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
}
#about .info-box p {
  color: #fff;
}

#about .info-box h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}
#about .outcomes-section {
  margin-top: 4rem;
}
#about .outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
#about .outcome-card {
  background-color: var(--light-gray);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: left;
}
#about .outcome-card h5 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

#about .final-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}
#about .info-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
#about .info-card h4 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* University & Institute Section */
.university {
  padding: 80px 0;
  background: var(--white);
}

.institution-block {
  margin-bottom: 4rem;
}

.institution-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.institution-content.reverse {
  direction: rtl;
}

.institution-content.reverse > * {
  direction: ltr;
}

.institution-text h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.institution-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.institution-highlights {
  display: flex;
  gap: 2rem;
  width: 100%;
}

.highlight-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: var(--background-color);
  border-radius: 10px;
  border-left: 4px solid var(--accent-color);
  box-sizing: border-box;
  height: 100%;
}

.highlight-icon {
  font-size: 2rem;
  color: var(--primary-color);
}

.highlight-item h4 {
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.highlight-item p {
  color: var(--text-color);
  font-size: 0.9rem;
  margin: 0;
}

.institution-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-placeholder {
  background: none;
  padding: 0;
  transition: transform 0.3s ease;
}

.image-placeholder img {
  width: 500px;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0px 10px 10px 0.5px rgba(75, 75, 75, 0.1);
}

.image-placeholder:hover {
  transform: translateY(-5px);
}

/* Speakers Section */
.speakers {
  padding: 80px 0;
  background: var(--background-color);
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.speaker-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.speaker-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.speaker-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--light-gray);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary-color);
}

.speaker-name {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.speaker-title {
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Timeline Section */
.timeline {
  padding: 80px 0;
  background: var(--white);
}

.timeline-container {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-date {
  background: var(--accent-color);
  color: var(--white);
  padding: 1rem;
  border-radius: 10px;
  min-width: 200px;
  font-weight: bold;
  text-align: center;
}

.timeline-content {
  background: var(--light-gray);
  padding: 1rem 2rem;
  border-radius: 10px;
  margin-left: 2rem;
  flex: 1;
}

/* Registration Section */
.registration {
  padding: 80px 0;
  background: var(--background-color);
}

/* STYLES FOR THE ENHANCED REGISTRATION TABLE */
.registration-table {
  background: var(--white);
  border-radius: 15px; /* Rounded corners for the container */
  overflow: hidden; /* Ensures the header corners are rounded */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* A soft shadow */
  padding: 2rem; /* Adds space inside the card */
  margin-top: 2rem;
}

.registration-table h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.registration-table table {
  width: 100%;
  border-collapse: collapse; /* Removes gaps between cells */
}

/* Styling the table header (thead) */
.registration-table th {
  background-color: var(--primary-color); /* Dark blue background */
  color: var(--white); /* White text */
  font-weight: 600;
  padding: 1rem 1.5rem;
  text-align: left;
}

/* Styling the table cells (tbody) */
.registration-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--light-gray); /* Separator line between rows */
  color: #333;
}

/* Removes the bottom border from the last row for a cleaner look */
.registration-table tr:last-child td {
  border-bottom: none;
}

/* Styling for the notes below the table */
.registration-table p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #555;
  text-align: left;
}

tr:hover {
  background: rgba(255, 107, 53, 0.1);
}

/* Committee Section */
.committee {
  padding: 80px 0;
  background: var(--white);
}

.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.committee-card {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
}

.committee-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-color);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

/* Footer */
footer {
  width: 100%;
  background: var(--primary-color);
  color: var(--white);
  padding: 3rem 0 1rem;
}

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

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  line-height: 1.8;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* Utility & Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

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

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
  z-index: 1000;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

a:focus,
button:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Heading with icon styles */
.title-with-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.heading-logo {
  width: 50px;
  height: 50px;
}


/* ================================================= */
/* === FINAL RESPONSIVE STYLES (Mobile View) === */
/* ================================================= */
@media (max-width: 768px) {
  /* --- Mobile Navigation --- */
  .nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    height: 100vh;
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding-top: 5rem;
    gap: 1.5rem;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
  }
  .nav-menu.nav-menu--open {
    transform: translateX(0);
  }
  .nav-menu a {
    font-size: 1.2rem;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu {
    display: block;
    z-index: 1001;
  }

  /* --- General Layout --- */
  section {
    padding: 60px 0;
  }
  .container {
    padding: 0 15px;
  }

  /* --- Main Section Titles (Reverted to your original style) --- */
  .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }
  .section-title::after {
    width: 80px;
    height: 4px;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
  }
  /* --- Hero Section --- */
  .hero {
    padding: 120px 0 60px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  /* Make the new theme/tagline smaller on mobile */
  .hero-theme {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
 /* FINAL SINGLE-LINE LOGO STYLES FOR MOBILE */
.logo-container {
  display: flex;
  justify-content: space-between; /* space-around se 'between' try karein, isse corners me logos chipak jaate hain aur beech me space rehti hai */
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem; /* Beech ki space aur kam kar di */
}

.logo-img {
  max-width: 50px; /* << Logo ka size aur chota kar diya */
  height: auto;
  object-fit: contain;
}
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Heading with icon styles for mobile */
  .title-with-icon {
    gap: 0.5rem;
  }

  .heading-logo {
    width: 40px;
    height: 40px;
  }

  /* --- About & University Sections --- */
  .about-grid,
  .institution-content,
  .institution-content.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }
  .institution-highlights {
    flex-direction: column;
  }
  .image-placeholder img {
    width: 100%;
    max-width: 400px;
  }

  /* --- Other Sections --- */
  .speakers-grid,
  .committee-grid {
    grid-template-columns: 1fr;
  }

  /* --- Timeline Section --- */
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline-date {
    width: 100%;
    margin-bottom: 1rem;
  }
  .timeline-content {
    margin-left: 0;
  }

  /* === MOBILE STYLES FOR REGISTRATION TABLE === */
  .table-container {
    overflow-x: auto; /* Adds the horizontal scrollbar */
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
  }

  .registration-table th,
  .registration-table td {
      font-size: 0.9rem;
      white-space: nowrap; /* Prevents text from wrapping to the next line */
      padding: 0.8rem 1rem;
  }
}