/* ============================================================
   styles.css — Global Stylesheet
   iMES | assets/css/styles.css
   ============================================================ */

/* ── CSS VARIABLES ──────────────────────────────────────── */
:root {
  --cream:        #fdf9f4;
  --white:        #ffffff;
  --gold:         #c9973a;
  --gold-light:   #e8c47a;
  --gold-dark:    #9a7228;
  --navy:         #1a2744;
  --navy-light:   #243460;
  --charcoal:     #2c2c2c;
  --muted:        #6b6b6b;
  --light-border: #e8e0d4;
  --accent-green: #3a7d6e;

  --font-display: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;
  --font-accent:  'Cormorant Garamond', serif;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar-custom {
  background: var(--white);
  border-bottom: 1px solid var(--light-border);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(26,39,68,0.07);
  transition: box-shadow 0.3s;
}

.navbar-custom.scrolled {
  box-shadow: 0 4px 28px rgba(26,39,68,0.13);
}

.navbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-circle {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.brand-logo-circle::after {
  content: '';
  position: absolute;
  width: 60%; height: 60%;
  border: 2px solid var(--gold);
  border-radius: 50%;
  opacity: 0.5;
}

.brand-logo-circle i { color: var(--gold-light); font-size: 1.3rem; z-index: 1; }

.brand-text-wrap .brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.3px;
}

.brand-text-wrap .brand-tagline {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  color: var(--gold-dark);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-style: italic;
}

.nav-link-custom {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--charcoal) !important;
  letter-spacing: 0.3px;
  padding: 0.4rem 0.9rem !important;
  position: relative;
  transition: color 0.2s;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link-custom:hover,
.nav-link-custom.active { color: var(--gold-dark) !important; }
.nav-link-custom:hover::after,
.nav-link-custom.active::after { width: 60%; }

.btn-login-nav {
  background: var(--navy);
  color: var(--white) !important;
  border-radius: 6px;
  padding: 0.42rem 1.2rem !important;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.25s, box-shadow 0.25s;
}

.btn-login-nav:hover {
  background: var(--navy-light);
  box-shadow: 0 4px 14px rgba(26,39,68,0.25);
}

.btn-login-nav::after { display: none; }

.btn-logout-nav {
  background: rgba(154,114,40,0.1);
  color: var(--gold-dark) !important;
  border-radius: 6px;
  padding: 0.42rem 1rem !important;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.25s;
}

.btn-logout-nav:hover { background: rgba(154,114,40,0.2); }
.btn-logout-nav::after { display: none; }

.nav-user-name {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── NEWS TICKER ─────────────────────────────────────────── */
.news-ticker {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 7px 0;
  overflow: hidden;
  position: relative;
}

.ticker-label {
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: 0 20px 20px 0;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.ticker-wrapper { display: flex; align-items: center; gap: 0; width: 100%; }

.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-track span {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  padding: 0 2rem;
  color: rgba(255,255,255,0.9);
}

.ticker-track span::before {
  content: '◆';
  color: var(--gold-light);
  margin-right: 0.7rem;
  font-size: 0.6rem;
  vertical-align: middle;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTION COMMON ──────────────────────────────────────── */
section { padding: 100px 0; }

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.8rem;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.section-desc {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}

.divider-gold {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
  margin: 1rem 0 1.5rem;
}

/* ── HERO ────────────────────────────────────────────────── */
#home {
  background: var(--white);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(201,151,58,0.06) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(26,39,68,0.05) 0%, transparent 50%);
}

.hero-geo {
  position: absolute; right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 560px; height: 560px;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: linear-gradient(135deg, rgba(26,39,68,0.04) 0%, rgba(201,151,58,0.06) 100%);
  border: 1px solid rgba(201,151,58,0.15);
}

.hero-geo-2 {
  position: absolute; right: 60px; top: 50%;
  transform: translateY(-50%);
  width: 420px; height: 420px;
  border-radius: 60% 40% 45% 55% / 55% 50% 50% 45%;
  border: 1px solid rgba(26,39,68,0.08);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,151,58,0.1);
  border: 1px solid rgba(201,151,58,0.3);
  border-radius: 100px;
  padding: 5px 16px 5px 8px;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.7; }
}

.hero-badge span {
  font-size: 0.78rem; font-weight: 600;
  color: var(--gold-dark); letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800; color: var(--navy);
  line-height: 1.12; letter-spacing: -1px;
  margin-bottom: 1rem;
}

.hero-title em { font-style: italic; color: var(--gold-dark); }

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: 1.25rem; color: var(--muted);
  line-height: 1.7; font-weight: 300;
  max-width: 520px; margin-bottom: 2.2rem;
}

.hero-stats {
  display: flex; gap: 2rem;
  margin-top: 2.8rem; padding-top: 2rem;
  border-top: 1px solid var(--light-border);
}

.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  color: var(--navy); line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.78rem; color: var(--muted);
  font-weight: 500; letter-spacing: 0.3px; margin-top: 3px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white); border: none; border-radius: 8px;
  padding: 0.82rem 2rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.3px;
  transition: transform 0.2s, box-shadow 0.3s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}

.btn-primary-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,151,58,0.4);
  color: var(--white);
}

.btn-outline-navy {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--navy); border-radius: 8px;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body); font-weight: 500; font-size: 0.9rem;
  transition: all 0.25s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}

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

/* ── ABOUT ───────────────────────────────────────────────── */
#about { background: var(--cream); }

.about-card {
  background: var(--white); border-radius: 16px; padding: 2.5rem;
  border: 1px solid var(--light-border); height: 100%;
  transition: box-shadow 0.3s, transform 0.3s;
}

.about-card:hover {
  box-shadow: 0 12px 40px rgba(26,39,68,0.1);
  transform: translateY(-4px);
}

.about-icon-wrap {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, rgba(201,151,58,0.12) 0%, rgba(201,151,58,0.05) 100%);
  border: 1px solid rgba(201,151,58,0.25);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}

.about-icon-wrap i { font-size: 1.4rem; color: var(--gold-dark); }

.about-card h5 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; color: var(--navy); margin-bottom: 0.6rem;
}

.about-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

.about-img-block { position: relative; border-radius: 20px; overflow: hidden; }

.about-img-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, var(--gold-dark) 100%);
  border-radius: 20px; height: 420px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

.about-img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E") repeat;
}

.about-img-placeholder i { font-size: 5rem; color: rgba(255,255,255,0.2); }

.about-badge-overlay {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px; padding: 1rem 1.4rem;
  display: flex; align-items: center; gap: 14px;
}

.about-badge-overlay .num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1;
}

.about-badge-overlay .txt { font-size: 0.82rem; color: var(--muted); font-weight: 500; line-height: 1.4; }

/* ── FACULTY ─────────────────────────────────────────────── */
#faculty { background: var(--cream); }

.faculty-card {
  background: var(--white); border-radius: 16px; padding: 2rem;
  text-align: center; border: 1px solid var(--light-border);
  transition: all 0.3s;
}

.faculty-card:hover {
  box-shadow: 0 12px 36px rgba(26,39,68,0.1);
  transform: translateY(-4px);
}

.faculty-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  border: 3px solid rgba(201,151,58,0.3);
}

.faculty-avatar i { font-size: 2.2rem; color: rgba(255,255,255,0.7); }

.faculty-card h5 {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 3px;
}

.faculty-card .role {
  font-family: var(--font-accent);
  font-size: 0.88rem; font-style: italic; color: var(--gold-dark); margin-bottom: 0.7rem;
}

.faculty-card p { font-size: 0.84rem; color: var(--muted); line-height: 1.6; }

/* ── CONTACT ─────────────────────────────────────────────── */
#contact { background: var(--white); }

.contact-wrap {
  background: var(--navy); border-radius: 24px; padding: 4rem;
  position: relative; overflow: hidden;
}

.contact-wrap::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,151,58,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-wrap .section-title { color: var(--white); }
.contact-wrap .section-tag   { color: var(--gold-light); }
.contact-wrap .section-tag::before { background: var(--gold-light); }
.contact-wrap .section-desc  { color: rgba(255,255,255,0.65); }

.form-control-custom {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; color: var(--white);
  padding: 0.85rem 1.2rem;
  font-family: var(--font-body); font-size: 0.9rem;
  width: 100%; outline: none;
  transition: border-color 0.25s, background 0.25s;
}

.form-control-custom::placeholder { color: rgba(255,255,255,0.35); }
.form-control-custom:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.1);
}

.form-label-custom {
  font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,0.7); letter-spacing: 0.3px;
  margin-bottom: 6px; display: block;
}

.contact-info-item {
  display: flex; align-items: center; gap: 14px; margin-bottom: 1.4rem;
}

.contact-info-item .icon-wrap {
  width: 44px; height: 44px;
  background: rgba(201,151,58,0.15);
  border: 1px solid rgba(201,151,58,0.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.contact-info-item .icon-wrap i { color: var(--gold-light); font-size: 1.1rem; }
.contact-info-item .info-text   { font-size: 0.88rem; color: rgba(255,255,255,0.75); line-height: 1.5; }
.contact-info-item .info-label  { font-size: 0.75rem; color: rgba(255,255,255,0.4); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 2px; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.2rem; color: var(--white);
}

.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.4); }

.footer-links a {
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: 0.82rem; margin-left: 1.5rem; transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold-light); }

/* ── LOGIN PAGE ──────────────────────────────────────────── */
.login-page-wrap {
  min-height: 100vh; background: var(--cream);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}

.login-card {
  background: var(--white); border-radius: 24px; padding: 3rem;
  max-width: 440px; width: 100%;
  border: 1px solid var(--light-border);
  box-shadow: 0 24px 80px rgba(26,39,68,0.12);
}

.login-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 2rem; justify-content: center;
}

.login-card h2 {
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 800; color: var(--navy);
  text-align: center; margin-bottom: 6px;
}

.login-card .sub {
  text-align: center; font-size: 0.88rem; color: var(--muted); margin-bottom: 2rem;
}

.form-input {
  width: 100%; background: var(--cream);
  border: 1.5px solid var(--light-border);
  border-radius: 10px; padding: 0.82rem 1.1rem;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--charcoal);
  outline: none; transition: border-color 0.25s; margin-bottom: 1rem;
}

.form-input:focus { border-color: var(--navy); background: var(--white); }
.form-input::placeholder { color: #bbb; }

.form-input-label {
  font-size: 0.8rem; font-weight: 600; color: var(--charcoal);
  margin-bottom: 5px; display: block;
}

.btn-login-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white); border: none; border-radius: 10px;
  padding: 0.88rem; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.3s;
  font-family: var(--font-body); margin-top: 0.5rem;
}

.btn-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,39,68,0.3);
}

.back-link {
  display: flex; align-items: center; gap: 6px;
  color: var(--gold-dark); text-decoration: none;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem;
  transition: gap 0.2s;
}

.back-link:hover { gap: 10px; color: var(--gold-dark); }

/* Alert messages */
.alert-custom {
  padding: 0.8rem 1.2rem; border-radius: 10px;
  font-size: 0.88rem; margin-bottom: 1rem;
}

.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* ── PORTAL / DASHBOARD ──────────────────────────────────── */
.portal-wrap { padding: 60px 0; min-height: 70vh; }

.portal-header {
  background: var(--white);
  border-radius: 16px; padding: 2rem;
  border: 1px solid var(--light-border);
  margin-bottom: 2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

.portal-header h2 {
  font-family: var(--font-display); font-size: 1.6rem;
  color: var(--navy); font-weight: 800;
}

.portal-card {
  background: var(--white); border-radius: 16px; padding: 2rem;
  border: 1px solid var(--light-border); height: 100%;
  transition: box-shadow 0.3s, transform 0.3s;
}

.portal-card:hover {
  box-shadow: 0 12px 40px rgba(26,39,68,0.1);
  transform: translateY(-4px);
}

.portal-card-icon {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, rgba(201,151,58,0.12) 0%, rgba(201,151,58,0.05) 100%);
  border: 1px solid rgba(201,151,58,0.25);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem;
}

.portal-card-icon i { font-size: 1.4rem; color: var(--gold-dark); }

.portal-card h5 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.1rem; color: var(--navy); margin-bottom: 0.5rem;
}

.portal-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ── PAGE HEADER (for inner pages) ──────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 60px 0 50px;
  position: relative; overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(201,151,58,0.1) 0%, transparent 60%);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: var(--white); margin-bottom: 0.5rem;
}

.page-hero .breadcrumb-item { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.page-hero .breadcrumb-item a { color: var(--gold-light); text-decoration: none; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.page-hero .breadcrumb-divider { color: rgba(255,255,255,0.4); }

/* ── ERROR PAGES ─────────────────────────────────────────── */
.error-page {
  min-height: 80vh; display: flex;
  align-items: center; justify-content: center; text-align: center; padding: 2rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: 7rem; font-weight: 800; color: var(--light-border); line-height: 1;
}

/* ── AOS OVERRIDE ────────────────────────────────────────── */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 992px) {
  .contact-wrap { padding: 2.5rem 1.5rem; }
}

@media (max-width: 768px) {
  .hero-geo, .hero-geo-2 { display: none; }
  .hero-stats { gap: 1.2rem; flex-wrap: wrap; }
  section { padding: 70px 0; }
  .nav-user-name { display: none; }
}
