/* ================================================================
   LA CONSOLACION COLLEGE – EDUCATIONAL MATERIAL PORTAL
   style.css – Complete Stylesheet
   ================================================================ */

/* ---- CSS Variables ---- */
:root {
  --primary:        #1a3a6b;   /* Deep navy blue – LCC school tone */
  --primary-light:  #2554a0;
  --primary-dark:   #102648;
  --accent:         #c8960c;   /* Gold accent */
  --accent-light:   #f0b429;
  --bg:             #f5f7fc;
  --bg-card:        #ffffff;
  --text:           #1c2b44;
  --text-light:     #6b7c99;
  --border:         #dde3f0;
  --shadow:         0 4px 24px rgba(26,58,107,0.10);
  --shadow-sm:      0 2px 8px rgba(26,58,107,0.08);
  --shadow-lg:      0 8px 40px rgba(26,58,107,0.15);
  --radius:         12px;
  --radius-sm:      8px;
  --radius-lg:      20px;
  /* Course accent colors */
  --accent-hm:      #c0392b;
  --accent-ba:      #1a6b3a;
  --accent-it:      #1a3a6b;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.25; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }
img { max-width: 100%; }
.hidden { display: none !important; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center;
  height: 70px; gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; margin-right: auto; }
.nav-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;        /* makes container a perfect circle */
  overflow: hidden;          /* clips anything outside the circle */
  background: transparent;   /* removes the navy square background */
  flex-shrink: 0;
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* fills the circle without distortion */
  object-position: center;   /* keeps the logo centered */
  display: block;
}
.nav-title-main { display: block; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.2rem; color: var(--primary); line-height:1.1; }
.nav-title-sub  { display: block; font-size: 0.68rem; color: var(--text-light); letter-spacing: 0.04em; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-link {
  display: block; padding: 0.5rem 0.85rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; color: var(--text-light);
  transition: color 0.2s, background 0.2s; cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(26,58,107,0.07); }
.nav-login-wrapper { position: relative; }
.btn-login-nav {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.1rem; border-radius: 8px; border: 2px solid var(--primary);
  background: transparent; color: var(--primary); font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.btn-login-nav:hover { background: var(--primary); color: #fff; }
.login-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); overflow: hidden; width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.login-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.login-option {
  display: flex; align-items: center; gap: 0.75rem;
  width: 100%; padding: 0.85rem 1.25rem; background: none; border: none;
  text-align: left; font-size: 0.9rem; font-weight: 600; color: var(--text);
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.login-option:hover { background: var(--bg); color: var(--primary); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--primary); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ================================================================
   PAGE SECTIONS
   ================================================================ */
.page {
  display: none; padding-top: 70px; min-height: 100vh;
  animation: fadeIn 0.35s ease;
}
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Page Hero ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff; text-align: center; padding: 4rem 1.5rem 3.5rem;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.page-hero p  { font-size: 1.05rem; opacity: 0.85; max-width: 560px; margin: 0 auto; }

/* ---- Section Container ---- */
.section-container {
  max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem;
}
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--primary); margin-bottom: 0.5rem; }
.section-header p  { color: var(--text-light); font-size: 1.05rem; }

/* ================================================================
   HOME PAGE
   ================================================================ */
.hero {
  min-height: calc(100vh - 70px);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #1f4fa0 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 1.5rem; position: relative; overflow: hidden; gap: 4rem; flex-wrap: wrap;
}
/* Background decorative shapes */
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute; border-radius: 50%;
  opacity: 0.07;
}
.shape-1 { width: 500px; height: 500px; background: #fff; top: -150px; right: -100px; }
.shape-2 { width: 300px; height: 300px; background: var(--accent-light); bottom: -80px; left: -60px; }
.shape-3 { width: 200px; height: 200px; background: #fff; top: 50%; left: 40%; }

.hero-content { max-width: 600px; color: #fff; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  margin-bottom: 1.5rem; letter-spacing: 0.03em;
}
.hero-badge i { color: var(--accent-light); }
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.1;
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem); font-weight: 400; font-family: 'Source Sans 3', sans-serif;
  opacity: 0.9; margin-bottom: 1.5rem; letter-spacing: 0.01em;
}
.hero-desc { font-size: 1rem; opacity: 0.8; line-height: 1.7; margin-bottom: 2.5rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Hero illustration */
.hero-image { position: relative; z-index: 1; }
.hero-card-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hero-card {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px); border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  color: #fff; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.3s, background 0.3s;
}
.hero-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.2); }
.hero-card i { font-size: 1.8rem; color: var(--accent-light); }
.hc-1 { animation: float 3s ease-in-out infinite; }
.hc-2 { animation: float 3s ease-in-out infinite 0.5s; }
.hc-3 { animation: float 3s ease-in-out infinite 1s; }
.hc-4 { animation: float 3s ease-in-out infinite 1.5s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* Stats Bar */
.stats-bar {
  background: var(--primary); color: #fff;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
}
.stat-item {
  flex: 1; min-width: 120px; padding: 1.75rem 1rem; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-num { display: block; font-size: 2rem; font-weight: 700; font-family: 'Playfair Display', serif; color: var(--accent-light); }
.stat-label { font-size: 0.85rem; opacity: 0.85; }

/* Overview Cards */
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1.5rem; }
.overview-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  text-align: center; transition: transform 0.3s, box-shadow 0.3s;
}
.overview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ov-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin: 0 auto 1.25rem;
}
.overview-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; color: var(--primary); }
.overview-card p  { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* ================================================================
   ABOUT PAGE
   ================================================================ */
.about-hero { position: relative; overflow: hidden; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-badge {
  display: inline-block; background: rgba(26,58,107,0.08); color: var(--primary);
  padding: 0.35rem 1rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem;
}
.about-text h2 { font-size: 1.9rem; color: var(--primary); margin-bottom: 1rem; }
.about-text p  { color: var(--text-light); margin-bottom: 1rem; line-height: 1.75; }
.about-points { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.5rem; }
.about-point { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.about-point i { color: var(--primary); }
.about-cards { display: flex; flex-direction: column; gap: 1.5rem; }
.about-info-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); display: flex; gap: 1.25rem;
}
.ai-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.ai-icon.faculty-icon { background: linear-gradient(135deg, #1a6b3a, #2a9d5e); }
.about-info-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--primary); }
.about-info-card p  { font-size: 0.88rem; color: var(--text-light); line-height: 1.65; }

/* ================================================================
   DEPARTMENTS PAGE
   ================================================================ */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 2rem; }
.dept-card {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 2.25rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.dept-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dept-icon {
  width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff;
}
.dept-card h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 0.3rem; }
.dept-code { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); margin-bottom: 0.75rem; }
.dept-desc { font-size: 0.88rem; color: var(--text-light); margin-bottom: 1.25rem; line-height: 1.65; }
.dept-course-tag {
  display: inline-block; background: var(--bg); border: 1px solid var(--border);
  padding: 0.3rem 0.9rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.05em; margin-bottom: 1.25rem; color: var(--primary);
}
.btn-dept {
  display: inline-block; padding: 0.6rem 1.5rem; border-radius: 8px;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  font-weight: 600; font-size: 0.88rem; transition: background 0.2s;
}
.btn-dept:hover { background: var(--primary-light); }

/* ================================================================
   COURSES PAGE
   ================================================================ */
.course-tabs {
  display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.course-tab {
  padding: 0.65rem 1.5rem; border-radius: 8px; border: 2px solid var(--border);
  background: var(--bg-card); color: var(--text-light); font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s;
}
.course-tab.active, .course-tab:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.course-content { display: none; }
.course-content.active { display: block; }
.course-header {
  display: flex; align-items: center; gap: 1.25rem; padding: 1.75rem 2rem;
  border-radius: var(--radius); color: #fff; margin-bottom: 2rem;
}
.bshm-header { background: linear-gradient(135deg, #8b1a1a, #c0392b); }
.bsba-header { background: linear-gradient(135deg, #0f4d24, #1a6b3a); }
.bsit-header  { background: linear-gradient(135deg, #102648, #1a3a6b); }
.course-header i { font-size: 2.5rem; opacity: 0.9; }
.course-header h2 { font-size: 1.35rem; margin-bottom: 0.2rem; }
.course-header p  { opacity: 0.85; font-size: 0.88rem; }
.year-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1.5rem; }
.year-card {
  background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.year-label {
  background: var(--primary); color: #fff; padding: 0.75rem 1.25rem;
  font-weight: 700; font-size: 0.88rem; letter-spacing: 0.04em;
}
.subject-list { padding: 1rem 0; }
.subject-list li {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 1.25rem; font-size: 0.88rem; color: var(--text);
  border-bottom: 1px solid var(--border); transition: background 0.15s;
}
.subject-list li:last-child { border-bottom: none; }
.subject-list li:hover { background: var(--bg); }
.subject-list i { color: var(--primary-light); font-size: 0.8rem; }

/* ================================================================
   RESOURCES PAGE
   ================================================================ */
.resource-filters {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem;
  background: var(--bg-card); padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border);
}
.filter-group { display: flex; flex-direction: column; gap: 0.4rem; min-width: 160px; flex: 1; }
.filter-group label { font-size: 0.82rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.filter-group select {
  padding: 0.6rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: border-color 0.2s;
}
.filter-group select:focus { outline: none; border-color: var(--primary); }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.5rem; }
.resource-card {
  background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s, box-shadow 0.3s;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rc-header {
  padding: 1rem 1.25rem 0.75rem; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.rc-type-badge {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: 999px; color: #fff;
}
.type-Lesson      { background: #1a6b3a; }
.type-Examination { background: #8b1a1a; }
.type-Exercise    { background: #1a3a6b; }
.type-Project     { background: #7b3a00; }
.rc-course-tag {
  font-size: 0.72rem; font-weight: 700; color: var(--primary);
  background: rgba(26,58,107,0.08); padding: 0.3rem 0.7rem; border-radius: 999px;
}
.rc-body { padding: 1.25rem; }
.rc-title { font-size: 1rem; color: var(--primary); margin-bottom: 0.4rem; }
.rc-subject { font-size: 0.82rem; color: var(--text-light); margin-bottom: 0.75rem; }
.rc-meta { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.rc-meta span { font-size: 0.78rem; color: var(--text-light); }
.rc-meta i { margin-right: 0.3rem; }
.rc-desc { font-size: 0.85rem; color: var(--text-light); line-height: 1.55; margin-bottom: 1.25rem; }
.btn-download {
  display: flex; align-items: center; gap: 0.5rem; justify-content: center;
  width: 100%; padding: 0.65rem; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  font-weight: 600; font-size: 0.88rem; transition: background 0.2s;
}
.btn-download:hover { background: var(--primary-light); }
.no-results {
  text-align: center; padding: 4rem; color: var(--text-light);
  grid-column: 1 / -1;
}
.no-results i { font-size: 3rem; margin-bottom: 1rem; display: block; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 8px; border: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--primary-dark); font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(200,150,12,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(200,150,12,0.45); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.5); background: transparent;
  color: #fff; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.full-width { width: 100%; justify-content: center; }
.faculty-btn {
  background: linear-gradient(135deg, #1a6b3a, #2a9d5e);
  box-shadow: 0 4px 16px rgba(26,107,58,0.35);
}
.faculty-btn:hover { box-shadow: 0 6px 24px rgba(26,107,58,0.45); }

/* ================================================================
   LOGIN MODAL
   ================================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(16,38,72,0.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: #fff; border-radius: var(--radius-lg); padding: 2.5rem;
  width: 100%; max-width: 460px; position: relative; max-height: 90vh; overflow-y: auto;
  transform: scale(0.95); transition: transform 0.25s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: none;
  color: var(--text-light); cursor: pointer; font-size: 0.9rem; transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--border); }
.login-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 2rem;
  background: var(--bg); border-radius: 10px; padding: 0.4rem;
}
.login-tab {
  padding: 0.65rem; border-radius: 8px; border: none; background: transparent;
  color: var(--text-light); font-weight: 600; font-size: 0.85rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: background 0.2s, color 0.2s;
}
.login-tab.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.login-form { display: none; }
.login-form.active { display: block; }
.login-header { text-align: center; margin-bottom: 1.75rem; }
.login-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.login-icon.faculty-icon { background: linear-gradient(135deg, #1a6b3a, #2a9d5e); }
.login-header h2 { font-size: 1.4rem; color: var(--primary); }
.login-header p  { font-size: 0.88rem; color: var(--text-light); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.7rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 0.9rem; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
}
.input-icon { position: relative; }
.input-icon > i {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-size: 0.85rem;
}
.input-icon input { padding-left: 2.5rem; }
.toggle-pass {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-light); cursor: pointer;
  padding: 0.25rem; transition: color 0.2s;
}
.toggle-pass:hover { color: var(--primary); }
.field-error { font-size: 0.78rem; color: #c0392b; display: block; margin-top: 0.3rem; min-height: 1em; }
.login-hint { font-size: 0.8rem; color: var(--text-light); background: var(--bg); padding: 0.6rem 0.9rem; border-radius: 6px; margin-bottom: 1.25rem; }
.login-hint i { margin-right: 0.3rem; color: var(--primary); }
.required { color: #c0392b; }

/* ================================================================
   DASHBOARDS
   ================================================================ */
.dashboard-overlay {
  position: fixed; inset: 0; z-index: 1500;
  background: var(--bg); overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.dashboard-overlay.open { opacity: 1; visibility: visible; }
.dashboard { min-height: 100vh; display: flex; flex-direction: column; }
.dashboard-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2rem; color: #fff; gap: 1rem; flex-wrap: wrap; position: sticky; top: 0; z-index: 10;
}
.student-dh { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.faculty-dh { background: linear-gradient(135deg, #0f4d24, #1a6b3a); }
.dh-left { display: flex; align-items: center; gap: 1rem; }
.dh-avatar {
  width: 52px; height: 52px; border-radius: 12px; background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff;
}
.dh-avatar.faculty-avatar { background: rgba(255,255,255,0.2); }
.dashboard-header h2 { font-size: 1.2rem; margin-bottom: 0.1rem; }
.dashboard-header p  { font-size: 0.85rem; opacity: 0.85; }
.btn-logout {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.25rem; border-radius: 8px; background: rgba(255,255,255,0.15);
  color: #fff; border: 1px solid rgba(255,255,255,0.3); cursor: pointer;
  font-weight: 600; font-size: 0.88rem; transition: background 0.2s;
}
.btn-logout:hover { background: rgba(255,255,255,0.25); }
.dashboard-body {
  display: flex; flex: 1; min-height: 0;
}
.db-sidebar {
  width: 220px; background: var(--bg-card); border-right: 1px solid var(--border);
  padding: 1.5rem 1rem; flex-shrink: 0;
}
.db-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.db-nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: 8px; border: none; background: none;
  color: var(--text-light); font-weight: 600; font-size: 0.9rem; cursor: pointer;
  text-align: left; transition: background 0.2s, color 0.2s;
}
.db-nav-item:hover { background: var(--bg); color: var(--primary); }
.db-nav-item.active { background: rgba(26,58,107,0.09); color: var(--primary); }
.db-main { flex: 1; padding: 2rem; overflow-y: auto; }
.dash-tab { display: none; }
.dash-tab.active { display: block; }
.dash-tab h3 { font-size: 1.35rem; color: var(--primary); margin-bottom: 1.5rem; }
.db-filters { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.db-filters select {
  padding: 0.6rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.db-material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1.25rem; }

/* Upload form */
.upload-form { max-width: 780px; }
.upload-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.file-drop-zone {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 2rem;
  text-align: center; cursor: pointer; background: var(--bg);
  transition: border-color 0.2s, background 0.2s;
}
.file-drop-zone:hover { border-color: var(--primary); background: rgba(26,58,107,0.03); }
.file-drop-zone i { font-size: 2rem; color: var(--primary-light); margin-bottom: 0.75rem; display: block; }
.file-drop-zone p { font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.file-drop-zone span { font-size: 0.8rem; color: var(--text-light); }
.selected-file {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
  background: rgba(26,58,107,0.06); border-radius: 8px; font-size: 0.88rem;
  color: var(--primary); font-weight: 600; margin-top: 0.75rem;
}
.selected-file i { color: var(--primary-light); }
.selected-file button {
  margin-left: auto; background: none; border: none; color: var(--text-light);
  cursor: pointer; padding: 0.25rem; font-size: 0.85rem;
}
.selected-file button:hover { color: #c0392b; }
.upload-actions { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.upload-actions .btn-outline {
  border-color: var(--border); color: var(--text-light); background: #fff;
}
.upload-success {
  display: flex; align-items: center; gap: 0.6rem;
  color: #1a6b3a; background: rgba(26,107,58,0.1); padding: 0.8rem 1.2rem;
  border-radius: 8px; margin-top: 1rem; font-weight: 600;
}
.upload-success i { font-size: 1.1rem; }

/* Manage Table */
.manage-header { margin-bottom: 1.25rem; }
.manage-header input {
  padding: 0.65rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 0.9rem; width: 100%; max-width: 360px;
}
.manage-header input:focus { outline: none; border-color: var(--primary); }
.manage-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.manage-table { width: 100%; border-collapse: collapse; background: var(--bg-card); }
.manage-table th {
  background: var(--primary); color: #fff; padding: 0.85rem 1rem;
  font-size: 0.8rem; font-weight: 700; text-align: left; letter-spacing: 0.04em; text-transform: uppercase;
}
.manage-table td {
  padding: 0.85rem 1rem; font-size: 0.88rem; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.manage-table tr:last-child td { border-bottom: none; }
.manage-table tr:hover td { background: var(--bg); }
.tbl-actions { display: flex; gap: 0.5rem; }
.btn-edit, .btn-delete {
  padding: 0.4rem 0.85rem; border-radius: 6px; border: none; cursor: pointer;
  font-size: 0.78rem; font-weight: 600; display: flex; align-items: center; gap: 0.3rem;
  transition: background 0.2s;
}
.btn-edit   { background: rgba(26,58,107,0.1); color: var(--primary); }
.btn-edit:hover { background: rgba(26,58,107,0.2); }
.btn-delete { background: rgba(192,57,43,0.1); color: #c0392b; }
.btn-delete:hover { background: rgba(192,57,43,0.2); }
.empty-table { text-align: center; padding: 3rem; color: var(--text-light); background: var(--bg-card); }
.empty-table i { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }

/* Profile Card */
.profile-card {
  background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 2.5rem; max-width: 500px; display: flex; gap: 2rem; align-items: flex-start;
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.profile-avatar.faculty-avatar { background: linear-gradient(135deg, #1a6b3a, #2a9d5e); }
.profile-info { flex: 1; }
.profile-row {
  display: flex; justify-content: space-between; padding: 0.65rem 0;
  border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.profile-row:last-child { border-bottom: none; }
.profile-row span:first-child { font-weight: 700; color: var(--text-light); }
.badge-active {
  background: rgba(26,107,58,0.1); color: #1a6b3a;
  padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
}

/* ================================================================
   TOAST NOTIFICATION
   ================================================================ */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--primary-dark); color: #fff; padding: 0.85rem 1.5rem;
  border-radius: 10px; font-weight: 600; font-size: 0.9rem;
  box-shadow: var(--shadow-lg); transform: translateY(20px); opacity: 0;
  transition: transform 0.3s, opacity 0.3s; pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.85);
}
.footer-container {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 3rem; padding: 4rem 1.5rem 3rem;
}
.footer-brand .footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  margin-bottom: 1rem;
}

.footer-brand .footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.footer-brand h3 { font-size: 1.1rem; color: #fff; margin-bottom: 0.25rem; }
.footer-brand p  { font-size: 0.85rem; opacity: 0.7; }
.footer-tagline  { margin-top: 0.75rem; font-style: italic; font-size: 0.8rem !important; color: var(--accent-light) !important; opacity: 1 !important; }
.footer h4 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 1.25rem; font-family: 'Source Sans 3', sans-serif; }
.footer-links ul li, .footer-courses ul li { padding: 0.35rem 0; font-size: 0.88rem; }
.footer-links ul li a, .footer-links ul li { cursor: pointer; transition: color 0.2s; }
.footer-links ul li a:hover { color: var(--accent-light); }
.footer-courses ul li { display: flex; align-items: center; gap: 0.6rem; }
.footer-courses ul li i { color: var(--accent-light); font-size: 0.85rem; }
.footer-contact p { font-size: 0.85rem; margin-bottom: 0.6rem; display: flex; align-items: flex-start; gap: 0.6rem; }
.footer-contact i { color: var(--accent-light); margin-top: 0.2rem; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; padding: 1.25rem; font-size: 0.82rem; opacity: 0.55;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    background: #fff; box-shadow: var(--shadow);
    flex-direction: column; padding: 1rem; gap: 0.25rem;
    transform: translateY(-110%); transition: transform 0.3s;
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: 0.75rem 1rem; width: 100%; }
  .nav-login-wrapper { width: 100%; }
  .btn-login-nav { width: 100%; justify-content: center; }
  .login-dropdown { width: 100%; position: static; box-shadow: none; border: 1px solid var(--border); }
  .hamburger { display: flex; }

  .hero { flex-direction: column; text-align: center; gap: 2.5rem; }
  .hero-btns { justify-content: center; }
  .hero-card-stack { max-width: 280px; }
  .upload-form-row { grid-template-columns: 1fr; }
  .dashboard-body { flex-direction: column; }
  .db-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 0.75rem; }
  .db-nav { flex-direction: row; overflow-x: auto; }
  .db-nav-item { white-space: nowrap; }
  .profile-card { flex-direction: column; align-items: center; text-align: center; }
  .profile-row { flex-direction: column; gap: 0.2rem; align-items: center; }
}

@media (max-width: 480px) {
  .stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .stat-item:last-child { border-bottom: none; }
  .year-grid { grid-template-columns: 1fr; }
  .hero-card-stack { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}