/* General Section Styling */
.gallery-section {
  padding: 40px 20px;
  margin-top: 250px; /* Adjust this to clear your header */
  background-color: transparent; /* Removed the background color */
  font-family: sans-serif;
  clear: both;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-container h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333; /* Make sure this text color stands out against your page background */
}

/* The CSS Grid Setup */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Individual Image Container */
.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  aspect-ratio: 1600 / 1620; 
}

/* Ensure the link wrapper fills the grid item */
.grid-item a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Image Styling & Hover Effect */
.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
  cursor: pointer; /* Shows the user they can click it */
}

.grid-item:hover img {
  transform: scale(1.05);
}
.gallery-section {
  padding: 40px 20px 80px 20px; /* <--- 80px adds space at the bottom */
  margin-top: 250px; 
  background-color: transparent; 
  font-family: sans-serif;
  clear: both;
}
/* Force VenoBox Close Button to the front and make it obvious */
.vbox-close {
    font-size: 40px !important;
    color: #fff !important;
    opacity: 1 !important;
    top: 15px !important;
    right: 15px !important;
}
.flashing-notice {
  font-family: Arial, sans-serif;
  font-size: 22px;        /* Adjust size as needed */
  font-weight: bold;
  color: #ff0000;         /* Red color to catch attention */
  text-align: center;
  margin: 15px 0;
  
  /* This connects the text to the animation below */
  animation: flash-animation 1.5s infinite; 
}

/* The actual flashing effect */
@keyframes flash-animation {
  0%   { opacity: 1; }   /* Fully visible */
  50%  { opacity: 0; }   /* Invisible */
  100% { opacity: 1; }   /* Fully visible again */
}
.whatsapp-btn{
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.whatsapp-btn img{
    width: 60px;
    height: auto;
    display: block;
}
/* Section Background & Layout */
.courses-section {
  background-color: #fcf4eb; 
  padding: 60px 20px;
  font-family: Arial, sans-serif;
}

.courses-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  color: #333;
  margin-bottom: 40px;
  font-size: 28px;
}

/* 3-Column Grid Setup */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* Individual Card Styling */
.course-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px); /* Slight lift on hover */
}

/* Image Section with Gold Line */
.card-img-wrapper {
  width: 100%;
  height: 200px;
  position: relative;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #d4af37; /* The gold accent line under the image */
}

/* Text & Button Area */
.card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Pushes the button to the bottom if text lengths vary */
}

.card-content h3 {
  color: #3a2b58; /* Deep purple heading */
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 15px;
}

.card-content p {
  color: #555555;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Base Button Styling */
.btn {
  align-self: flex-start; /* Keeps the button from stretching full width */
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  font-size: 13px;
  padding: 10px 24px;
  border-radius: 25px; /* Pill shape */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.3s ease;
}

.btn:hover {
  opacity: 0.85;
}

/* Button Color Classes (Matching the image) */
.btn-purple { background-color: #7b589b; }
.btn-gold   { background-color: #d19e45; }
.btn-green  { background-color: #528c61; }
.btn-blue   { background-color: #538b9e; }
.courses-section {
  background-color: transparent; /* Changed from #fcf4eb to transparent */
  padding: 60px 20px;
  margin-top: 280px; 
  font-family: Arial, sans-serif;
  clear: both;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 45px; /* Increased from 30px to create more breathing room */
}
.course-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05); /* Adds a very faint outline */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); /* Stronger, softer shadow for depth */
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease; /* Smooth transition for hover effects */
}
.course-card:hover {
  transform: translateY(-8px); /* Lifts the card up a bit more */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); /* Expands the shadow on hover */
}
/* Update your existing course-grid rule to this: */
.course-grid {
  display: grid;
  /* Lowering 320px to 280px ensures it fits on narrow mobile phones */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 45px; 
}

/* Add this to the BOTTOM of your CSS file to handle tablets and phones */
@media (max-width: 768px) {
  
  .courses-section {
    padding: 40px 15px; /* Reduces side padding on small screens */
    margin-top: 150px; /* You may need to adjust this depending on how your header behaves on mobile */
  }

  .section-title {
    font-size: 24px; /* Slightly smaller heading */
    margin-bottom: 25px;
  }

  .course-grid {
    gap: 20px; /* Brings the cards closer together on mobile so they don't take up too much vertical space */
  }

  .card-img-wrapper {
    height: 180px; /* Slightly shorter images on mobile to keep the cards compact */
  }

  .card-content {
    padding: 20px 15px; /* Less padding inside the card so the text has more room to breathe */
  }
  
}
.whatsapp-btn{
    position:fixed;
    right:20px;
    bottom:20px;
    z-index:9999;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-decoration:none;
}

.whatsapp-btn img{
    width:65px; /* adjust as needed */
    height:auto;
}

.contact-us-text{
    font-size:22px;
    font-weight:700;
    color:#25D366;
    margin-bottom:5px;
    text-shadow:0 2px 8px rgba(0,0,0,0.25);
    animation:floatText 2s ease-in-out infinite;
    letter-spacing:0.5px;
}

@keyframes floatText{
    0%,100%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(-6px);
    }
}
/* Overlay: Creates a dark, slightly blurred background so the popup stands out */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6); /* Sophisticated dark blue/grey tint */
  backdrop-filter: blur(5px); /* Modern blur effect */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999; /* Ensures it sits on top of everything */
  animation: fadeIn 0.3s ease-out forwards;
}

/* The Box: Clean, rounded, with a professional accent color */
.popup-box {
  background: #ffffff;
  width: 90%;
  max-width: 420px;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
  position: relative;
  font-family: 'Arial', sans-serif;
  border-top: 6px solid #2563eb; /* Professional school blue accent */
  
  /* Starting position for the slide-up animation */
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.4s ease-out 0.1s forwards; 
}

/* The Close Button: Accessible and clean */
.close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.close-popup:hover {
  color: #e11d48; /* Turns red to indicate a close action */
  transform: scale(1.1);
}

/* Typography Styling */
.popup-box h2 {
  color: #1e293b;
  font-size: 28px;
  margin: 0 0 15px 0;
  font-weight: 700;
}

/* Styling the session text like a modern "badge" */
.popup-box p {
  display: inline-block;
  background: #eff6ff; /* Light blue background */
  color: #2563eb; /* Matching dark blue text */
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Smooth Entrance Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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