/* ==========================================================================
   SAIGRACE NDA ACADEMY - OFFICIAL DESIGN SYSTEM & STYLESHEET
   Colors: Deep Navy (#1B365D), Academy Blue (#0F2C59), Leadership Gold (#D4AF37)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary-navy: #1B365D;
  --primary-dark: #0F2C59;
  --navy-hover: #122744;
  --accent-gold: #D4AF37;
  --gold-hover: #B89220;
  --gold-light: #FFF9E6;
  --military-red: #D32F2F;
  --slate-dark: #0F172A;
  --slate-medium: #334155;
  --slate-light: #64748B;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --border-light: #E2E8F0;
  --shadow-sm: 0 2px 4px rgba(27, 54, 93, 0.05);
  --shadow-md: 0 6px 16px rgba(27, 54, 93, 0.08);
  --shadow-lg: 0 12px 32px rgba(27, 54, 93, 0.14);
  --shadow-gold: 0 8px 24px rgba(212, 175, 55, 0.25);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--slate-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .heading-font {
  font-family: 'Cinzel', serif;
  color: var(--primary-navy);
  letter-spacing: 0.5px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR & HEADER NAVIGATION
   ========================================================================== */

.top-bar {
  background-color: var(--primary-dark);
  color: #FFFFFF;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--accent-gold);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-item i {
  color: var(--accent-gold);
}

.top-bar-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge-marquee {
  background: rgba(212, 175, 55, 0.2);
  color: var(--accent-gold);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Main Navbar */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.navbar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo img {
  height: 62px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-navy);
  padding: 0.5rem 0;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--accent-gold);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Dropdown Menu for Courses */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--accent-gold);
  z-index: 1100;
  list-style: none;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: var(--slate-dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.dropdown-item a:hover {
  background-color: var(--gold-light);
  color: var(--primary-navy);
  padding-left: 1.5rem;
}

.dropdown-item i {
  color: var(--accent-gold);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.nav-btn {
  background: linear-gradient(135deg, var(--accent-gold), #B89220);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: var(--primary-navy);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-navy);
  cursor: pointer;
}

/* ==========================================================================
   HERO BANNER SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 85vh;
  background: linear-gradient(135deg, rgba(15, 44, 89, 0.92) 0%, rgba(27, 54, 93, 0.82) 100%),
              url('../assets/images/hero_nda.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: var(--bg-white);
  padding: 5rem 0;
}

.hero-content {
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.hero-title span {
  color: var(--accent-gold);
  background: linear-gradient(180deg, #FFE58F 0%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #E2E8F0;
  margin-bottom: 2.2rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), #B8860B);
  color: var(--primary-dark);
  font-weight: 800;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: var(--shadow-gold);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FFE58F, var(--accent-gold));
  transform: translateY(-3px);
  color: var(--primary-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #FFFFFF;
  color: #FFFFFF;
  transform: translateY(-3px);
}

/* Hero Key Quick Stats Bar */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat-item h3 {
  color: var(--accent-gold);
  font-size: 2.2rem;
  font-weight: 800;
}

.hero-stat-item p {
  color: #CBD5E1;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */

.section-padding {
  padding: 5rem 0;
}

.section-title-wrapper {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.sub-tagline {
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-gold);
  margin: 0.6rem auto 0 auto;
  border-radius: 2px;
}

.section-desc {
  color: var(--slate-medium);
  font-size: 1.05rem;
}

/* ==========================================================================
   COURSES CARDS SECTION
   ========================================================================== */

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.course-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-gold);
}

.course-badge-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-dark);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  border: 1px solid var(--accent-gold);
  text-transform: uppercase;
}

.course-img-wrapper {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.course-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.course-card:hover .course-img-wrapper img {
  transform: scale(1.06);
}

/* ========================================================================
   ACADEMY GALLERY
   ======================================================================== */

.academy-gallery-section {
  background-color: var(--bg-white);
}

.academy-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.academy-gallery-item {
  position: relative;
  min-height: 220px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.academy-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.academy-gallery-item:hover img {
  transform: scale(1.05);
}

.academy-gallery-item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1rem 1rem;
  color: #FFFFFF;
  font-weight: 700;
  background: linear-gradient(transparent, rgba(10, 27, 55, 0.88));
}

.course-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.course-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--slate-light);
  margin-bottom: 1rem;
  font-weight: 600;
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.course-meta i {
  color: var(--accent-gold);
}

.course-desc {
  color: var(--slate-medium);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.course-features-list {
  list-style: none;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--slate-dark);
}

.course-features-list li {
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.course-features-list li i {
  color: var(--accent-gold);
  font-size: 0.9rem;
}

.btn-card-link {
  background-color: var(--primary-navy);
  color: #FFFFFF;
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-card-link:hover {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
}

/* ==========================================================================
   ABOUT / DEFENSE FEATURE HIGHLIGHTS
   ========================================================================== */

.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: stretch;
}

.about-preview-grid > div:has(> img) {
  display: flex;
}

.about-preview-grid > div > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-box {
  position: relative;
  align-self: stretch;
  display: flex;
}

.about-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-white);
}

.about-floating-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--primary-dark);
  color: #FFFFFF;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent-gold);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.about-floating-badge h4 {
  color: var(--accent-gold);
  font-size: 2rem;
  font-weight: 800;
}

.about-floating-badge p {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.feature-point {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.feature-icon {
  width: 54px;
  height: 54px;
  background-color: var(--gold-light);
  border: 1px solid var(--accent-gold);
  color: var(--primary-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.feature-text p {
  font-size: 0.92rem;
  color: var(--slate-medium);
}

/* ==========================================================================
   HOSTEL LIFE & DAILY ROUTINE TABLE
   ========================================================================== */

.routine-table-container {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.routine-table {
  width: 100%;
  border-collapse: collapse;
}

.routine-table th {
  background-color: var(--primary-navy);
  color: var(--accent-gold);
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  text-align: left;
  padding: 1.1rem 1.5rem;
}

.routine-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.routine-table tr:nth-child(even) {
  background-color: var(--bg-light);
}

.routine-table tr:hover {
  background-color: var(--gold-light);
}

.routine-time {
  font-weight: 800;
  color: var(--primary-navy);
  width: 180px;
}

.routine-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-drill { background: #FEF3C7; color: #92400E; }
.badge-study { background: #DBEAFE; color: #1E40AF; }
.badge-sports { background: #D1FAE5; color: #065F46; }
.badge-mess { background: #FCE7F3; color: #9D174D; }

/* ==========================================================================
   PAGE HERO / BANNER FOR SUB-PAGES
   ========================================================================== */

.page-banner {
  background: linear-gradient(135deg, rgba(15, 44, 89, 0.92), rgba(27, 54, 93, 0.85)),
              url('../assets/images/hero_nda.jpg') center/cover no-repeat;
  color: #FFFFFF;
  padding: 4rem 0 3.5rem 0;
  text-align: center;
}

.page-banner-title {
  font-size: 2.8rem;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.breadcrumb-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: #CBD5E1;
  font-weight: 600;
}

.breadcrumb-nav a {
  color: var(--accent-gold);
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   CONTACT PAGE & FORMS
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}

.contact-card-box {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.contact-info-list {
  list-style: none;
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-navy);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--primary-navy);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background-color: var(--bg-light);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

select.form-control {
  cursor: pointer;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--primary-dark);
  color: #94A3B8;
  padding-top: 4.5rem;
  border-top: 4px solid var(--accent-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

.footer-widget-title {
  color: var(--accent-gold);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-text {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #CBD5E1;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 0.3rem;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  max-width: 540px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--accent-gold);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--slate-light);
}

.modal-close:hover {
  color: var(--primary-navy);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    display: none;
  }
  
  .has-dropdown.active .dropdown-menu {
    display: block;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .about-preview-grid, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .academy-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
