/* ============================================= */
/* General Styles */
/* ============================================= */

:root {
    --kuwait-green: #007A3D; /* NEW BRAND COLOR VARIABLE */
    --kuwait-green-darker: #005c2e; /* For hover effects */
}
body, html { overflow-x: hidden; }
body { font-family: 'Cairo', sans-serif; color: #444444; }
h1, h2, h3, h4, h5, h6 { font-family: 'Cairo', sans-serif; font-weight: 700; }
a { text-decoration: none; color: var(--kuwait-green); }
a:hover { color: var(--kuwait-green-darker); }
.section-title h2 { font-size: 32px; font-weight: 900; margin-bottom: 20px; padding-bottom: 20px; position: relative; text-align: center; }
.section-title h2::after { content: ''; position: absolute; display: block; width: 50px; height: 3px; background: var(--kuwait-green); bottom: 0; left: 50%; transform: translateX(-50%); }
.section-title p { margin-bottom: 0; color: #6c757d; font-size: 18px; text-align: center; }

/* ============================================= */
/* Navbar */
/* ============================================= */

/*
  >>> KEY CHANGE: FONT FIX ADDED HERE <<<
  This rule is more specific than Bootstrap's default and ensures
  all elements within our navbar use the correct 'Cairo' font.
*/
#main-navbar,
#main-navbar .navbar-brand,
#main-navbar .nav-link,
#main-navbar .dropdown-item,
#main-navbar .btn {
    font-family: 'Cairo', sans-serif;
}

.navbar { transition: all 0.5s; padding: 0; }
.navbar-brand { font-size: 24px; font-weight: 900; }
.navbar .nav-link { font-weight: 700; padding: 8px 15px; transition: 0.3s; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--kuwait-green); }

/* ============================================= */
/* Page Header Section Styles */
/* ============================================= */
#page-header { height: 40vh; min-height: 300px; width: 100%; background-size: cover; background-position: center; position: relative; padding: 0; margin-top: 85px; }
.page-header-overlay { position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: center; }
#page-header .page-title { color: #fff; font-size: 48px; font-weight: 900; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); }
#page-header .page-subtitle { color: #f0f0f0; font-size: 20px; margin-top: 10px; }
@media (max-width: 768px) {
  #page-header { margin-top: 75px; height: 30vh; min-height: 250px; }
  #page-header .page-title { font-size: 36px; }
  #page-header .page-subtitle { font-size: 18px; }
}

/* ============================================= */
/* General Component Styles (Buttons, Icons, etc.) */
/* ============================================= */
.btn-primary {
    background-color: var(--kuwait-green);
    border-color: var(--kuwait-green);
}
.btn-primary:hover {
    background-color: var(--kuwait-green-darker);
    border-color: var(--kuwait-green-darker);
}
.btn-outline-primary {
    color: var(--kuwait-green);
    border-color: var(--kuwait-green);
}
.btn-outline-primary:hover {
    background-color: var(--kuwait-green);
    color: #fff;
}
.text-primary {
    color: var(--kuwait-green) !important;
}
/* ============================================= */
/* ENHANCED Hero Carousel Section */
/* ============================================= */
#hero { width: 100%; height: 100vh; padding: 0; margin: 0; overflow: hidden; }
#hero .carousel, #hero .carousel-inner, #hero .carousel-item { width: 100%; height: 100vh; }
#hero .carousel-item { background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; z-index: 1; animation: kenBurns 20s ease-out infinite; }
.slide-bg-1 { background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?q=80&w=2070&auto=format&fit=crop'); }
.slide-bg-2 { background-image: url('https://images.unsplash.com/photo-1497633762265-9d179a990aa6?q=80'); }
.slide-bg-3 { background-image: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?q=80'); }
.slide-bg-4 { background-image: url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?q=80'); }
#hero .carousel-item::before { content: ""; background-color: rgba(0, 0, 0, 0.55); position: absolute; top: 0; right: 0; left: 0; bottom: 0; z-index: 2; }
#hero .carousel-container { display: flex; justify-content: center; align-items: center; position: absolute; inset: 0; z-index: 3; }
#hero .container { text-align: center; color: #fff; }
#hero h1, #hero h2.carousel-title { color: #fff; margin-bottom: 20px; font-size: 48px; font-weight: 900; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6); }
#hero p { width: 80%; margin: 0 auto 30px auto; font-size: 24px; text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7); }
#hero .btn-primary, #hero .btn-outline-light { font-weight: 700; font-size: 16px; letter-spacing: 1px; padding: 12px 32px; border-radius: 50px; transition: 0.5s; margin: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
#hero .btn-primary {
    background-color: var(--kuwait-green);
    border-color: var(--kuwait-green);
}
#hero .carousel-control-prev, #hero .carousel-control-next { width: 5%; z-index: 4; }
#hero .carousel-control-prev-icon, #hero .carousel-control-next-icon { width: 3rem; height: 3rem; background-color: rgba(0, 122, 61, 0.5); border-radius: 50%; }
#hero .carousel-indicators { z-index: 4; }
#hero .carousel-indicators button { width: 12px; height: 12px; border-radius: 50%; margin: 0 8px; background-color: rgba(255, 255, 255, 0.5); }
#hero .carousel-indicators button.active { background-color: var(--kuwait-green); }
#hero .carousel-progress { position: absolute; bottom: 0; left: 0; width: 100%; height: 5px; z-index: 4; }
#hero .carousel-progress .progress { height: 100%; width: 0%; background-color: var(--kuwait-green); border-radius: 0; transition: width 0.1s linear; }
@keyframes kenBurns { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
@media (max-width: 768px) { #hero h1, #hero h2.carousel-title { font-size: 32px; } #hero p { font-size: 18px; width: 100%; } }


/* ============================================= */
/* Features Section */
/* ============================================= */
#features .feature-box {
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

#features .feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ============================================= */
/* About Section */
/* ============================================= */
#about ul {
    list-style: none;
    padding: 0;
}

#about ul li {
    padding-right: 28px;
    position: relative;
    padding-bottom: 10px;
}

#about ul i {
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 20px;
}

/* ============================================= */
/* President's Speech Section Styles             */
/* ============================================= */
#president-speech {
  /* background-color: #f8f9fa;  */
  position: relative;
  overflow: hidden;
}

.president-photo-wrapper {
  position: relative;
  border-radius: 10px;
  padding: 10px;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.president-photo-wrapper::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 80px;
  height: 80px;
  background-color: #007bff;
  opacity: 0.1;
  border-radius: 10px;
  z-index: 0;
  transition: all 0.4s ease;
}

.president-photo-wrapper:hover::before {
    transform: translate(5px, 5px) scale(1.1);
}

.president-photo-wrapper img {
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.speech-content .quote-icon {
  position: absolute;
  top: -20px;
  right: -10px;
  font-size: 3rem;
  color: #007bff;
  opacity: 0.07;
  z-index: 0;
}

.speech-content .lead {
  color: #333;
  font-weight: 500;
  line-height: 1.7;
}

.speech-content p {
  line-height: 1.8;
  color: #555;
}

.speech-content .signature {
  padding-top: 15px;
  margin-top: 20px;
  border-top: 2px solid #e9ecef;
}

.speech-content .signature h4 {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  color: #007bff;
  margin-bottom: 5px;
}

.speech-content .signature span {
  font-weight: 700;
  color: #6c757d;
  font-size: 15px;
}

/* Responsive adjustments for mobile */
@media (max-width: 991.98px) {
  #president-speech .row {
    flex-direction: column-reverse; /* Stack image on top of text on mobile */
  }

  .speech-content .section-title, .speech-content .signature {
    text-align: center !important;
  }
}

/* ============================================= */
/* Services Carousel / gallery */
/* ============================================= */
#services .carousel-item {
    position: relative;
}

#services .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0; 
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1; 
    border-radius: 10px; 
}

#services .service-img {
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

#services .carousel-caption {
    position: absolute;
    inset: 0;
    z-index: 2; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 0;
    pointer-events: none; 
}

#services .carousel-caption h5 {
    color: #fff;
    font-size: 2.5rem; 
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); 
}

@media (max-width: 768px) {
    #services .service-img {
        height: 250px;
    }
    #services .carousel-caption h5 {
        font-size: 1.75rem; 
    }
}

/* ============================================= */
/* Honeycomb Section Styles */
/* ============================================= */
.honeycomb {
    margin-top: 40px;
}

.desktop-layout {
    display: block;
    width: calc(4 * 260px + 3 * 20px);
    margin-left: auto;
    margin-right: auto;
}

.honey-row {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: -40px;
}

.honey-row:last-child {
    margin-bottom: 0;
}

.desktop-layout .honey-row.offset {
    justify-content: center;
}

.desktop-layout .honey-row:not(.offset) {
    justify-content: center;
}

.hex {
    position: relative;
    width: 260px;
    aspect-ratio: 1 / 0.866;
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    box-shadow: 0 0 0 2px #fff;
    transition: transform 0.3s ease;
}

.hex:hover {
    transform: scale(1.03);
}

.hex::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hex-content {
    position: absolute;
    top: 0; left: 0;
    z-index: 2;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    transition: background 0.3s ease;
    color: white;
}

.hex h3 {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    transition: opacity 0.3s ease;
}

.hex p {
    color: #fff !important;
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin: 0;
    opacity: 0;
    max-width: 90%;
    transition: opacity 0.3s ease;
    display: none;
}

.hex:hover h3 {
    display: none;
}

.hex:hover p {
    opacity: 1;
    display: block;
}

.mobile-layout {
    display: none;
}
.desktop-layout {
    display: block;
}

@media (max-width: 1120px) {
    .desktop-layout {
        display: none;
    }
    .mobile-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin-top: 40px;
    }
    .mobile-layout .honey-row {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0px;
        margin-bottom: -2.3rem;
    }
}

@media (max-width: 992px) {
    .hex {
        width: 200px;
    }
}

@media (max-width: 600px) {
    .hex {
        width: 150px;
    }
    .hex h3,
    .hex p {
        font-size: 0.7rem;
    }
    .mobile-layout .honey-row {
        gap: 10px;
    }
}

/* ============================================= */
/* Team Section */
/* ============================================= */
#team .team-member {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

#team .team-member:hover {
    transform: translateY(-10px);
}

#team .member-img img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    margin-bottom: 20px;
}

#team .member-info h4 {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 20px;
    color: #37423b;
}

#team .member-info span {
    display: block;
    font-size: 15px;
    color: #6c757d;
}

/* ============================================= */
/* Testimonials Section */
/* ============================================= */
.testimonials .testimonial-item {
    box-sizing: content-box;
    text-align: center;
    min-height: 320px;
}

.testimonials .testimonial-img {
    width: 90px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    border: 6px solid rgba(255, 255, 255, 0.15);
}

.testimonials .testimonial-item h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0 5px 0;
}
.testimonials .testimonial-item h4 {
    font-size: 14px;
    color: white;
    margin: 0;
}

.testimonials .testimonial-item .fa-quote-left,
.testimonials .testimonial-item .fa-quote-right {
    color: #cde6ff;
    font-size: 26px;
    display: inline-block;
    vertical-align: middle;
}

.testimonials .testimonial-item p {
    font-style: italic;
    margin: 0 auto 15px auto;
    padding: 0 20px;
    display: inline-block;
    max-width: 700px;
}


/* ============================================= */
/* Partners */
/* ============================================= */
#partners img {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
    filter: saturate(0.1);
}

#partners img:hover {
    transform: scale(1.05);
    filter: saturate(1);
}

/* ============================================= */
/* Contact Section */
/* ============================================= */
#contact .info-box {
    background: #fff;
    height: 100%;
}

#contact .php-email-form {
    background: #fff;
    height: 100%;
}

/* ============================================= */
/* NEW: Multi-Step Form Styles */
/* ============================================= */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.stepper {
    position: relative;
    background-image: linear-gradient(to right, #e0e0e0, #e0e0e0);
    background-repeat: no-repeat;
    background-size: 100% 2px;
    background-position: center center;
}

.stepper .step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
}

.stepper .step .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #fff;
    border: 2px solid #e0e0e0;
    line-height: 36px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 2;
}

.stepper .step::after {
    content: attr(data-step-name);
    position: absolute;
    top: 50px;
    white-space: nowrap;
}

.stepper .step.active .step-circle {
    background-color: #007bff;
    border-color: #007bff;
}
.stepper .step.active {
    color: #007bff;
    font-weight: bold;
}

.stepper .step.completed .step-circle {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}
.stepper .step.completed .step-circle::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f00c";
}

/* ============================================= */
/* REBUILT: Blog/News Section Styles (Swiper) */
/* ============================================= */
#news .news-swiper {
    padding-bottom: 50px;
  }
  
  #news .swiper-slide {
    height: auto;
    padding: 5px;
  }
  
  #news .blog-card {
    height: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  #news .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1) !important;
  }
  
  .card-img-top-container {
    position: relative;
  }
  
  #news .blog-card .card-img-top {
    aspect-ratio: 16 / 10;
    /* object-fit: cover; */
    transition: transform 0.4s ease;
  }
  
  #news .blog-card:hover .card-img-top {
    transform: scale(1.05);
  }
  
  .blog-category {
    position: absolute;
    top: 15px; right: 15px;
    background-color: rgba(0, 123, 255, 0.9);
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
  }
  
  .blog-date {
    position: absolute;
    top: 15px; left: 15px;
    background-color: #007bff;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    z-index: 2;
    text-align: center;
    line-height: 1.2;
  }
  
  .blog-date .day {
    font-size: 24px;
    font-weight: 900;
    display: block;
  }
  
  .blog-date .month-year {
    font-size: 14px;
    font-weight: 700;
  }
  
  .blog-title a {
    color: #444444;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 700;
  }
  
  .blog-title a:hover { color: #007bff; }
  
  #news .card-body .mt-auto { width: fit-content; }
  
  #news .swiper-button-prev,
  #news .swiper-button-next {
      top: 50%;
      transform: translateY(-70%);
      color: #fff;
      background-color: #007bff;
      width: 44px; height: 44px;
      border-radius: 50%;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
      transition: background-color 0.3s ease;
  }
  #news .swiper-button-prev:hover,
  #news .swiper-button-next:hover {
      background-color: #0056b3;
  }
  
  #news .swiper-button-prev::after,
  #news .swiper-button-next::after {
      font-size: 18px;
      font-weight: 900;
  }
  
  #news .swiper-pagination-bullet {
      width: 10px; height: 10px;
      background-color: #ccc;
      opacity: 1;
  }
  
  #news .swiper-pagination-bullet-active {
      background-color: #007bff;
  }

/*
  KEY CHANGE: New styles for the fallback logo
*/
.news-card-image img.is-fallback-logo,
.card-img-top-container img.is-fallback-logo {
    object-fit: contain; /* Prevents the logo from being cropped */
    padding: 20px;       /* Adds some breathing room around the logo */
    background-color: #f8f9fa; /* Adds a light background for better contrast */
}

/* ============================================= */
/* Footer */
/* ============================================= */
#footer {
    font-size: 14px;
}

#footer a {
    text-decoration: none;
}


#footer a.text-white:hover {
    color: #007bff !important;
}

#footer .social-links a {
    font-size: 18px;
    display: inline-block;
    background: #2b2b2b;
    color: #fff;
    line-height: 1;
    padding: 8px 0;
    margin-left: 8px;
    border-radius: 50%;
    text-align: center;
    width: 36px;
    height: 36px;
    transition: 0.3s;
}

#footer .social-links a:hover {
    background: #007bff;
    color: #fff;
}

/* ============================================= */
/* NEW: Back to Top Button */
/* ============================================= */
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    background: #007bff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.4s;
}

.back-to-top i {
    font-size: 24px;
    color: #fff;
    line-height: 0;
}

.back-to-top:hover {
    background: #0069d9;
    color: #fff;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}


/* ============================================= */
/* NEW ALTERNATING TIMELINE (Year & Card)        */
/* ============================================= */
#history-timeline .timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

#history-timeline .timeline::after {
  content: '';
  position: absolute;
  width: 3px;
  background-color: transparent;
  top: 0; bottom: 0;
  right: 50%;
  margin-right: -1.5px;
}

#history-timeline .timeline-item {
  position: relative;
  padding: 20px 0;
  display: flex;
  align-items: center;
}

#history-timeline .timeline-dot {
  position: absolute;
  width: 16px; height: 16px;
  background-color: #fff;
  border: 4px solid transparent;
  border-radius: 50%;
  right: 50%;
  margin-right: -8px;
  z-index: 1;
  visibility: hidden;
}

#history-timeline .timeline-year,
#history-timeline .timeline-content {
  width: calc(50% - 40px);
  box-sizing: border-box;
}

#history-timeline .timeline-year {
    text-align: center;
}
#history-timeline .timeline-year span {
    font-size: 24px;
    font-weight: 900;
    color: #0056b3;
    padding: 15px;
    background: #e9ecef;
    border-radius: 50%;
    width: 100px; height: 100px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 5px #f8f9fa, inset 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

#history-timeline .timeline-content {
  padding: 20px 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
#history-timeline .timeline-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
}
#history-timeline .timeline-content p {
    margin-bottom: 0;
}

#history-timeline .timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

#history-timeline .timeline-item:nth-child(even) {
  flex-direction: row;
}

@media screen and (max-width: 768px) {
  #history-timeline .timeline::after {
    right: 40px;
  }

  #history-timeline .timeline-item,
  #history-timeline .timeline-item:nth-child(odd),
  #history-timeline .timeline-item:nth-child(even) {
    flex-direction: row;
    align-items: center;
    padding: 15px 0;
  }

  #history-timeline .timeline-dot {
    right: 33px;
  }

  #history-timeline .timeline-year {
      width: 80px;
      position: absolute;
      right: 0;
  }
   #history-timeline .timeline-year span {
        width: 60px; height: 60px;
        font-size: 16px;
        box-shadow: none;
        border: 2px solid #007bff;
        background-color: #fff;
   }

  #history-timeline .timeline-content {
      width: calc(100% - 80px);
      margin-right: 80px;
  }
}

/* ============================================= */
/* NEW: Modern Call to Action Section Styles     */
/* ============================================= */
#cta-modern .cta-modern-wrapper {
    position: relative;
    background-color: #002349;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 35, 73, 0.2);
    transition: transform 0.3s ease;
  }
  
  #cta-modern .cta-modern-wrapper:hover {
      transform: translateY(-5px);
  }
  
  #cta-modern .cta-text-content {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  #cta-modern .cta-text-content h2 {
      line-height: 1.3;
  }
  #cta-modern .cta-text-content .lead {
      font-size: 1.1rem;
  }
  
  #cta-modern .cta-image-column {
      position: relative;
  }
  
  #cta-modern .cta-image {
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      object-fit: cover;
  }
  
  #cta-modern .btn-primary {
      transition: all 0.3s ease;
  }
  #cta-modern .btn-outline-light:hover {
      background-color: #fff;
      color: #002349;
  }
  
  
  @media (max-width: 991.98px) {
      #cta-modern .cta-text-content {
          padding: 3rem 2rem;
          text-align: center;
      }
      #cta-modern .cta-text-content .d-flex {
          justify-content: center;
      }
  }

/* ============================================= */
/* Services Page Styles                          */
/* ============================================= */
#our-services-grid .service-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease-in-out;
    border-bottom: 3px solid transparent;
  }
  
  #our-services-grid .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    border-bottom-color: #007bff;
  }
  
  #our-services-grid .service-icon {
    margin: 0 auto 20px auto;
    width: 64px; height: 64px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
  }
  
  #our-services-grid .service-icon i {
    color: #fff;
    font-size: 28px;
  }
  
  #our-services-grid .service-card:hover .service-icon {
      background-color: #0056b3;
  }
  
  #our-services-grid .service-card h3 {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 15px;
    color: #444;
  }
  
  #our-services-grid .service-card p {
      color: #6c757d;
      line-height: 1.6;
  }
  
  #how-it-works .step-icon {
      width: 70px; height: 70px;
      margin: 0 auto 20px auto;
      border-radius: 50%;
      background-color: #e8f2ff;
      color: #007bff;
      font-size: 28px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid #007bff;
  }
  #how-it-works .step h4 {
      font-size: 20px;
      font-weight: 700;
      margin-bottom: 10px;
  }
  
  #faq .accordion-item {
    border-radius: 8px !important;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    box-shadow: none;
  }
  #faq .accordion-button {
    font-weight: 700;
    color: #444;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.2rem;
  }
  #faq .accordion-button:not(.collapsed) {
    color: #007bff;
    background-color: #e8f2ff;
    box-shadow: none;
  }
  #faq .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
  }
  #faq .accordion-button::after {
      filter: brightness(0.5);
  }
  #faq .accordion-button:not(.collapsed)::after {
      filter: none;
  }
  #faq .accordion-body {
      padding: 1.5rem;
      line-height: 1.7;
  }


/* ================================================== */
/* === AMAZING LINKS SECTION (from scan_me.php) === */
/* ================================================== */
.attractive-links-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    perspective: 1500px;
    overflow-x: hidden;
}

/* The 3-Column Grid (All Devices) */
.attractive-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
@media (min-width: 768px) { .attractive-links-grid { gap: 25px; } }
@media (min-width: 992px) { .attractive-links-grid { gap: 30px; } }

/* Card Base Styling */
.attractive-links-section .link-card {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Directional Animation Logic */
.attractive-links-section .link-card:nth-child(3n + 1) { transform: translateX(100px); }
.attractive-links-section .link-card:nth-child(3n + 2) { transform: scale(0.6); }
.attractive-links-section .link-card:nth-child(3n) { transform: translateX(-100px); }

/* The Visible State */
.attractive-links-section .link-card.is-visible {
    opacity: 1;
    transform: none;
}

/* Staggered animation delays by row */
.attractive-links-section .link-card:nth-child(n+4) { transition-delay: 0.15s; }
.attractive-links-section .link-card:nth-child(n+7) { transition-delay: 0.3s; }

.attractive-links-section .link-card .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.8) 100%);
    transition: background 0.4s ease;
}
.attractive-links-section .link-card .content {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    z-index: 2;
}

.attractive-links-section .link-card .icon {
    width: clamp(55px, 6.5vw, 85px);
    aspect-ratio: 1/1;
    border-radius: 50%;
    padding: clamp(8px, 1.5vw, 15px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    object-fit: contain;
    transition: all 0.4s ease;
}

.attractive-links-section .link-card h3 {
    color: #fff;
    font-weight: 700;
    font-size: clamp(11px, 2.5vw, 18px); 
    text-align: center;
    margin-top: 12px;
}

/* DESKTOP HOVER STYLES (for screens wider than 1024px) */
@media (min-width: 1025px) {
    .attractive-links-section .link-card h3 {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }
    .attractive-links-section .link-card:hover {
        transform: translateY(-10px) !important;
        box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2);
    }
    .attractive-links-section .link-card:hover .icon {
        transform: translateY(-15px) scale(1.1) rotate(360deg);
    }
    .attractive-links-section .link-card:hover h3 {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TOUCH DEVICE STYLES (for screens 1024px and smaller) */
@media (max-width: 1024px) {
    .attractive-links-section .link-card h3 {
        opacity: 1;
        transform: translateY(0);
    }
    .attractive-links-section .link-card:active {
        transform: scale(0.97) !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }
}

/* MOBILE CONTENT SIZING (phones) */
@media (max-width: 767px) {
    .attractive-links-grid {
        gap: 10px;
    }
    .attractive-links-section .link-card .icon {
        padding: 8px;
    }
    .attractive-links-section .link-card h3 {
        font-size: 11px;
        margin-top: 8px;
    }
}


/* ============================================= */
/* Student Guide Flip Carousel (Zoom & Progress)  */
/* ============================================= */
#student-guide-carousel {
    background-color: #f8f9fa;
}

.guide-swiper {
    width: 90%;
    max-width: 80%; /* Capped width for desktops */
    margin: 0 auto;
    position: relative;
    padding-bottom: 60px; /* Space for pagination & progress bar */
}

.guide-swiper .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 100%;
    aspect-ratio: 16 /9; 
    background-color: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.guide-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    /* Use 'contain' for zoom to prevent image cropping */
    object-fit: contain; 
}

/* === Zoom Container Styling === */
.guide-swiper .swiper-zoom-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* === Fraction Pagination Styling === */
.guide-swiper .swiper-pagination {
    bottom: 25px; /* Position it above the progress bar */
    font-size: 1.25rem;
    font-weight: 700;
    color: #444;
}

.guide-swiper .swiper-pagination .swiper-pagination-current {
    color: #007bff;
}

/* === NEW: Progress Bar (Scrollbar) Styling === */
.guide-swiper .swiper-scrollbar {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 6px;
    width: 80%; /* Make progress bar 80% of slider width */
    background: #e0e0e0;
    border-radius: 10px;
}

.guide-swiper .swiper-scrollbar-drag {
    background: #007bff;
    border-radius: 10px;
}

/* === Navigation Arrow Styling === */
.guide-swiper .swiper-button-prev,
.guide-swiper .swiper-button-next {
    color: #007bff;
}

/* ============================================= */
/* === RESPONSIVE MEDIA QUERY FOR MOBILE === */
/* ============================================= */
@media (max-width: 767px) {
    .guide-swiper .swiper-button-prev,
    .guide-swiper .swiper-button-next {
        --swiper-navigation-size: 30px; 
    }
    /* .guide-swiper .swiper-button-prev {
        left: 0;
    }
    .guide-swiper .swiper-button-next {
        right: 0;
    } */
    .guide-swiper .swiper-pagination {
        font-size: 1rem;
    }
}



/* ============================================= */
/* Hotels Page Styles                            */
/* ============================================= */
/* --- Search Bar --- */
.search-form-wrapper {
    position: relative;
}
.search-form-wrapper input {
    height: 55px;
    border-radius: 50px;
    padding-right: 20px;
    padding-left: 60px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}
.search-form-wrapper .fa-search {
    position: absolute;
    top: 50%;
    left: 25px;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 20px;
}

/* --- Hotel Card --- */
.hotel-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}
.hotel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.hotel-card-image {
    position: relative;
    aspect-ratio: 16/10;
}
.hotel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hotel-card-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 123, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.hotel-card:hover .hotel-card-overlay {
    opacity: 1;
}
.hotel-card-content {
    padding: 20px;
}
.hotel-card-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}
.hotel-card-content p {
    color: #6c757d;
    font-size: 15px;
    margin-bottom: 0;
}

/* --- Hotel Modal Styles --- */
.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    font-weight: 700;
}
.modal-body .carousel {
    border-radius: 10px;
    overflow: hidden;
}
.modal-body .carousel-item {
    aspect-ratio: 16/9;
}
.modal-body .carousel-item img {
    object-fit: cover;
}
.modal-body .contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.modal-body .contact-group h6 {
    font-weight: 700;
    color: #007bff;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
    margin-bottom: 10px;
}
.modal-body .contact-group ul li {
    margin-bottom: 8px;
}
.modal-body .contact-group ul li a {
    color: #444;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}
.modal-body .contact-group ul li a:hover {
    color: #0056b3;
}
.modal-body .address-details h4 {
    font-weight: 700;
}

/* ================================================== */
/* === CUSTOM INTERSECTION OBSERVER ANIMATIONS    === */
/* ================================================== */

/* --- The base state for all animated cards --- */
.hotel-item-col {
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- The default "hidden" position for each direction --- */
.hotel-item-col.anim-left { transform: translateX(-100px); }
.hotel-item-col.anim-center { transform: scale(0.6); }
.hotel-item-col.anim-right { transform: translateX(100px); }

/* --- The "visible" state that all cards animate TO --- */
.hotel-item-col.is-visible {
    opacity: 1;
    transform: none; /* This resets transform to its default (no translation, no scaling) */
}



/* ============================================= */
/* Reusable Social Share Component Styles        */
/* ============================================= */
.social-share h4 { font-size: 16px; font-weight: 700; margin-bottom: 15px; }
.social-share a { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; border-radius: 50%; margin-inline-end: 8px; color: #fff; text-decoration: none; transition: transform 0.3s ease; }
.social-share a:hover { transform: translateY(-3px); }
.social-share .twitter { background-color: #1DA1F2; }
.social-share .facebook { background-color: #1877F2; }
.social-share .whatsapp { background-color: #25D366; }
/* KEY CHANGE: Style for the new print icon */
.social-share .print { background-color: #6c757d; } /* A neutral gray color */
.social-share .instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, 
  #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* ============================================= */
/* KEY CHANGE: Print-Friendly Styles             */
/* ============================================= */
@media print {
  /* This CSS applies ONLY when the user clicks the print button */

  /* Hide everything that shouldn't be printed */
  body > .navbar, 
  body > #main > #page-header,
  .sidebar, 
  .entry-footer,
  body > #main > #footer,
  footer,
  .back-to-top {
    display: none !important;
  }

  /* Make the article content take up the full page width */
  #news-details-page .col-lg-8 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Remove shadows and borders for cleaner printing */
  .article-entry {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }

  /* Ensure text is black for readability on paper */
  * {
    color: #000 !important;
    background: #fff !important;
  }

  /* Prevent links from showing the URL in some browsers */
  a, a:visited {
    text-decoration: underline;
  }
}

/* =================================================== */
/* === FLOATING WHATSAPP CHAT BUTTON (FINAL V2)      === */
/* =================================================== */

.whatsapp-float {
    position: fixed;
    /* THE FIX: Increased bottom position to be above the back-to-top button */
    bottom: 85px; 
    right: 11px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    color: #fff;
}

/* --- The Tooltip Message (Now positioned to the left) --- */
.whatsapp-float .tooltip-text {
    visibility: hidden;
    width: 240px; /* Increased width slightly */
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    /* THE FIX: New positioning logic for left side */
    top: 50%;
    right: 110%; /* Move it to the left of the button */
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* THE FIX: Arrow now points from the right */
.whatsapp-float .tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%; /* Position arrow on the right side of the tooltip */
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #333; /* Arrow points left */
}

.whatsapp-float:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* --- NEW: Classes for JavaScript Animation --- */
.whatsapp-float .tooltip-show {
    visibility: visible;
    opacity: 1;
}

.whatsapp-float .tooltip-fade-out {
    opacity: 0;
    transition: opacity 0.5s ease; /* Fade out smoothly */
}


/* --- Responsive Adjustments for Mobile --- */
@media (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 75px; /* Adjusted for mobile */
        right: 20px;
        font-size: 24px;
    }
    .whatsapp-float .tooltip-text {
        display: none;
    }
}