/* Testimonials slider: ensure horizontal scrolling works */
.testimonial-slider { overflow: hidden; }
.testimonial-track { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; }
.testimonial-card { flex: 0 0 calc(100% / 2 - 10px); min-width: 300px; background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
@media (max-width: 991px){ .testimonial-card { flex-basis: calc(100% / 2 - 10px); } }
@media (max-width: 767px){ .testimonial-card { flex-basis: 100%; } }
.testimonial-track::-webkit-scrollbar { display: none; }
/* Horizontal scroll gallery */
.gallery-wrapper { position: relative; }
.gallery-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(240px, 25vw, 340px);
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding: 0.5rem 2.5rem 0.75rem 2.5rem; /* room for nav buttons */
  scroll-behavior: smooth;
  /* Hide native scrollbar while keeping scroll */
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none;    /* Firefox */
}
.gallery-scroll::-webkit-scrollbar { display: none; height: 0; }

.gallery-item { scroll-snap-align: start; min-width: 240px; }
.gallery-item .card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-item .card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.12); }
.gallery-item img { display: block; }
.gallery-item .card-body { background: #fff; }

/* Gallery navigation buttons */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #198754; /* Bootstrap success green */
  border: 1px solid rgba(25,135,84,0.85);
  box-shadow: 0 6px 18px rgba(25,135,84,0.22);
  cursor: pointer;
  color: #ffffff;
}
.gallery-nav:hover { background: #157347; color: #fff; border-color: #157347; box-shadow: 0 8px 22px rgba(25,135,84,0.28); }
.gallery-nav[disabled], .gallery-nav[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.gallery-prev { left: 6px; }
.gallery-next { right: 6px; }

/* Green edge fades to blend with theme */
.gallery-wrapper::before,
.gallery-wrapper::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 28px;
  pointer-events: none;
  z-index: 1;
}
.gallery-wrapper::before { left: 0; background: linear-gradient(90deg, rgba(25,135,84,0.14), rgba(25,135,84,0)); }
.gallery-wrapper::after { right: 0; background: linear-gradient(270deg, rgba(25,135,84,0.14), rgba(25,135,84,0)); }

/* Lightbox */
.lightbox-modal .modal-dialog { max-width: none; }
.lightbox-modal .modal-body { padding: 0; background: #000; }
.lightbox-topbar { position: sticky; top: 0; z-index: 5; height: 56px; display: flex; align-items: center; justify-content: flex-end; background: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.55)); padding: 0 12px; }
.lightbox-close { width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(25,135,84,0.6); background: rgba(25,135,84,0.25); color: #fff; font-size: 28px; line-height: 38px; text-align: center; cursor: pointer; }
.lightbox-close:hover { background: rgba(21,115,71,0.4); border-color: rgba(21,115,71,0.9); }
.lightbox-stage { position: relative; background: #000; min-height: calc(100vh - 96px); }
.lightbox-stage img { width: 100%; max-height: calc(100vh - 64px); object-fit: contain; margin: 0 auto; display: block; }
.lightbox-caption { color: #f3f4f6; padding: 0.75rem 1rem; font-size: .95rem; background: #0b0b0b; }
.lightbox-control { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: rgba(25,135,84,0.25); color: #fff; border: 1px solid rgba(25,135,84,0.6); cursor: pointer; box-shadow: 0 4px 14px rgba(25,135,84,0.25); }
.lightbox-control:hover { background: rgba(21,115,71,0.4); border-color: rgba(21,115,71,0.9); }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

/* Testimonials slider: allow native horizontal scroll */
.testimonial-slider { overflow-x: auto; scroll-behavior: smooth; }
.testimonial-slider::-webkit-scrollbar { display: none; }
.testimonial-track { display: flex; gap: 16px; }
.testimonial-card { flex: 0 0 calc(100% / 2 - 10px); min-width: 300px; background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
@media (max-width: 991px){ .testimonial-card { flex-basis: calc(100% / 2 - 10px); } }
@media (max-width: 767px){ .testimonial-card { flex-basis: 100%; min-width: 85vw; } }

/* Compact vertical spacing between sections */
body .container-xxl.py-6 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
body .mx-auto.mb-5 { margin-bottom: 1.25rem !important; }
body .container-fluid.facts.py-5 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
body .footer.py-6 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
body .copyright.text-light.py-4 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
/********** Template CSS **********/
:root {
    --primary: #F3BD00;
    --secondary: #757575;
    --light: #F3F6F8;
    --dark: #0C2B4B;
    --gradient-primary: linear-gradient(135deg, #F3BD00 0%, #FFD700 100%);
    --gradient-dark: linear-gradient(135deg, #0C2B4B 0%, #1a4a7a 100%);
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

.phone-number {
  white-space: nowrap;
}

/* Enhanced Typography */
body {
    font-family: 'Work Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.display-2 {
    font-size: 3.5rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .display-2 {
        font-size: 2.5rem;
    }
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

/* Enhanced Back to Top Button */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Enhanced Spinner */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* Modern Button Enhancements */
.btn {
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Enhanced primary button */
.btn-primary {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 50%, #d35400 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 50%, #c0392b 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.5);
    color: white;
}

/* Enhanced outline button */
.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 50%, #d35400 100%);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

/* Button loading state */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::before {
    width: 300px;
    height: 300px;
}

.btn-square {
    width: 38px;
    height: 38px;
    border-radius: 8px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    transition: var(--transition);
}

.btn-square:hover,
.btn-sm-square:hover,
.btn-lg-square:hover {
    transform: scale(1.1);
}

/* Enhanced Navbar */
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95) !important;
    box-shadow: var(--shadow-light);
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px;
    transition: var(--transition);
}

.navbar .navbar-brand:hover {
    transform: scale(1.05);
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Enhanced Dropdown */
.navbar .dropdown-toggle::after {
    transition: var(--transition);
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-medium);
    border-radius: 12px;
    padding: 0.5rem 0;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar .dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border-radius: 0;
}

.navbar .dropdown-item:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(5px);
}

/* Enhanced Carousel */
.carousel-caption {
    background: linear-gradient(135deg, rgba(12, 43, 75, 0.8) 0%, rgba(12, 43, 75, 0.6) 100%);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-heavy);
}

.carousel-caption h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: slideInUp 1s ease;
}

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

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--gradient-primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    filter: invert(1);
}

/* Enhanced Facts Section */
.facts .bg-white {
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.facts .bg-white:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.facts .btn-lg-square {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-light);
}

/* Enhanced Courses Section */
.courses-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
}

.courses-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.courses-item .courses-overlay {
    background: linear-gradient(135deg, rgba(243, 189, 0, 0.9) 0%, rgba(255, 215, 0, 0.9) 100%);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.courses-item:hover .courses-overlay {
    opacity: 1;
    transform: scale(1.05);
}

/* Enhanced Team Section */
.team-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
}

.team-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.team-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.team-item:hover::after {
    opacity: 0.1;
}

.team-item .team-social {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: var(--transition);
}

.team-item:hover .team-social {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Enhanced Testimonials */
.testimonial-carousel .owl-dots {
    margin-top: 2rem;
    text-align: center;
}

/* Native testimonials slider */
.testimonial-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-slider {
    overflow: hidden;
    width: 100%;
}

.testimonial-track {
    display: flex;
    gap: 1rem;
    overflow-x: hidden; /* disable manual horizontal scrolling */
    scroll-snap-type: none; /* snap not needed when arrows control movement */
    scroll-padding: 1rem;
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
    touch-action: none; /* prevent swipe panning */
    overscroll-behavior-x: contain;
    transition: transform 0.4s ease; /* enable smooth arrow navigation */
}

/* Hide webkit scrollbar specifically for testimonial track */
.testimonial-track::-webkit-scrollbar { display: none; }

.testimonial-card {
    flex: 0 0 calc(100%/var(--ts-per-view,1));
    scroll-snap-align: start;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    padding: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
  .testimonial-card { flex-basis: calc(100%/var(--ts-per-view,2)); }
}

@media (min-width: 992px) {
  .testimonial-card { flex-basis: calc(100%/var(--ts-per-view,3)); }
}

.rating-stars { color: #F3BD00; font-size: 1.1rem; margin-bottom: 0.35rem; letter-spacing: 2px; }

.ts-btn {
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 10;
    cursor: pointer;
    user-select: none;
}

.ts-btn:hover { transform: translateY(-2px); }

.testimonial-dots { text-align:center; margin-top: 0.75rem; }
.testimonial-dots button {
    width: 10px; height: 10px; border-radius: 50%; border: none; margin: 0 4px; background: #ddd;
}
.testimonial-dots button.active { background: var(--primary); transform: scale(1.2); }

.testimonial-form textarea { resize: vertical; }

.testimonial-carousel .owl-dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
    background: #ddd;
    transition: var(--transition);
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.testimonial-carousel .owl-item img {
    border-radius: 50%;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.testimonial-carousel .owl-item img:hover {
    transform: scale(1.1);
}



/* Enhanced Mobile Responsiveness */
@media (max-width: 576px) {
    .phone-number {
        font-size: 0.9rem;
    }
    
    .navbar .navbar-nav .nav-link {
        margin-right: 15px;
        padding: 15px 0;
    }
    
    .carousel-caption {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .facts .bg-white {
        margin-bottom: 1rem;
    }
    
    .team-item {
        margin-bottom: 2rem;
    }
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 15px;
        padding: 15px 0;
    }
    
    .navbar .navbar-nav {
        text-align: center;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        margin-top: 0;
        border: none;
        box-shadow: var(--shadow-medium);
        border-radius: 12px;
        padding: 0.5rem 0;
    }
    
    .navbar .nav-item:hover .dropdown-menu {
        display: block;
        animation: fadeInDown 0.3s ease;
    }
}

/* Enhanced Page Header */
.page-header {
    background: var(--gradient-dark);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--primary);
    content: "›";
    font-weight: bold;
}

/* Enhanced Facts Section Positioning */
@media (min-width: 991.98px) {
    .facts {
        margin-top: -100px;
        position: relative;
        z-index: 1;
    }
}

/* Enhanced Collections Container */
#collectionsContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

#collectionsContainer button {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--dark);
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#collectionsContainer button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
}

#collectionsContainer button:hover::before,
#collectionsContainer button.active::before {
    left: 0;
}

#collectionsContainer button:hover,
#collectionsContainer button:focus {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Responsive Collections Container */
@media (max-width: 991.98px) {
    #collectionsContainer {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 767.98px) {
    #collectionsContainer {
        gap: 0.5rem;
    }
    
    #collectionsContainer button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    #collectionsContainer {
        flex-direction: column;
    }
    
    #collectionsContainer button {
        width: 100%;
        max-width: 250px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* Enhanced Form Elements */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: var(--transition);
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(243, 189, 0, 0.25);
}

/* Enhanced Cards */
.card {
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Enhanced Images */
.img-fluid {
    border-radius: 10px;
    transition: var(--transition);
}

.img-fluid:hover {
    transform: scale(1.02);
}

/* Enhanced Icons */
.fa, .fas, .far, .fab {
    transition: var(--transition);
}

.fa:hover, .fas:hover, .far:hover, .fab:hover {
    transform: scale(1.1);
}

/* Enhanced Language Selector */
.dropdown-menu {
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    border: none;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border-radius: 0;
}

.dropdown-item:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(5px);
}

/* Enhanced Social Media Buttons */
.btn-square {
    transition: var(--transition);
}

.btn-square:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced Progress Indicators */
.progress {
    height: 8px;
    border-radius: 4px;
    background: rgba(0,0,0,0.1);
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Enhanced Modal */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-heavy);
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.1);
    border-radius: 0 0 15px 15px;
}

/* Enhanced Alert */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: var(--shadow-light);
}

/* Enhanced Badge */
.badge {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

/* Enhanced Table */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.table thead th {
    background: var(--gradient-dark);
    color: white;
    border: none;
    font-weight: 600;
}

/* Enhanced Pagination */
.page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: none;
    transition: var(--transition);
}

.page-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    border: none;
}

/* Enhanced Tooltip */
.tooltip {
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

.tooltip-inner {
    border-radius: 6px;
    background: var(--dark);
}

/* Enhanced Popover */
.popover {
    border-radius: 12px;
    border: none;
    box-shadow: var(--shadow-medium);
}

.popover-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px 12px 0 0;
    border: none;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Enhanced Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* Enhanced Focus States */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Enhanced Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Enhanced Footer Styles */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    border-top: 3px solid var(--primary);
    color: #ffffff;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.footer-info {
    position: relative;
}

.footer-info h5 {
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li a {
    transition: var(--transition);
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.footer-links li a::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
}

.footer-links li a:hover::before {
    left: 0;
}

.footer-links li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links li a i {
    transition: var(--transition);
    color: var(--primary);
}

.footer-links li a:hover i {
    transform: scale(1.2);
}

.contact-info {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-info .d-flex {
    transition: var(--transition);
}

.contact-info .d-flex:hover {
    transform: translateX(5px);
}

.contact-info i {
    color: var(--primary);
}

.newsletter-section {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.newsletter-section .form-control {
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: white;
}

.newsletter-section .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-section .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(243, 189, 0, 0.25);
    background: rgba(255,255,255,0.15);
}

.social-links .btn-square {
    width: 45px;
    height: 45px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
    border: none;
}

.social-links .btn-square::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition);
}

.social-links .btn-square:hover::before {
    left: 100%;
}

.social-links .btn-square:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-medium);
}

.contact-button .btn {
    transition: var(--transition);
    border-width: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.contact-button .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
}

/* Enhanced Copyright */
.copyright {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ffffff;
}

.copyright a {
    transition: var(--transition);
    color: var(--primary);
}

.copyright a:hover {
    color: #FFD700 !important;
    text-decoration: none;
}

.copyright .text-decoration-none:hover {
    color: var(--primary) !important;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer .row {
        text-align: center;
    }
    
    .footer-info .d-flex {
        justify-content: center;
    }
    
    .contact-info {
        margin: 1rem 0;
    }
    
    .newsletter-section {
        margin: 1rem 0;
    }
    
    .social-links .d-flex {
        justify-content: center;
    }
    
    .contact-button {
        margin-top: 1rem;
    }
    
    .copyright .d-flex {
        flex-direction: column;
        gap: 0.5rem !important;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 3rem 0;
    }
    
    .footer h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .footer-links li a {
        padding: 6px 8px;
        font-size: 0.9rem;
    }
    
    .social-links .btn-square {
        width: 40px;
        height: 40px;
    }
    
    .newsletter-section .input-group {
        flex-direction: column;
    }
    
    .newsletter-section .btn {
        margin-top: 0.5rem;
    }
}

/* Footer Animation */
.footer.wow.fadeIn {
    animation-duration: 1s;
}

.footer .row > div {
    animation-delay: 0.2s;
}

.footer .row > div:nth-child(2) {
    animation-delay: 0.4s;
}

.footer .row > div:nth-child(3) {
    animation-delay: 0.6s;
}

.footer .row > div:nth-child(4) {
    animation-delay: 0.8s;
}

/* Footer Hover Effects */
.footer-info:hover {
    transform: translateY(-2px);
    transition: var(--transition);
}

.newsletter-section:hover {
    transform: translateY(-2px);
    transition: var(--transition);
}

/* Footer Icons Animation */
.footer i {
    transition: var(--transition);
}

.footer .d-flex:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Footer Links Hover Animation */
.footer-links li {
    position: relative;
}

.footer-links li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.footer-links li:hover::after {
    width: 100%;
}

/* Footer Social Media Hover Effects */
.social-links .btn-square:hover {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1.1);
    }
    40% {
        transform: translateY(-10px) scale(1.1);
    }
    60% {
        transform: translateY(-5px) scale(1.1);
    }
}

/* Footer Newsletter Success State */
.newsletter-section.success {
    background: rgba(40, 167, 69, 0.2);
    border: 2px solid #28a745;
}

.newsletter-section.success .form-control {
    border-color: #28a745;
}

/* Footer Loading State */
.newsletter-section.loading .btn {
    position: relative;
    overflow: hidden;
}

.newsletter-section.loading .btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

/* Footer Accessibility */
.footer a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.footer button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Footer RTL Support */
[dir="rtl"] .footer-links li a {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-info .d-flex {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-links li a:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .contact-info .d-flex:hover {
    transform: translateX(-5px);
}

/* Ensure Footer Content is Always Visible */
.footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer .container {
    display: block !important;
    visibility: visible !important;
}

.footer .row {
    display: flex !important;
    visibility: visible !important;
}

.footer .col-lg-4,
.footer .col-lg-2,
.footer .col-md-6 {
    display: block !important;
    visibility: visible !important;
}

.footer-info,
.footer-links,
.contact-info,
.newsletter-section,
.social-links,
.contact-button {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Enhanced Read More Buttons - Professional Design */
.btn-primary {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 50%, #d35400 100%);
    border: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 25px;
    border-radius: 25px;
    box-shadow: 0 3px 12px rgba(243, 156, 18, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
    color: white;
    text-decoration: none;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 25px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    box-shadow: 0 3px 12px rgba(243, 156, 18, 0.2);
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.5s;
    z-index: -1;
}

.btn-outline-primary:hover::before {
    left: 0;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.3);
    color: white;
    border-color: var(--primary);
    text-decoration: none;
}

/* Button size variations */
.btn.py-3.px-5 {
    padding: 12px 30px !important;
    font-size: 1rem !important;
}

.btn.border-2 {
    border-width: 2px !important;
}

/* Button animations */
.btn {
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: translateY(-1px);
}

/* Focus states for accessibility */
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(243, 189, 0, 0.25);
    outline: none;
}

/* Button with icons */
.btn i {
    margin-right: 6px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(2px);
}