/* ==================== VARIABLES & BASE ==================== */
:root {
  --primary: #1a56db;
  --primary-dark: #1547b8;
  --secondary: #6b7280;
  --warning: #f59e0b;
  --success: #10b981;
  --dark: #1f2937;
  --light: #f9fafb;
  --font-body: 'Poppins', sans-serif;
  --font-heading: 'Merriweather', serif;
  --transition: all 0.3s ease;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 0.5rem;
  --radius-lg: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

a {
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ==================== UTILITIES ==================== */
.ls-1 { letter-spacing: 0.05em; }
.min-vh-75 { min-height: 75vh; }
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg) !important;
}
.hover-white:hover { color: white !important; }
.hover-opacity-100:hover { opacity: 1 !important; }
.divider {
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* ==================== HEADER ==================== */
.top-bar {
  font-size: 0.85rem;
}

.navbar {
  padding: 0.75rem 0;
}

.navbar-brand {
  font-weight: 700;
}

.nav-link {
  font-weight: 500;
  color: var(--dark) !important;
  padding: 0.5rem 0.75rem !important;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 70%;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
  font-weight: 400;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--primary);
  color: white !important;
  padding-left: 1.75rem;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.9), rgba(21, 71, 184, 0.95)), 
              url('https://picsum.photos/seed/hero-cpn/1920/1080') center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 86, 219, 0.95), rgba(21, 71, 184, 0.85));
  z-index: 1;
}

.hero-section .container {
  z-index: 2;
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  z-index: 2;
  text-decoration: none;
  opacity: 0.8;
}

.scroll-down:hover {
  opacity: 1;
  color: var(--warning);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ==================== CARDS & COMPONENTS ==================== */
.icon-box {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.badge {
  font-weight: 500;
  padding: 0.4em 0.8em;
}

/* ==================== BLOG ==================== */
.pagination .page-link {
  color: var(--primary);
  border: none;
  margin: 0 0.25rem;
  border-radius: var(--radius) !important;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

.pagination .page-item.active .page-link {
  background: var(--primary);
  color: white;
}

.pagination .page-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* ==================== FORMS ==================== */
.form-control, .form-select {
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  border: 1px solid #e5e7eb;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

/* ==================== FOOTER ==================== */
footer a {
  transition: var(--transition);
}

footer .hover-white:hover {
  color: white !important;
  text-decoration: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
  .navbar-collapse {
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    box-shadow: var(--shadow-lg);
  }
  
  .hero-section {
    text-align: center;
    padding-top: 2rem;
  }
  
  .hero-section .d-flex {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .display-4 {
    font-size: 2.5rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--warning);
  outline-offset: 2px;
}

/* ==================== PRINT ==================== */
@media print {
  .no-print { display: none !important; }
}