@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

/*
  MT SNHP - OFFICIAL STYLESHEET
  UHPAB ACCREDITED HEALTH TRAINING
*/

:root {
  --navy:    #0B2545;
  --teal:    #1A6B72;
  --teal-light: #22919A;
  --gold:    #C8973A;
  --gold-light: #E8B35A;
  --cream:   #F8F4EE;
  --white:   #FFFFFF;
  --gray:    #6B7280;
  --light-gray: #F3F4F6;
  --dark:    #111827;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--dark); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; transition: .3s; }
ul { list-style: none; }
img { max-width: 100%; border-radius: 8px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* -- TOPBAR -- */
.topbar { background: var(--navy); color: white; font-size: 0.8rem; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a:hover { color: var(--gold-light); }
.topbar-left, .topbar-right { display: flex; gap: 20px; }

.announce {
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  padding: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* -- HEADER -- */
header { background: white; padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow); }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; gap: 12px; align-items: center; }
.logo-icon { width: 50px; height: 50px; background: var(--teal); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.4rem; }
.logo-text h1 { font-size: 1.1rem; color: var(--navy); line-height: 1.1; }
.logo-text span { font-size: 0.7rem; color: var(--teal); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

nav#desktop-nav { display: flex; gap: 8px; }
nav#desktop-nav a { padding: 8px 14px; font-weight: 600; font-size: 0.9rem; border-radius: 6px; }
nav#desktop-nav a.active { color: var(--teal); }
nav#desktop-nav a:hover { background: var(--light-gray); color: var(--teal); }
.btn-portal { background: var(--teal); color: white !important; }

/* -- SIDEBAR NAVIGATION -- */
.hamburger-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy); }
#nav-sidebar { position: fixed; top: 0; left: -320px; width: 300px; height: 100vh; background: var(--white); z-index: 2000; transition: .4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 5px 0 30px rgba(0,0,0,0.15); display: flex; flex-direction: column; }
#nav-sidebar.open { left: 0; }
#sidebar-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.6); opacity: 0; visibility: hidden; transition: .4s; z-index: 1999; backdrop-filter: blur(4px); }
#sidebar-overlay.visible { opacity: 1; visibility: visible; }

.sidebar-header { padding: 25px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; }
.close-sidebar { font-size: 2.2rem; background: none; border: none; cursor: pointer; color: var(--navy); }
.sidebar-links { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.sidebar-links a { padding: 12px; border-radius: 8px; font-weight: 600; display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.sidebar-links a i { width: 24px; text-align: center; color: var(--teal); }
.sidebar-links a:hover { background: var(--light-gray); color: var(--teal); }
.sidebar-portal { background: var(--teal); color: white !important; margin-top: 20px; }
.sidebar-footer { margin-top: auto; padding: 25px; text-align: center; background: var(--light-gray); font-size: 0.8rem; font-weight: 600; color: var(--gray); text-transform: uppercase; }

/* -- APPLICATION MODAL (MINIMIZED & RESPONSIVE) -- */
.modal { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.8); z-index: 3000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: .3s; padding: 15px; overflow-y: auto; backdrop-filter: blur(5px); }
.modal.open { opacity: 1; visibility: visible; }
.modal-content { background: white; width: 100%; max-width: 750px; border-radius: 16px; padding: 30px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3); max-height: 95vh; overflow-y: auto; }
.close-modal { position: absolute; top: 15px; right: 15px; font-size: 1.5rem; cursor: pointer; color: var(--gray); width: 35px; height: 35px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; transition: .2s; }
.close-modal:hover { background: #e0e0e0; color: var(--navy); }
.app-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 650px) { 
    .app-form-grid { grid-template-columns: 1fr; } 
    .modal-content { padding: 25px 15px; }
    .form-section-title { font-size: 0.9rem; }
}
.form-section-title { grid-column: 1 / -1; margin: 10px 0 5px; font-weight: 800; color: var(--teal); border-bottom: 1px solid #eee; padding-bottom: 5px; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }

.integration-item label { display: block; margin-bottom: 5px; }
.integration-item i.fa-check-circle { color: #16a34a; }
.integration-item i.fa-clock { color: #d97706; }
.integration-item i.fa-shield-check { color: #2563eb; }
.integration-item i.fa-triangle-exclamation { color: #dc2626; }

/* -- TOGGLE SWITCH -- */
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: var(--teal); }
input:focus + .slider { box-shadow: 0 0 1px var(--teal); }
input:checked + .slider:before { transform: translateX(24px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

#api-integration-area { transition: 0.3s; }

.btn-test {
  padding: 8px 12px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-test:hover { background: #e0e0e0; }
.btn-test:disabled { opacity: 0.6; cursor: not-allowed; }

/* -- HERO -- */
.hero { background: linear-gradient(135deg, var(--navy), var(--teal)); padding: 100px 0; color: white; text-align: center; overflow: hidden; position: relative; }
.hero::after { content: ''; position: absolute; bottom:0; left:0; width:100%; height:120px; background: linear-gradient(0deg, var(--white), transparent); opacity: 0.1; }
.hero-badge { background: rgba(200,151,58,0.2); border: 1px solid var(--gold-light); display: inline-block; padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; color: var(--gold-light); font-weight: 700; margin-bottom: 25px; }
.hero-title { font-size: clamp(2rem, 6vw, 3.8rem); line-height: 1.1; margin-bottom: 24px; font-weight: 900; }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 800px; margin: 0 auto 40px; }
.hero-subtitle span { color: var(--gold-light); font-weight: 700; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.btn-primary { background: var(--gold); color: var(--navy); padding: 16px 32px; border-radius: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(200,151,58,0.3); }
.btn-outline { border: 2px solid rgba(255,255,255,0.3); padding: 16px 32px; border-radius: 12px; font-weight: 600; color: white; display: inline-flex; align-items: center; gap: 10px; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; transform: translateY(-3px); }

.quick-link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; max-width: 700px; margin: 60px auto 0; }
.quick-link { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); padding: 18px; border-radius: 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; color: white; font-weight: 600; font-size: 0.85rem; }
.quick-link i { font-size: 1.5rem; color: var(--gold-light); }
.quick-link:hover { background: rgba(255,255,255,0.15); transform: translateY(-5px); }

/* -- STATS -- */
.stats { background: var(--navy); padding: 50px 0; border-bottom: 2px solid var(--gold); }
.stats .container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.stat-item { text-align: center; color: white; }
.stat-number { font-size: 3rem; font-weight: 900; color: var(--gold-light); font-family: 'Playfair Display', serif; display: block; }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.7); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* -- SECTIONS -- */
section { padding: 90px 0; }
.section-tag { color: var(--teal); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.section-tag::before { content: ''; width: 30px; height: 2px; background: var(--gold); }
.section-title { font-size: 2.5rem; color: var(--navy); margin-bottom: 20px; line-height: 1.2; }
.section-sub { font-size: 1.1rem; color: var(--gray); max-width: 600px; margin-bottom: 50px; }

/* -- PROGRAMS -- */
.programs { background: var(--cream); }
.program-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 45px; flex-wrap: wrap; }
.program-tab-btn { background: white; border: 1.5px solid #ddd; padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: .3s; }
.program-tab-btn.active { background: var(--teal); border-color: var(--teal); color: white; }

.program-panel { display: none; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.program-panel.active { display: grid; }
.program-card { background: white; border-radius: 20px; padding: 20px; box-shadow: var(--shadow); transition: .4s; border: 1px solid #f0f0f0; display: flex; flex-direction: column; }
.program-card-img { height: 220px; width: 100%; object-fit: cover; margin-bottom: 20px; border-radius: 14px; }
.program-level-badge { align-self: flex-start; padding: 5px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 800; margin-bottom: 12px; }
.badge-cert { background: rgba(26,107,114,0.1); color: var(--teal); }
.badge-dip { background: rgba(200,151,58,0.1); color: var(--gold); }
.badge-ext { background: #eee; color: var(--navy); }
.program-card h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--navy); flex-grow: 1; }
.program-card p { font-size: 0.9rem; color: var(--gray); margin-bottom: 20px; }
.program-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.12); }

/* -- WHY US -- */
.why-us .container { display: grid; grid-template-columns: 1fr; gap: 60px; align-items: center; }
.why-img-wrap { position: relative; }
.why-campus-img { width:100%; height: 500px; object-fit: cover; border-radius: 30px; box-shadow: 20px 20px 0 var(--cream); }
.accred-badge { position: absolute; bottom: -20px; right: -20px; background: var(--gold); padding: 25px; border-radius: 20px; font-weight: 900; color: var(--navy); box-shadow: var(--shadow); text-align: center; }
.accred-badge span { display: block; font-size: 0.8rem; font-weight: 500; margin-top: 5px; }

/* -- CONTACT -- */
.contact { background: var(--light-gray); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 60px; }
.contact-form { background: white; padding: 45px; border-radius: 24px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea { width: 100%; padding: 16px; border: 2px solid #eee; border-radius: 12px; font-size: 1rem; outline: none; }
.form-group textarea { height: 140px; resize: none; }
.btn-submit { background: var(--teal); color: white; width: 100%; padding: 18px; border: none; border-radius: 12px; font-weight: 700; font-size: 1.1rem; cursor: pointer; }

/* -- FOOTER -- */
footer { background: var(--navy); color: white; padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 50px; margin-bottom: 60px; }
.logo-footer { display: flex; gap: 15px; align-items: center; margin-bottom: 20px; }
.icon-f { font-size: 2rem; color: var(--gold-light); }
.footer-col h4 { font-size: 1.2rem; margin-bottom: 25px; color: var(--gold-light); }
.footer-col li { margin-bottom: 15px; }
.footer-col a:hover { color: var(--gold-light); padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; font-size: 0.9rem; color: rgba(255,255,255,0.5); }

/* -- UTILS -- */
.scroll-top { position: fixed; bottom: 30px; right: 30px; width: 55px; height: 55px; background: var(--teal); color: white; border-radius: 15px; border: none; cursor: pointer; opacity: 0; visibility: hidden; transition: .3s; z-index: 1500; font-size: 1.2rem; }
.scroll-top.visible { opacity: 1; visibility: visible; }

/* -- RESPONSIVE -- */
@media (max-width: 991px) {
  .hamburger-btn { display: block; }
  nav#desktop-nav { display: none; }
  .why-us .container { grid-template-columns: 1fr; }
}
@media (min-width: 992px) {
  .why-us .container { grid-template-columns: 1.1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.4rem; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .quick-link-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; width: 100%; }
}
