/* =========================================================
   UHS CHAKIYA TARARI — DPS-INSPIRED DESIGN REFRESH
   Safe, additive overrides. Keep the existing website features.
   Add this file AFTER your current style.css in index.html.
   ========================================================= */

:root {
  --uhs-green: #075449;
  --uhs-green-dark: #063f38;
  --uhs-gold: #c49a35;
  --uhs-ink: #262d2b;
  --uhs-muted: #5d6966;
  --uhs-pale: #f5f8f7;
  --uhs-border: #e2e9e6;
}

/* Overall typography and spacing */
html { scroll-behavior: smooth; }
body {
  color: var(--uhs-ink);
  background: #fff;
  font-family: "Noto Sans Devanagari", "Nirmala UI", Mangal, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
.container { width: min(92%, 1240px); }

/* Clean white school identity header */
.header {
  background: #fff;
  border-bottom: 1px solid #e9eeeb;
  box-shadow: 0 3px 16px rgba(12, 55, 47, .055);
}
.header-content {
  min-height: 120px;
  gap: 22px;
  padding: 12px 0;
}
.school-brand { gap: 16px; }
.school-logo,
.school-logo img {
  width: 94px;
  height: 94px;
}
.school-brand h1 {
  color: var(--uhs-green);
  font-size: clamp(23px, 2.5vw, 32px);
  font-weight: 800;
  letter-spacing: .1px;
}
.school-brand p {
  color: #5c6965;
  font-size: 15px;
}
.school-brand small {
  color: #9a7928;
  font-size: 11px;
  letter-spacing: 1px;
}

/* Elegant green navigation, closer to a premium school website */
.navbar {
  background: var(--uhs-green);
  box-shadow: 0 3px 10px rgba(5, 52, 44, .12);
}
.nav-container { align-items: center; }
.nav-container a {
  padding: 13px 12px;
  margin: 0 1px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}
.nav-container a:hover,
.nav-container a:focus-visible {
  color: var(--uhs-green-dark);
  background: #f0d58b;
  box-shadow: none;
  transform: none;
}

/* Spacious hero: clean text area plus large, crisp school-photo slider */
.hero {
  min-height: auto;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f8faf9 100%);
  background-image: none;
}
.hero-overlay {
  min-height: auto;
  display: block;
  padding: 42px 0 48px;
}
.hero-content {
  min-height: 430px;
  gap: clamp(28px, 5vw, 64px);
  justify-content: space-between;
}
.hero-text {
  width: 44%;
  max-width: 560px;
  color: var(--uhs-ink);
}
.welcome {
  color: #b83238;
  font-size: 17px;
  letter-spacing: 1.2px;
}
.hero h2 {
  color: var(--uhs-green-dark);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.18;
  margin: 12px 0 18px;
  font-weight: 800;
}
.hero p {
  color: #596662;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.85;
  margin-bottom: 25px;
}
.home-slider {
  width: 54%;
  height: clamp(280px, 34vw, 430px);
  margin-left: 0;
  border-radius: 4px;
  box-shadow: 0 12px 34px rgba(20, 48, 42, .16);
  background: #e7eeeb;
}
.slider-track img {
  border-radius: 4px;
  filter: brightness(1.06) contrast(1.04) saturate(1.04);
}
.btn {
  border-radius: 3px;
  padding: 12px 22px;
  font-size: 14px;
}
.primary-btn {
  color: #fff;
  background: var(--uhs-green);
}
.primary-btn:hover { background: var(--uhs-green-dark); }
.secondary-btn {
  color: var(--uhs-green);
  border: 1px solid var(--uhs-green);
  background: #fff;
}
.secondary-btn:hover { background: #edf5f2; }

/* Registration announcement: clear and formal, without harsh neon effects */
.top-registration-notice {
  background: var(--uhs-green);
  padding: 12px 16px;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.6;
  box-shadow: none;
}
.top-registration-notice strong {
  color: #f4d98d;
  font-size: inherit;
}
.registration-slide {
  color: #fff8dc;
  font-size: clamp(22px, 3vw, 36px);
  text-shadow: 1px 2px 4px rgba(0,0,0,.55);
}
.registration-slide span {
  color: #f4d98d;
  font-size: inherit;
  text-shadow: inherit;
}

/* Notice ticker and board */
.notice-ticker {
  background: #fff;
  border-bottom: 1px solid var(--uhs-border);
}
.ticker-title {
  background: var(--uhs-green);
  padding: 12px 20px;
}
.ticker-text { color: #34423e; }
.notice-board { max-width: 1040px; }
.notice-item {
  gap: 20px;
  padding: 20px 22px;
  margin-bottom: 12px;
  border: 1px solid var(--uhs-border);
  border-left: 4px solid var(--uhs-gold);
  border-radius: 4px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 4px 14px rgba(15, 57, 48, .045);
}
.notice-item:hover {
  box-shadow: 0 8px 20px rgba(15, 57, 48, .09);
}
.notice-date {
  min-width: 68px;
  height: 68px;
  border-radius: 3px;
  background: var(--uhs-green);
}
.notice-date strong { font-size: 23px; }
.notice-tag { color: #9a7623; }

/* Section headings and alternating backgrounds */
.section { padding: clamp(48px, 6vw, 78px) 0; }
.light-section { background: #f7f9f8; }
.section-heading { margin-bottom: 38px; }
.section-heading span {
  color: #9a7928;
  font-size: 12px;
  letter-spacing: 1.8px;
}
.section-heading h2 {
  color: var(--uhs-green);
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.35;
  font-weight: 800;
}
.heading-line {
  width: 56px;
  height: 3px;
  background: var(--uhs-gold);
}

/* About section */
.about-grid { gap: clamp(28px, 4vw, 48px); }
.about-text h3 {
  color: var(--uhs-green);
  font-size: clamp(23px, 2.4vw, 29px);
}
.about-text p {
  color: #586561;
  line-height: 1.9;
}
.about-card {
  background: var(--uhs-green);
  border-radius: 5px;
  box-shadow: 0 12px 28px rgba(7, 84, 73, .13);
}

/* Statistics and cards */
.stats-section { background: var(--uhs-green); }
.stat-card { padding: 24px 16px; }
.stat-card h3 { color: #f0d58b; }
.stat-card strong { font-size: clamp(22px, 2.5vw, 28px); }
.academic-card,
.staff-card,
.facility-card,
.contact-card {
  border: 1px solid var(--uhs-border);
  border-radius: 4px;
  box-shadow: 0 3px 12px rgba(17, 55, 47, .035);
}
.academic-card { padding: 28px 22px; }
.academic-card h3,
.staff-card h3,
.facility-card h3,
.contact-card h3 { color: var(--uhs-green); }
.academic-card:hover,
.staff-card:hover,
.facility-card:hover {
  transform: translateY(-4px);
  border-color: #c5d9d2;
  box-shadow: 0 10px 24px rgba(17, 55, 47, .09);
}
.staff-photo { width: 112px; height: 112px; }
.staff-card p { color: #9a7928; }
.facility-image { background: var(--uhs-green); }

/* Gallery: crisp corners, consistent image frames */
.gallery-item {
  border-radius: 4px;
  background: var(--uhs-green);
}
.gallery-item:hover { transform: translateY(-3px); }

/* Admissions, forms and contact */
.admission-section { background: #f3e8c9; }
.admission-box {
  border: 1px solid #eadcb5;
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(74, 61, 28, .06);
}
.admission-box span { color: #9a7928; }
.registration-confirmation { background: #f7f9f8; }
.registration-card {
  border-radius: 5px;
  border-top: 4px solid var(--uhs-green);
  box-shadow: 0 8px 25px rgba(13, 57, 48, .08);
}
.form-group label { color: var(--uhs-green); }
.form-group input:focus,
.form-group select:focus {
  border-color: var(--uhs-green);
  box-shadow: 0 0 0 3px rgba(7, 84, 73, .1);
}
.registration-submit,
.map-btn {
  background: var(--uhs-green);
  border-radius: 4px;
}
.registration-submit:hover { background: var(--uhs-green-dark); }
.map-box { background: #f0f4f2; }

/* Footer */
.footer { background: #073d36; }
.footer h3 { color: #f0d58b; }
.footer a:hover { color: #f0d58b; }

/* Technology section: match the school's green identity */
.school-technology { background: #f3f7f5; }
.technology-main,
.technology-topic { border-radius: 5px; }
.technology-message h3,
.technology-topic h4 { color: var(--uhs-green); }
.technology-link {
  color: var(--uhs-green);
  border-color: var(--uhs-green);
  border-radius: 3px;
}
.technology-link:hover { background: var(--uhs-green); }

/* Keyboard focus and reduced-motion accessibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #d6ad4b;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Tablet and mobile refinements */
@media (max-width: 900px) {
  .header-content { min-height: 100px; }
  .school-logo, .school-logo img { width: 78px; height: 78px; }
  .nav-container { flex-wrap: wrap; }
  .nav-container a { padding: 12px 10px; }
  .hero-content { min-height: 360px; gap: 28px; }
  .home-slider { height: 330px; }
  .academic-grid { gap: 16px; }
  .about-grid { gap: 28px; }
}

@media (max-width: 700px) {
  .container { width: 92%; }
  .header-content {
    min-height: 82px;
    gap: 8px;
    padding: 9px 0;
  }
  .school-brand { gap: 9px; min-width: 0; }
  .school-logo, .school-logo img {
    width: 54px;
    height: 54px;
  }
  .school-brand h1 {
    font-size: 16px;
    line-height: 1.25;
    margin: 0 0 3px;
    letter-spacing: 0;
  }
  .school-brand p { font-size: 11px; line-height: 1.4; }
  .school-brand small { display: none; }
  .menu-btn {
    flex-shrink: 0;
    background: var(--uhs-green);
    border-radius: 3px;
    padding: 8px 11px;
  }
  .navbar { position: relative; top: auto; }
  .navbar.active { display: block; }
  .nav-container { align-items: stretch; }
  .nav-container a {
    padding: 11px 16px;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    font-size: 14px;
  }
  .hero-overlay { padding: 28px 0 32px; }
  .hero-content {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 0;
  }
  .hero-text { width: 100%; max-width: none; }
  .welcome { font-size: 14px; letter-spacing: 1px; }
  .hero h2 { font-size: clamp(30px, 8vw, 39px); margin: 8px 0 12px; }
  .hero p { font-size: 15px; line-height: 1.8; margin-bottom: 18px; }
  .hero-buttons { flex-wrap: wrap; gap: 10px; }
  .btn { padding: 11px 16px; }
  .home-slider {
    width: 100%;
    max-width: none;
    height: 235px;
    margin: 0;
    border-radius: 4px;
  }
  .slider-track img { height: 235px; border-radius: 4px; }
  .registration-slide { font-size: 23px; }
  .registration-slide span { font-size: inherit; }
  .top-registration-notice { padding: 10px 12px; }
  .notice-ticker { flex-direction: column; }
  .ticker-title { text-align: center; }
  .section { padding: 44px 0; }
  .section-heading { margin-bottom: 27px; }
  .section-heading h2 { font-size: 27px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { padding: 28px 22px; }
  .stats-grid,
  .academic-grid,
  .staff-grid,
  .facility-grid,
  .gallery-grid,
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .academic-card { padding: 20px 12px; }
  .staff-card { padding: 20px 12px; }
  .staff-photo { width: 88px; height: 88px; }
  .facility-image { height: 120px; font-size: 48px; }
  .gallery-item { height: 160px; }
  .notice-item { gap: 13px; padding: 14px; }
  .notice-date { min-width: 56px; height: 60px; }
  .notice-date strong { font-size: 20px; }
  .notice-content h3 { font-size: 16px; line-height: 1.5; }
  .admission-box { padding: 25px 18px; }
  .footer { padding-top: 38px; }
  .footer-grid { gap: 22px; }
  .technology-main { padding: 18px; }
}

@media (max-width: 420px) {
  .school-brand h1 { font-size: 14px; }
  .school-brand p { font-size: 10px; }
  .hero h2 { font-size: 29px; }
  .home-slider, .slider-track img { height: 205px; }
  .stats-grid,
  .academic-grid,
  .staff-grid,
  .facility-grid,
  .gallery-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .notice-item { align-items: flex-start; }
}
/* NOTICE BOARD - CLEAN PROFESSIONAL LOOK */
.notice-board,
#notice-board {
  background: rgba(255, 255, 255, 0.96);
  padding: 24px 20px;
  border-radius: 14px;
}

.notice-board h2,
#notice-board h2 {
  color: #075449;
  text-align: center;
  letter-spacing: 2px;
}

.notice-board .notice-item,
#notice-board .notice-item {
  background: #ffffff;
  border: 1px solid #e2e9e6;
  border-left: 5px solid #c49a35;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 12px 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.notice-board .notice-item p,
#notice-board .notice-item p {
  color: #262d2b;
}

/* MOBILE LAYOUT IMPROVEMENTS */
@media (max-width: 600px) {
  .container {
    width: 94%;
  }

  .header,
  .header-content {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  nav,
  .navbar {
    max-width: 100%;
    overflow-x: auto;
  }

  nav a,
  .navbar a {
    white-space: nowrap;
  }

  .notice-board,
  #notice-board {
    background: rgba(255, 255, 255, 0.97);
    padding: 14px 10px;
  }

  .notice-board .notice-item,
  #notice-board .notice-item {
    padding: 12px 10px;
    margin: 10px 0;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

/* MOBILE HOMEPAGE - CLEAN SCHOOL DESIGN */
@media (max-width: 600px) {
  .header {
    background: #ffffff;
  }

  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .school-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .school-logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
  }

  .school-brand h1 {
    font-size: 15px;
    line-height: 1.3;
  }

  .school-brand p {
    font-size: 10px;
    line-height: 1.5;
  }

  .school-brand small {
    font-size: 8px;
  }

  .menu-btn {
    flex-shrink: 0;
  }

  .navbar {
    overflow-x: auto;
  }

  .nav-container {
    gap: 8px;
  }

  .hero,
  .premium-hero {
    padding: 0;
  }

  .home-slider {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
  }

  .slider-track img {
    width: 100%;
    object-fit: cover;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
  }

  .hero-text {
    padding: 22px 16px;
  }
}

/* RESTORE NOTICE BOARD AND ACADEMICS HEADING STYLE */
#notices .section-ing,
#academics .section-ing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 0 auto 25px;
}

#notices .section-ing > span,
#academics .section-ing > span {
    display: block;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #125b49;
    margin-bottom: 10px;
}

#notices .section-ing .ing-line,
#academics .section-ing .ing-line {
    width: 90px;
    height: 4px;
    border-radius: 5px;
    background: linear-gradient(90deg, #d4af37, #126747);
    margin: 8px auto 0;
}

#academics .section-ing h2 {
    text-align: center;
    width: 100%;
    margin: 8px auto;
}

@media (max-width: 600px) {
    #notices .section-ing > span,
    #academics .section-ing > span {
        font-size: 23px;
        letter-spacing: 0.5px;
    }
}

/* PROFESSIONAL NAVIGATION MENU */
.navbar .nav-container > a,
.navbar .nav-container .dropdown-toggle {
    font-family: "Trebuchet MS", "Noto Sans Devanagari",
                 "Nirmala UI", sans-serif;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #ffffff;
    padding: 14px 13px;
    transition: color 0.25s ease,
                background-color 0.25s ease;
}

/* Attractive hover effect */
.navbar .nav-container > a:hover,
.navbar .nav-container .dropdown-toggle:hover {
    color: #ffdf70;
    background-color: rgba(255, 255, 255, 0.09);
}

/* Keep dropdown arrows visible */
.navbar .dropdown-toggle span {
    font-size: 13px;
    margin-left: 4px;
}

/* Responsive navigation */
@media (max-width: 768px) {
    .navbar .nav-container > a,
    .navbar .nav-container .dropdown-toggle {
        font-size: 16px;
        font-weight: 800;
        letter-spacing: 0.4px;
        padding: 12px 14px;
    }
}


/* Minister photo: circular frame */
.header .minister-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 115px;
    text-align: center;
    color: #07594f;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.35;
}

.header .minister-header-photo {
    display: block;
    width: 82px;
    height: 82px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 4px solid #d7ad35;
    outline: 2px solid #ffffff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.20);
    background: #ffffff;
    overflow: hidden;
}

/* Mobile circular photo */
@media (max-width: 768px) {
    .header .minister-header {
        flex: 0 0 68px;
        font-size: 8px;
    }

    .header .minister-header-photo {
        width: 48px;
        height: 48px;
        border-width: 3px;
    }
}

@media (max-width: 380px) {
    .header .minister-header {
        flex-basis: 55px;
    }

    .header .minister-header-photo {
        width: 42px;
        height: 42px;
    }
}

/* ===== FIX MOBILE HEADER AND NAVBAR ALIGNMENT ===== */

@media (max-width: 768px) {

    /* Header alignment */
    .header .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .header .school-brand {
        display: flex;
        align-items: center;
        flex: 1 1 0;
        min-width: 0;
        gap: 8px;
    }

    .header .school-logo img {
        width: 64px;
        height: auto;
        display: block;
    }

    .header .school-info {
        flex: 1;
        min-width: 0;
    }

    .header .school-info h1 {
        font-size: clamp(13px, 3.5vw, 18px);
        line-height: 1.25;
        margin: 0 0 8px;
    }

    .header .school-info p {
        font-size: 11px;
        line-height: 1.4;
        margin: 0;
    }

    .header .school-info small {
        display: none;
    }

    /* Minister photo and caption */
    .header .minister-header {
        flex: 0 0 58px;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        font-size: 8px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .header .minister-header-photo {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #d7ad35;
    }

    /* Hamburger button */
    .header .menu-btn {
        flex: 0 0 42px;
        width: 42px;
        height: 46px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Navigation options */
    .navbar,
    nav {
        box-sizing: border-box;
        max-width: 100%;
    }

    .navbar .container,
    nav .container {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    /* Keep menu items centered and evenly spaced */
    .navbar a,
    nav a {
        box-sizing: border-box;
        max-width: 100%;
        overflow-wrap: break-word;
    }
}

/* =================================
   ONLINE ATTENDANCE NAVBAR
================================= */

#attendanceDropdown {
    position: relative;
    display: inline-block;
}

/* Attendance dropdown button */
#attendanceToggle {
    background: linear-gradient(135deg, #087f5b, #16a36a);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

#attendanceToggle:hover {
    background: linear-gradient(135deg, #066747, #087f5b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 127, 91, 0.25);
}

/* Dropdown menu */
#attendanceMenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.16);
    padding: 8px 0;
    z-index: 9999;
}

/* Show menu when opened */
#attendanceDropdown.active #attendanceMenu {
    display: block;
}

/* Dropdown option */
#attendanceMenu .dropdown-option {
    display: block;
    padding: 12px 16px;
    color: #263238;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

#attendanceMenu .dropdown-option:hover {
    background: #e8f5ee;
    color: #087f5b;
    padding-left: 21px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #attendanceDropdown {
        display: block;
        width: 100%;
    }

    #attendanceToggle {
        width: 100%;
        text-align: left;
    }

    #attendanceMenu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 5px;
        margin-top: 5px;
    }
}
