  * {
  box-sizing: border-box; }

li{ 
  margin: 8px 0;
}

   body {
      font-family: Times New Roman, Arial, "Open Sans", sans-serif;
      margin: 0;
      padding: 0;
      background-color: #f2f2f2;
      font-size: 18px;
       line-height: 1.5;
    }

    /* Header styling */
/* Header styling */
/* Header styling */
/* Header styling */
header {
  background-image: url(Background.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 15px;
  text-align: center;
  height: 40vh;  /* 50% of viewport height */
  width: 100%;
  box-sizing: border-box;
}

/* Optional: Adjust height for smaller screens */
@media (max-width: 720px) {
  header {
    height: 30vh; /* smaller height on small screens */
  }
}
    
    

    .titlep {
  margin-top: 0;
  margin-bottom: 1rem; 
  display: inline-block;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 1);
  border-width: 1px;
  border-radius: 1rem;
  padding: 10px 10px 10px 10px;
font-size: 10px;
 }

   .titlep1 {
  margin-top: 0;
  margin-bottom: 1rem; 
  display: inline-block;
  margin-bottom: 1rem;
font-size: 30px;
  color: rgb(255, 225, 103);
  border-color: rgba(0, 255, 255, 1);
  border-width: 1px;
  border-radius: 1rem;
 }

 .titlep2 {
  font-size: 30px;
  margin-top: 0;
  margin-bottom: 1rem; 
  display: inline-block;
  margin-bottom: 1rem;
  color: rgb(136, 255, 223);
  border-color: rgba(255, 219, 77, 1);
  border-width: 1px;
  border-radius: 1rem;
 }

 

    /* Navbar styling */
    nav {
      background-color: #00596a; /* Navbar background color */
      text-align: center; /* Center align the navbar */
    }

    nav a {
      display: inline-block; /* Display navbar items on the same line */
      color: white;
      text-align: center;
      padding: 14px 16px;
      text-decoration: none;
    }

    nav a:hover {
      background-color: black; /* Change the background color on hover */
      color: blue;
    }
  
   nav a.active {
      background-color: blue; /* Change the background color for the active page */
      color: blue;
    }

    /* Body styling */
    .container {
      width: 80%;
      margin: 20px auto;
      padding: 20px;
      background-color: white;
    }

    /* Responsive Styles */
    @media only screen and (max-width: 600px) {
      nav a {
        display: inline block; /* Change to block for small screens to stack vertically */
        width: 100%; /* Make the navbar items take full width */
        box-sizing: border-box; /* Include padding and border in width calculation */
      }
    }

    @media screen and (min-width: 64em) {
  .titlep {
    font-size: 4.0rem; } }

@media screen and (min-width: 42em) and (max-width: 64em) {
  .titlep {
    font-size: 2.0rem; } }

@media screen and (max-width: 42em) {
  .titlep {
    font-size: 1.5rem; } }  
  

.mcont :first-child {
  margin-top: 0; }

.mcont img {
  max-width: 100%; }

.mcont h1, .mcont h2, .mcont h3, .mcont h4, .mcont h5, .mcont h6 {
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-weight: normal;
  color: red; }

.mcont p {
  margin-bottom: 2em; }


.mcont table {
  display: block;
  width: 100%;
  overflow: auto;
  word-break: normal;
  word-break: keep-all; }
  
  .mcont table th {
    font-weight: bold; }
  .mcont table th, .mcont table td {
    padding: 0.2rem 1.2rem;
    border: 1px solid #e9ebec; }

.mcont hr {
  height: 2px;
  padding: 0;
  margin: 1rem 0;
  background-color: #eff0f1;
  border: 0; }

@media screen and (min-width: 75em) {
  .mcont {
    max-width: 75rem;
    padding: 2rem 3rem;
    margin: 0 auto;
    font-size: 1.1rem; } }

@media screen and (min-width: 42em) and (max-width: 75em) {
  .mcont {
    padding: 2rem 4rem;
    font-size: 1.1rem; } }

@media screen and (max-width: 42em) {
  .mcont {
    padding: 2rem 1rem;
    font-size: 1rem; } }


/* ================================
   Responsive Navigation
   ================================ */

.navbar {
    width: 100%;
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    width: 100%;
    background: #006274;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 28px;
    text-align: right;
    cursor: pointer;
}

.menu-toggle .close {
    display: none;
}

/* Navigation menu */
.nav-menu {
    width: 100%;
}

/* =========================================
   YATI PHOTO CAROUSEL
   ========================================= */

.yati-carousel-section {
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
    text-align: center;
    background-color: white;
}

.yati-carousel-section h2 {
    color: #990000;
    margin-bottom: 30px;
}

/* Carousel main area */

.yati-carousel {
    width: 100%;
    max-width: 1100px;
    margin: auto;

    display: flex;
    align-items: center;
    gap: 15px;
}

/* Visible window */

.yati-carousel-window {
    width: 100%;
    overflow: hidden;
}

/* Moving track */

.yati-carousel-track {
    display: flex;
    gap: 25px;

    transition: transform 0.6s ease;
}

/* Individual photo */

.yati-card {
    flex: 0 0 calc(50% - 12.5px);
    box-sizing: border-box;

    text-align: center;
}

.yati-card img {
    width: 100%;
    height: 300px;

    object-fit: cover;

    display: block;

    border-radius: 5px;
}

/* Caption */

.yati-card p {
    margin-top: 12px;

    font-size: 16px;
    line-height: 1.5;

    color: #333;
}

/* Arrow */

.yati-arrow {
    border: none;
    background: transparent;

    font-size: 35px;

    cursor: pointer;

    color: #333;

    padding: 5px 10px;

    flex-shrink: 0;
}

.yati-arrow:hover {
    color: #990000;
}


/* Mobile */

@media (max-width: 700px) {

    .yati-carousel {
        gap: 5px;
    }

    .yati-card {
        flex: 0 0 100%;
    }

    .yati-card img {
        height: 250px;
    }

    .yati-arrow {
        font-size: 25px;
    }

}

/* ================================
   Mobile
   ================================ */

@media screen and (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        background: #006274;
        width: 100%;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 16px 10px;
        color: white;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .nav-menu a:hover {
        background: #00515f;
    }

    /* ☰ → ✕ */
    .menu-toggle.active .hamburger {
        display: none;
    }

    .menu-toggle.active .close {
        display: inline;
    }
}

/* =========================================
   MOBILE RESPONSIVE HEADER
   ========================================= */

@media (max-width: 600px) {

    header {
        padding: 15px 10px !important;
        height: auto !important;
        min-height: 0 !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    header p {
        text-align: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        line-height: 1.2 !important;
    }

    /* Indian Centre... */
    header p:nth-child(1) {
        font-size: 18px !important;
    }

    /* 4th Young Astrophysicists... */
    header p:nth-child(2) {
        font-size: 27px !important;
    }

    /* Date */
    header p:nth-child(3) {
        font-size: 18px !important;
    }

}
@media (max-width: 600px) {

    .navbar {
        min-height: 55px;
        height: auto;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        margin-right: 15px;
    }

}

/* ================================
   MOBILE HEADER FIX
   ================================ */

@media (max-width: 600px) {

    header {
        height: auto !important;
        min-height: 0 !important;
        padding: 18px 10px 20px 10px !important;
        box-sizing: border-box;
        overflow: visible !important;
    }

    header p {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;

        text-align: center !important;

        margin-top: 0 !important;
        margin-bottom: 12px !important;

        padding: 0 5px !important;

        line-height: 1.15 !important;
    }

    /* Indian Centre for Space Physics */
    header p:nth-child(1) {
        font-size: 18px !important;
    }

    /* 4th Young Astrophysicists */
    header p:nth-child(2) {
        font-size: 27px !important;
    }

    /* Date */
    header p:nth-child(3) {
        font-size: 18px !important;
        margin-bottom: 0 !important;
    }

}