/*
 * GD Goenka Public School Arrah — unified teal UI
 * Primary requested by user: rgb(15, 118, 110) / #0f766e
 */
:root {
  --brand-primary: rgb(15, 118, 110);
  --brand-primary-hex: #0f766e;
  --brand-primary-dark: #0b5e58;
  --brand-primary-darker: #134e4a;
  --brand-primary-light: #ccfbf1;
  --brand-primary-soft: #f0fdfa;
  --surface: #ffffff;
  --surface-muted: #f7faf9;
  --text-main: #1f2937;
  --text-muted: #5f6b67;
  --border: #d9e5e2;
  --success: #16804a;
  --danger: #b42318;
  --warning: #9a6700;
  --shadow-sm: 0 4px 14px rgba(15, 118, 110, 0.10);
  --shadow-md: 0 12px 30px rgba(15, 118, 110, 0.13);
  --radius-sm: 8px;
  --radius-md: 14px;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text-main);
  background: var(--surface);
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body, input, select, textarea, button {
  font-family: 'Open Sans', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.navbar, .loginwrp, .readmore, .btn {
  font-family: 'Montserrat', Arial, sans-serif;
}

img, svg, video, iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--brand-primary);
}

a:hover, a:focus {
  color: var(--brand-primary-dark);
}

:focus-visible {
  outline: 3px solid rgba(15, 118, 110, .35);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100000;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand-primary-dark);
  transition: top .2s ease;
}

.skip-link:focus { top: 12px; color: #fff; }

/* Shared containers */
.container,
.container-fluid {
  box-sizing: border-box;
}

#main-content {
  min-height: 40vh;
}

/* Header / navigation */
.header-wrap {
  background: #fff;
  border-bottom: 1px solid rgba(15, 118, 110, .12);
  box-shadow: 0 2px 12px rgba(15, 118, 110, .06);
  z-index: 1000;
}

.header-wrap .logo img,
.header-wrap .logo-default {
  max-height: 82px;
  width: auto;
}

.header-wrap .navbar {
  padding-top: .75rem;
  padding-bottom: .75rem;
}

.navbar-light .navbar-nav .nav-link,
.navigation-wrap .navbar-nav > li > a {
  color: #243532 !important;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color .18s ease, color .18s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .active > .nav-link,
.navigation-wrap .navbar-nav > li:hover > a {
  color: var(--brand-primary) !important;
  background: var(--brand-primary-soft) !important;
}

.navigation-wrap .navbar-nav > li {
  position: relative;
}

.navigation-wrap .fa-caret-down {
  color: var(--brand-primary);
}

.navigation-wrap .submenu {
  border-top: 3px solid var(--brand-primary);
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.navigation-wrap .submenu li a {
  color: #283936;
  background: #fff;
}

.navigation-wrap .submenu li a:hover,
.navigation-wrap .submenu li a:focus {
  color: #fff !important;
  background: var(--brand-primary) !important;
}

.loginwrp a,
.readmore a,
.btn-primary,
button.btn-primary,
input[type="submit"],
button[type="submit"]:not(.close):not(.close-button),
.razorpay-payment-button {
  color: #fff !important;
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  border-radius: 9px;
  box-shadow: none;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.loginwrp a:hover,
.readmore a:hover,
.btn-primary:hover,
.btn-primary:focus,
button.btn-primary:hover,
input[type="submit"]:hover,
button[type="submit"]:not(.close):not(.close-button):hover,
.razorpay-payment-button:hover {
  color: #fff !important;
  background: var(--brand-primary-dark) !important;
  border-color: var(--brand-primary-dark) !important;
  box-shadow: 0 7px 18px rgba(15, 118, 110, .20);
  transform: translateY(-1px);
}

.navbar-toggler {
  border-color: rgba(15, 118, 110, .28) !important;
  background: var(--brand-primary-soft) !important;
}

.close-toggler {
  color: var(--brand-primary) !important;
}

/* Page headings */
.innerHeading-wrap {
  position: relative;
  background: linear-gradient(135deg, var(--brand-primary-darker), var(--brand-primary));
}

.innerHeading-wrap:before,
.innerHeading-wrap:after {
  opacity: .12;
}

.innerHeading-wrap h1,
.innerHeading-wrap .innerHeading {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: -.02em;
}

.title h1,
.title h2,
.title h3,
.section-title,
h2.update-title {
  color: var(--brand-primary-darker) !important;
}

/* Cards and content panels */
.form-container,
.payment-container,
.processing-container,
.invoice-container,
.card,
.blog_box,
.teacher-wrap li,
.course-item,
.service_box,
.contact_box,
.school-panel,
.content-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.form-container,
.payment-container,
.processing-container,
.invoice-container {
  margin-left: auto;
  margin-right: auto;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="password"],
input[type="file"],
select,
textarea,
.form-control {
  color: var(--text-main);
  background: #fff;
  border: 1px solid #cbd8d5;
  border-radius: 8px;
  min-height: 44px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

textarea { min-height: 110px; }

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .13) !important;
  outline: none;
}

label {
  color: #29413d;
  font-weight: 600;
}

/* Tables */
table {
  width: 100%;
  color: var(--text-main);
}

table thead th,
table th {
  color: #fff;
  background: var(--brand-primary) !important;
  border-color: rgba(255,255,255,.16) !important;
  font-weight: 700;
}

table tbody tr:nth-child(even) {
  background: #f2faf8 !important;
}

table tbody tr:nth-child(odd) {
  background: #fff !important;
}

table td,
table th {
  border-color: var(--border) !important;
}

.table-responsive {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

/* Feature / category / legacy brand elements */
.categories_wrap ul li .categories-course,
.time_box,
.apply-wrap,
.teacher-wrap .teacherImg:before,
.newsletter-wrap,
.course-price,
.pricing-table .dollarPrice,
.viewbtn a:hover,
.loginWrp:before,
.contact_form .btn,
.footer-bottom,
.event-wrap .event_box .event_date,
.service_box:hover,
.feature-icon,
.owl-dot.active span,
.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}

.course_info h3 a:hover,
.teacher-wrap h3 a:hover,
.blog_inner .blog_box h3 a:hover,
.footer-adress li span a:hover,
.footerLinks li a:hover,
.faqs h4 .collapsed:hover:before,
.contact_info i,
.feature-icon i {
  color: var(--brand-primary) !important;
}

/* Footer */
.footer-wrap {
  color: #dce9e6;
  background: #0d3532 !important;
}

.footer-wrap h3 {
  color: #fff !important;
}

.footer-wrap a {
  color: #dce9e6;
}

.footer-wrap a:hover,
.footer-wrap a:focus {
  color: #fff;
  text-decoration: underline;
}

.footer-about {
  color: #dce9e6;
  text-align: justify;
}

.footer-bottom {
  color: #fff;
  background: var(--brand-primary-dark) !important;
}

.copyright-text,
.copyright-text a {
  color: #fff !important;
}

.copyright-text a:hover { text-decoration: underline; }

.social-icons ul li a {
  background: var(--brand-primary) !important;
  border-color: rgba(255,255,255,.25) !important;
  color: #fff !important;
}

.social-icons ul li a:hover {
  background: var(--brand-primary-dark) !important;
}

/* Notifications and popup elements */
.notification_wrap .notification_icon {
  color: var(--brand-primary) !important;
}

.popup-content {
  border: 1px solid rgba(15, 118, 110, .20);
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md) !important;
}

.popup-content input:focus {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 3px rgba(15,118,110,.12) !important;
}

.popup-content button:not(.close-button) {
  background: var(--brand-primary) !important;
}

.popup-content button:not(.close-button):hover {
  background: var(--brand-primary-dark) !important;
}

/* Keep semantic states distinct from brand color */
.alert-success, .success, .success-message {
  color: #0f5132 !important;
  background: #d1e7dd !important;
  border-color: #badbcc !important;
}

.alert-danger, .error, .error-message, .text-danger {
  color: #842029 !important;
}

.alert-danger, .error, .error-message {
  background: #f8d7da !important;
  border-color: #f5c2c7 !important;
}

.alert-warning {
  color: #664d03 !important;
  background: #fff3cd !important;
  border-color: #ffecb5 !important;
}

/* Utility: legacy pages use custom body1/body2 tags. Keep them harmless and
   visually consistent until all historical pages are migrated. */
body1, body2 {
  display: block;
  width: 100%;
  color: var(--text-main);
  background: var(--surface);
}

/* Admissions / payment pages */
.form-container,
.payment-container,
.processing-container {
  width: min(92%, 860px) !important;
  padding: clamp(18px, 3vw, 32px) !important;
}

.payment-container h2,
.form-container h2,
.processing-container h2 {
  color: var(--brand-primary-darker) !important;
}

.notes {
  color: var(--text-muted) !important;
  background: var(--brand-primary-soft);
  border-left: 4px solid var(--brand-primary);
  padding: 12px 14px;
  border-radius: 8px;
}

/* UDISE badge */
.sidebar {
  background: var(--brand-primary) !important;
  border-radius: 10px 0 0 10px !important;
  box-shadow: var(--shadow-sm);
}

/* Gallery */
.gallery-item,
.photo-item,
.image-box {
  border-radius: 12px;
  overflow: hidden;
}

/* Responsive navigation and spacing */
@media (max-width: 991.98px) {
  .header-wrap {
    padding: 8px 0 !important;
  }

  .header-wrap .logo img,
  .header-wrap .logo-default {
    max-height: 70px;
  }

  .navbar-light .navbar-nav .nav-link {
    color: #fff !important;
    border-radius: 0;
  }

  .navbar-light .navbar-nav .nav-link:hover,
  .navbar-light .navbar-nav .nav-link:focus,
  .navbar-light .navbar-nav .active > .nav-link {
    color: #fff !important;
    background: var(--brand-primary-dark) !important;
  }

  .navigation-wrap .navbar-collapse {
    background: var(--brand-primary-darker) !important;
  }

  .navigation-wrap .submenu {
    box-shadow: none;
    border-top: 0;
  }

  .navigation-wrap .submenu li a {
    background: #0f4541;
    color: #fff;
  }

  .navigation-wrap .fa-caret-down { color: #fff; }
}

@media (max-width: 767.98px) {
  .innerHeading-wrap { padding: 30px 0 !important; }
  .innerHeading-wrap h1 { font-size: clamp(26px, 8vw, 38px) !important; }

  .form-row { display: block !important; }
  .form-group.half-width { width: 100% !important; }

  table.responsive-table,
  .responsive-table thead,
  .responsive-table tbody,
  .responsive-table th,
  .responsive-table td,
  .responsive-table tr {
    display: block;
    width: 100%;
  }

  .footer-wrap { text-align: left; }
}

@media print {
  .header-wrap,
  .footer-wrap,
  .footer-bottom,
  .sidebar,
  .skip-link,
  .navbar,
  .no-print {
    display: none !important;
  }

  body { background: #fff !important; }
  #main-content { min-height: 0; }
  .invoice-container { box-shadow: none !important; border: 0 !important; }
}
