/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f8f6f0; color: #1a1a1a; line-height: 1.7; overflow-x: hidden; width: 100%; }
img, video, iframe, embed { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* === VARIABLES === */
:root {
  --navy: #1a2744;
  --navy-dark: #111b33;
  --bg: #f8f6f0;
  --maroon: #8b1a1a;
  --maroon-dark: #6e1414;
  --green: #2d6a4f;
  --white: #ffffff;
  --text: #1a1a1a;
  --heading: #2c2c2c;
  --muted: #666;
  --border: #ddd;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.14);
  --radius: 6px;
  --container: 1200px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --transition: 0.25s ease;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); color: var(--heading); line-height: 1.3; }
h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* === LAYOUT / CONTAINER === */
.container { max-width: var(--container); width: 100%; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { color: var(--navy); margin-bottom: 0.5rem; }
.section-header p { color: var(--muted); max-width: 600px; margin: 0 auto; }
.section-divider { width: 60px; height: 3px; background: var(--maroon); margin: 0.75rem auto 0; }

/* === TOP UTILITY BAR === */
.utility-bar { background: var(--navy-dark); color: rgba(255,255,255,0.85); font-size: 0.8rem; padding: 6px 0; }
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.utility-bar a { color: rgba(255,255,255,0.85); transition: color var(--transition); }
.utility-bar a:hover { color: #fff; }
.utility-contact { display: flex; gap: 1.5rem; align-items: center; }
.utility-contact span { display: flex; align-items: center; gap: 0.3rem; }
.utility-links { display: flex; gap: 1rem; }
.utility-links a { padding: 2px 8px; border: 1px solid rgba(255,255,255,0.25); border-radius: 3px; transition: all var(--transition); }
.utility-links a:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* === HEADER === */
.site-header { background: var(--navy); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; transition: box-shadow var(--transition); }
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; }
.header-logo { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid rgba(255,255,255,0.2); }
.header-logo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% center; }
.logo-placeholder { width: 100%; height: 100%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: bold; color: #fff; font-family: var(--serif); }
.header-text { flex: 1; color: #fff; }
.header-text h1 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); color: #fff; margin-bottom: 0.15rem; letter-spacing: 0.01em; }
.header-text .sub { font-size: 0.8rem; color: rgba(255,255,255,0.75); }
.header-text .affiliation { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 0.1rem; font-style: italic; }

/* === NAVIGATION === */
.main-nav { background: var(--maroon); position: relative; z-index: 999; }
.nav-container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.nav-list { display: flex; align-items: stretch; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 0.3rem; padding: 0.85rem 1rem; color: #fff; font-size: 0.88rem; font-weight: 500; white-space: nowrap; transition: background var(--transition); }
.nav-link:hover, .nav-item.active > .nav-link { background: var(--maroon-dark); }
.nav-arrow { font-size: 0.6rem; transition: transform var(--transition); }
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown { position: absolute; top: 100%; left: 0; background: var(--white); min-width: 220px; box-shadow: var(--shadow-hover); border-top: 3px solid var(--maroon); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all var(--transition); z-index: 2000; }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 0.6rem 1.2rem; color: var(--text); font-size: 0.85rem; border-bottom: 1px solid #f0ece4; transition: all var(--transition); }
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: #f8f6f0; color: var(--maroon); padding-left: 1.5rem; }

/* Flyout */
.has-flyout { position: relative; }
.has-flyout > a::after { content: " ▶"; font-size: 0.55rem; }
.flyout { position: absolute; left: 100%; top: 0; background: var(--white); min-width: 200px; box-shadow: var(--shadow-hover); border-top: 3px solid var(--maroon); opacity: 0; visibility: hidden; transform: translateX(-8px); transition: all var(--transition); }
.has-flyout:hover .flyout { opacity: 1; visibility: visible; transform: translateX(0); }
.flyout li a { display: block; padding: 0.6rem 1.2rem; color: var(--text); font-size: 0.85rem; border-bottom: 1px solid #f0ece4; transition: all var(--transition); }
.flyout li:last-child a { border-bottom: none; }
.flyout li a:hover { background: #f8f6f0; color: var(--maroon); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: all var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav { display: none; background: var(--navy-dark); position: absolute; top: 100%; left: 0; right: 0; max-height: 0; overflow-y: auto; transition: max-height 0.35s ease; z-index: 998; }
.mobile-nav.open { max-height: 80vh; }
.mobile-nav-list { padding: 0.5rem 0 1rem; }
.mobile-nav-list li a { display: block; padding: 0.7rem 1.5rem; color: rgba(255,255,255,0.9); font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.07); transition: all var(--transition); }
.mobile-nav-list li a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.mobile-nav-list .mobile-group-header { padding: 0.5rem 1.5rem 0.25rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); }
.mobile-nav-list .mobile-sub a { padding-left: 2.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* === HERO === */
.hero { background: linear-gradient(135deg, var(--navy-dark) 0%, #2a3f6e 100%); min-height: 520px; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url('../images/campus/college-gate.jpg') center/cover no-repeat; opacity: 0.18; }
.hero-content { position: relative; z-index: 1; max-width: 720px; padding: 4rem 1.5rem; margin: 0 auto; text-align: center; }
.hero-content h1 { font-size: clamp(1.8rem, 4vw, 3rem); color: #fff; margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-content .tagline { font-size: 1rem; color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-style: italic; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1.75rem; border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; transition: all var(--transition); letter-spacing: 0.02em; }
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(139,26,26,0.4); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }

/* === NOTICE TICKER === */
.notice-ticker { background: #fff3cd; border-top: 3px solid #e6a817; border-bottom: 1px solid #ddd; padding: 0.7rem 0; overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 1rem; }
.ticker-label { background: var(--maroon); color: #fff; padding: 0.25rem 0.75rem; font-size: 0.78rem; font-weight: 700; white-space: nowrap; border-radius: 3px; flex-shrink: 0; letter-spacing: 0.05em; }
.ticker-track { overflow: hidden; flex: 1; }
.ticker-content { white-space: nowrap; display: inline-block; animation: ticker 30s linear infinite; font-size: 0.85rem; color: var(--text); }
.ticker-content:hover { animation-play-state: paused; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* === STATS === */
.stats-section { background: var(--navy); padding: 2.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.stat-card { text-align: center; padding: 1.5rem 0.75rem; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-card:last-child { border-right: none; }
.stat-number { font-family: var(--serif); font-size: 2rem; font-weight: bold; color: #f0c060; display: block; line-height: 1; margin-bottom: 0.4rem; }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.07em; }

/* === ABOUT SECTION === */
.about-section { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.about-text h2 { color: var(--navy); margin-bottom: 0.5rem; }
.about-text .intro-lead { font-size: 1.05rem; color: var(--maroon); font-family: var(--serif); font-style: italic; margin-bottom: 1rem; border-left: 4px solid var(--maroon); padding-left: 1rem; }
.about-text p { color: #444; }
.about-image { position: relative; }
.about-img-placeholder { background: linear-gradient(135deg, #e8e0d0, #d5ccc0); height: 320px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: #999; font-style: italic; font-size: 0.9rem; }

/* === CARDS === */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); transition: all var(--transition); overflow: hidden; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-body { padding: 1.5rem; }
.card-title { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin-bottom: 0.5rem; }
.card-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.75rem; }

/* === DEPARTMENT CARDS === */
.dept-section { background: #fff; }
.dept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.dept-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: all var(--transition); }
.dept-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.dept-card-header { background: var(--navy); color: #fff; padding: 1.5rem; display: flex; align-items: center; gap: 1rem; }
.dept-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.dept-card-header h3 { color: #fff; margin: 0; font-size: 1.1rem; }
.dept-card-header .dept-desc { font-size: 0.78rem; color: rgba(255,255,255,0.7); margin-top: 0.2rem; }
.dept-card-body { padding: 1.5rem; }
.dept-subjects { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.subject-tag { background: #f8f6f0; border: 1px solid var(--border); color: var(--text); font-size: 0.78rem; padding: 0.3rem 0.7rem; border-radius: 20px; }
.dept-link { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--maroon); font-size: 0.85rem; font-weight: 600; transition: gap var(--transition); }
.dept-link:hover { gap: 0.6rem; }

/* === FACILITY CARDS === */
.facilities-section { background: var(--bg); }
.facilities-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.facility-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; padding: 1.5rem 1rem; transition: all var(--transition); border-bottom: 3px solid transparent; }
.facility-card:hover { border-bottom-color: var(--maroon); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.facility-icon { font-size: 2.2rem; margin-bottom: 0.75rem; display: block; }
.facility-card h4 { font-size: 0.9rem; color: var(--navy); font-family: var(--serif); }

/* === PRINCIPAL DESK === */
.principal-section { background: var(--navy); color: #fff; }
.principal-section .section-header h2 { color: #fff; }
.principal-section .section-divider { background: #f0c060; }
.principal-grid { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; align-items: start; }
.principal-photo { text-align: center; }
.principal-photo-frame { width: 200px; height: 240px; background: rgba(255,255,255,0.1); border-radius: var(--radius); margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-style: italic; font-size: 0.85rem; border: 2px solid rgba(255,255,255,0.15); }
.principal-name { font-family: var(--serif); font-size: 1.1rem; color: #f0c060; margin-bottom: 0.2rem; }
.principal-title { font-size: 0.8rem; color: rgba(255,255,255,0.65); }
.principal-message { position: relative; }
.principal-message .quote-mark { font-family: var(--serif); font-size: 5rem; line-height: 0.5; color: rgba(240,192,96,0.3); display: block; margin-bottom: 0.5rem; }
.principal-message p { font-size: 1rem; color: rgba(255,255,255,0.85); line-height: 1.8; font-style: italic; }
.principal-message .signature { margin-top: 1.5rem; color: #f0c060; font-family: var(--serif); font-size: 1rem; }

/* === NEWS & EVENTS === */
.news-section { background: var(--white); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: all var(--transition); }
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.news-card-img { height: 180px; background: linear-gradient(135deg, #d5ccc0, #c8bdb0); display: flex; align-items: center; justify-content: center; color: #999; font-size: 0.85rem; font-style: italic; }
.news-card-body { padding: 1.25rem; }
.news-date { font-size: 0.75rem; color: var(--maroon); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.news-card h4 { font-family: var(--serif); font-size: 1rem; color: var(--navy); margin-bottom: 0.5rem; }
.news-card p { font-size: 0.85rem; color: #666; }

/* === GALLERY PREVIEW === */
.gallery-section { background: var(--bg); }
.gallery-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.gallery-item { position: relative; height: 200px; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.gallery-item-bg { width: 100%; height: 100%; background: linear-gradient(135deg, #c8bdb0, #a09080); transition: transform var(--transition); }
.gallery-item:hover .gallery-item-bg { transform: scale(1.05); }
.gallery-item-overlay { position: absolute; inset: 0; background: rgba(26,39,68,0.5); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.85rem; text-align: center; padding: 1rem; opacity: 0; transition: opacity var(--transition); }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-cta { text-align: center; }

/* === CONTACT SECTION === */
.contact-section { background: var(--navy); color: #fff; }
.contact-section .section-header h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-info-item h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: #f0c060; margin-bottom: 0.2rem; }
.contact-info-item p, .contact-info-item a { font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.contact-info-item a:hover { color: #fff; }
.map-placeholder { background: rgba(255,255,255,0.08); border-radius: var(--radius); height: 250px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-style: italic; border: 1px dashed rgba(255,255,255,0.2); }

/* === FOOTER === */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.8); padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .footer-logo-text { font-family: var(--serif); font-size: 1.15rem; color: #fff; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.83rem; color: rgba(255,255,255,0.6); line-height: 1.6; overflow-wrap: anywhere; word-break: break-word; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-link { width: 34px; height: 34px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: all var(--transition); color: rgba(255,255,255,0.7); }
.social-link:hover { background: var(--maroon); color: #fff; }
.footer-col h4 { font-family: var(--serif); font-size: 0.95rem; color: #f0c060; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col ul li { margin-bottom: 0.35rem; }
.footer-col ul li a { font-size: 0.83rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }
.footer-col address { font-style: normal; font-size: 0.83rem; color: rgba(255,255,255,0.65); line-height: 1.8; overflow-wrap: anywhere; word-break: break-word; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1rem 0; text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: #fff; }

/* === PAGE HEADER (inner pages) === */
.page-header { background: linear-gradient(135deg, var(--navy) 0%, #2a3f6e 100%); padding: 3rem 0 2.5rem; position: relative; overflow: hidden; }
.page-header::before { content: ""; position: absolute; inset: 0; background: url('../images/campus/college-gate.jpg') center/cover no-repeat; opacity: 0.12; }
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.5rem; }

/* === BREADCRUMBS === */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-top: 0.5rem; }
.breadcrumb a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: rgba(255,255,255,0.35); }
.breadcrumb .current { color: #f0c060; }

/* === NOTICE LIST === */
.notice-board { background: var(--white); }
.notice-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 2rem; overflow-x: auto; }
.notice-tab { padding: 0.75rem 1.5rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; cursor: pointer; transition: all var(--transition); }
.notice-tab.active, .notice-tab:hover { color: var(--maroon); border-bottom-color: var(--maroon); }
.notice-list { display: flex; flex-direction: column; gap: 1rem; }
.notice-item { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; transition: all var(--transition); }
.notice-item:hover { border-color: var(--maroon); box-shadow: var(--shadow); }
.notice-date-badge { background: var(--navy); color: #fff; text-align: center; padding: 0.5rem 0.75rem; border-radius: var(--radius); min-width: 60px; flex-shrink: 0; }
.notice-date-badge .nd-day { font-size: 1.2rem; font-weight: bold; line-height: 1; display: block; }
.notice-date-badge .nd-month { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; }
.notice-content { flex: 1; }
.notice-content h4 { font-family: var(--serif); font-size: 0.95rem; color: var(--navy); margin-bottom: 0.25rem; }
.notice-content p { font-size: 0.8rem; color: var(--muted); }
.notice-download { flex-shrink: 0; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.78rem; }
.notice-badge { display: inline-block; font-size: 0.65rem; padding: 0.15rem 0.5rem; border-radius: 3px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-left: 0.5rem; }
.badge-new { background: #d4edda; color: #155724; }
.badge-exam { background: #cce5ff; color: #004085; }

/* === DEPARTMENT PAGE === */
.dept-page-header { border-left: 5px solid var(--maroon); padding-left: 1rem; margin-bottom: 2rem; }
.dept-info-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.dept-info-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; text-align: center; }
.dept-info-card .dic-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.5rem; }
.dept-info-card .dic-value { font-family: var(--serif); font-size: 1.1rem; color: var(--navy); font-weight: bold; }
.faculty-empty { background: #f8f6f0; border-radius: var(--radius); padding: 3rem; text-align: center; color: var(--muted); font-style: italic; border: 2px dashed var(--border); overflow-wrap: anywhere; word-break: break-word; }
.profile-table { width: 100%; border-collapse: collapse; }
.profile-table th, .profile-table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.profile-table th { background: var(--navy); color: #fff; font-family: var(--serif); font-weight: normal; }
.profile-table tr:hover td { background: #f8f6f0; }

/* === FORMS === */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--heading); margin-bottom: 0.4rem; }
.form-control { width: 100%; padding: 0.65rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; font-size: 0.9rem; background: #fff; color: var(--text); transition: border-color var(--transition), box-shadow var(--transition); }
.form-control:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(139,26,26,0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }

/* === DOWNLOADS === */
.download-category { margin-bottom: 2.5rem; }
.download-category h3 { font-family: var(--serif); color: var(--navy); font-size: 1.2rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--maroon); margin-bottom: 1rem; }
.download-list { display: flex; flex-direction: column; gap: 0.75rem; }
.download-item { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; transition: all var(--transition); }
.download-item:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.dl-icon { font-size: 1.5rem; flex-shrink: 0; }
.dl-info { flex: 1; }
.dl-info h5 { font-size: 0.9rem; color: var(--navy); margin-bottom: 0.2rem; }
.dl-info p { font-size: 0.78rem; color: var(--muted); }
.dl-btn { flex-shrink: 0; }

/* === 404 PAGE === */
.page-404 { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 1.5rem; }
.error-code { font-family: var(--serif); font-size: clamp(5rem, 15vw, 10rem); color: var(--navy); line-height: 1; opacity: 0.15; margin-bottom: -1rem; }
.error-title { font-size: clamp(1.2rem, 3vw, 1.8rem); color: var(--navy); margin-bottom: 1rem; }
.error-msg { color: var(--muted); margin-bottom: 2rem; }

/* === GALLERY PAGE === */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item-full { position: relative; height: 220px; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.gallery-item-full .gf-bg { width: 100%; height: 100%; background: linear-gradient(135deg, #c8bdb0, #a09080); transition: transform 0.4s ease; }
.gallery-item-full:hover .gf-bg { transform: scale(1.06); }
.gallery-item-full .gf-overlay { position: absolute; inset: 0; background: rgba(26,39,68,0.55); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.85rem; opacity: 0; transition: opacity var(--transition); padding: 1rem; text-align: center; }
.gallery-item-full:hover .gf-overlay { opacity: 1; }

/* === VISION MISSION === */
.vm-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; margin-bottom: 1.5rem; border-left: 5px solid var(--maroon); }
.vm-card.mission { border-left-color: var(--green); }
.vm-card h3 { color: var(--navy); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.vm-card p { color: #444; }
.vm-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.vm-value { background: var(--bg); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.vm-value span { font-size: 1.8rem; display: block; margin-bottom: 0.5rem; }
.vm-value h4 { font-size: 0.9rem; color: var(--navy); }

/* === RTI PAGE === */
.rti-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.rti-table th, .rti-table td { padding: 0.75rem 1rem; border: 1px solid var(--border); font-size: 0.9rem; }
.rti-table th { background: var(--navy); color: #fff; font-weight: normal; font-family: var(--serif); }
.rti-table tr:nth-child(even) td { background: #f8f6f0; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-card:nth-child(3) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facilities-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr; }
  .principal-grid { grid-template-columns: 1fr; }
  .principal-photo { text-align: left; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
  .contact-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .dept-info-cards { grid-template-columns: repeat(2, 1fr); }
  .vm-values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .utility-bar { display: none; }
  .header-logo { width: 56px; height: 56px; }
  .header-inner { gap: 0.875rem; }
  .header-text h1 { font-size: 0.95rem; }
  .header-text .sub { font-size: 0.75rem; }
  .nav-list { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .nav-container { position: relative; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .facilities-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .notice-item { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .dept-info-cards { grid-template-columns: 1fr 1fr; }
  .vm-values { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  /* Inline 2fr/1fr sidebar grids: force single column */
  div[style*="2fr 1fr"],
  div[style*="1fr 2fr"] { grid-template-columns: 1fr !important; }
  /* Principal photo: stack on mobile */
  .principal-photo { flex-direction: column; text-align: center; align-items: center; gap: 0.75rem; }
  .principal-photo-frame { margin: 0 auto 0.5rem; }
  /* Info block: allow table scroll on mobile */
  .info-block { overflow-x: auto; }
  /* Contact info long text */
  .contact-info-item p, .contact-info-item a { overflow-wrap: anywhere; word-break: break-word; }
  /* Download items stack on mobile */
  .download-item { flex-direction: column; align-items: flex-start; }
  .dl-btn { width: 100%; display: flex; gap: 0.5rem; }
  .dl-btn .btn { flex: 1; text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .section { padding: 2rem 0; }
  .page-content { padding: 2rem 0; }
  .container { padding-left: 1rem; padding-right: 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .gallery-preview-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .dept-info-cards { grid-template-columns: 1fr; }
  /* Hero reduced height */
  .hero { min-height: 360px; }
  .hero-content { padding: 2.5rem 1rem; }
  /* All inline grids → single column */
  div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  /* Reduced padding inside cards */
  .info-block { padding: 1.25rem 1rem; }
  .highlight-box { padding: 1.25rem 1rem; }
  .card-body { padding: 1.25rem 1rem; }
  /* Notice items */
  .notice-item { padding: 1rem; }
  /* Stats numbers */
  .stat-number { font-size: 1.6rem; }
  /* Principal frame smaller */
  .principal-photo-frame { width: 160px; height: 195px; }
}

/* === UTILITY BAR — tel link & inactive items === */
.util-tel { color: inherit; text-decoration: none; }
.util-tel:hover { color: #fff; text-decoration: underline; }
.util-inactive { opacity: 0.45; cursor: default; font-size: 0.8rem; padding: 2px 8px; border: 1px solid rgba(255,255,255,0.12); border-radius: 3px; color: rgba(255,255,255,0.5); }

/* === FOOTER — tel link === */
.footer-tel { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-tel:hover { color: #fff; }

/* === SOCIAL LINKS — inactive state === */
.social-link-inactive { width: 34px; height: 34px; background: rgba(255,255,255,0.05); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; color: rgba(255,255,255,0.25); cursor: default; }

/* === NOTICE — unavailable download state === */
.notice-unavailable { font-size: 0.75rem; color: #bbb; font-style: italic; white-space: nowrap; padding: 0.4rem 0; }

/* === CONTACT FORM — mailto fallback note === */
.form-mailto-note { font-size: 0.82rem; color: var(--muted); padding: 0.75rem 1rem; background: #f8f6f0; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 1.5rem; }
.form-mailto-note a { color: var(--maroon); }

/* === UTILITIES === */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.w-100 { width: 100%; }
.page-content { padding: 3rem 0; }
.info-block { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; margin-bottom: 2rem; min-width: 0; }
.info-block h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid #f0ece4; }
.info-block p, .info-block a, .info-block li, .info-block span { overflow-wrap: anywhere; }
.highlight-box { background: linear-gradient(135deg, var(--navy), #2a3f6e); color: #fff; border-radius: var(--radius); padding: 2rem; margin-bottom: 2rem; min-width: 0; overflow: hidden; }
.highlight-box h3 { color: #f0c060; margin-bottom: 0.75rem; }
.highlight-box p { color: rgba(255,255,255,0.85); overflow-wrap: anywhere; word-break: break-word; }
.highlight-box a, .highlight-box strong { overflow-wrap: anywhere; word-break: break-word; }

/* === TABLE MOBILE SCROLL ===
   Tables scroll horizontally on narrow screens rather than squeezing text */
@media (max-width: 640px) {
  .profile-table, .rti-table { min-width: 500px; width: 100%; }
}

/* === GRID CHILDREN MIN-WIDTH FIX ===
   Prevents CSS Grid children from overflowing their column
   when content (e.g. long URLs/emails) has no natural break points */
div[style*="grid-template-columns"] > * { min-width: 0; overflow-wrap: anywhere; }

/* === NARROW SCREEN (≤390px) POLISH === */
@media (max-width: 390px) {
  .header-logo { width: 48px; height: 48px; }
  .header-inner { gap: 0.625rem; }
  .header-text h1 { font-size: 0.85rem; }
  .header-text .sub { font-size: 0.7rem; }
  .header-text .affiliation { font-size: 0.65rem; }
  .hero-content h1 { font-size: 1.5rem; }
  .btn { padding: 0.65rem 1.25rem; font-size: 0.85rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .stat-number { font-size: 1.4rem; }
  .stat-card { padding: 1rem 0.5rem; }
  .footer-grid { gap: 1.5rem; }
  .notice-tab { padding: 0.65rem 1rem; font-size: 0.8rem; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* === SAFE MAXIMUM for any remaining overflow sources === */
/* Prevent any element from creating horizontal scroll */
.page-content * { max-width: 100%; }
.site-footer * { max-width: 100%; }
/* Exception: images already handled */
.site-footer img { max-width: 100%; }
