/* --- NEW AND IMPROVED DESIGN --- */

/* --- 1. CSS Variables & Root Styles --- */

/* --- UPDATED COLOR VARIABLES --- */
:root {
  --primary-color: #0d3b66;      /* Deep Blue for headings and headers */
  --secondary-color: #faf0e6;    /* Linen - for section backgrounds */
  --accent-color: #ffa500;       /* Orange Gold - Changed from red/previous gold */
  --text-color: #343a40;         /* Dark Gray for body text */
  --light-gray: #f8f9fa;         /* Light Gray for backgrounds */
  --white: #ffffff;
  --font-main: 'Lato', sans-serif;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --border-radius: 8px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--light-gray);
  color: var(--text-color);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.2rem;
  font-weight: 900;
  border-bottom: 3px solid var(--accent-color);
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 2rem;
}

a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

section {
  padding: 50px 0;
}

/* --- 2. Header & Navigation --- */
.site-header {
  background-color: var(--white);
  color: var(--primary-color);
  padding: 15px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
  position: sticky; /* Keeps nav at the top */
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px; /* Replaces margin-right */
}

.logo img {
  height: 60px;
  width: auto;
}

.logo h1 {
  margin: 0;
  font-size: 1.8rem;
}

.logo p {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
}

.main-nav ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  display: block;
  padding: 10px 15px;
  color: var(--primary-color);
  font-weight: 700;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
}

/* --- 3. Hero Section (Title & Banner) --- */
/* The banner image is now a background for the title section */
.banner-image { display: none; } /* Hide the old banner img element */

#home.conference-title {
  color: var(--white);
  background: linear-gradient(rgba(13, 59, 102, 0.7), rgba(13, 59, 102, 0.7)), url('https://events.iitbhilai.ac.in/icmc2025/LDC.jpeg') no-repeat center center;
  background-size: cover;
  padding: 100px 20px;
  text-align: center;
}

#home h2 {
  font-size: 3.5rem;
  color: var(--white);
  border-bottom: 4px solid var(--accent-color);
  margin-bottom: 1rem;
}

#home p {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0.5rem 0;
}
#home p strong {
  font-weight: 700;
  color: var(--accent-color);
}


/* --- 4. Main Content Layout --- */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  text-align: left; /* Better for readability */
}

.main-content section {
  background-color: var(--white);
  margin-bottom: 40px;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center; /* Center section content */
}

.main-content .info p {
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

/* --- 5. Program Table --- */
.program table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background-color: var(--white);
  font-size: 1rem;
}

.program th, .program td {
  border: none;
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #dee2e6;
}

.program thead th {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.program tbody tr:nth-of-type(even) {
  background-color: var(--light-gray);
}

.program tbody tr:hover {
    background-color: var(--secondary-color);
}

.program .break {
  background-color: #fffbeB; /* Light yellow */
  color: #856404; /* Brown text */
  font-weight: 700;
}

/* --- 6. Other Sections (Dates, Venue, etc.) --- */
#dates ul {
  list-style: none;
  padding: 0;
  display: inline-block;
  text-align: left;
}
#dates li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23ffa500" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6h13"></path><path d="M8 12h13"></path><path d="M8 18h13"></path><path d="M3 6h.01"></path><path d="M3 12h.01"></path><path d="M3 18h.01"></path></svg>') no-repeat left center;
  padding-left: 35px;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

#venue p {
  font-size: 1.1rem;
}

.map-container {
  margin-top: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* --- 7. Responsive Design --- */
@media (max-width: 992px) {
  .site-header {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  h2 { font-size: 1.8rem; }
  #home h2 { font-size: 2.5rem; }
  #home p { font-size: 1.2rem; }

  .main-content {
    padding: 10px;
  }
  .main-content section {
    padding: 25px;
  }
  
  .main-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .main-nav li {
    width: 100%;
    text-align: center;
  }
  /* Adds a border between nav items on mobile */
  .main-nav li:not(:last-child) {
    border-bottom: 1px solid rgba(13, 59, 102, 0.2);
  }
}


#sponsors {
  text-align: center;
  padding: 60px 0; /* more top & bottom padding */
}

.sponsor-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px; /* wider horizontal spacing between logos */
  flex-wrap: wrap;
  margin-top: 30px;
  margin-bottom: 40px; /* spacing from the next section (e.g., Venue) */
}

.sponsor-logos img {
  width: 180px;          /* increased size from 150px */
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.sponsor-logos img:hover {
  transform: scale(1.1); /* optional: zoom effect on hover */
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Responsive nav */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hamburger {
    display: block;
    margin-left: auto;
    padding: 10px 15px;
  }

  .main-nav {
    width: 100%;
    display: none;
  }

  .main-nav.show {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .main-nav li {
    width: 100%;
    text-align: left;
    border-top: 1px solid #ddd;
  }

  .main-nav a {
    padding: 12px 20px;
    display: block;
  }
}

/* --- Contact Section --- */
#contact {
  background-color: var(--white); /* Matches section background tone */
  padding: 50px 20px;
  text-align: center;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

#contact h2 {
  color: var(--primary-color);
  border-bottom: 3px solid var(--accent-color);
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 1.5rem;
}

#contact p {
  font-size: 1.1rem;
  color: var(--text-color);
}

#contact a {
  color: var(--primary-color);
  font-weight: 700;
  transition: color 0.3s ease;
}

#contact a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Simple Committee section matching website theme */
#committee {
  padding: 50px 20px;
  background-color: var(--white);
  text-align: center;
}

#committee h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-color);
  border-bottom: 3px solid var(--accent-color);
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 2rem;
}

.committee-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.committee-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 0.3s ease;
}

.committee-card:hover {
  transform: translateY(-5px);
}

.committee-card h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 8px;
}

.committee-card h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 12px;
  background-color: var(--light-gray);
  padding: 10px 15px;
  border-radius: 5px;
  border-left: 3px solid var(--accent-color);
}

.committee-card p {
  color: var(--text-color);
  line-height: 1.6;
  margin: 8px 0;
  font-size: 1rem;
}

.committee-card p strong {
  color: var(--primary-color);
  font-weight: 700;
}
#committee a {
  color: inherit;        /* same as surrounding text */
  font-weight: normal;   /* not bold */
  text-decoration: none; /* no underline */
}

#committee a:hover {
  color: var(--accent-color); /* highlight only on hover */
  text-decoration: underline;
}
/* Remove special styling for names - keep them simple */

/* Speakers section */
.speakers-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.speakers-list a {
  color: var(--primary-color);
  font-size: 1.15rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.speakers-list a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  #committee {
    padding: 40px 15px;
  }
  
  .committee-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .committee-card {
    padding: 25px;
  }
  
  #committee h2 {
    font-size: 1.8rem;
  }
}
