/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9fafb;
}

/* Utility Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

.text-justify {
  text-align: justify;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

/* Header Styles */
.header {
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-top-banner {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  /* Changed banner background to white to match image background */
  background-color: white;
}

.top-banner-image {
  width: 100%;
  /* Increased height from 80px to 120px to prevent cropping */
  height: 120px;
  /* Changed from cover to contain to show full image without cropping */
  object-fit: contain;
  display: block;
  /* Removed background-color since banner container now has white background */
}

.header-main {
  /* Changed header main background to white to match banner */
  background-color: white;
  color: #374151;
  /* Reduced top padding from 3rem to 2rem to decrease space between banner and logo */
  padding: 2rem 1rem 3rem;
  border-bottom: 4px solid #1d4ed8;
}

.header-content {
  display: flex;
  align-items: center;
  /* Changed from space-between to flex-start for proper alignment */
  justify-content: flex-start;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

/* New styles for cover image positioned at leftmost edge */
.cover-image-container {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.cover-image {
  /* Increased conference cover image size from 180px to 250px */
  width: 250px;
  height: 250px;
  object-fit: contain;
}

/* New container for main content to be properly centered */
.main-content-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 200px; /* Space for cover image and college logo */
}

.logo-container {
  /* Position college logo at right edge */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.logo {
  /* Increased conference cover image size from 180px to 250px */
  width: 250px;
  height: 250px;
  object-fit: contain;
}

.title-container {
  flex: 1;
  text-align: center;
  padding: 0 2rem;
}

.main-title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

/* Added styles for conference logo to replace main title */
.logo-title-container {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; /* Ensure full width for proper centering */
}

.conference-logo {
  /* Increased ICNEXTS'25 logo size from 140px to 200px height and 450px to 600px width */
  max-height: 200px;
  max-width: 600px;
  width: auto;
  height: auto;
  object-fit: contain;
  background-color: white;
  border-radius: 8px;
  padding: 10px;
  display: block; /* Ensure proper block display */
  margin: 0 auto; /* Additional centering with auto margins */
}

/* Added styles for conference date to make it bold and larger */
.conference-date {
  font-size: 1.375rem;
  font-weight: bold;
  margin: 1rem 0;
  color: #374151;
}

/* Added styles for department name */
.department-name {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #2563eb;
}

.subtitle {
  font-size: 1.5rem;
  font-weight: normal;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.organized-by {
  font-size: 1.125rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
  padding-left: 3px;
}

.college-name {
  font-size: 1.5rem;
  font-weight: 500;
}

/* Updated styles for "Indexed in" text - increased size and adjusted spacing */
.indexed-text {
  font-size: 1.75rem; /* Increased from 1.25rem to make it bigger */
  font-weight: 600;
  color: #2563eb;
  text-align: center;
  margin-top: 2rem; /* Added top margin to separate from college name */
  margin-bottom: 0.5rem; /* Reduced from 1rem to stick closer to sponsors */
}

/* Reduced top margin of sponsors container to bring it closer to indexed text */
.sponsors-container {
  margin-top: 0.5rem; /* Reduced from 2rem to bring closer to indexed text */
  display: flex;
  /* Changed from center to space-between to span full width */
  justify-content: space-between;
  align-items: center;
  /* Removed gap since space-between handles spacing */
  flex-wrap: nowrap;
  width: 100%;
}

.sponsor-image {
  /* Increased sponsor image size from 120px to 160px */
  width: 160px;
  height: 160px;
  object-fit: contain;
  background-color: white;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.sponsor-image:hover {
  transform: scale(1.05);
}

/* Navigation Styles */
.nav {
  background-color: #475569;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center; /* Centered by default for larger screens */
  gap: 2rem;
  padding: 0.75rem 0;
  overflow-x: auto;
  padding-bottom: 10px; /* Added to ensure scrollbar is visible */
  -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #93c5fd;
}

.nav-link.active {
  color: #93c5fd; /* Highlight color for active link */
  font-weight: 700;
  border-bottom: 2px solid #93c5fd;
}

/* Update Banner */
.update-banner {
  background-color: #0ea5e9;
  color: white;
  padding: 0.75rem 1rem;
}

.update-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.update-label {
  background-color: #0284c7;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-right: 1rem;
}

.update-text {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Slideshow Styles */
.slideshow-section {
  background: linear-gradient(to bottom right, #f3f4f6, #e5e7eb);
  padding: 2rem 0 4rem;
}

.slideshow-container {
  position: relative;
  height: 600px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 1280px;
  margin: 0 auto;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent, transparent);
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
}

.caption-box {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 0.5rem;
  padding: 1rem;
  max-width: 24rem;
}

.caption-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.caption-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
}

.slide-dots {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: white;
  transform: scale(1.25);
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.2);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #3b82f6, #0ea5e9);
  transition: width 5s linear;
}

/* Main Content Styles */
.main-content {
  background-color: #f9fafb;
  padding: 4rem 0;
}

.content-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.card-header {
  background-color: #2563eb;
  padding: 1rem 2rem;
}

.card-title {
  font-size: 1.875rem;
  font-weight: bold;
  color: white;
}

.card-content {
  padding: 2rem;
}

.card-text {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Conference Tracks */
.track-list {
  list-style: none;
  padding: 0;
}

.track-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.track-bullet {
  width: 0.5rem;
  height: 0.5rem;
  background-color: #2563eb;
  border-radius: 50%;
  margin-top: 0.5rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.track-text {
  font-size: 0.875rem;
  color: #374151;
}

/* Important Dates */
.date-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border-top: 4px solid #2563eb;
  height: 16rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.date-icon {
  width: 3rem;
  height: 3rem;
  color: #2563eb;
  margin-bottom: 1rem;
}

.date-title {
  font-size: 1rem;
  font-weight: bold;
  color: #2563eb;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.date-value {
  font-size: 1.25rem;
  font-weight: bold;
  color: #16a34a;
}

.date-year {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Downloads */
.download-card {
  background-color: #2563eb;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  color: white;
}

.download-card:hover {
  background-color: #1d4ed8;
  color: white;
}

.download-icon {
  width: 3rem;
  height: 3rem;
  color: white;
  margin-bottom: 1rem;
}

.download-title {
  font-size: 1rem;
  font-weight: bold;
  color: white;
  line-height: 1.2;
}

/* Footer */
.footer {
  background-color: #111827;
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.footer-text {
  color: #d1d5db;
}

.footer-highlight {
  color: #60a5fa;
  font-weight: 600;
}

/* Contact Page Styles */
.contact-main {
  background-color: #f9fafb;
  padding: 4rem 0;
}

.map-container {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 4rem;
}

.map-frame {
  height: 500px;
  width: 100%;
  border: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.contact-section {
  margin-bottom: 1.5rem;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2563eb;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.contact-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.75rem;
}

.contact-text {
  color: #374151;
  font-size: 1.125rem;
  line-height: 1.6;
}

.contact-info {
  margin-bottom: 0.5rem;
}

.contact-link {
  color: #2563eb;
  text-decoration: underline;
}

.contact-link:hover {
  color: #1d4ed8;
}

.query-box {
  background-color: #eff6ff;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.query-text {
  color: #374151;
  margin-bottom: 1rem;
}

.email-box {
  background: white;
  border-radius: 0.5rem;
  padding: 1rem;
  border-left: 4px solid #2563eb;
  margin-bottom: 0.75rem;
}

.email-text {
  color: #2563eb;
  font-weight: 600;
}

.office-hours {
  background-color: #f9fafb;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.office-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: #374151;
  margin-bottom: 0.75rem;
}

/* Added styles for highlighted conference title */
.conference-title-highlight {
  font-weight: bold !important;
  color: #1d4ed8 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  font-size: 1.75rem !important;
  line-height: 1.4;
}

/* Added styles for SDG Goals logo container and logo */
.sdg-container {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sdg-logo {
  max-width: 300px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .top-banner-image {
    /* Increased mobile height from 60px to 90px */
    height: 90px;
    /* Changed from cover to contain for mobile */
    object-fit: contain;
  }

  .main-title {
    font-size: 2.5rem;
  }

  /* Added responsive styles for conference logo */
  .conference-logo {
    /* Increased mobile ICNEXTS'25 logo size from 100px to 150px height and 350px to 500px width */
    max-height: 150px;
    max-width: 500px;
    margin: 0 auto; /* Maintain centering on mobile */
  }

  .subtitle {
    font-size: 1.125rem;
  }

  .college-name {
    font-size: 1.25rem;
  }

  .nav-menu {
    justify-content: flex-start; /* Left-aligned for mobile */
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.875rem;
    padding: 0.25rem;
  }

  .slideshow-container {
    height: 400px;
  }

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .header-content {
    /* Stack elements vertically on mobile */
    flex-direction: column;
    position: static;
  }

  /* Reset positioning for mobile */
  .cover-image-container,
  .logo-container {
    position: static;
    transform: none;
    margin-bottom: 1rem;
  }

  .main-content-container {
    margin: 0;
    order: 2;
  }

  .cover-image-container {
    order: 1;
  }

  .logo-container {
    order: 3;
  }

  .cover-image {
    /* Increased mobile size from 150px to 200px */
    width: 200px;
    height: 200px;
  }

  .title-container {
    padding: 2rem 0 0;
  }

  /* Added responsive sizing for larger logo on mobile */
  .logo {
    /* Increased mobile size from 150px to 200px */
    width: 200px;
    height: 200px;
  }

  /* Added responsive styles for conference date */
  .conference-date {
    font-size: 1.25rem;
  }

  /* Added responsive styles for sponsors */
  .sponsors-container {
    /* Changed to wrap and center for mobile */
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .sponsor-image {
    /* Increased mobile sponsor size from 100px to 130px */
    width: 130px;
    height: 130px;
  }

  /* Added responsive styles for conference title highlight */
  .conference-title-highlight {
    font-size: 1.375rem !important;
  }

  /* Added responsive styles for SDG logo */
  .sdg-logo {
    max-width: 250px;
    max-height: 60px;
  }
}

@media (max-width: 480px) {
  .top-banner-image {
    /* Increased small screen height from 50px to 70px */
    height: 70px;
    /* Changed from cover to contain for small screens */
    object-fit: contain;
  }

  .main-title {
    font-size: 2rem;
  }

  /* Added mobile responsive styles for conference logo */
  .conference-logo {
    /* Increased small screen ICNEXTS'25 logo size from 80px to 120px height and 300px to 400px width */
    max-height: 120px;
    max-width: 400px;
    margin: 0 auto; /* Maintain centering on small screens */
  }

  .subtitle {
    font-size: 1rem;
  }

  .slideshow-container {
    height: 300px;
  }

  .card-content {
    padding: 1rem;
  }

  .date-card {
    height: 14rem;
  }

  /* Added responsive sizing for larger logo on small screens */
  .logo {
    /* Increased small screen size from 120px to 160px */
    width: 160px;
    height: 160px;
  }

  .cover-image {
    /* Increased small screen size from 120px to 160px */
    width: 160px;
    height: 160px;
  }

  /* Added responsive styles for conference date on small screens */
  .conference-date {
    font-size: 1.125rem;
  }

  /* Added responsive styles for sponsors on small screens */
  .sponsors-container {
    gap: 1rem;
  }

  .sponsor-image {
    /* Increased small screen sponsor size from 60px to 80px */
    width: 110px;
    height: 110px;
  }

  /* Added responsive styles for conference title highlight on small screens */
  .conference-title-highlight {
    font-size: 1.125rem !important;
  }

  /* Added responsive styles for SDG logo on small screens */
  .sdg-logo {
    max-width: 200px;
    max-height: 50px;
  }
}
/* Added styling for the updated banner and date elements */

/* Added styling for the updated banner and date elements */

/* Update Banner Styles */
.update-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 5px solid #fff;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.update-content {
  max-width: 1200px;
  margin: 0 auto;
}

.update-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.update-label {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  display: inline-block;
}

.update-text-wrapper {
  display: flex;
  align-items: center;
}

.update-text {
  color: white;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
}

.conference-title {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: underline;
}

.highlight-date {
  background: rgba(255, 255, 255, 0.25);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Added extended deadline line styling in banner */
.extended-deadline-line {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.extended-deadline-text {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
}

/* Strikethrough Date Styling */
.strikethrough-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 0.8rem;
}

.strikethrough-date {
  position: relative;
  color: #999;
  margin: 0;
  font-size: 1.2rem;
  z-index: 2;
}

.red-cross-line {
  width: 100%;
  height: 20px;
  stroke: #dc2626;
  stroke-width: 3;
  position: absolute;
  top: 8px;
  left: 0;
  filter: drop-shadow(0 0 2px rgba(220, 38, 38, 0.6));
}

/* Added new date value styling for the date card */
.new-date-value {
  color: #dc2626;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0.5rem 0;
  text-align: center;
}

.extended-label {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .update-banner {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .update-text {
    font-size: 0.9rem;
  }

  .conference-title {
    font-size: 1rem;
  }

  .highlight-date {
    font-size: 0.95rem;
  }

  .red-cross-line {
    height: 15px;
    stroke-width: 2.5;
  }

  .extended-deadline-text {
    font-size: 0.85rem;
  }

  .new-date-value {
    font-size: 1rem;
  }
}
