/* CDII E-Learning Production Stylesheet - Pure CSS3 */
:root {
  --primary-navy: #0B1938;
  --primary-dark: #071024;
  --secondary-navy: #162E66;
  --accent-gold: #D4AF37;
  --accent-gold-light: #F2C94C;
  --accent-gold-hover: #b89726;
  --bg-slate: #f8fafc;
  --card-bg: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --border-gold: #D4AF37;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #0284c7;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-slate);
  color: var(--text-dark);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, .font-serif {
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

/* Top Institutional Bar */
.top-bar {
  background: var(--primary-dark);
  color: #94a3b8;
  font-size: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}
.top-bar a {
  color: var(--accent-gold-light);
  text-decoration: none;
  margin-left: 0.75rem;
}
.top-bar a:hover {
  text-decoration: underline;
}

/* Main Navigation */
.main-header {
  background: var(--primary-navy);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-bottom: 3px solid var(--accent-gold);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
}
.brand-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-gold), var(--primary-dark));
  border: 2px solid var(--accent-gold-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.2;
}
.brand-subtitle {
  font-size: 0.7rem;
  color: var(--accent-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}
.nav-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent-gold-light);
}

/* Secondary Sub-navigation Bar */
.sub-nav-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 0.5rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.sub-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
}
.sub-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #475569;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.sub-nav-item:hover {
  color: var(--primary-navy);
  background: #f1f5f9;
}
.sub-nav-item.active {
  color: var(--primary-navy);
  font-weight: 700;
  border-bottom: 2px solid var(--accent-gold);
  border-radius: 6px 6px 0 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.btn-gold {
  background: var(--accent-gold);
  color: var(--primary-dark);
  border-color: var(--accent-gold);
}
.btn-gold:hover {
  background: var(--accent-gold-hover);
  color: #ffffff;
}
.btn-outline-gold {
  background: transparent;
  color: var(--accent-gold-light);
  border-color: var(--accent-gold);
}
.btn-outline-gold:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
}
.btn-navy {
  background: var(--primary-navy);
  color: #ffffff;
}
.btn-navy:hover {
  background: var(--secondary-navy);
}
.btn-outline-navy {
  border-color: var(--primary-navy);
  color: var(--primary-navy);
  background: transparent;
}
.btn-outline-navy:hover {
  background: var(--primary-navy);
  color: #ffffff;
}
.btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
}
.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

/* Cards & Bento Grid */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.card-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Alerts */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* Forms */
.form-group {
  margin-bottom: 1.2rem;
}
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}
.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text-dark);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(11, 25, 56, 0.1);
}

/* Progress bar */
.progress-container {
  background: #e2e8f0;
  border-radius: 9999px;
  height: 8px;
  overflow: hidden;
  margin: 0.5rem 0;
}
.progress-bar {
  background: linear-gradient(90deg, var(--accent-gold), var(--primary-navy));
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Footer */
.main-footer {
  margin-top: auto;
  background: var(--primary-dark);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 3rem 0 1.5rem;
  border-top: 4px solid var(--accent-gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  padding-bottom: 0.4rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--accent-gold-light);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-gold { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.badge-navy { background: #e0e7ff; color: #3730a3; border: 1px solid #c7d2fe; }
.badge-green { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-red { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar { flex-wrap: wrap; }
  .nav-links { flex-wrap: wrap; gap: 0.75rem; }
}

/* Modern Institutional Hero Styles */
.hero-section {
  background: #ffffff;
  padding: 3.5rem 0 3.5rem;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-session-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: 1.5px solid var(--accent-gold);
  background: #fffdf5;
  color: #854d0e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: 2.85rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero-highlight {
  color: #d97706;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 580px;
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.hero-feature-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #f8fafc;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}
.hero-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-feature-title {
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--primary-navy);
  line-height: 1.2;
}
.hero-feature-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}
.hero-arch-frame {
  position: relative;
  max-width: 100%;
  width: 360px;
  height: 420px;
  border-radius: 180px 180px 20px 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(11, 25, 56, 0.16);
  border: 4px solid var(--accent-gold);
  background: var(--primary-navy);
}
.hero-arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-floating-card {
  position: absolute;
  bottom: 18px;
  left: 10px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent-gold);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 5;
}

/* Floating Bottom Stat Bar */
.hero-stat-bar {
  background: #07122b;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin: 2.5rem auto 0;
  box-shadow: 0 15px 35px rgba(7, 18, 43, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 10;
}
.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 0.5rem;
}
.hero-stat-item:not(:last-child) {
  border-right: 1px solid rgba(212, 175, 55, 0.25);
}
.hero-stat-icon {
  width: 44px;
  height: 44px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-light);
  flex-shrink: 0;
}
.hero-stat-title {
  font-weight: 800;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.25;
}
.hero-stat-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-arch-frame {
    width: 300px;
    height: 360px;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-stat-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .hero-stat-item:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 640px) {
  .hero-features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .hero-stat-bar {
    grid-template-columns: 1fr;
  }
  .hero-stat-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 0.75rem;
  }
  .hero-title {
    font-size: 2rem;
  }
}

