/* ===== DESIGN SYSTEM ===== */
:root {
  --navy-900: #001a33;
  --navy-800: #002a52;
  --navy-700: #003366;
  --navy-600: #004080;
  --navy-500: #0055a5;
  --navy-400: #1a6abf;
  --gold:     #c8a951;
  --gray-100: #f7f8fa;
  --gray-200: #e8eaed;
  --gray-400: #9aa0ac;
  --gray-600: #555c68;
  --white:    #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: 'Inter', sans-serif; color: var(--gray-600); background: var(--white); line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; color: var(--navy-800); margin-top: 0; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }

/* ===== UTILITIES ===== */
.container { width: 90%; max-width: 1240px; margin: 0 auto; }
.text-center { text-align: center; }
.section-title {
  font-size: 2rem; font-weight: 700; color: var(--navy-700);
  text-align: center; margin-bottom: 10px; position: relative; display: inline-block;
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: var(--gold); margin: 10px auto 0; border-radius: 2px;
}
.section-subtitle { color: var(--gray-400); text-align: center; margin-bottom: 50px; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--navy-900); color: var(--gray-200);
  font-size: 12px; padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-left span { margin-right: 20px; }
.topbar-right a {
  color: var(--gray-200); margin-left: 20px; font-weight: 500;
  letter-spacing: 0.5px; transition: var(--transition);
}
.topbar-right a:hover { color: var(--gold); }
.topbar-right .lang-btn {
  background: var(--navy-700); padding: 2px 10px; border-radius: 3px;
  font-weight: 600; font-size: 11px;
}
.topbar-right .lang-btn:hover { background: var(--gold); color: var(--navy-900); }

/* ===== HEADER / NAVBAR ===== */
.site-header {
  background: var(--white); box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 999; transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }

.logo a { display: flex; align-items: center; gap: 12px; }
.logo-text { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--navy-700); font-size: 1.1rem; line-height: 1.2; }
.logo-text span { display: block; font-size: 0.7rem; font-weight: 500; color: var(--gray-400); letter-spacing: 1px; }

/* ===== MEGA MENU ===== */
.nav-menu { display: flex; align-items: center; gap: 5px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block; padding: 24px 14px; font-size: 13px; font-weight: 600;
  color: var(--navy-800); text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 2px solid transparent; transition: var(--transition);
}
.nav-menu > li:hover > a,
.nav-menu > li > a.active {
  color: var(--navy-500); border-bottom-color: var(--gold);
}

/* Dropdown / Mega */
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); box-shadow: var(--shadow-lg); min-width: 220px;
  border-top: 3px solid var(--navy-600); animation: dropDown 0.2s ease;
  z-index: 1200; max-height: 80vh; overflow-y: auto;
}
@keyframes dropDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.nav-menu > li:hover .dropdown { display: block; }
.dropdown li a {
  display: block; padding: 10px 20px; font-size: 13px; color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100); transition: var(--transition);
}
.dropdown li a:hover { background: var(--gray-100); color: var(--navy-600); padding-left: 26px; }
.dropdown li:last-child a { border-bottom: none; }


/* Sub-dropdown (Mega nested) */
.has-sub { position: relative; }
.has-sub > a::after { content: ' ›'; float: right; }
.sub-dropdown {
  display: none; position: absolute; left: 100%; top: 0;
  background: var(--white); box-shadow: var(--shadow-lg); min-width: 200px;
  border-top: 3px solid var(--navy-600);
}
.has-sub:hover .sub-dropdown { display: block; }

/* Mobile nav toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.nav-toggle span { display: block; width: 25px; height: 2px; background: var(--navy-700); transition: var(--transition); }

/* ===== HERO SLIDER ===== */
.hero-slider { position: relative; overflow: hidden; background: var(--navy-900); }
.slider-track { display: flex; transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1); }
.slide {
  min-width: 100%; height: 560px; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-600) 100%);
}
.slide-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0.3;
}
.slide-content { position: relative; z-index: 2; text-align: center; padding: 40px; max-width: 800px; }
.slide-content h2 { font-size: 2.6rem; color: var(--white); margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.slide-content p { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 30px; }

/* Slider controls */
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: rgba(255,255,255,0.15); color: white; border: 2px solid rgba(255,255,255,0.4);
  width: 50px; height: 50px; border-radius: 50%; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); backdrop-filter: blur(4px);
}
.slider-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.slider-btn.prev { left: 30px; }
.slider-btn.next { right: 30px; }

.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition); }
.slider-dot.active { background: var(--gold); transform: scale(1.3); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block; padding: 13px 32px; background: var(--navy-600); color: var(--white);
  font-weight: 600; font-size: 14px; border-radius: 4px; border: none; cursor: pointer;
  letter-spacing: 0.5px; transition: var(--transition);
}
.btn-primary:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,51,102,0.35); color: var(--white); }
.btn-outline {
  display: inline-block; padding: 11px 28px; border: 2px solid var(--navy-600); color: var(--navy-600);
  font-weight: 600; font-size: 14px; border-radius: 4px; transition: var(--transition);
}
.btn-outline:hover { background: var(--navy-600); color: var(--white); }
.btn-gold {
  display: inline-block; padding: 13px 32px; background: var(--gold); color: var(--navy-900);
  font-weight: 700; font-size: 14px; border-radius: 4px; transition: var(--transition);
}
.btn-gold:hover { background: #b8941e; transform: translateY(-2px); }

/* ===== ABOUT SECTION ===== */
.about-section { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 2rem; color: var(--navy-700); margin-bottom: 20px; }
.about-text p { color: var(--gray-600); line-height: 1.8; margin-bottom: 15px; }
.cert-badges { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 30px; }
.cert-badge {
  background: var(--navy-800); color: white; padding: 12px 18px; border-radius: 6px;
  text-align: center; font-size: 12px; font-weight: 600; min-width: 120px;
}
.cert-badge .cert-title { font-size: 14px; color: var(--gold); margin-bottom: 4px; display: block; }

/* ===== SERVICES SECTION ===== */
.services-section { padding: 80px 0; background: var(--gray-100); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.service-card {
  background: var(--white); padding: 35px 25px; border-radius: 8px;
  box-shadow: var(--shadow-sm); text-align: center; transition: var(--transition);
  border-bottom: 3px solid transparent;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-bottom-color: var(--navy-500); }
.service-icon { font-size: 48px; margin-bottom: 20px; display: block; }
.service-card h3 { font-size: 1.05rem; color: var(--navy-700); margin-bottom: 12px; }
.service-card p { font-size: 0.875rem; color: var(--gray-400); line-height: 1.7; }
.service-card .read-more { color: var(--navy-500); font-size: 13px; font-weight: 600; margin-top: 15px; display: inline-block; }
.service-card:hover .read-more { color: var(--gold); }

/* ===== NEWS SECTION ===== */
.news-section { padding: 80px 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.news-card {
  border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden;
  transition: var(--transition); background: var(--white);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.news-card-body { padding: 24px; }
.news-date { font-size: 12px; color: var(--gray-400); margin-bottom: 10px; display: block; }
.news-card h3 { font-size: 1rem; color: var(--navy-800); line-height: 1.5; margin-bottom: 12px; }
.news-card h3 a:hover { color: var(--navy-500); }
.news-card p { font-size: 0.875rem; color: var(--gray-400); line-height: 1.7; }

/* ===== CONTACT SECTION ===== */
.contact-info-list li { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.contact-info-list .icon { color: var(--navy-500); font-size: 18px; margin-top: 2px; min-width: 20px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 15px; border: 1px solid var(--gray-200); border-radius: 5px;
  font-size: 14px; font-family: 'Inter', sans-serif; color: var(--gray-600);
  transition: var(--transition); outline: none; background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(0,85,165,0.1); }
.contact-form .form-group { margin-bottom: 15px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--navy-800); }

/* ===== PAGE BREADCRUMB ===== */
.page-breadcrumb { background: var(--navy-800); padding: 50px 0; text-align: center; }
.page-breadcrumb h1 { color: var(--white); margin: 0 0 8px; font-size: 2.2rem; }
.breadcrumb-nav { color: rgba(255,255,255,0.6); font-size: 13px; }
.breadcrumb-nav a { color: var(--gold); }
.breadcrumb-nav span { margin: 0 8px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { font-size: 13px; line-height: 1.8; margin-top: 15px; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); display: inline-block; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold); padding-left: 5px; }
.footer-col .cert-item { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 6px; }
.footer-contact li { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 10px; display: flex; gap: 8px; }
.footer-contact li a { color: rgba(255,255,255,0.65); }
.footer-contact li a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 50px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.45); margin: 0; }
.footer-bottom .footer-links a { font-size: 12px; color: rgba(255,255,255,0.45); margin-left: 15px; transition: var(--transition); }
.footer-bottom .footer-links a:hover { color: var(--gold); }

/* ===== ALERT MESSAGES ===== */
.alert { padding: 14px 18px; border-radius: 5px; margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== ADMIN LAYOUT ===== */
body.admin-body { background: #f0f2f5; display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; min-height: 100vh; background: var(--navy-900);
  display: flex; flex-direction: column; padding: 0; flex-shrink: 0;
}
.admin-logo { padding: 25px 20px; background: var(--navy-800); border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-logo span { color: white; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700; display: block; }
.admin-logo small { color: rgba(255,255,255,0.45); font-size: 11px; }
.admin-nav { padding: 15px 0; flex: 1; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 22px;
  color: rgba(255,255,255,0.65); font-size: 13.5px; font-weight: 500;
  transition: var(--transition); border-left: 3px solid transparent;
}
.admin-nav a:hover { background: rgba(255,255,255,0.06); color: white; }
.admin-nav a.active { background: rgba(255,255,255,0.1); color: white; border-left-color: var(--gold); }
.admin-nav .nav-section { padding: 18px 22px 6px; font-size: 10px; letter-spacing: 1.5px; color: rgba(255,255,255,0.3); text-transform: uppercase; }
.admin-nav .nav-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 10px 0; }
.admin-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.admin-topbar { background: white; padding: 0 30px; height: 60px; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow-sm); }
.admin-topbar .page-title { font-family: 'Montserrat', sans-serif; font-size: 17px; font-weight: 700; color: var(--navy-800); }
.admin-topbar .user-info { font-size: 13px; color: var(--gray-400); display: flex; align-items: center; gap: 12px; }
.admin-topbar .user-info a { color: #dc3545; font-weight: 600; }
.admin-main { padding: 30px; flex: 1; overflow-y: auto; }

/* Admin Stats Cards */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; padding: 24px; border-radius: 8px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--navy-500); }
.stat-card .stat-number { font-size: 2rem; font-weight: 700; color: var(--navy-700); line-height: 1; }
.stat-card .stat-label { font-size: 13px; color: var(--gray-400); margin-top: 5px; }

/* Admin Tables */
.admin-card { background: white; border-radius: 8px; box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 25px; }
.admin-card-header { padding: 18px 22px; border-bottom: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; }
.admin-card-header h3 { margin: 0; font-size: 15px; color: var(--navy-800); }
.admin-card-body { padding: 22px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { background: var(--gray-100); padding: 12px 15px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-400); font-weight: 600; }
.table td { padding: 12px 15px; border-bottom: 1px solid var(--gray-200); color: var(--gray-600); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--gray-100); }
.badge { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger  { background: #f8d7da; color: #721c24; }

/* Admin Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy-800); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: 5px;
  font-size: 14px; font-family: 'Inter', sans-serif; color: var(--gray-600);
  transition: var(--transition); outline: none; background: white;
}
.form-control:focus { border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(0,85,165,0.1); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Admin Buttons */
.btn { display: inline-block; padding: 9px 18px; border-radius: 5px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: var(--transition); }
.btn-primary { background: var(--navy-600); color: white; }
.btn-primary:hover { background: var(--navy-700); }
.btn-success { background: #28a745; color: white; }
.btn-success:hover { background: #218838; }
.btn-danger { background: #dc3545; color: white; }
.btn-danger:hover { background: #c82333; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: white; box-shadow: var(--shadow-lg); }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 14px 20px; border-bottom: 1px solid var(--gray-100); }
  .dropdown { display: none !important; }
  .slide { height: 400px; }
  .slide-content h2 { font-size: 1.8rem; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid, .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}
