/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background-color: white;
}
::-webkit-scrollbar-thumb {
  background-color: #BFA181;
  border-radius: 20px;
}

/* Root and Reset */
:root {
  --primary-color: #005bb5;
  --secondary-color: #0082c3;
  --accent-color: #ff6b6b;
  --text-dark: #333333;
  --text-light: #666666;
  --gray-light: #f5f5f5;
  --white: #ffffff;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #0A1828;
}

/* Header & Nav */
.header {
  background: #0A1828;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #BFA181;
}
.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
  margin: 0 20px;
}
.nav-link, .logo {
  text-decoration: none;
  color: white;
  font-size: 20px;
  font-weight: 500;
}
.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.nav-menu li a:hover {
  color: #BFA181;
}
.nav-menu li a.active {
  color: var(--primary-color);
  font-weight: bold;
}
.nav-menu li a.active:hover {
  color: var(--secondary-color);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
}

/* Page Title */
.new {
  display: flex;
  align-items: center;
  margin: 30px auto 50px;
  justify-content: center;
  color: white;
  font-weight: 600;
}

/* Accordion */
.accordian {
  margin: 60px auto;
  width: 100%;
  max-width: 750px;
  color: black;
  text-align: center;
}
.accordian li {
  list-style: none;
  width: 100%;
  padding: 5px;
}
.accordian li label {
  display: flex;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: 500;
  background: white;
  margin-bottom: 2px;
  cursor: pointer;
  position: relative;
}
label::after {
  content: '+';
  font-size: 34px;
  position: absolute;
  right: 20px;
  transition: transform 0.5s;
}
input[type="radio"] {
  display: none;
}
.accordian .content {
  text-align: left;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s, padding 0.5s;
}
.accordian input[type="radio"]:checked + label + .content {
  max-height: 3000px; /* significantly increased for detailed syllabus */
  padding: 30px 20px;
}
.accordian input[type="radio"]:checked + label::after {
  transform: rotate(135deg);
}

/* Subject Table */
table {
  border-collapse: collapse;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  color: white;
  overflow-x: auto;
}
th, td {
  border: 2px solid white;
  padding: 8px 12px;
  text-align: center;
}
th {
  background-color: white;
  color: #0A1828;
  font-weight: bold;
}
.total-row {
  font-weight: bold;
}
.subject-name {
  text-align: left;
  color: white;
}
.subject-link {
  cursor: pointer;
  color: white;
  text-decoration: none;
}
.subject-link:hover {
  color: #BFA181;
}

/* Syllabus Dropdowns */
.syllabus-row {
  background-color: #1A2332 !important;
}

.syllabus-cell {
  background-color: #1A2332 !important;
  padding: 20px !important;
  border: 2px solid #BFA181 !important;
  overflow-x: auto;
  text-align: left !important;
  justify-content: left;
}

/* Ensure table cells are also left-aligned */
.syllabus-cell td,
.syllabus-cell th {
  text-align: left !important;
}

/* Syllabus Content Styling */
.table-syllabus-content {
  background-color: transparent;
  max-height: 2000px; /* increased for detailed content */
  overflow-y: auto;
  padding-right: 10px;
  text-align: left !important;
  line-height: 1.6; /* better readability for long content */
}
.table-syllabus-content h4 {
  color: #BFA181;
  font-size: 18px;
  margin-bottom: 15px;
  text-align: left !important;
}
.table-syllabus-content * {
  text-align: left !important;
}

/* Unit Display */
.syllabus-units {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.unit {
  background-color: transparent;
}
.unit h5 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: left;
}
.unit ul {
  margin-left: 20px;
  list-style: disc;
  text-align: left;
}
.unit li {
  color: #cccccc;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 4px;
  text-align: left;
}

/* Buttons under syllabus */
.table-syllabus-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.syllabus-btn {
  background-color: #BFA181;
  color: #0A1828;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.syllabus-btn:hover {
  background-color: #ffffff;
  transform: translateY(-1px);
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .new {
    margin-left: 0;
    justify-content: center;
  }
  .accordian {
    max-width: 90%;
  }
  .syllabus-actions {
    flex-direction: column;
  }
  .syllabus-btn {
    width: 100%;
  }
  .syllabus-units {
    flex-direction: column;
  }
  table {
    font-size: 14px;
    overflow-x: auto;
  }
}

.syllabus-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px; /* Adjust as needed */
}

.syllabus-detail-table th,
.syllabus-detail-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.syllabus-detail-table th {
    background-color: #f2f2f2;
}

.syllabus-detail-table ul {
    list-style-type: disc; /* Or none, if you prefer */
    padding-left: 20px;
    margin: 0;
}

.syllabus-detail-table li {
    margin-bottom: 5px;
}
.footer {
            background-color: #0A1828; /* Dark blue background */
            color: white;
            padding: 50px 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 25px; /* Using gap for consistent spacing between elements */
            border-top: 2px solid #BFA181; /* Added a white line on top */
        }

        .footer-title {
            font-size: 2.2rem;
            font-weight: bold;
            margin: 0;
        }

        .footer-logo {
            width: 100px;
            height: 100px;
        }

        .footer-institute {
            display: flex;
            flex-direction: column;
            gap: 8px; /* Space between the Hindi and English names */
        }

        .footer-institute-name {
            font-size: 1.5rem;
            margin: 0;
            line-height: 1.3; /* Adjust line height for closer text */
        }

        .footer-contact-info {
            font-size: 1rem;
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            gap: 5px; /* Space between contact info lines */
        }

        .footer-contact-info p {
            margin: 0;
        }