:root {
  --primary-color: #f10202;
  --secondary-color: #ff9900;
  --accent-color: #ffeb3b;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --gap: 1rem;
  --container-max: 1200px;
}

/* Reset / base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: #fff;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* HEADER */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #c00000;
  height: 140px;
  padding: 0 2rem;
  position: fixed;
  top: 0;        /* Always stick to the top */
  left: 0;       /* Start from the left edge */
  width: 100%;   /* Stretch across full page */
  z-index: 1000; /* Stay above all other content */
}





/* LOGO LEFT SIDE */
.logo-section {
  position: absolute;
  left: 2rem;
  top: 55%; /* slightly lower */
  transform: translateY(-50%);
  display: flex;
  align-items: center;
 
}
.logo-image {
  height: 110px;             /* fixed height */
  width: 500px;              /* set desired width */
  border: 3px solid yellow;
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 0 15px rgba(255, 255, 0, 0.7);
  animation: glowPulse 3s infinite ease-in-out;
  background-color: #fff;
  object-fit: fill;          /* ensures the image stretches to fit width */
}


@keyframes glowPulse {
  0% {
    box-shadow: 0 0 10px rgba(87, 87, 83, 0.5),
                0 0 20px rgba(53, 53, 50, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(68, 68, 63, 0.9),
                0 0 50px rgba(224, 193, 51, 0.6);
  }
  100% {
    box-shadow: 0 0 10px rgba(233, 193, 63, 0.5),
                0 0 20px rgba(221, 188, 39, 0.3);
  }
}

/* CENTER NAVIGATION */
.main-nav {
  display: flex;
  justify-content: center;
  width: 100%;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: #f5f5f5;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: bold;
  font-size: 130%;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.main-nav a:hover {
  background-color: #f7de01;
  color: #222;
}

/* Dropdown setup */
.main-nav li {
  position: relative;
}

.main-nav .dropdown-content {
  display: none;
  position: absolute;
  background-color: #b40000;
  top: 100%;
  left: 0;
  min-width: 180px;
  flex-direction: column;
  text-align: left;
  border-radius: 6px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
  z-index: 999;
}

.main-nav .dropdown-content li {
  padding: 10px 15px;
}

.main-nav .dropdown-content a {
  text-decoration: none;
  color: #fff;
  display: block;
  font-size: 1rem;
}

.main-nav .dropdown-content a:hover {
  background-color: #ff9900;
  color: #000;
}

/* ✅ Show dropdown ONLY when hovering on "Courses" link */
.main-nav li > a:hover + .dropdown-content,
.main-nav li:hover > a + .dropdown-content {
  display: flex;
}

/* ===== LOCATION IMAGE ON RIGHT SIDE ===== */
.location-link {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LOCATION IMAGE (not clickable) */
.location-image {
  height: 100px;
  border: 3px solid yellow;
  border-radius: 10px;
  padding: 4px;
  background-color: transparent;
  animation: glowYellow 3s infinite ease-in-out;
}
.location-image:hover {
  transform: scale(1.05);
}
.location-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-family: 'Segoe UI', sans-serif;
  color: yellow;
  line-height: 1.1;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Hover effect (zoom in slightly) */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5),
                0 0 20px rgba(255, 255, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 255, 0, 1),
                0 0 50px rgba(255, 255, 0, 0.7);
  }
}





/* ============================= */
/* HERO SECTION */
/* ============================= */
/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100vw; /* Full viewport width */
  height: 100vh; /* Full viewport height */
}

.slider-track {
  display: flex;
  animation: scrollHero 40s linear infinite; /* Adjust animation speed here */
}

.slider-track img {
  width: 100vw; /* Each image will cover the full width of the viewport */
  height: 100vh; /* Each image will cover the full height of the viewport */
  object-fit: cover; /* Ensure the images cover the viewport without distortion */
}

/* ===== Animation for scrolling images ===== */
@keyframes scrollHero {
  0% {
    transform: translateX(0); /* Start from the first image */
  }
  100% {
    transform: translateX(-100%); /* Move left by one full image width */
  }
}



/* ============================= */
/* HOME SECTION */
/* ============================= */
#home-section {
  position: fixed;
  top: 140px; /* move it just below your header */
  left: 0;
  width: 100%;
  height: calc(100vh - 140px); /* full height minus header */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 900;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
  animation: bgMove 20s linear infinite;
}


/* overlay inside home-section */
#home-section .overlay {
  background: rgba(0, 0, 0, 0.7);
  padding: 40px;
  border-radius: 15px;
  max-width: 850px;
  text-align: center;
  animation: fadeIn 1s ease forwards;
}
#home-section:not(.hidden) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* prevents blocking clicks */
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Overlay box with glow */
#home-section .overlay {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid yellow;
  border-radius: 20px;
  padding: 2.5rem 3rem;
  max-width: 900px;
  backdrop-filter: blur(8px);
  animation: fadeInUp 1.5s ease;
  box-shadow: 0 0 30px rgba(255, 255, 0, 0.5);
}

#home-section h2 {
  font-size: 2.2rem;
  color: #ffea00;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
}

#home-section p {
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.7;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

/* Smooth fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== FOOTER STYLES ===== */
.site-footer {
  background-color: #8a0000;
  color: #fff;
  padding: 40px 0 20px;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-inner > div {
  flex: 1 1 220px;
}

.footer-about h3,
.footer-links h4,
.footer-courses h4,
.footer-contact h4 {
  margin-bottom: 15px;
  color: #f1c40f;
}

.footer-links ul,
.footer-courses ul {
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-courses li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-courses a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-courses a:hover {
  color: #f1c40f;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  margin-top: 20px;
  color: #aaa;
}

/* ===== COURSES IMAGE ANIMATION ===== */
/* ===== COURSES IMAGE ANIMATION ===== */
/* ===== COURSES IMAGE ANIMATION WITH BACKGROUND ===== */
.courses-image-container {
  position: relative;
  width: 100%;
  height: 20vh; /* increased for better visual impact */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #ffffff 10%, #ffe6e6 60%, #ffd6d6 100%);
  background-image: url("courimage.jpg"); /* ✅ Updated background image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: 4px solid #ff0000;
  border-bottom: 4px solid #ff0000;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
}

/* Shared image style */
.courses-image {
  position: absolute;
  max-width: 85%;
  height: auto;
  border-radius: 15px;
  border: 3px solid #fff;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.6),
              0 0 50px rgba(255, 255, 0, 0.3);
  animation: moveFromAllSides 3.5s ease-in-out forwards,
             glowPulseEffect 3s infinite ease-in-out 3.5s;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

/* === Smooth slow sliding between two course images === */
.img1, .img2 {
  position: absolute;
  max-width: 85%;
  height: auto;
  border-radius: 15px;
  border: 3px solid #fff;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.6),
              0 0 50px rgba(255, 255, 0, 0.3);
  opacity: 1;
  transition: transform 3s ease-in-out, opacity 3s ease-in-out;
}

/* Each full cycle takes 60s — slow, gentle motion */
.img1 {
  animation: slide1 15s infinite linear;
}

.img2 {
  animation: slide2 15s infinite linear;
}

/* First image: move slowly left to right, then reset */
@keyframes slide1 {
  0%   { transform: translateX(0); opacity: 1; }
  45%  { transform: translateX(0); opacity: 1; }
  50%  { transform: translateX(100%); opacity: 0; }
  95%  { transform: translateX(-100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* Second image: comes in smoothly from left after 30s */
@keyframes slide2 {
  0%   { transform: translateX(-100%); opacity: 0; }
  45%  { transform: translateX(-100%); opacity: 0; }
  50%  { transform: translateX(0); opacity: 1; }
  95%  { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
