/* ============================================================
   GCE Chapra — Main Stylesheet
   Color Palette (from GCE logo):
     Primary Maroon : #8B1A1A
     Deep Maroon    : #6B1010
     Accent Gold    : #C8960C
     Accent Orange  : #E07B00
     Light BG       : #FDF8F2
     Text Dark      : #1A1A1A
     Text Medium    : #4A4A4A
     Border         : #E8D5C0
   ============================================================ */

/* ─── Reset & Base ─────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #8B1A1A;
  --primary-dark: #6B1010;
  --accent:       #C8960C;
  --accent-light: #F5E6C0;
  --white:        #ffffff;
  --bg:           #F8F4EF;
  --bg-section:   #ffffff;
  --text-dark:    #1A1A1A;
  --text-mid:     #4A4A4A;
  --text-light:   #7A7A7A;
  --border:       #E0CDB8;
  --shadow-sm:    0 2px 8px rgba(139,26,26,0.08);
  --shadow-md:    0 6px 24px rgba(139,26,26,0.12);
  --radius:       8px;
  --radius-lg:    14px;
  --transition:   0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.65;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ─── Utility ───────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.section-header p {
  color: var(--text-mid);
  margin-top: 6px;
  font-size: 0.95rem;
}

.section-header .divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: #a87a08;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.82rem;
}

/* ─── Top Bar ───────────────────────────────────────────────── */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  padding: 6px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--white); }

.top-bar .top-info {
  display: flex;
  gap: 20px;
}

.top-bar .top-social {
  display: flex;
  gap: 12px;
}

.top-bar .top-social a {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background var(--transition);
}

.top-bar .top-social a:hover {
  background: var(--accent);
  color: var(--white);
}

/* ─── Header / Nav ──────────────────────────────────────────── */
header {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1160px;
  margin: 0 auto;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrap img {
  height: 56px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-text span {
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.2px;
}

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-mid);
  white-space: nowrap;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--accent-light);
  color: var(--primary);
}

.nav-links a.nav-cta {
  background: var(--primary);
  color: var(--white);
  margin-left: 8px;
}

.nav-links a.nav-cta:hover {
  background: var(--primary-dark);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--primary);
  cursor: pointer;
  padding: 6px;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #3B0A0A 100%);
  color: var(--white);
  padding: 80px 20px 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(200,150,12,0.08);
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,150,12,0.18);
  border: 1px solid rgba(200,150,12,0.35);
  color: #FFD97D;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-content h1 span {
  color: #FFD97D;
}

.hero-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 28px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.stat-item {
  text-align: center;
}

.stat-item .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFD97D;
  line-height: 1;
}

.stat-item .lbl {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.hero-notice {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(4px);
}

.hero-notice h3 {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #FFD97D;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.notice-list-mini .notice-mini-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: flex-start;
}

.notice-list-mini .notice-mini-item:last-child {
  border-bottom: none;
}

.notice-mini-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}

.notice-mini-item .title {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  line-height: 1.35;
}

.notice-mini-item .date {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

.notice-view-all {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.8rem;
  color: #FFD97D;
  font-weight: 600;
}

.notice-view-all:hover {
  text-decoration: underline;
}

/* ─── Marquee Ticker ─────────────────────────────────────────── */
.ticker-bar {
  background: var(--accent);
  padding: 8px 0;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.ticker-label {
  background: var(--primary-dark);
  color: var(--white);
  padding: 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.5px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  z-index: 1;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  padding: 0 16px;
}

.ticker-content marquee {
  font-size: 0.82rem;
  color: var(--white);
  font-weight: 500;
}

/* ─── Quick Links / Features ─────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.feature-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--primary);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all var(--transition);
}

.feature-card:hover .icon-wrap {
  background: var(--primary);
  color: var(--white);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ─── Two Column Layout (About + Notice) ────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ─── About Section ──────────────────────────────────────────── */
.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.about-card img {
  width: 40%;
  object-fit: cover;
}

.about-card-body {
  padding: 24px;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-card-body .tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 12px;
}

.about-card-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.about-card-body p {
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-mid);
  font-weight: 500;
}

.highlight-item i {
  color: var(--accent);
  font-size: 0.85rem;
}

/* ─── Notice Board ───────────────────────────────────────────── */
.notice-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.notice-card-header {
  background: var(--primary);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notice-card-header h3 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-card-header a {
  color: #FFD97D;
  font-size: 0.78rem;
  font-weight: 600;
}

.notice-card-header a:hover { text-decoration: underline; }

.notice-list {
  padding: 0 4px;
}

.notice-entry {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.notice-entry:last-child { border-bottom: none; }

.notice-entry:hover { background: var(--bg); }

.notice-date-badge {
  background: var(--accent-light);
  border: 1px solid #E8D5A0;
  border-radius: 8px;
  padding: 6px 8px;
  text-align: center;
  flex-shrink: 0;
  min-width: 46px;
}

.notice-date-badge .day {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.notice-date-badge .mon {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 1px;
}

.notice-entry-body .title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 4px;
}

.notice-entry-body .meta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.notice-entry-body .meta span {
  font-size: 0.72rem;
  color: var(--text-light);
}

.notice-attach {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-light);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ─── Pages / Quick Access ───────────────────────────────────── */
.pages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.page-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: all var(--transition);
  cursor: pointer;
}

.page-link-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

.page-link-card .plc-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--accent-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all var(--transition);
}

.page-link-card:hover .plc-icon {
  background: var(--primary);
  color: var(--white);
}

.page-link-card .plc-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

/* ─── Gallery ────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(107,16,16,0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
}

/* ─── Documents ──────────────────────────────────────────────── */
.docs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: all var(--transition);
}

.doc-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.doc-icon {
  width: 42px;
  height: 42px;
  background: #FFF0F0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.doc-info { flex: 1; }

.doc-info .name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.doc-info .meta {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 2px;
}

.doc-download {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  transition: all var(--transition);
}

.doc-download:hover {
  background: var(--primary);
  color: var(--white);
}

/* ─── CTA Strip ──────────────────────────────────────────────── */
.cta-strip {
  background: var(--primary);
  padding: 52px 20px;
  text-align: center;
  color: var(--white);
}

.cta-strip h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.cta-strip p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
  font-size: 1rem;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Footer ──────────────────────────────────────────────────── */
footer {
  background: #1A0808;
  color: rgba(255,255,255,0.75);
  padding: 52px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-brand img {
  height: 48px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-brand p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-col ul li a i {
  font-size: 0.65rem;
  color: var(--accent);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}

.footer-contact li i {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 20px;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .about-card { flex-direction: column; }
  .about-card img { width: 100%; height: 200px; }
  .about-card-body { width: 100%; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-content h1 { font-size: 1.8rem; }
  .two-col { grid-template-columns: 1fr; }
  .pages-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 16px; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    padding: 16px 24px 24px;
    gap: 0;
    border-top: 3px solid var(--primary);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 1000;
  }

  .nav-links a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
  }
  
  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links a i:first-child {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    color: var(--primary);
  }

  .nav-links a.nav-cta {
    margin-left: 0;
    justify-content: center;
    margin-top: 16px;
    padding: 14px !important;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
  }
  
  .nav-links a.nav-cta i {
    color: var(--white);
  }

  .nav-links.active { display: flex; animation: slideDown 0.3s ease forwards; transform-origin: top; }
  
  @keyframes slideDown {
    from { opacity: 0; transform: scaleY(0.9); }
    to { opacity: 1; transform: scaleY(1); }
  }
  .mobile-menu-btn { display: block; }
  header { position: relative; }

  .footer-grid { grid-template-columns: 1fr; }
  .top-bar .top-info span:not(:first-child) { display: none; }
}

@media (max-width: 480px) {
  .hero-inner { padding: 0 4px; }
  .hero-content h1 { font-size: 1.5rem; }
  .pages-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ─── Page Banner ─────────────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #3B0A0A 100%);
  color: var(--white);
  padding: 56px 20px 52px;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.page-banner-content { max-width: 1160px; margin: 0 auto; }

.page-banner-content h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-banner-content h1 i { font-size: 1.5rem; opacity: 0.85; }

.page-banner-content p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin-bottom: 16px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.breadcrumb-nav a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.breadcrumb-nav a:hover { color: #FFD97D; }
.breadcrumb-nav span { color: #FFD97D; font-weight: 600; }
.breadcrumb-nav i.fa-angle-right { font-size: 0.7rem; }

/* ─── Section Tag ─────────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ─── About Main Grid ─────────────────────────────────────────── */
.about-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
}

.about-img-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.about-img-badge {
  position: absolute;
  bottom: 18px; left: 18px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.about-img-badge .badge-num {
  font-size: 1.6rem; font-weight: 800;
  line-height: 1; color: #FFD97D;
}

.about-img-badge .badge-lbl {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

.about-img-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.about-img-sub-grid img {
  width: 100%; height: 110px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.about-heading {
  font-size: 1.75rem; font-weight: 800;
  color: var(--primary); line-height: 1.25;
  margin-bottom: 14px;
}

.about-lead {
  font-size: 1rem; color: var(--text-dark);
  line-height: 1.7; margin-bottom: 12px;
}

.about-body {
  font-size: 0.88rem; color: var(--text-mid);
  line-height: 1.75; margin-bottom: 24px;
}

.about-stats-row {
  display: flex; gap: 24px;
  margin-bottom: 28px; padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.astat { display: flex; flex-direction: column; align-items: center; flex: 1; text-align: center; }
.astat-num { font-size: 1.7rem; font-weight: 800; color: var(--primary); line-height: 1; }
.astat-lbl { font-size: 0.72rem; color: var(--text-light); margin-top: 4px; }

/* ─── Core Values Grid ────────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
}

.value-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 60px; height: 60px;
  background: var(--accent-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--primary);
  margin: 0 auto 16px;
  transition: all var(--transition);
}

.value-card:hover .value-icon { background: var(--primary); color: var(--white); }
.value-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.value-card p { font-size: 0.82rem; color: var(--text-light); line-height: 1.6; }

/* ─── Courses About Grid ──────────────────────────────────────── */
.courses-about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.course-about-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}

.course-about-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.cac-icon {
  width: 52px; height: 52px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--primary);
  flex-shrink: 0; transition: all var(--transition);
}

.course-about-card:hover .cac-icon { background: var(--primary); color: var(--white); }
.cac-body { flex: 1; }

.cac-badge {
  display: inline-block;
  background: var(--accent-light); color: var(--accent);
  font-size: 0.7rem; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.3px;
}

.cac-body h3 { font-size: 0.92rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; line-height: 1.3; }
.cac-body p { font-size: 0.8rem; color: var(--text-light); line-height: 1.6; }

/* ─── Chairman's Message ──────────────────────────────────────── */
.chairman-block {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px; align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.chairman-img-wrap img {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.chairman-content h2 { font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.chairman-text { font-size: 0.88rem; color: var(--text-mid); line-height: 1.85; }
.chairman-text p { margin-bottom: 12px; }
.chairman-text p:last-child { margin-bottom: 0; }

/* ─── Facilities Grid ─────────────────────────────────────────── */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.facility-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}

.facility-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}

.facility-item:hover img { transform: scale(1.07); }

.facility-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(107,16,16,0.85) 0%, transparent 100%);
  color: var(--white);
  font-size: 0.82rem; font-weight: 600;
  padding: 20px 12px 10px;
  display: flex; align-items: center; gap: 6px;
}

/* ─── About Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-about-grid { grid-template-columns: 1fr 1fr; }
  .facilities-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .about-main-grid { grid-template-columns: 1fr; }
  .about-img-col { order: -1; }
  .chairman-block { grid-template-columns: 1fr; }
  .chairman-img-wrap img { aspect-ratio: 3/2; }
  .about-stats-row { gap: 16px; }
  .page-banner-content h1 { font-size: 1.6rem; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
  .about-stats-row { flex-wrap: wrap; }
  .facilities-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   COURSES PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ─── Stats Strip ─────────────────────────────────────────────── */
.courses-stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 20px;
}

.cstats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.cstat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-right: 1px solid var(--border);
}

.cstat-item:last-child { border-right: none; }

.cstat-item > i {
  font-size: 1.8rem;
  color: var(--primary);
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.cstat-item div {
  display: flex;
  flex-direction: column;
}

.cstat-item strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.cstat-item span {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* ─── Courses Main Grid ───────────────────────────────────────── */
.courses-main-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ─── Full Course Card ────────────────────────────────────────── */
.course-full-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.course-full-card:hover {
  box-shadow: var(--shadow-md);
}

/* Card Header Variants */
.cfc-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  position: relative;
}

.cfc-red    { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); }
.cfc-gold   { background: linear-gradient(135deg, #B8790A 0%, #8A5A06 100%); color: var(--white); }
.cfc-dark   { background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%); color: var(--white); }

.cfc-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}

.cfc-title-block {
  flex: 1;
}

.cfc-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.cfc-tag-gold { background: rgba(255,255,255,0.2); }
.cfc-tag-dark { background: rgba(255,255,255,0.15); }

.cfc-title-block h2 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2px;
}

.cfc-short {
  font-size: 0.85rem;
  opacity: 0.75;
  font-weight: 500;
}

.cfc-duration-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 10px 18px;
  text-align: center;
  flex-shrink: 0;
}

.cfc-duration-badge .dur-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.cfc-duration-badge .dur-lbl {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
}

/* Card Body */
.cfc-body {
  padding: 28px;
}

.cfc-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* Info Grid */
.cfc-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.cfc-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.cfc-info-item > i {
  color: var(--primary);
  font-size: 0.95rem;
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.cfc-info-item div {
  display: flex;
  flex-direction: column;
}

.cfc-info-item strong {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cfc-info-item span {
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-top: 2px;
}

/* Highlights */
.cfc-highlights {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.cfc-highlights h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cfc-highlights ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
}

.cfc-highlights ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-mid);
}

.cfc-highlights ul li i {
  color: var(--accent);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Card Footer */
.cfc-footer {
  display: flex;
  gap: 12px;
  padding-top: 4px;
}

/* ─── Admission Steps ─────────────────────────────────────────── */
.admission-steps {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  overflow: hidden;
}

.adm-step {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.adm-step-num {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.adm-step-body h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.adm-step-body p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.55;
}

.adm-step-arrow {
  color: var(--accent);
  font-size: 1rem;
  padding: 0 16px;
  flex-shrink: 0;
}

/* ─── Courses Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .cstats-grid { grid-template-columns: repeat(2, 1fr); }
  .cstat-item:nth-child(2) { border-right: none; }
  .cstat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .cstat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .cfc-highlights ul { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .cfc-header { flex-wrap: wrap; gap: 12px; }
  .cfc-duration-badge { align-self: flex-start; }
  .cfc-info-grid { grid-template-columns: 1fr; }
  .admission-steps { flex-direction: column; align-items: flex-start; gap: 20px; }
  .adm-step-arrow { transform: rotate(90deg); align-self: center; }
  .cstats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .cfc-header { padding: 18px; }
  .cfc-body { padding: 18px; }
  .cfc-highlights ul { grid-template-columns: 1fr; }
  .cfc-footer { flex-direction: column; }
  .cstats-grid { grid-template-columns: 1fr; }
  .cstat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .cstat-item:last-child { border-bottom: none; }
}

/* ═══════════════════════════════════════════════════════════════
   NOTICES PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ─── Count Bar ───────────────────────────────────────────────── */
.notice-count-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
}

.ncb-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.ncb-left, .ncb-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-mid);
}

.ncb-left > i { color: var(--primary); font-size: 1rem; }
.ncb-right > i { color: var(--accent); font-size: 0.9rem; }
.ncb-left strong { color: var(--primary); font-size: 1.1rem; font-weight: 800; }

/* ─── Two Column Layout ───────────────────────────────────────── */
.notices-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

/* ─── Feed Header ─────────────────────────────────────────────── */
.notices-feed-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.notices-feed-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.notice-count-badge {
  background: var(--primary);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ─── Notice Feed List ────────────────────────────────────────── */
.notice-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ─── Individual Notice Item ──────────────────────────────────── */
.notice-feed-item {
  display: flex;
  gap: 0;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.notice-feed-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}

.notice-feed-item.notice-is-new {
  border-left: 3px solid var(--primary);
}

/* Date Column */
.nfi-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-right: 1px solid var(--border);
  padding: 18px 16px;
  min-width: 72px;
  text-align: center;
  flex-shrink: 0;
}

.notice-is-new .nfi-date {
  background: #FFF0F0;
  border-right-color: #E8C0C0;
}

.nfi-day {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.nfi-mon {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.nfi-yr {
  font-size: 0.68rem;
  color: var(--text-light);
  margin-top: 1px;
}

/* Body */
.nfi-body {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nfi-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nfi-tag-new {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.nfi-tag-attach {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.nfi-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}

.notice-feed-item:hover .nfi-title {
  color: var(--primary);
}

.nfi-preview {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.55;
}

.nfi-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.nfi-date-text {
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Item Number */
.nfi-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--border);
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  background: var(--bg);
}

/* ─── Empty State ─────────────────────────────────────────────── */
.notice-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.notice-empty-icon {
  width: 72px;
  height: 72px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent);
  margin: 0 auto 16px;
}

.notice-empty h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.notice-empty p {
  font-size: 0.85rem;
  color: var(--text-light);
  max-width: 320px;
  margin: 0 auto;
}

/* ─── Sidebar ─────────────────────────────────────────────────── */
.notices-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nsb-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.nsb-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.nsb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nsb-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.nsb-list li i {
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 0.75rem;
}

/* Contact Sidebar */
.nsb-contact { background: #FFF8F0; border-color: #E8D5A0; }

.nsb-contact-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nsb-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: all var(--transition);
}

.nsb-contact-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.nsb-contact-item i {
  color: var(--primary);
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
}

/* Quick Links Sidebar */
.nsb-quicklinks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nsb-quicklinks li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 0.83rem;
  color: var(--text-mid);
  font-weight: 500;
  transition: all var(--transition);
}

.nsb-quicklinks li a:hover {
  background: var(--accent-light);
  color: var(--primary);
  padding-left: 14px;
}

.nsb-quicklinks li a i {
  color: var(--accent);
  font-size: 0.8rem;
  width: 14px;
}

/* ─── Notices Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .notices-layout { grid-template-columns: 1fr; }
  .notices-sidebar { order: -1; flex-direction: row; flex-wrap: wrap; }
  .nsb-card { flex: 1; min-width: 240px; }
}

@media (max-width: 768px) {
  .ncb-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nfi-num { display: none; }
  .notices-sidebar { flex-direction: column; }
}

@media (max-width: 480px) {
  .nfi-date { padding: 12px 10px; min-width: 58px; }
  .nfi-day { font-size: 1.4rem; }
  .nfi-body { padding: 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ─── Gallery Page Grid (CSS Grid masonry-style) ──────────────── */
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}

/* Wide item spans 2 columns */
.gallery-wide {
  grid-column: span 2;
}

/* Tall item spans 2 rows */
.gallery-tall {
  grid-row: span 2;
}

/* ─── Gallery Item ────────────────────────────────────────────── */
.gallery-pg-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  background: var(--border);
}

.gallery-pg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-pg-item:hover img {
  transform: scale(1.08);
}

/* Overlay */
.gallery-pg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(107,16,16,0.75) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-pg-item:hover .gallery-pg-overlay {
  opacity: 1;
}

.gallery-pg-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
}

.gallery-pg-info i {
  font-size: 1.1rem;
}

.gallery-pg-info span {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Item Number Badge */
.gallery-pg-num {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.85);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* Broken image state */
.gallery-broken {
  display: none;
}

/* ─── Lightbox ────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 78vh;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

.lightbox-img-wrap img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-lg);
  transition: opacity 0.2s ease;
}

.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 0 8px;
  width: 100%;
}

.lightbox-caption span {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 500;
}

.lightbox-counter {
  color: rgba(255,255,255,0.45) !important;
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  white-space: nowrap;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-close:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Prev / Next */
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 10000;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.05);
}

/* ─── Gallery Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .gallery-page-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
  }
}

@media (max-width: 768px) {
  .gallery-page-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-wide { grid-column: span 2; }
  .gallery-tall { grid-row: span 1; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 480px) {
  .gallery-page-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 8px;
  }
  .gallery-wide { grid-column: span 2; }
  .lightbox-prev, .lightbox-next { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   DOCUMENTS PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

.docs-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.doc-page-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}

.doc-page-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.dpc-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: all var(--transition);
}

.doc-page-card:hover .dpc-icon {
  background: var(--primary);
  color: var(--white);
}

.dpc-body {
  flex: 1;
}

.dpc-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.dpc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-mid);
}

.dpc-remarks, .dpc-date {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dpc-remarks i { color: var(--accent); }
.dpc-date i { color: var(--primary); opacity: 0.7; }

.dpc-action {
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .docs-page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .doc-page-card { flex-direction: column; text-align: center; align-items: stretch; gap: 16px; padding: 20px; }
  .dpc-icon { margin: 0 auto; }
  .dpc-meta { justify-content: center; }
  .dpc-action .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════
   VIEW PAGE STYLES (Dynamic Pages)
   ═══════════════════════════════════════════════════════════════ */

.view-page-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.view-page-cover {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}

.view-page-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.view-page-content {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
}

.view-page-content p {
  margin-bottom: 20px;
}

.view-page-content h1, 
.view-page-content h2, 
.view-page-content h3 {
  color: var(--primary);
  font-weight: 800;
  margin-top: 32px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.view-page-content h1 { font-size: 1.8rem; }
.view-page-content h2 { font-size: 1.5rem; }
.view-page-content h3 { font-size: 1.25rem; }

.view-page-content ul, 
.view-page-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.view-page-content li {
  margin-bottom: 8px;
}

.view-page-content a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(139, 26, 26, 0.3);
  text-underline-offset: 4px;
  transition: all var(--transition);
}

.view-page-content a:hover {
  text-decoration-color: var(--primary);
  color: var(--accent);
}

.view-page-content strong, 
.view-page-content b {
  color: var(--text-dark);
  font-weight: 700;
}

.view-page-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

@media (max-width: 768px) {
  .view-page-wrapper { padding: 32px 24px; }
  .view-page-content { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .view-page-wrapper { padding: 24px 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

.contact-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: start;
}

/* ─── Contact Info Column ─────────────────────────────────────── */
.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.cdl-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cdl-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.cdl-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.cdl-content p, .cdl-content a {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.5;
  transition: color var(--transition);
}

.cdl-content a:hover {
  color: var(--primary);
}

/* Office Hours */
.contact-hours {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}

.contact-hours h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-hours h4 i { color: var(--primary); }

.contact-hours ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-hours li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-mid);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.contact-hours li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

/* Socials */
.contact-social h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.cs-links {
  display: flex;
  gap: 12px;
}

.cs-links a {
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}

.cs-links a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* ─── Contact Form Column ─────────────────────────────────────── */
.contact-form-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.contact-form-box h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-form-box p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* Alert */
.alert {
  padding: 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #C8E6C9; }
.alert-error   { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }

/* Form Elements */
.c-form .form-group {
  margin-bottom: 20px;
}

.c-form .form-group-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.c-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.c-form label span { color: var(--primary); }

.c-form input,
.c-form select,
.c-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-dark);
  font-family: inherit;
  transition: all 0.3s ease;
}

.c-form input:focus,
.c-form select:focus,
.c-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.1);
}

.c-form textarea { resize: vertical; min-height: 120px; }
.btn-block { width: 100%; justify-content: center; padding: 14px; font-size: 0.95rem; }

/* ─── Map ─────────────────────────────────────────────────────── */
.contact-map-section {
  width: 100%;
  height: 450px;
  margin-bottom: -4px; /* Fix for bottom spacing */
}

/* ─── Contact Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-info-col { max-width: 600px; }
}

@media (max-width: 480px) {
  .c-form .form-group-half { grid-template-columns: 1fr; gap: 0; }
  .contact-form-box { padding: 24px 20px; }
  .contact-map-section { height: 350px; }
}

/* ═══════════════════════════════════════════════════════════════
   FEE PAYMENT PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

.fp-wrapper {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 48px;
  align-items: start;
}

/* Instructions */
.fpi-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.fpi-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
}

.fpi-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.fpi-item i {
  width: 42px;
  height: 42px;
  background: var(--accent-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.fpi-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.fpi-item p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.4;
}

.fp-support-box {
  background: #FFF8F0;
  border: 1px solid #E8D5A0;
  border-radius: var(--radius-lg);
  padding: 24px;
}

.fp-support-box h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fp-support-box h5 i { color: var(--accent); }

.fp-support-box p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.fp-support-box a {
  font-weight: 600;
  color: var(--primary);
}

/* Portal Login Form */
.fp-portal-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.fp-portal-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.fp-portal-icon {
  width: 72px;
  height: 72px;
  background: var(--accent-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.fp-portal-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.fp-portal-box p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.fp-form {
  text-align: left;
}

.fp-form .form-group {
  margin-bottom: 20px;
}

.fp-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.fp-form input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-dark);
  font-family: inherit;
  transition: all 0.3s ease;
}

.fp-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.1);
}

.fp-methods {
  margin: 24px 0;
  text-align: center;
}

.fp-methods span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fp-method-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 1.5rem;
  color: var(--text-mid);
}

/* ─── Fee Payment Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .fp-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .fp-portal { max-width: 500px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .fp-portal-box { padding: 32px 20px; }
  .fpi-item { padding: 16px; flex-direction: column; text-align: center; align-items: center; gap: 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   MISSION & VISION PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

.mv-card {
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
}

.mv-mission {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.mv-mission:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.mv-vision {
  background: linear-gradient(135deg, var(--primary), #591111);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(107, 26, 26, 0.2);
}

.mv-vision:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(107, 26, 26, 0.3);
}

.mv-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 24px;
}

.mv-vision .mv-icon {
  background: rgba(255,255,255,0.1);
  color: var(--accent);
}

.mv-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
}

.mv-mission h2 { color: var(--primary); }
.mv-vision h2 { color: var(--white); }

.mv-card p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.mv-mission p { color: var(--text-mid); }
.mv-vision p { color: rgba(255,255,255,0.9); }

.mv-values {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.value-item {
  background: var(--white);
  padding: 24px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.value-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
  .mv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mv-values .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .mv-card { padding: 32px 20px; }
  .mv-values { padding: 24px 16px; }
  .mv-values .grid-4 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   HEADER DROPDOWN STYLES
   ═══════════════════════════════════════════════════════════════ */

.nav-links li {
  position: relative;
}

.dd-icon {
  font-size: 0.75rem;
  margin-left: 4px;
  transition: transform var(--transition);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 999;
}

/* Show on hover */
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-dropdown:hover .dd-icon {
  transform: rotate(180deg);
}

.dropdown li {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px 20px !important;
  color: var(--text-dark) !important;
  font-weight: 500 !important;
  border-radius: 0 !important;
}

.dropdown a:hover {
  background: var(--accent-light) !important;
  color: var(--primary) !important;
  padding-left: 24px !important;
}

/* Mobile Dropdown Fixes */
@media (max-width: 1024px) {
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    padding: 0;
    margin: 8px 0 0 16px;
    min-width: 100%;
    
    /* Hidden by default in mobile */
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  
  /* Class toggled by JS */
  .has-dropdown.open .dropdown {
    display: block;
  }
  
  .has-dropdown.open .dd-icon {
    transform: rotate(180deg);
  }
  
  .dropdown a {
    padding: 10px 16px !important;
  }
  
  .has-dropdown:hover .dropdown {
    /* Reset hover behavior for mobile */
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   STUDENT RESOURCES PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

.student-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.student-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.student-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.sc-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
  transition: all var(--transition);
}

.student-card:hover .sc-icon {
  background: var(--primary);
  color: var(--white);
}

.student-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.student-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 24px;
  flex: 1;
}

.sc-action .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 900px) {
  .student-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .student-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   MESSAGE PAGE STYLES (Secretary / Principal)
   ═══════════════════════════════════════════════════════════════ */

.message-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.message-photo {
  text-align: center;
}

.mp-frame {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  margin: 0 auto 20px;
  padding: 8px;
  background: var(--white);
  border: 2px dashed var(--border);
  position: relative;
}

.mp-frame::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(139, 26, 26, 0.2);
  border-radius: 50%;
  z-index: 0;
}

.mp-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.message-photo h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.message-photo p {
  font-size: 0.9rem;
  color: var(--text-mid);
  font-weight: 500;
}

.message-content {
  position: relative;
}

.mc-quote-icon {
  font-size: 3rem;
  color: var(--accent-light);
  margin-bottom: -10px;
}

.mc-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 900px) {
  .message-wrapper { grid-template-columns: 1fr; text-align: center; gap: 32px; padding: 32px 24px; }
  .mc-quote-icon { text-align: left; }
  .message-content { text-align: left; }
}

@media (max-width: 480px) {
  .message-wrapper { padding: 24px 16px; }
  .mp-frame { width: 180px; height: 180px; }
  .mc-title { font-size: 1.4rem; }
}

/* ═══════════════════════════════════════════════════════════════
   TOP BAR LOGIN BUTTON
   ═══════════════════════════════════════════════════════════════ */

.top-login-btn {
  background: var(--white) !important;
  color: var(--primary) !important;
  font-size: 0.8rem !important;
  font-weight: 700;
  padding: 4px 12px !important;
  border-radius: 4px !important;
  margin-right: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none !important;
  width: auto !important;
  height: auto !important;
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.top-login-btn:hover {
  background: var(--accent) !important;
  color: var(--white) !important;
  transform: translateY(-2px) !important;
}

@media (max-width: 480px) {
  .top-login-btn {
    padding: 2px 8px !important;
    font-size: 0.75rem !important;
    margin-right: 8px;
  }
}






