/* ==========================================
   GLOBAL RESPONSIVE CSS FILE
   Mobile‑First — Optimized for Educational Sites
   Compatible with HTML / PHP static structures
========================================== */

/* ---------- Base Reset ---------- */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

iframe {
  width: 100%;
  border: none;
}

/* ---------- Containers ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 15px;
}

.section {
  padding: 40px 20px;
}

/* ---------- Typography ---------- */
h1 { font-size: 28px; margin-bottom: 15px; }
h2 { font-size: 24px; margin-bottom: 12px; }
h3 { font-size: 20px; margin-bottom: 10px; }
p  { font-size: 16px; }

/* ---------- Navigation ---------- */
nav {
  width: 100%;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

nav a {
  text-decoration: none;
  padding: 10px 14px;
  display: block;
}

/* Mobile Menu Button (optional) */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 22px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ---------- Tables ---------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: 10px;
  text-align: right;
  border: 1px solid #ddd;
}

/* ---------- Forms ---------- */
input,
select,
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

textarea {
  min-height: 220px;
  resize: vertical;
}

/* ---------- Cards / Boxes ---------- */
.card {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ==========================================
   BREAKPOINTS
========================================== */

/* ---------- Large Desktop ---------- */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* ---------- Desktop ---------- */
@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 992px) {

  h1 { font-size: 24px; }
  h2 { font-size: 22px; }

  .section {
    padding: 30px 15px;
  }

}

/* ---------- Large Mobile ---------- */
@media (max-width: 768px) {

  body {
    font-size: 15px;
  }

  h1 { font-size: 22px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }

  nav ul {
    flex-direction: column;
    gap: 5px;
  }

  .menu-toggle {
    display: block;
    margin-bottom: 10px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 25px 12px;
  }

  textarea {
    min-height: 180px;
  }

  iframe {
    height: 400px;
  }

}

/* ---------- Small Mobile ---------- */
@media (max-width: 480px) {

  body {
    font-size: 14px;
  }

  h1 { font-size: 20px; }
  h2 { font-size: 18px; }

  .container {
    padding: 10px;
  }

  .btn {
    padding: 12px;
    font-size: 14px;
  }

}

/* ---------- Extra Small Devices ---------- */
@media (max-width: 360px) {

  h1 { font-size: 18px; }
  h2 { font-size: 16px; }

  body {
    font-size: 13px;
  }

}

/* ==========================================
   UTILITIES
========================================== */

.text-center { text-align: center; }
.text-right  { text-align: right; }

.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

.hide-mobile {
  display: block;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
}

.show-mobile {
  display: none;
}

@media (max-width: 768px) {
  .show-mobile {
    display: block;
  }
}

/* ==========================================
   END OF FILE
========================================== */
