/* =====================================================
   RESET & GLOBAL BASE
   ===================================================== */

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #212529;
  background-color: #ffffff;
  overflow-x: hidden; /* CRITICAL for mobile */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =====================================================
   CONTAINER FIX (OVERRIDE BOOTSTRAP)
   ===================================================== */

.container {
  max-width: 1140px;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 768px) {
  .container {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }
}

/* =====================================================
   TYPOGRAPHY SYSTEM
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1.2rem;
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: 4rem; }
h2 { font-size: 3.2rem; }
h3 { font-size: 2.4rem; }
h4 { font-size: 2rem; }

p {
  margin: 0 0 1.6rem;
  font-size: 1.6rem;
}

li {
  font-size: 1.5rem;
}

/* =====================================================
   HERO / SLIDER / BANNER FIX
   ===================================================== */

.hero,
.slider,
.banner,
.single-slider {
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero .container,
.slider .container,
.banner .container {
  max-width: 680px;
}

.hero h1,
.slider h1,
.banner h1 {
  font-size: 4.2rem;
  font-weight: 600;
}

.hero p,
.slider p,
.banner p {
  font-size: 1.7rem;
}

/* =====================================================
   SECTION SPACING
   ===================================================== */

section {
  padding: 6rem 0;
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
}

/* =====================================================
   NAVBAR FIX
   ===================================================== */

header {
  padding: 1.2rem 0;
}

.navigation .navbar,
.navigation-2 .navbar,
.navigation-3 .navbar {
  min-height: 70px;
}

.navbar a {
  font-size: 1.5rem;
  padding: 0.8rem 1.2rem;
}

.logo img {
  max-height: 55px;
}

/* =====================================================
   FOOTER FIX
   ===================================================== */

footer,
.footer-area {
  background-color: #0b2a4a;
  color: #ffffff;
  padding: 5rem 0 3rem;
  font-size: 1.4rem;
}

footer h4,
footer h5 {
  font-size: 1.8rem;
  margin-bottom: 1.6rem;
}

footer p,
footer li {
  line-height: 1.8;
}

footer ul li {
  margin-bottom: 0.8rem;
}

/* =====================================================
   MODAL
   ===================================================== */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #ffffff;
  width: 90%;
  max-width: 600px;
  margin: 10% auto;
  padding: 2rem;
}

.close {
  font-size: 2.4rem;
  cursor: pointer;
}

/* =====================================================
   TABLES
   ===================================================== */

.table-custom {
  width: 100%;
  border-collapse: collapse;
}

.table-custom th,
.table-custom td {
  border: 1px solid #000;
  padding: 0.8rem;
  text-align: center;
}

/* =====================================================
   MOBILE-FIRST OVERRIDES (MOST IMPORTANT)
   ===================================================== */

@media (max-width: 480px) {

  /* Typography */
  h1 { font-size: 2.6rem !important; }
  h2 { font-size: 2.2rem !important; }
  h3 { font-size: 1.9rem !important; }
  p  { font-size: 1.4rem !important; }
  li { font-size: 1.4rem !important; }

  /* Hero */
  .hero,
  .slider,
  .banner {
    min-height: 70vh;
    text-align: center;
  }

  /* Navbar */
  .navigation .navbar,
  .navigation-2 .navbar,
  .navigation-3 .navbar {
    min-height: 60px;
  }

  .navbar a {
    padding: 0.6rem 0.8rem;
  }

  .logo img {
    max-height: 45px;
  }

  /* Footer */
  footer {
    text-align: center;
  }

  footer ul {
    padding-left: 0;
  }
}

/* =====================================================
   SMALL UTILITIES
   ===================================================== */

.center-text {
  text-align: center;
}

.pdf-frame {
  width: 100%;
  height: 600px;
  border: none;
}


/* =====================================================
   FORCE OVERRIDES — EDUBIN THEME
   ===================================================== */


/* third level menu */
.has-submenu {
    position: relative;
}

.has-submenu .sub-sub-menu {
    position: absolute;
    left: 100%;
    top: 0;
    display: none;
    min-width: 200px;
}

.has-submenu:hover .sub-sub-menu {
    display: block;
}

/* third level menu (submenu inside submenu) */

.sub-menu li {
    position: relative;
}

.sub-menu li .sub-sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    display: none;
    min-width: 200px;
    background: #fff;
}

.sub-menu li:hover .sub-sub-menu {
    display: block;
}
