:root {
  --primary: #0057b8;
  --primary-dark: #003f88;
  --primary-light: #eaf4ff;
  --secondary: #00a6ff;
  --white: #ffffff;
  --dark: #1f2937;
  --text: #4b5563;
  --border: #dbeafe;
  --shadow: 0 12px 30px rgba(0, 63, 136, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: min(1200px, 92%);
  margin: auto;
}

/* Top Bar */
.top-bar {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 14px;
}

.top-content {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 0;
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-circle {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
}

.logo-area h1 {
  font-size: 22px;
  color: var(--primary-dark);
  line-height: 1.2;
}

.logo-area span {
  font-size: 14px;
  color: var(--text);
}

.navbar ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar a {
  display: block;
  padding: 12px 14px;
  color: var(--dark);
  font-weight: 600;
  font-size: 15px;
  transition: 0.3s ease;
}

.navbar a:hover {
  color: var(--primary);
}

.nav-btn {
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 30px;
  padding: 10px 18px !important;
}

.nav-btn:hover {
  background: var(--primary-dark);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 10px 0;
  display: none !important;
  z-index: 20;
}

.dropdown:hover .dropdown-menu {
  display: block !important;
}

.dropdown-menu a {
  padding: 10px 18px;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 24px;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* Hero */
.hero {
  height: 650px;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-content {
  color: var(--white);
  max-width: 760px;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero h2 {
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.btn {
  display: inline-block;
  border-radius: 30px;
  padding: 12px 24px;
  font-weight: 700;
  transition: 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn.primary {
  background: var(--primary);
  color: var(--white);
}

.btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn.secondary {
  background: var(--white);
  color: var(--primary-dark);
}

.btn.secondary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.25);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 34px;
  cursor: pointer;
}

.slider-btn:hover {
  background: var(--primary);
}

.prev {
  left: 25px;
}

.next {
  right: 25px;
}

.slider-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.slider-dots button {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}

.slider-dots button.active {
  background: var(--white);
}

/* Quick Links */
.quick-links {
  margin-top: -65px;
  position: relative;
  z-index: 5;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.quick-card {
  background: var(--white);
  padding: 28px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--primary);
  transition: 0.3s ease;
}

.quick-card:hover {
  transform: translateY(-7px);
}

.quick-card h3 {
  color: var(--primary-dark);
  margin-bottom: 8px;
}

/* Sections */
.section {
  padding: 90px 0;
}

.section.light {
  background: var(--primary-light);
}

.section-label {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.section h2 {
  color: var(--primary-dark);
  font-size: clamp(30px, 4vw, 42px);
  margin: 8px 0 25px;
}

.two-column {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.about-card,
.content-card,
.doc-card,
.fee-card,
.download-box,
.attendance-box {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.about-card h3,
.content-card h3 {
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.about-card li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 24px;
}

.about-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 25px;
}

.info-list div {
  background: var(--primary-light);
  padding: 18px;
  border-radius: 12px;
}

.info-list strong {
  display: block;
  color: var(--primary-dark);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.content-card {
  border-top: 4px solid var(--primary);
}

/* Download */
.download-box {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  border-left: 5px solid var(--primary);
}

.download-box h3 {
  color: var(--primary-dark);
}

/* Attendance */
.attendance-box {
  display: flex;
  align-items: center;
  gap: 30px;
}

.percentage {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-size: 34px;
  font-weight: 900;
  flex-shrink: 0;
}

/* Academic Summary */
.academic-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 35px;
}

.academic-summary > div {
  background: var(--white);
  padding: 25px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.academic-summary h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
}

/* Accordion */
.accordion-btn {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 18px 22px;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  margin-top: 12px;
  cursor: pointer;
  border-radius: 10px;
}

.accordion-btn::after {
  content: "+";
  float: right;
  font-size: 24px;
}

.accordion-btn.active::after {
  content: "-";
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: var(--white);
  transition: max-height 0.3s ease;
  border-radius: 0 0 10px 10px;
}

.accordion-content > * {
  margin: 20px;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 750px;
}

th {
  background: var(--primary);
  color: var(--white);
  padding: 13px;
  text-align: left;
}

td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--border);
}

tr:nth-child(even) {
  background: #f8fbff;
}

.total-row {
  font-weight: 800;
  background: #dbeafe !important;
  color: var(--primary-dark);
}

/* Documents */
.document-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.doc-card {
  border: 1px solid var(--border);
  transition: 0.3s ease;
}

.doc-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.doc-card h3 {
  color: var(--primary-dark);
}

.doc-card span {
  color: var(--primary);
  font-weight: 800;
}

/* Fee */
.fee-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  border-top: 5px solid var(--primary);
}

.fee-amount {
  font-size: 42px;
  color: var(--primary);
  font-weight: 900;
}

.fee-breakup {
  display: grid;
  gap: 15px;
  min-width: 300px;
}

.fee-breakup div {
  background: var(--primary-light);
  padding: 18px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
}

.fee-breakup strong {
  color: var(--primary-dark);
}

.note {
  margin-top: 20px;
}

/* Contact */
.contact-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
}

.contact-section h2,
.contact-section .section-label {
  color: var(--white);
}

.contact-form {
  background: var(--white);
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--secondary);
}

/* Footer */
.footer {
  background: #001f44;
  color: var(--white);
  padding: 25px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  display: none;
  box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 992px) {
  .top-content,
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 82px;
    left: 0;
    width: 100%;
    background: var(--white);
    display: none;
    box-shadow: var(--shadow);
  }

  .navbar.active {
    display: block;
  }

  .navbar ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: var(--primary-light);
    border-radius: 8px;
    display: none !important;
  }

  .dropdown.open .dropdown-menu {
    display: block !important;
  }

  .quick-grid,
  .card-grid,
  .academic-summary,
  .document-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 580px;
  }

  .quick-links {
    margin-top: 30px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  .fee-card,
  .download-box,
  .attendance-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .slider-btn {
    display: none;
  }
}

@media (max-width: 576px) {
  .logo-area h1 {
    font-size: 17px;
  }

  .logo-circle {
    width: 45px;
    height: 45px;
  }

  .section {
    padding: 65px 0;
  }

  .hero h2 {
    font-size: 34px;
  }

  .hero p {
    font-size: 17px;
  }

  .fee-amount {
    font-size: 34px;
  }

  .fee-breakup {
    min-width: 100%;
  }
}