/* =========================================
   COMPONENTS & STYLING (css/components.css)
   ========================================= */

/* --- Typography & Colors --- */
.text-white { color: var(--color-bg-white) !important; }
.text-orange { color: var(--color-accent) !important; }
.section-pearl { background-color: var(--color-bg-pearl); }

/* The new heading format: Navy base */
.section-title {
  color: var(--color-primary); 
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* --- Buttons --- */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  transition: all var(--transition-fast);
}
.btn-orange {
  background-color: var(--color-accent);
  color: var(--color-bg-white) !important;
}
.btn-orange:hover {
  background-color: var(--color-primary); /* Changes to Navy on hover */
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
}

/* --- White Loader --- */
.global-loader {
  position: fixed;
  inset: 0;
  background-color: var(--color-bg-white);
  z-index: 9999;
  display: grid;
  place-items: center;
}
.loader-text {
  font-family: var(--font-main);
  color: var(--color-primary);
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.loading-bar-container {
  width: 200px;
  height: 4px;
  background-color: #f0f2f5;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
}
.loading-bar {
  width: 0%;
  height: 100%;
  background-color: var(--color-accent);
}

/* --- Dynamic Hero --- */
.hero-carousel {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: -82px; /* Pulls hero up under the sticky menu to ensure full screen */
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero-1.jpeg');
  background-size: cover;
  background-position: center;
  z-index: 1;
  will-change: transform, clip-path; /* Optimizes the browser for this specific animation */
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 40, 0.6); /* Dark navy overlay for text readability */
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}
.hero-title {
  font-size: 4rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* --- Morphing Blob Frame (About Section) --- */
.blob-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: morphing 8s ease-in-out infinite;
  box-shadow: 0 20px 40px rgba(30, 52, 80, 0.15);
}
.blob-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}
@keyframes morphing {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
  67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
  100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* --- Service Cards --- */
.service-card {
  background: var(--color-bg-white);
  padding: 2.5rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 3px solid transparent;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border-bottom: 3px solid var(--color-accent); /* Orange accent on hover */
}
.service-icon {
  height: 50px;
  margin-bottom: 1.5rem;
}

/* --- Parallax Backgrounds (Destinations & CTA) --- */
.parallax-bg {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 52, 80, 0.85); /* Heavy navy tint */
  z-index: 1;
}
.parallax-content {
  position: relative;
  z-index: 2;
}

/* --- Premium Image Frames (Destinations) --- */
.premium-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(30, 52, 80, 0.1);
}
.premium-frame img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.premium-frame:hover img {
  transform: scale(1.05); /* Premium zoom effect */
}
.destination-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem;
  background: linear-gradient(to top, rgba(15, 26, 40, 0.9), transparent);
  color: white;
}

/* --- Testimonial Snap Scroll --- */
.snap-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding: 2rem 0;
  scrollbar-width: none; /* Firefox */
}
.snap-container::-webkit-scrollbar { display: none; /* Chrome/Safari */ }
.snap-item {
  min-width: 350px;
  scroll-snap-align: center;
  background: var(--color-bg-white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-left: 4px solid var(--color-accent);
}
.quote { font-style: italic; margin-bottom: 1rem; color: #444; }

/* =========================================
   INNER PAGE STYLES (About, Services, Contact)
   ========================================= */

/* --- Inner Page Hero --- */
.inner-hero {
  height: 50vh; /* Shorter than the 100vh homepage hero */
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -80px; /* Pulls it up under the sticky white menu */
  overflow: hidden;
}
.inner-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* Background image specifically for the About Page */
.about-bg {
  background-image: url('../assets/images/about-hero.jpeg');
}

/* Background image specifically for the Visa Application Page */
.visa-hero-bg {
  background-image: url('../assets/images/visa-hero.jpeg');
}

/* Background image specifically for the Air Ticketing Page */
.ticket-hero-bg {
  background-image: url('../assets/images/ticket-hero.jpeg');
}

/* Background image specifically for the Travel Consultation Page */
.consult-hero-bg {
  background-image: url('../assets/images/consult-hero.jpeg');
}

/* Background image specifically for the Student Placement Page */
.student-hero-bg {
  background-image: url('../assets/images/student-hero.jpeg');
}

/* Background image specifically for the Global Recruitment Page */
.recruit-hero-bg {
  background-image: url('../assets/images/recruit-hero.jpeg');
}

/* Background image specifically for the Destinations Page */
.dest-hero-bg {
  background-image: url('../assets/images/destinations-hero.jpeg');
}

/* Specific spacing for the Destinations page layout */
.destinations-page-section {
  padding: 6rem 0;
}

/* Ensures the text is centered nicely */
.inner-hero .hero-content {
  text-align: center;
}
.inner-hero .hero-title {
  margin-bottom: 0.5rem;
}

/* =========================================
   FAQ ACCORDION
   ========================================= */
.faq-container {
  max-width: 800px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--color-bg-white);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border-left: 4px solid transparent;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-left: 4px solid var(--color-accent); /* Highlights orange when open */
  box-shadow: 0 10px 25px rgba(30, 52, 80, 0.1);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-main);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-accent);
}

/* The Plus/Minus Icon using pure CSS */
.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-primary);
  transition: transform 0.3s ease;
}
.faq-icon::before {
  top: 9px;
  left: 0;
  width: 20px;
  height: 2px;
}
.faq-icon::after {
  top: 0;
  left: 9px;
  width: 2px;
  height: 20px;
}

/* Morph to a minus when active */
.faq-item.active .faq-icon::after {
  transform: rotate(90deg);
}
.faq-item.active .faq-icon::before {
  background-color: var(--color-accent);
}
.faq-item.active .faq-icon::after {
  background-color: var(--color-accent);
}

/* The sliding answer section */
.faq-answer {
  max-height: 0; /* Hidden by default */
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  background-color: var(--color-bg-white);
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  margin: 0;
  color: #444;
}

/* =========================================
   BLOG PAGE STYLES
   ========================================= */

/* Blog Hero Background */
.blog-hero-bg {
  background-image: url('../assets/images/blog-hero.jpeg');
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* --- Updated Smooth Blog Cards --- */
.blog-card {
  background-color: var(--color-bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  
  /* 1. Explicit timing with a premium 'ease-out' curve */
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  
  /* 2. Hardware acceleration to stop any jittering */
  will-change: transform, box-shadow;
  backface-visibility: hidden; 
  transform: translateZ(0); /* Forces GPU rendering */
}

.blog-card:hover {
  transform: translateY(-8px); /* slightly more lift for impact */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); /* Softer, wider shadow */
}

.blog-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  /* Prevents the image from bleeding outside the border-radius during animation */
  border-top-left-radius: 8px;
  border-top-right-radius: 8px; 
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  
  /* Slower, smoother transition specifically for the image zoom */
  transition: transform 0.6s cubic-bezier(0.21, 1.05, 0.4, 1);
  will-change: transform;
  backface-visibility: hidden;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.08); /* A slightly more noticeable, smooth zoom */
}

/* Category Badge */
.blog-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--color-accent);
  color: var(--color-bg-white);
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Content Area */
.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Pushes the "Read More" button to the bottom evenly */
}

.blog-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
  display: block;
}

.blog-card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.blog-card-content h3 a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.blog-card-content h3 a:hover {
  color: var(--color-accent);
}

.blog-card-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Read More Link */
.read-more {
  margin-top: auto; /* Aligns to the bottom of the card */
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity var(--transition-fast);
}

.read-more:hover {
  opacity: 0.8;
}

/* =========================================
   CONTACT PAGE STYLES
   ========================================= */

/* Contact Hero Background */
.contact-hero-bg {
  background-image: url('../assets/images/contact-hero.jpeg');
}

/* Contact Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Info Cards (Left Side) */
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--color-bg-pearl);
  border-radius: 8px;
  transition: transform var(--transition-fast);
}

.info-card:hover {
  transform: translateX(10px);
}

.info-icon {
  font-size: 2rem;
  line-height: 1;
}

.info-text h4 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.info-text p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

/* Contact Form (Right Side) */
.contact-form-wrapper {
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 1rem;
  color: #333;
  background-color: #fcfcfc;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(224, 122, 63, 0.1); /* Soft orange glow */
}

/* Responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-form-wrapper {
    padding: 2rem;
  }
}