/* --- Global Styles --- */
/* --- Top Bar --- */
.top-bar {
  background-color: #002244; /* dark navy blue */
  color: #e6f6ff; /* light sky-blue text */
  text-align: center;
  padding: 8px 0;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}


body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #e6f6ff; /* Very light sky-blue background */
  color: #0a2342; /* Deep blue text for readability */
  padding: 8px 0;
}

header {
  background-color: #e0f2ff; /* Light pastel sky blue for logo visibility */
  text-align: center;
  padding: 20px 10px;
  color: #0a2342;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 0 40px;
}

/* --- Professional Horizontal Rule for Header --- */
/* --- Professional Horizontal Rule for Header (Deep Blue Variant) --- */
header hr {
  border: none;
  height: 3px;
  width: 70%;
  margin: 12px auto 10px;
  background: linear-gradient(
    to right,
    transparent,
    #001f3f 30%,   /* Navy Blue */
    #002b5c 50%,   /* Deep University Blue */
    #001f3f 70%,   /* Navy Blue again */
    transparent
  );
  border-radius: 2px;
  opacity: 0.95;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}


.large-logo {
  width: 7vw;/*100px*/
 /* height: auto;*/
}

/* Responsive slideshow adjustments */
@media (max-width: 1024px) {
  .large-logo {
    width: 11vw; /* tablets */
  }
}

@media (max-width: 768px) {
  .large-logo {
    width: 16vw; /* phones */
  }
}



h1 {
  font-size: 1.25rem;
  color: #0a2342;
  line-height: 1.3;/*1.25*/
}

.main-title {
  color: #001f4d; /* dark blue */
  font-size: 1.55rem; /*1.6rem*/
}

/* Extra space between MSM-Week 2025 title and Department of Mathematics */
/*.space-line {
  display: block;
  margin-top: 10px;*/ /* adjust spacing as desired (10–20px looks good) */
  /*margin-left: 10px;
}*/


/* --- Navigation --- */
nav {
  background-color: #99d6ff; /* medium sky blue */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 10px 0;
}


nav ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
  display: flex;
  justify-content: center;
  gap: 25px;
}


@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
}



nav a {
  color: #0a2342;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 5px;
  transition: 0.3s;
}

nav a:hover,
nav a.active {
  background-color: #cceeff;
}

/* --- Navbar Base --- */
/*.navbar {
  background-color: #003366;
  color: white;
  padding: 10px 20px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  color: black;
  text-decoration: none;
  font-weight: 500;
}

/* --- Hamburger Button --- */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: black;
  cursor: pointer;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #003366;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #fff;
  }

  .nav-links.active {
    display: flex;
  }
}
*/

/* --- Slideshow --- */
.slideshow-container {
  max-width: 100%;
  position: relative;
  margin: auto;
  overflow: hidden;
}

/* --- Slideshow Text Overlays --- */
.slides {
  position: relative;
}

/* --- Slideshow Text Overlays --- */
.slide-text-left,
.slide-text-right {
  position: absolute;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 10px;
  font-family: "Playfair Display", serif; /*  Elegant, professional font */
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.slide-text-left:hover,
.slide-text-right:hover {
  transform: scale(1.03);
}

/* Bottom-left text (Event name) */
.slide-text-left {
  bottom: 25px;
  left: 30px;
  font-size: 1.8rem;
}

/* Bottom-right text (Department info) */
.slide-text-right {
  bottom: 25px;
  right: 30px;
  text-align: right;
  font-size: 1.1rem;
  line-height: 1.5;
}


/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .slide-text-left {
    font-size: 1.1rem;
    left: 15px;
    bottom: 15px;
  }

  .slide-text-right {
    font-size: 0.9rem;
    right: 15px;
    bottom: 15px;
  }
}



.slides img {
  width: 100%;
  height: 60vh; /* 60% of viewport height for better responsiveness */
  object-fit: cover;
}

/* Responsive slideshow adjustments */
@media (max-width: 1024px) {
  .slides img {
    height: 45vh; /* tablets */
  }
}

@media (max-width: 768px) {
  .slides img {
    height: 35vh; /* phones */
  }
}
/* --- Countdown --- */
.countdown-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #b3e0ff;
}

.countdown-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.countdown-box {
  background: #d9f0ff;
  border: 3px solid #0077b6;
  border-radius: 50%;
  width: 130px;
  height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #0a2342;
  box-shadow: 0 0 10px rgba(0,119,182,0.3);
  transition: transform 0.3s ease;
}

.countdown-box:hover {
  transform: scale(1.05);
}

.countdown-box span {
  font-size: 2em;
  font-weight: bold;
  color: #004c70;
}

.countdown-box p {
  margin: 0;
  font-size: 0.9em;
}

/* --- MSM-Week 2025 Team Section --- */
.team-section {
  background-color: #d9f0ff;
  text-align: center;
  padding: 50px 20px;
  color: #0a2342;
}

.team-section h2 {
  font-size: 1.8em;
  margin-bottom: 30px;
  color: #004c70;
}

/* Container for each dropdown section */
.dropdown {
  width: 100%;
  margin: 15px 0;
}

/* The visible clickable button */
.dropdown-btn {
  width: 100%;
  background-color: #a8d8f0; /* lighter blue */
  color: #003554;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.dropdown-btn:hover {
  background-color: #bfe6ff;
  transform: scale(1.02);
}

/* Dropdown content hidden by default */
.dropdown-content {
  max-height: 0;              /* hidden initially */
  overflow: hidden;
  background-color: #e8f7ff;  /* soft light-blue background */
  border-radius: 0 0 8px 8px;
  border-left: 4px solid #5ca9d6; /* slightly darker accent */
  padding: 0 20px;
  transition: max-height 0.4s ease, padding 0.3s ease;


  /* make all content appear in one row */
  display: flex;
  flex-wrap: nowrap;          /* force one single row */
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

/* Each person/item inside the dropdown */
.dropdown-content p {
  background-color: #d8efff;  /* very light blue box */
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 10px 15px;
  margin: 10px 0;
  line-height: 1.4;
  flex: 1;                    /* each takes equal width in the row */
  text-align: center;
  font-size: 0.95em;
}

/* Show content when dropdown is active (clicked) */
.dropdown.active .dropdown-content {
  max-height: 500px; /* large enough to show all in a row */
  padding: 15px 20px;
}


body.index-page .dropdown-content {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  gap: 20px;
}

body.index-page .dropdown-content p{
  text-align: center;
}

/* Make sure items fit nicely in row mode */
body.index-page .dropdown-content p,
body.index-page .dropdown-content div,
body.index-page .dropdown-content a {
  flex: 1 1 250px; /* allows multiple per row */
  max-width: 300px;
}


/* --- About / Objectives --- */
.about-section {
  display: grid;
  grid-template-colomns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 50px;
  text-align: center;
}

.info-block {
  background: #d0f0ff;
  border-left: 6px solid #0077b6;
  border-radius: 8px;
  padding: 20px;
  color: #0a2342;
  transition: 0.3s;
}

.info-block:hover {
  background: #e0f6ff;
  transform: translateY(-5px);
}


/* --- About */
/*.shedule-section {
  display: grid;
  grid-template-colomns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 50px;
}

.shedule-block {
  background: #d0f0ff;
  border-left: 6px solid #0077b6;
  border-radius: 8px;
  padding: 20px;
  color: #0a2342;
  transition: 0.3s;
}

.shedule-block:hover {
  background: #e0f6ff;
  transform: translateY(-5px);
}
*/


/*---- Program Schedule --- */
/* --- Program Schedule Section (Dropdown) --- */
.team-section {
  background-color: #d9f0ff;
  text-align: center;
  padding: 50px 20px;
  color: #0a2342;
}

.team-section h2 {
  font-size: 1.8em;
  margin-bottom: 30px;
  color: #004c70;
}

/* Dropdown container */
.dropdown {
  width: 100%;
  margin: 15px 0;
}

/* Button styling */
.dropdown-btn {
  width: 100%;
  background-color: #a8d8f0;
  color: #003554;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.dropdown-btn:hover {
  background-color: #bfe6ff;
  transform: scale(1.02);
}

/* Hidden content */
.dropdown-content {
  max-height: 0;
  overflow: hidden;
  background-color: #e8f7ff;
  border-radius: 0 0 8px 8px;
  border-left: 4px solid #5ca9d6;
  padding: 0 20px;
  transition: max-height 0.4s ease, padding 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch; /* makes children fill full width */
}

/* Each day's block */
.dropdown-content p {
  background-color: #d8efff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 12px 15px;
  line-height: 1.4;
  text-align: left;
  font-size: 0.95em;
}

/* When active (open) */
.dropdown.active .dropdown-content {
  max-height: 800px;
  padding: 20px;
}




/* --- Registration --- */
.registration-section {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 25px;
  padding: 40px;
}

.form-section {
  background: #d0f0ff;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #0a2342;
}

.form-section .form-content {
  display: flex;
  justify-content: space-between; /* text left, button right */
  align-items: center;
  flex-wrap: wrap;
}

.form-section h2 {
  margin: 0;
  text-align: left;
  font-size: 1.2em;
}

.form-button {
  display: inline-block;
  width: 250px;              /* Adjust to your preferred button width */
  height: 50px;              /* Adjust to your preferred button height */
  line-height: 50px;         /* Keeps text vertically centered */
  text-align: center;
  font-size: 1em;
  font-weight: 600;
  border-radius: 8px;
  background-color: #a8d8f0;
  color: #003554;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  margin-top: 10px;
}
.form-section a.form-button {
  margin: 0; /* remove top margin added before */
}

.form-button:hover {
  background-color: #bfe6ff;
  transform: scale(1.03);
}

/* --- Submission Section: two buttons stacked vertically on right --- */
.submission-content {
  flex-direction: column; /* default flex-column */
}

.submission-buttons {
  display: flex;
  flex-direction: column; /* stack buttons vertically */
  align-items: flex-end;   /* align buttons to right */
  gap: 10px;               /* spacing between buttons */
  margin-top: 10px;
}

/* --- Disabled Button --- */
.form-button.disabled {
  background-color: #b0c4de; /* faded blue */
  color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

.submission-note {
  color: #555;
  font-size: 0.95em;
  text-align: right;
  margin-top: 5px;
  font-style: italic;
}


/* --- Responsive Fixes --- */
@media (max-width: 768px) {
  .form-section .form-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .form-section h2 {
    text-align: center;
    font-size: 1.1em;
  }

  .form-button {
    width: 100%;
    height: auto;
    line-height: normal;
    padding: 12px 0;
    font-size: 1em;
  }

  .submission-buttons {
    align-items: center;
  }

  .submission-note {
    text-align: center;
  }
}


/* --- Introduction --- */
.introduction {
  background-color: #bfe6ff;
  text-align: center;
  padding: 30px 20px;
  font-size: 1.2em;
  line-height: 1.6;
}

/* --- contact-details --- */
.contact-details {
  background-color: #d9f0ff;
  text-align: center;
  padding: 30px 20px;
  font-size: 1.1em;
  line-height: 1.6;
}


/* --- Program Schedule Intro Section --- */
.schedule-intro {
  background-color: #b3e0ff; /* soft sky-blue background */
  padding: 50px 30px;
  text-align: center;
  color: #0a2342;
}

.intro-container {
  max-width: 900px;
  margin: 0 auto;
  background: #d9f0ff;
  border-left: 6px solid #0077b6;
  border-radius: 12px;
  padding: 30px 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.intro-container:hover {
  background: #e6faff;
  transform: translateY(-5px);
}

.schedule-intro h2 {
  font-size: 1.8em;
  color: #004c70;
  margin-bottom: 15px;
}

.schedule-intro p {
  font-size: 1.05em;
  line-height: 1.6;
  margin: 10px 0;
  color: #0a2342;
}


/* --- Footer --- */
footer {
  background-color: #004c70;
  text-align: center;
  padding: 15px;
  color: #e0f7ff;
  margin-top: 40px;
}



