/* Custom CSS Variables */
:root {
  --primary-color: #007bff; /* Blue */
  --secondary-color: #6c757d; /* Gray */
  --accent-color: #28a745; /* Green for highlights */
  --background-light: #f8f9fa; /* Light gray */
  --background-dark: #343a40; /* Dark gray */
  --text-color-dark: #212529; /* Dark text */
  --text-color-light: #ffffff; /* Light text */
  --heading-font: "Montserrat", sans-serif;
  --body-font: "Open Sans", sans-serif;
  --border-radius-sm: 5px;
  --border-radius-md: 10px;
  --box-shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
  --box-shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
body {
  margin: 0;
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-light);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body:not(.home) #conference-info {
  display: none;
}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.5em;
}
h2 {
  font-size: 2em;
}
h3 {
  font-size: 1.75em;
}
h4 {
  font-size: 1.3em;
  color: var(--text-color-dark);
} /* Style for new H4s */

p {
  margin-bottom: 1em;
  text-align: justify; /* Applied justify here */
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0056b3; /* A darker shade of blue */
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li {
  text-align: justify; /* Applied justify to list items as well */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Utility Classes */
.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: none;
}

.btn-submit{
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.btn-submit:hover {
  background-color: #0056b3;
  color: yellow;
  transform: translateY(-2px);
}


.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.btn-hero {
  background-color: var(--accent-color);
  color: var(--text-color-light);
  padding: 15px 40px;
  font-size: 1.1em;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-light);
  position: relative;
  z-index: 13;  
}

.btn-hero {
  position: relative;
  z-index: 20;
}
.hero::before,
.hero::after {
  pointer-events: none;
}

.btn-hero:hover {
  background-color: #218838;
  transform: translateY(-3px);
}

.btn.large {
  font-size: 1.2em;
  padding: 15px 35px;
}

.icon-large {
  font-size: 3em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.icon-medium {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.link-btn {
  /* Style for links styled as buttons within text */
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 15px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  margin-top: 10px;
  display: inline-flex; /* Align icon better */
  align-items: center;
  gap: 5px;
    position: relative;
  z-index: 10;
  cursor: pointer;
}
.link-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

/* Main Header (Sticky) */
#main-header {
  background-color: var(--background-dark);
  color: var(--text-color-light);
  padding: 15px 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--box-shadow-medium);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-logo-img 
  height: 40px; /* Adjust as needed */
  filter: invert(1); /* Example: If logo is dark, make it light */
}

#spa {
  font-size: 1.8em;
  margin: 0;
  color: var(--text-color-light);
}

.main-navbar ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-navbar .nav-link {
  /* General styling for all nav links */
  color: var(--text-color-light);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  transition: background-color 0.3s ease;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--primary-color);
}

.main-navbar .btn-primary {
  padding: 8px 20px;
  margin-left: 10px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color-light);
  font-size: 1.8em;
  cursor: pointer;
  padding: 5px;
}

/* Dropdown Menu Styles - CORRECTED */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex; /* To align text and icon */
  align-items: center;
  gap: 5px;
}

.dropdown-menu {
  position: absolute;
  top: 100%; /* Position below the parent link */
  left: 0;
  background-color: var(--background-dark); /* Same as header */
  min-width: 220px; /* Adjust width as needed */
  box-shadow: var(--box-shadow-light);
  border-radius: var(--border-radius-sm);
  padding: 10px 0;
  z-index: 1001; /* Above header if needed */
  flex-direction: column; /* Stack items vertically */
  gap: 0; /* No gap between dropdown items */

  /* Default hidden state for desktop - using opacity/visibility for transition */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px); /* Slight offset for animation */
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Show on hover for desktop */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%; /* Full width for dropdown items */
}

.dropdown-menu .nav-link {
  padding: 10px 20px; /* Padding for dropdown items */
  color: var(--text-color-light);
  display: block; /* Make the whole area clickable */
  border-radius: 0; /* No rounded corners for inner items */
}

.dropdown-menu .nav-link:hover {
  background-color: rgba(
    255,
    255,
    255,
    0.1
  ); /* Lighter hover for dropdown items */
}
.dropdown-icon {
  font-size: 0.8em; /* Smaller arrow icon */
  transition: transform 0.3s ease;
}
.dropdown:hover .dropdown-icon {
  transform: rotate(180deg); /* Rotate arrow on hover */
}

/* Partners Section (Logos) */
.partners-section {
  background-color: var(--text-color-light);
  padding: 25px 0;
  border-bottom: 1px solid #e0e0e0;
}

.partners-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--secondary-color);
  font-size: 1.5em;
}

.logo-container {
  display: flex;
  justify-content: space-evenly;
  gap: 60px;
  flex-wrap: wrap;
  align-items: center;
}

.partner-logo {
  height: 150px;
  /* Example: Make logos grayscale by default */
  /* Make them slightly transparent */
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.partner-logo:hover {
  /* Full color on hover */

  transform: scale(1.25);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 600px;
  background: url("images/bg.jpg")
    no-repeat center center/cover;
  display: flex;
  align-items: center;
  text-align: center; /* Keep hero section centered */
  color: var(--text-color-light);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  animation: fadeIn 1s ease-out forwards;
}

.hero-tagline {
  font-size: 1.1em;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.hero-title {
  font-size: 2.8em;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--text-color-light);
}

.hero-conference-name {
  font-size: 5.5em;
  margin-bottom: 20px;
  color: var(--text-color-light);
  font-weight: 700;
}

.hero-conference-name .year {
  color: var(--primary-color);
}

.hero-dates {
  text-align: center;
  font-size: 1.3em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}


/*Conference Date Section*/

/* Container spacing */
#conference-info .container {
  max-width: 1000px;
 margin-bottom: 0px;
 margin-top: 0px;
 padding-bottom: 0px;
 padding-top: 0px;
  
 
}

/* Flex layout for horizontal boxes */
.info-boxes {
  display: flex;
  gap: 20px; /* space between boxes */
  justify-content: center; /* center horizontally */
  flex-wrap: wrap; /* wrap on smaller screens */
  margin-top: 0px;
  margin-bottom: 0px !important;
  padding-bottom: 0x;
}

/* Individual info box styling */
.info-box {
  background-color: #007bff; /* professional blue */
  color: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  flex: 1 1 250px; /* responsive width, min 250px */
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Box hover effect */
.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

/* Box headings */
.info-box h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
}

/* Box content */
.info-box p {
  font-size: 1rem;
  margin: 0;
}

/* 4 key date boxes below Conference Date & Venue */
.date-boxes {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
  margin-bottom: -700; /* reduce space before about section */
}

.date-box {
  background-color: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 25px 20px;
  text-align: center;
  flex: 1 1 200px; /* responsive width */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.date-box h4 {
  color: #007bff;
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 1rem;
}

.date-box p {
  font-size: 0.95rem;
  margin: 0;
  color: #555;
}

.date-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 123, 255, 0.15);
}



/* Content Sections General Styling */
.content-section {
  padding: 80px 0;
  background-color: var(--background-light);
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-section:nth-of-type(even) {
  /* This selector might need adjustment if order changes often */
  background-color: var(--text-color-light);
}

.content-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.8em;
  position: relative;
}

.content-section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.hidden-section {
  display: none !important;
}

/* About SPACE Section */
.about-space-section p {
  max-width: 900px;
  margin-top: 0;
  
  text-align: justify; /* Keep specific justify here for clarity */
  font-size: 1.1em;
  line-height: 1.8;
  color: #555;
}

.important-dates {
  background-color: var(--background-light);
}

.dates-cards {
  display: flex;
  flex-wrap: nowrap;               /* allows wrapping on smaller screens */
  justify-content: center;       /* center all cards horizontally */
  align-items: flex-start;       /* align vertically at the top */
  gap: 25px;
  width: 100%;
  max-width: none;             /* slightly wider for 5 cards */
  margin: 0 auto;                /* centers the entire group on page */
  text-align: center;
}


.date-card {
  background-color: var(--text-color-light);
  padding: 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.date-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-medium);
}

.date-card h3 {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.date-card p {
  font-size: 1.1em;
  color: #666;
  font-weight: 600;
  text-align: center; /* Keep date cards centered text */
}



/* Tracks Section */
#tracks-section-wrapper {
  background-color: var(--text-color-light);
}

.tracks-intro {
  text-align: center; /* Keep specific justify here for clarity */
  margin-bottom: 40px;
  font-size: 1.4em;
  font-weight: bold;
  color: #555;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.track-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
}

.track-card {
  background-color: var(--background-light);
  padding: 25px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.track-image {
  display: block;         /* Makes sure it behaves like a block element */
  margin: 20px auto;      /* 20px space above and below, centered horizontally */
  max-width: 100%;        /* Responsive: fits the card width */
  height: auto;           /* Maintain aspect ratio */
}

.track-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-medium);
}

.track-card h3 {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
  margin-top: 0;
  text-align: left; /* Ensure track titles are left-aligned */
}

.track-card p {
  font-size: 1em;
  color: #666;
  line-height: 1.7;
  flex-grow: 1;
  text-align: justify; /* Keep specific justify here for clarity */
}

.track-card ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 20px;
}

.track-card li {
  font-size: 0.95em;
  color: #444;
  margin-bottom: 8px;
  line-height: 1.5;
  text-align: justify; /* Keep specific justify here for clarity */
}

/*Extra Button*/
.extra-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.btn-secondary {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 20px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-secondary:hover {
  background-color: #0056b3;
}


/* About College Section */
.about-college {
  background-color: var(--background-light);
}

.about-college h2 {
  font-size: 2.8em;
  margin-bottom: 25px;
}

.about-college h2 a {
  color: inherit;
  transition: color 0.3s;
}

.about-college h2 a:hover {
  color: #0056b3;
}

.about-college p {
  max-width: 900px;
  margin: 0 auto;
  text-align: justify; /* Keep specific justify here for clarity */
  font-size: 1.1em;
  line-height: 1.8;
  color: #555;
}

/* Placeholder Sections */
.placeholder-section {
  padding: 100px 20px;
  text-align: center;
  background-color: #e9ecef;
  border-top: 1px solid #dee2e6;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.placeholder-section h2 {
  color: var(--secondary-color);
}
.placeholder-section h2::after {
  background-color: var(--primary-color);
}

.placeholder-section h5 {
    background-color: var(--secondary-color);
    font-size: large;
    color: white;
    text-align:center !important;
}
.placeholder-section h6 {
    background-color: var(--secondary-color);
    font-size: large;
    color: white;
    text-align:center !important;
}

/*Payment Section*/
.table-wrapper {
  overflow-x: auto;
  margin: 20px auto;
  text-align: center;
}

.payment-table {
  width: 80%;
  margin: 0 auto;
  border-collapse: collapse;
  font-family: 'Open sans', sans-serif;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.payment-table th,
.payment-table td {
  padding: 12px 20px;
  border: 1px solid #ddd;
}

.payment-table th {
  background-color: #007bff;
  color: #fff;
  font-size: 1rem;
}

.payment-table td {
  font-size: 0.95rem;
  color: #333;
}

.payment-table tr:nth-child(even) td {
  background-color: #f9f9f9;
}

.payment-table tr:hover td {
  background-color: #e6f2ff;
  transition: 0.3s;
}

#payment h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.8rem;
  color:#007bff;
}

.team-section {
    text-align: center !important; /* centers all text inside this section */
}

.team-section .name {
    font-weight: bold; /* optional: highlight names */
}


/* Styles for new detailed content sections (Article Submission, Enrollment, Review Policy, etc.) */
#article-submission-section,
#conference-enrollment-section,
#review-policy-section,
#publication-section,
#speakers-section {
  padding: 60px 0; /* Slightly less padding than main sections */
  background-color: var(--text-color-light); /* White background */
}
#article-submission-section:nth-of-type(even),
#conference-enrollment-section:nth-of-type(even),
#review-policy-section:nth-of-type(even),
#publication-section:nth-of-type(even),
#speakers-section:nth-of-type(even) {
  background-color: var(
    --background-light
  ); /* Alternate light gray for long sections */
}

/* General styling for list content within detailed sections */
#article-submission-section ul,
#conference-enrollment-section ul,
#review-policy-section ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

#article-submission-section ol {
  /* For ordered lists */
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

#article-submission-section li,
#conference-enrollment-section li,
#review-policy-section li {
  margin-bottom: 10px;
  font-size: 1em;
  color: #444;
  text-align: justify; /* Keep specific justify here for clarity */
}

#article-submission-section p,
#conference-enrollment-section p,
#review-policy-section p,
#publication-section p {
  max-width: 900px;
  margin: 0 auto 20px auto;
  font-size: 1.05em;
  line-height: 1.7;
  color: #555;
  text-align: justify; /* Keep specific justify here for clarity */
}

.template-links {
  /* For download buttons */
  text-align: center;
  margin-top: 30px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.template-links .btn {
  width: auto; /* Reset width to auto for desktop, will be 100% on mobile */
  max-width: 250px; /* Give a max-width for desktop buttons */
}

.steps-list {
  /* For enrollment steps */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 30px auto;
}

.site-logo {
  height: 70px;
  width: auto;
  margin-left: -60px;
  object-fit: contain;
  cursor: pointer;
}

#main-header .logo-main {
  display: flex;
  align-items: center;
}

.step-item {
  background-color: var(--background-light);
  padding: 25px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-light);
  border-left: 5px solid var(--primary-color);
}
.step-item h4 {
  font-size: 1.2em;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-align: left; /* Ensure step titles are left-aligned */
}
.step-item p {
  /* Added this for step item paragraphs */
  text-align: left; /* Ensure step item paragraphs are left-aligned, not justified if single line */
}
.step-item ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 0;
  max-width: none; /* Override parent max-width */
}
.step-item li {
  font-size: 0.95em;
  text-align: justify; /* Ensure step item list items are justified */
}

/* ---------- Speakers grid (Final Fixed) ---------- */
.speaker-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  box-sizing: border-box;
  justify-items: center;
  align-items: start;
}

/* --- Each speaker card --- */
.speaker-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  min-height: 360px; /* ensures all cards equal height */
}

.speaker-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* --- Image wrapper (circular) --- */
.speaker-img-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 10px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  background-color: #f1f1f1; /* fallback if image missing */
}

.speaker-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Text styling --- */
.speaker-name {
  font-size: 1.25rem; /* slightly bigger */
  font-weight: 800;   /* bold name */
  color: var(--primary-color, #0b5ed7);
  margin-top: 6px;
}

.speaker-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 2px 0 4px;
}

.speaker-bio {
  font-size: 0.94rem;
  color: #666;
  line-height: 1.4;
  text-align: center;
  flex-grow: 1; /* ensures even spacing for equal height cards */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

/* --- Responsive layout --- */
@media (max-width: 992px) {
  .speaker-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 576px) {
  .speaker-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .speaker-card {
    max-width: 100%;
    min-height: auto;
  }
  .speaker-img-wrap {
    width: 100px;
    height: 100px;
  }
  .speaker-name {
    font-size: 1.15rem;
  }
}


/* Footer */
footer {
  background-color: var(--background-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9em;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 15px;
}

.footer-links a:hover {
  color: var(--primary-color);
}

footer {
  background-color: #1a1a1a; /* dark background */
  color: #fff;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin: 10px;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #f0a500;
  font: "Open Sans", sans-serif; /* accent color */
}

.footer-section a {
  color: #fff;
  text-decoration: none;
  font: "Open Sans", sans-serif;}

.footer-section a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #333;
  padding-top: 10px;
  font-size: 14px;
}


/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .header-content {
    padding: 0 15px;
  }
  .main-navbar ul {
    gap: 20px;
  }
  .hero-title {
    font-size: 2.5em;
  }
  .hero-conference-name {
    font-size: 3em;
  }
  .content-section h2 {
    font-size: 2.2em;
  }
  .dates-cards,
  .track-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  #main-header {
    padding: 10px 0;
  }
  .header-content {
    flex-wrap: wrap;
    justify-content: space-around; /* Keep logo-main and toggle separate */
  }
  .logo-main {
    width: auto; /* Allow logo to take its natural width */
    margin-bottom: 0;
  }
  .main-navbar {
    /* Removed display: none; by default. */
    /* Use JS to toggle 'display: block' or 'flex' along with 'active' class */
    /* The issue was likely due to display:none overriding .active's display */
    /* Instead, we'll control visibility with max-height on .active */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background-dark);
    box-shadow: var(--box-shadow-light);
    z-index: 990;
    padding-bottom: 15px;
    max-height: 0; /* Start hidden with 0 height */
    overflow: hidden; /* Hide overflowing content */
    transition: max-height 0.4s ease-in-out; /* Smooth transition for height */
    flex-direction: column; /* Ensure items stack vertically even when hidden */
  }
  .main-navbar.active {
    max-height: 400px; /* Adjust as needed for your menu content */
    display: flex; /* Make sure it's flex when active */
  }
  .main-navbar ul {
    flex-direction: column;
    gap: 0; /* Remove gap for mobile */
    width: 100%;
  }
  .main-navbar li {
    width: 100%;
    text-align: center;
  }
  .main-navbar .nav-link,
  .main-navbar .btn-primary {
    display: block;
    padding: 12px 20px; /* Adjust padding for mobile links */
    border-radius: 0;
    margin-left: 0; /* Remove margin */
    width: 100%;
  }
  .main-navbar .nav-link:hover,
  .main-navbar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
  }

  /* Dropdown specific for mobile - CORRECTED */
  .dropdown {
    position: static; /* No longer absolutely positioned relative to header */
  }
  .dropdown-menu {
    position: static;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: none;
    padding: 0;
    border-radius: 0;

    display: flex;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);

    overflow: hidden;
    max-height: 0; /* Start with no height for accordion effect */
    transition: max-height 0.3s ease-out; /* Smooth transition */
  }
  .dropdown.active .dropdown-menu {
    max-height: 300px; /* Arbitrary max height for transition (adjust if content exceeds this) */
  }
  .dropdown-menu .nav-link {
    padding-left: 40px; /* Indent dropdown items */
    background-color: rgba(0, 0, 0, 0.2);
  }
  .dropdown-icon {
    transform: rotate(0deg); /* Reset rotation */
  }
  .dropdown.active .dropdown-icon {
    transform: rotate(180deg); /* Rotate when active */
  }

  .menu-toggle {
    display: block;
  }
  .hero-section {
    height: 500px;
  }
  .hero-title {
    font-size: 2em;
  }
  .hero-conference-name {
    font-size: 2.8em;
  }
  .hero-dates {
    font-size: 1.1em;
  }
  .content-section {
    padding: 60px 0;
  }
  .content-section h2 {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .track-card {
    padding: 25px;
  }
  .about-space-section p,
  .about-college p,
  .tracks-intro,
  #article-submission-section p,
  #conference-enrollment-section p,
  #review-policy-section p,
  #publication-section p {
    font-size: 1em;
    padding: 0 10px; /* Add some horizontal padding for paragraphs */
    text-align: justify; /* Ensure mobile paragraphs are justified */
  }
  .about-space-section ul,
  #article-submission-section ul,
  #conference-enrollment-section ul,
  #review-policy-section ul {
    padding-left: 20px;
    margin-left: 10px; /* Adjust list margin on mobile */
    margin-right: 10px;
  }
  .template-links {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
  }
  .template-links .btn {
    width: 100%;
    max-width: none; /* Remove max-width on mobile */
  }
  .steps-list {
    padding: 0 10px;
  }
  .placeholder-section {
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  #spa {
    font-size: 1.5em;
  }
  .main-logo-img {
    height: 30px;
  }
  .hero-section {
    height: 400px;
  }
  .hero-title {
    font-size: 1.5em;
  }
  .hero-conference-name {
    font-size: 2.2em;
  }
  .hero-dates {
    font-size: 1em;
  }
  .btn-hero {
    padding: 10px 25px;
    font-size: 1em;
  }
  .content-section h2 {
    font-size: 1.8em;
  }
  .date-card {
    padding: 20px;
  }
  .icon-large {
    font-size: 2.5em;
  }
  .track-card h3 {
    font-size: 1.4em;
  }
  .partner-logo 3 {
    height: 45px;
  }

  .partner-logo 4 {
    height: 135px;
  }

  footer .container {
    gap: 10px;
  }
  .footer-links a {
    margin: 0 10px;
    font-size: 0.85em;
  }
  .dropdown.active .dropdown-menu {
    max-height: 250px; /* Adjust for smaller screens */
  }
  #spa {
    width: 150px;
  }
}
