* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #fff;
  color: #222;
}

/* Header Wrapper */
.header-wrapper {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.5s ease;
}

/* TOP BAR - Increased Size */
.top-bar {
    background: #ffffff;
    height: 95px; /* Bigger height for logos */
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
}

.top-container {
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    gap: 50px; /* Space between logos */
    align-items: center;
}

.gov-logo {
    height: 60px; /* Logos are now bigger */
    width: auto;
    object-fit: contain;
}

/* NAVBAR BASE STYLES */
.navbar {
    background: #ffffff;
    padding: 15px 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1em;
}

.nav-link {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ff5a5a;
}

/* Login Button Styling */
.login-btn {
    background: #ff7e7e;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #ff5c5c;
}

/* Home Icon Style */
.home-circle {
    background: #fdf2d1;
    color: #333 !important;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #ffd8a8;
    text-decoration: none;
}

/* --- SCROLLED CAPSULE STATE --- */
.header-wrapper.scrolled .top-bar {
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.header-wrapper.scrolled .navbar {
    width: 85%; /* Narrower for capsule look */
    margin: 20px auto;
    border-radius: 100px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 12px 30px;
}

/* --- MOBILE & TABLET STYLES --- */
.hamburger-icon {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 2000;
    padding: 60px 30px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: 0.4s ease;
}

.sidebar.open { right: 0; }

.close-sidebar {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    cursor: pointer;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-links a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    font-weight: 500;
}

.sidebar-login {
    color: #ff5a5a !important;
    margin-top: 10px;
}

@media (max-width: 992px) {
    .nav-menu { display: none; }
    .hamburger-icon { display: block; }
    .top-container { gap: 20px; }
    .gov-logo { height: 40px; }
    .header-wrapper.scrolled .navbar { width: 95%; }
}

/* Dummy Content Height */
.hero-section {
    height: 2000px;
    padding-top: 250px;
    text-align: center;
}




/* ===============================
   COURSES HERO
================================ */


.courses-hero {
  margin-top: 11em;
  padding: 120px 20px 80px;
  text-align: center;
  background: #FFF2EF;
}

.courses-hero h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.courses-hero p {
  font-size: 18px;
  color: #555;
}

.course-search-box {
  display: flex;
  gap: 10px;
  padding: 15px;
  background: #f5f7fa;
  border-radius: 10px;
  margin: 20px;
  align-items: center;
}

.input-group {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.input-group input,
.input-group select {
  border: none;
  outline: none;
  padding: 5px;
}

.course-search-box button {
  padding: 10px 15px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .course-search-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .course-search-box .input-group {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .course-search-box input,
  .course-search-box select {
    width: 100%;
    padding: 10px;
    font-size: 14px;
  }

  .course-search-box button {
    width: 100%;
    padding: 10px;
    font-size: 15px;
  }
}


/* ===============================
   COURSES SECTION
================================ */

.courses-section {
  padding: 80px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  background: #fff;
}

/* ===============================
   COURSE CARD
================================ */

.course-card {
  position: relative;
  height: 260px;
  border-radius: 22px;
  overflow: hidden;
  padding: 26px;
  background-size: cover;          /* 🔑 image fits card */
  background-position: center;     /* 🔑 keeps image centered */
  background-repeat: no-repeat;
  box-shadow: 0 14px 32px rgba(0,0,0,0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  /* justify-content:center; */
}

/* Hover effect */
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(0,0,0,0.16);
}

/* Dark overlay for readability */
.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.2)
  );
  z-index: 1;
}

/* Text */
.course-card h3,
.course-card p {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: left;
}

.course-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.course-card p {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.95;
}

/* ===============================
   INDIVIDUAL COURSE IMAGES
   (NO HTML CHANGE)
================================ */

.course-card:nth-child(1) {
  background-image: url("web\ deve.webp");
}

.course-card:nth-child(2) {
  background-image: url("digital\ marketing\ \(1\).webp");
}

/* Add more as needed */
.course-card:nth-child(3) {
  background-image: url("graphic\ degine.webp");
}

.course-card:nth-child(4) {
  background-image: url("content\ writing.webp");
}

.course-card:nth-child(5) {
  background-image: url("project\ management\ \(1\).webp");
}

.course-card:nth-child(6) {
  background-image: url("HRM2.webp");
}

.course-card:nth-child(7) {
  background-image: url("E-Commorce2.webp");
}

.course-card:nth-child(8) {
  background-image: url("finance2.webp");
}

.course-card:nth-child(9) {
  background-image: url("CRM2.webp");
}

.course-card:nth-child(10) {
  background-image: url("Costomer\ service.webp");
}

/* .course-card:nth-child(11) {
  background-image: url("Costomer\ service.png");
} */
/* Add more as needed */


/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1024px) {
  .courses-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-card {
    height: 240px;
  }
}

@media (max-width: 768px) {
  .courses-section {
    grid-template-columns: 1fr;
    padding: 60px 20px;
  }

  .course-card {
    height: 220px;
  }

  .courses-hero h1 {
    font-size: 30px;
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1000px) {
  .courses-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .courses-section {
    grid-template-columns: 1fr;
  }

  .courses-hero h1 {
    font-size: 28px;
  }
}



/* CTA */
.courses-cta {
  background: #FFF2EF;
  color: #000;
  text-align: center;
  padding: 80px 20px;
}

.courses-cta h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.courses-cta p {
  margin-bottom: 25px;
}

.cta-btn {
  padding: 14px 34px;
  background: #ff5a5a;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

.cta-btn1 {
  padding: 14px 34px;
  background: #FFF2EF;
  color: #000;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}



/* Footer Base */
footer.modern-footer {
  background-color: #1a1a1a;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 50px 20px 20px;
}

/* Footer Container */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Top Section */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

/* Branding */
.footer-brand h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #b50000ff;
}

.footer-brand h2 span {
  color: #ffffff;
}

.footer-tagline,
.company-info,
.cin-info {
  font-size: 14px;
  margin: 5px 0;
  color: #cccccc;
}

/* Links Section */
.footer-links {
  display: flex;
  gap: 40px;
}

.link-column h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #b50000ff;
}

.link-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-column li {
  margin-bottom: 10px;
}

.link-column a {
  text-decoration: none;
  color: #cccccc;
  transition: color 0.3s ease;
}

.link-column a:hover {
  color: #ffffff;
}

/* Contact Section */
.footer-contact h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #b50018ff;
}

.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  margin-bottom: 10px;
  font-size: 14px;
  color: #cccccc;
}

.footer-contact a {
  color: #cccccc;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #ffffff;
}

.footer-contact i {
  margin-right: 10px;
}

/* Social Icons */
.social-icons {
  margin-top: 15px;
}

.social-icons a {
  color: #cccccc;
  margin-right: 15px;
  font-size: 18px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #b50000ff;
}

/* Divider */
.footer-divider {
  height: 1px;
  background-color: #333333;
  margin: 30px 0;
}

/* Bottom Section */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #aaaaaa;
}

.footer-bottom a {
  color: #aaaaaa;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 30px;
  }

  .footer-links {
    flex-direction: column;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-bottom a {
    margin-left: 0;
    margin-right: 15px;
  }
}

/* =================================
   CARD HOVER BUTTON (BIG STYLE)
================================= */

/* card must allow absolute positioning */
.course-card {
  position: relative;
}

/* BIG bottom button */
.card-btn {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;

  padding: 16px 0;
  background: #ff5a5a;
  color: #fff;

  border-radius: 40px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;

  /* hidden state */
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;

  transition: all 0.35s ease;
  z-index: 2;
}

/* show only on hover */
.course-card:hover .card-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* move text up like your screenshot */
.course-card:hover h3,
.course-card:hover p {
  transform: translateY(-48px);
  transition: 0.35s ease;
}




/* Container must be relative for icons to float inside it */
.courses-hero {
  position: relative;
  overflow: hidden; /* Prevents icons from causing scrollbars */
  padding: 120px 20px 80px;
  text-align: center;
  background: #FFF2EF;
}

/* Ensure text stays on top of icons */
.courses-hero h1, 
.courses-hero p {
  position: relative;
  z-index: 2;
}




/* Update the base animation speed */
.hero-floating-icons i {
  position: absolute;
  color: rgba(255, 90, 90, 0.15); 
  font-size: 40px;
  z-index: 1;
  /* Reduced from 8s to 4s for faster movement */
  animation: floatContinuous 4s ease-in-out infinite; 
}

/* Shorten delays so they start sooner after each other */
.icon-1 { top: 20%; left: 10%; animation-delay: 0s; }
.icon-2 { top: 60%; left: 15%; animation-delay: 0.5s; } /* Was 2s */
.icon-3 { top: 30%; right: 10%; animation-delay: 1s; } 
.icon-4 { top: 70%; right: 15%; animation-delay: 1.5s; } /* Was 3s */
.icon-5 { top: 10%; right: 40%; animation-delay: 2s; }   /* Was 4s */








/* The Floating Animation */
@keyframes floatContinuous {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg); /* Moves up and tilts */
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* Mobile Tweak: Hide or scale down icons for small screens */
@media (max-width: 768px) {
  .hero-floating-icons i {
    font-size: 20px;
  }
}

.notranslate {
  translate: no;
}

/* Container */
.notranslate {
  display: inline-block;
  position: relative;
}

/* Dropdown */
.translate-dropdown {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #ddd;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  outline: none;

  /* Remove default ugly styles */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Add space for arrow */
  padding-right: 30px;
}

/* Custom arrow */
.notranslate::after {
  content: "▼";
  font-size: 10px;
  position: absolute;
  right: 10px;
  top: 48%;
  /* change from 50% */
  transform: translateY(-50%);
  pointer-events: none;
  color: #555;
}

/* Hover effect */
.translate-dropdown:hover {
  border-color: #007bff;
}

/* Focus effect */
.translate-dropdown:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Option styling (limited support) */
.translate-dropdown option {
  padding: 10px;
}