/* ========================================
   ECH English Center - Custom Styles
   ======================================== */

/* Root Variables */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --secondary-color: #6c757d;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --light-color: #f8fafc;
  --dark-color: #1e293b;
  --text-color: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 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);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base Styles */
html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: #ffffff;
  line-height: 1.7;
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; line-height: 1.3; }
h3 { font-size: 1.5rem; line-height: 1.4; }

p {
  margin-bottom: 1rem;
  color: #475569;
  line-height: 1.7;
}

/* Section Titles - Better Visibility */
.section-title h2 {
  color: #1e293b;
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: #64748b;
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}

.section-padding {
  padding: 80px 0;
}

/* Links */
a {
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* Buttons */
.btn {
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: none;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 0.75rem;
}

.btn:focus, .btn:active:focus {
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border: none;
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #003d99 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

/* Cards */
.card {
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
  background: white;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-img-top {
  border-radius: 0;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Navigation - Responsive & Modern */
.navbar {
  padding: 0.75rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  background: white !important;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.3rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.navbar-brand:hover {
  transform: scale(1.02);
}

.navbar-brand img {
  transition: transform 0.2s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-light .nav-link {
  font-weight: 500;
  padding: 0.5rem 0.7rem !important; /* Reduced default padding */
  transition: all 0.2s ease;
  color: #334155 !important;
  border-radius: 8px;
  margin: 0 0.2rem; /* Reduced default margin */
}

.navbar-light .nav-link:hover {
  color: #0066FF !important;
  background: rgba(0, 102, 255, 0.08);
}

.navbar-light .nav-link.active {
  color: #0066FF !important;
  background: rgba(0, 102, 255, 0.1);
  font-weight: 600;
}

.navbar-light .nav-link i {
  color: #0066FF;
  margin-right: 6px;
  font-size: 1.1rem;
}

/* Navigation Search - Responsive */
.navbar-search {
  max-width: 250px;
}

.navbar-search .input-group {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-search .form-control {
  border: 1px solid #e2e8f0;
  border-right: none;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.navbar-search .form-control:focus {
  border-color: #0066FF;
  box-shadow: none;
}

.navbar-search .btn {
  border: 1px solid #0066FF;
  border-left: none;
  padding: 0.5rem 1rem;
}

/* Navbar Toggler - Better Mobile UX */
.navbar-toggler {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 255, 0.25);
}

/* Dropdown Menu - Better Styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    margin-top: 0.75rem;
    padding: 0.75rem 0;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    color: #334155;
    font-weight: 500;
}

.dropdown-item i {
    color: #0066FF;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(0, 102, 255, 0.1), rgba(0, 102, 255, 0.05));
    color: #0066FF;
    padding-left: 2rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid #e2e8f0;
}

/* Responsive Navigation */
@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }

  .navbar-nav .nav-link.active {
    border-left: 4px solid #0066FF;
  }

  .navbar-nav {
    margin-bottom: 1rem;
  }

  .dropdown-menu {
    background: white;
    border: 1px solid #e2e8f0;
    margin-left: 1rem;
  }
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
  border-top: 3px solid var(--primary-color);
}

footer h5 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

footer a:hover {
  color: #ffffff !important;
  padding-left: 5px;
}

footer .social-links a:hover {
  transform: translateY(-3px);
  color: var(--primary-color);
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Footer Enhancements */
footer .footer-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

footer .footer-links a:hover {
    color: var(--primary-color) !important;
    padding-left: 10px;
}

footer .social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

footer .social-links a:hover {
    transform: translateY(-5px);
    color: var(--primary-color) !important;
}

footer .badge {
    font-weight: 500;
    padding: 0.4rem 0.8rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
}

/* Forms */
.form-control, .form-select {
  border-radius: 0.375rem;
  border: 1px solid #dee2e6;
  padding: 0.625rem 0.875rem;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

/* Alerts */
.alert {
  border-radius: 0.375rem;
  border: none;
  padding: 1rem 1.25rem;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
  border-top: 3px solid var(--primary-color);
}

footer h5 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

footer a:hover {
  color: #ffffff !important;
  padding-left: 5px;
}

footer .social-links a:hover {
  transform: translateY(-3px);
  color: var(--primary-color);
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Course Cards - Better Readability */
.course-card {
  height: 100%;
  background: white;
  border: 1px solid #e2e8f0;
}

.course-card .card-body {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.course-card .card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
  line-height: 1.4;
}

.course-card .card-title:hover {
  color: #0066FF;
}

.course-card .card-text {
  flex-grow: 1;
  color: #64748b;
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.course-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0066FF;
  background: linear-gradient(135deg, #0066FF 0%, #0052CC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.course-level {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.course-level.beginner {
  background: linear-gradient(135deg, #d1f2eb 0%, #b8ebe0 100%);
  color: #0f5132;
}

.course-level.intermediate {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
}

.course-level.advanced {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c2c7 100%);
  color: #721c24;
}

/* Blog Posts - Better Visibility */
.post-card {
  height: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 102, 255, 0.15);
  border-color: #0066FF;
}

.post-card .card-img-top {
  height: 240px;
  transition: transform 0.4s ease;
}

.post-card:hover .card-img-top {
  transform: scale(1.08);
}

.post-card .card-body {
  padding: 1.75rem;
}

.post-card .card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.post-card .card-title:hover {
  color: #0066FF;
}

.post-meta {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 1rem;
}

.post-meta i {
  color: #0066FF;
  margin-right: 5px;
}

.post-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #64748b;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Hero Section - Modern Design */
.hero-section-modern {
  background: linear-gradient(135deg, #1e3a5f 0%, #16213e 50%, #0d1929 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Animated Background Shapes */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(40px);
  animation: float 20s infinite ease-in-out;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  top: 50%;
  right: -50px;
  animation-delay: 7s;
}

.hero-shape-3 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: 30%;
  animation-delay: 14s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  animation: slideInLeft 1s ease-out;
}

.min-vh-90 {
  min-height: 90vh;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 50px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  animation: fadeIn 1s ease-out 0.3s backwards;
}

.hero-badge i {
  color: #FFD700;
  font-size: 1.1rem;
}

/* Hero Title */
.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  letter-spacing: -0.02em;
  animation: fadeIn 1s ease-out 0.5s backwards;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-title-highlight {
  position: relative;
  display: inline-block;
}

.hero-title-highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 15px;
  background: rgba(255, 215, 0, 0.3);
  z-index: -1;
  border-radius: 5px;
}

/* Hero Description */
.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  max-width: 600px;
  animation: fadeIn 1s ease-out 0.7s backwards;
}

/* Hero Features */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  animation: fadeIn 1s ease-out 0.9s backwards;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-weight: 500;
}

.hero-feature i {
  color: #10b981;
  font-size: 1.2rem;
}

/* Hero CTA Buttons */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  animation: fadeIn 1s ease-out 1.1s backwards;
}

.btn-hero-primary {
  background: white;
  color: #1e3a5f;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.btn-hero-primary:hover {
  background: #FFD700;
  color: #1e3a5f;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.btn-hero-secondary {
  background: transparent;
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  animation: fadeIn 1s ease-out 1.3s backwards;
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-item h4 {
  font-size: 2rem;
  font-weight: 800;
  color: #FFD700;
  margin-bottom: 5px;
}

.hero-stat-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Hero Image Section */
.hero-image-wrapper {
  position: relative;
  z-index: 2;
  animation: slideInRight 1s ease-out;
}

.hero-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.hero-image-bg {
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  backdrop-filter: blur(40px);
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
}

.hero-logo-image {
  position: relative;
  max-width: 450px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
  animation: floatImage 6s infinite ease-in-out;
  z-index: 1;
  border-radius: 50%;
  padding: 30px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

@keyframes floatImage {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Floating Icons */
.hero-float {
  position: absolute;
  background: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: floatIcon 4s infinite ease-in-out;
}

.hero-float i {
  font-size: 1.8rem;
  color: #2563eb;
}

.hero-float-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.hero-float-2 {
  top: 50%;
  right: 5%;
  animation-delay: 1.5s;
}

.hero-float-3 {
  bottom: 15%;
  left: 20%;
  animation-delay: 3s;
}

@keyframes floatIcon {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

/* Wave Divider */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.hero-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.hero-wave path {
  fill: #F8F9FA;
}

/* Responsive Design */
@media (max-width: 991px) {
  .hero-section-modern {
    min-height: auto;
    padding: 60px 0 100px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-image-container {
    margin-top: 50px;
    padding: 20px;
  }

  .hero-logo-image {
    max-width: 350px;
  }

  .hero-image-bg {
    width: 350px;
    height: 350px;
  }

  .hero-stats {
    gap: 30px;
  }

  .hero-stat-item h4 {
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 12px 24px;
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta a {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 20px;
    justify-content: space-around;
  }

  .hero-stat-item h4 {
    font-size: 1.3rem;
  }

  .hero-float {
    width: 50px;
    height: 50px;
  }

  .hero-float i {
    font-size: 1.4rem;
  }

  .hero-logo-image {
    max-width: 280px;
  }

  .hero-image-bg {
    width: 280px;
    height: 280px;
  }
}

/* Old Hero Section - Keep for backward compatibility */
.hero-section {
  background: linear-gradient(135deg, #0066FF 0%, #0052CC 50%, #003d99 100%);
  color: white;
  padding: 6rem 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
  opacity: 0.3;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-section .lead {
  font-size: 1.3rem;
  font-weight: 400;
  opacity: 0.9;
}

/* Testimonials - Enhanced */
.testimonial-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-left: 5px solid #0066FF;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
}

.testimonial-card p {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 700;
  color: #1e293b;
  font-size: 1.1rem;
}

.testimonial-author small {
  color: #64748b;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Stats Section - Better Readability */
.stats-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stats-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 102, 255, 0.15);
}

.stats-card i {
  font-size: 3.5rem;
  color: #0066FF;
  margin-bottom: 1.5rem;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 102, 255, 0.2));
}

.stats-card h3 {
  font-size: 3rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-card p {
  color: #64748b;
  margin-bottom: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

/* Utilities */
.shadow-sm-hover {
  transition: box-shadow 0.3s ease;
}

.shadow-sm-hover:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.text-primary-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  /* Tablet Portrait */
  .hero-section h1 {
    font-size: 2.25rem;
  }

  .stats-card {
    padding: 1.75rem 1rem;
  }

  .stats-card i {
    font-size: 2.5rem;
  }

  .stats-card h3 {
    font-size: 2rem;
  }

  .section-padding {
    padding: 3rem 0;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  /* Tablet Landscape */
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .course-card .card-img-top {
    height: 220px;
  }

  .post-card .card-img-top {
    height: 230px;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  /* Small Desktop */
  .hero-section h1 {
    font-size: 2.75rem;
  }

  .section-title h2 {
    font-size: 2.25rem;
  }
}


/* Custom responsive adjustments for large navbar */
@media (min-width: 992px) and (max-width: 1400px) {
  .navbar-light .nav-link {
    font-size: 0.88rem; /* Smaller font */
    padding: 0.4rem 0.5rem !important; /* Further reduced padding */
    margin: 0 0.1rem; /* Tighter margin */
  }

  .navbar-search {
    max-width: 150px; /* Shrink search bar more */
  }

  .navbar-nav .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }

  .navbar-brand {
      font-size: 1.2rem;
  }
}

/* Print Styles */
@media print {
  .navbar, footer, .hero-section, .btn {
    display: none !important;
  }

  body {
    color: black;
    background: white;
  }

  .card {
    box-shadow: none;
    border: 1px solid #dee2e6;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Partners Section Styles */
.partner-logo {
  transition: all 0.3s ease;
}

.partner-logo-inner {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  transition: all 0.3s ease;
}

.partner-logo img {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.4s ease;
  object-fit: contain;
  border-radius: 12px;
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.15);
}

.partner-logo:hover .partner-logo-inner {
  transform: translateY(-5px);
}

/* Partners Slide Animation */
@keyframes partnerSlide {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.partner-logo {
  animation: partnerSlide 0.6s ease-out forwards;
  opacity: 0;
}

/* Stagger animation delays for each partner */
.partner-logo:nth-child(1) { animation-delay: 0.1s; }
.partner-logo:nth-child(2) { animation-delay: 0.2s; }
.partner-logo:nth-child(3) { animation-delay: 0.3s; }
.partner-logo:nth-child(4) { animation-delay: 0.4s; }
.partner-logo:nth-child(5) { animation-delay: 0.5s; }
.partner-logo:nth-child(6) { animation-delay: 0.6s; }
.partner-logo:nth-child(7) { animation-delay: 0.7s; }
.partner-logo:nth-child(8) { animation-delay: 0.8s; }

/* Responsive adjustments for partners */
@media (max-width: 768px) {
  .partner-logo-inner {
    min-height: 100px;
    padding: 15px;
  }

  .partner-logo img {
    max-height: 60px;
  }
}