/* --- LOCAL FONTS IMPORT --- */
/* Light (300) */
@font-face {
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 300;
  src: url('../assets/fonts/League Spartan/LeagueSpartan-Light.ttf') format('truetype');
}
/* Regular (400) */
@font-face {
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 400;
  src: url('../assets/fonts/League Spartan/LeagueSpartan-Regular.ttf') format('truetype');
}
/* Medium (500) */
@font-face {
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 500;
  src: url('../assets/fonts/League Spartan/LeagueSpartan-Medium.ttf') format('truetype');
}
/* SemiBold (600) */
@font-face {
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 600;
  src: url('../assets/fonts/League Spartan/LeagueSpartan-SemiBold.ttf') format('truetype');
}
/* Bold (700) */
@font-face {
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 700;
  src: url('../assets/fonts/League Spartan/LeagueSpartan-Bold.ttf') format('truetype');
}
/* Black (900) */
@font-face {
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 900;
  src: url('../assets/fonts/League Spartan/LeagueSpartan-Black.ttf') format('truetype');
}

:root {
    --primary: #3aa2e8;
    --secondary: #e8ac16;
    --accent: #49b9f5;
    --success: #00de51;
    --dark: #1e293b;
    --light: #f8fafc;
    --radius: 12px;
    --navbar-height: 80px;
}

body, h1, h2, h3, h4, h5, h6, p, a, li, .btn, .navbar-brand {
    font-family: 'League Spartan', sans-serif !important;
}

body {
    color: var(--dark);
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVBAR --- */
.navbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.06);
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}
.navbar-brand img {
    height: 45px;
    width: auto;
}
.nav-link {
    color: var(--dark);
    border-radius: 5px;
    font-weight: 500;
    margin-right: 1rem;
    transition: color 0.2s, background-color 0.2s;
}
.navbar-nav .nav-link {
    border: 1px solid var(--secondary);
}
.nav-link:hover,
.nav-link.active {
    background-color: var(--secondary);
}

/* --- BUTTONS --- */
.btn {
    border-radius: 0.5rem; /* Less rounded corners to match Arabic version */
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-primary {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: #fff !important;
    border-radius: 0.5rem; /* Ensure consistency with navigation buttons */
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--dark) !important;
    border-color: var(--dark) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12) !important;
}
.btn-warning {
    background: var(--secondary);
    border: none;
    color: #fff;
}
.btn-warning:hover {
    background: var(--dark);
    color: var(--light);
}

/* --- AUTH AVATAR & DROPDOWN --- */
.user-avatar-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    user-select: none;
}
.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    z-index: 1100;
    padding: 0.75rem;
}
.user-dropdown.show-dropdown {
    display: block;
}
.dropdown-email {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#auth-toggle i.fa-right-to-bracket {
    font-size: 1.1em;
    margin-top: -2px;
}

/* --- HERO SECTION --- */
.hero-section {
  padding: 100px 0 80px;
  position: relative;
  background: linear-gradient(90deg, #5de0e6, #004aad);
  color: #fff;
  overflow: hidden;
  min-height: 600px;
}
.hero-content {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-text-wrapper {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  position: relative;
  z-index: 3;
}
.hero-text-box {
  padding: 30px;
  max-width: 600px;
}
.hero-text-col {
  padding: 0;
}

/* Hero image styles */
.hero-image {
  position: absolute;
  right: -190px; /* Move further away from text */
  top: 50%;
  transform: translateY(-50%);
  max-width: 90%; /* 3x larger than before (40% * 3 = 120%) */
  height: auto;
  z-index: 2;
}

/* RTL hero image styles */
[dir="rtl"] .hero-image {
  right: auto;
  left: -50px; /* Move further away from text */
}
/* Apply stroke effect to hero title */
.hero-section h1 {
  color: transparent; /* Hide the white fill */
  -webkit-text-stroke: 2px #fff; /* Add a 2px white border */
  display: inline-block; /* Helps with rendering */
  font-family: 'League Spartan', sans-serif;
  font-weight: 900 !important; /* Forces the heavy "Black" font */
  text-transform: uppercase !important; /* Makes it ALL CAPS */
  line-height: 1.1; /* Tighter spacing for big capital letters */
  font-size: 3.8rem; /* Make it slightly bigger to match the boldness */
  max-width: 500px; /* Smaller width to force text into exactly 2 lines */
  word-wrap: break-word; /* Ensure words break if needed */
}

/* Fix Hero section alignment */
.hero-text-box ul, .hero-text-box li {
  padding: 0;
  margin: 0;
}
.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 600px;
  opacity: 0.9;
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 200px;
}
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.feature-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-text p {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.8;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-btn {
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.hero-btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: left;
  }
  .hero-text-wrapper {
    justify-content: center;
  }
  .hero-text-box {
    max-width: 90%;
  }
}
@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-actions {
    justify-content: flex-start;
  }
  .feature-item {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }
}


/* --- SERVICES SECTION --- */
.services-section {
    padding: 4rem 0 2rem;
}
.section-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2.5rem;
    text-align: center;
    font-size: 2rem;
}
.service-card {
    text-align: left;
    background: var(--light);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.06);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card .service-icon {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.service-card .service-title {
    text-align: center;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}
.service-card p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.8;
}
/* 2. Style the new "More" button element */
.service-card-cta {
    display: inline-flex;  /* Allows us to align text and icon */
    align-items: center;    /* Vertically centers the text and icon */
    gap: 0.5rem;            /* Creates space between the text and icon */
    
    background-color: var(--primary); /* Uses your theme's primary blue */
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;    /* Pill-shaped to match other buttons */
    
    margin-top: auto;       /* This is the key: it pushes the button to the bottom */
    padding-top: 0.5rem;    /* Ensures consistent top padding */
    align-self: center;     /* Horizontally centers the button within the card */
    text-decoration: none; 
}
.service-card-cta:hover {
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.1);
    transform: translateY(-2px);
}

/* --- HOW SECTION --- */
.how-section {
    background: #fff;
    padding: 3rem 0 2rem;
}
.how-step {
    text-align: center;
    background: var(--light);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.06);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s, transform 0.2s;
}
.how-step:hover {
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.1);
}
.how-step .step-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.how-step-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

/* --- START: RESOURCES SECTION --- */
.resources-section {
    padding: 4rem 0;
    position: relative; /* This is crucial for positioning the arrow */
    background-color: var(--light); /* A light background to stand out */
}

/* The main carousel container */
#resourcesCarousel {
    max-width: 720px; /* Constrains the width for a focused look */
    margin: 0 auto;   /* Centers the carousel horizontally */
    position: relative; /* Allows absolute positioning of the arrow */
}

/* The card containing the resource information */
.resource-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.08);
    border: 1px solid #e5e7eb;
    text-align: center;
    min-height: 280px; /* Ensures all cards have the same height */

    /* Flexbox helps push the "Visit" link to the bottom */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resource-logo {
    max-height: 80px; /* Controls the logo size */
    margin-bottom: 1.5rem;
}

.resource-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.resource-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* The "Visit" link, styled to look like a button */
.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
    
    margin-top: auto; /* This pushes the link to the bottom of the card */
}

.resource-link:hover {
    background-color: var(--dark);
    transform: translateY(-2px);
    color: #fff;
}

/* The custom navigation arrow, positioned outside the card */
.custom-carousel-control-resources {
    position: absolute;
    top: 50%; /* Aligns with the vertical center of the card area */
    right: -70px; /* Positions it on the right side of the container */
    transform: translateY(-50%);

    width: 45px;
    height: 45px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.custom-carousel-control-resources:hover {
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.15);
    transform: translateY(-50%) scale(1.05);
}

/* Add the arrow icon using Font Awesome */
.custom-carousel-control-resources::after {
    content: "\f054"; /* Font Awesome right arrow unicode */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
    color: var(--primary);
}

/* The custom PREVIOUS navigation arrow */
.custom-carousel-control-prev-resources {
    position: absolute;
    top: 50%;
    /* This positions it to the LEFT of the card */
    left: -70px; 
    transform: translateY(-50%);
    
    width: 45px;
    height: 45px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 1;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.custom-carousel-control-prev-resources:hover {
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.15);
    transform: translateY(-50%) scale(1.05);
}

/* Use the Font Awesome LEFT arrow icon */
.custom-carousel-control-prev-resources::after {
    content: "\f053"; /* Font Awesome LEFT arrow unicode */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
    color: var(--primary);
}

/* --- RESPONSIVENESS FOR BOTH ARROWS --- */

/* Adjust arrow positions on medium screens */
@media (max-width: 1199.98px) {
    .custom-carousel-control-resources {
        right: -60px;
    }
    .custom-carousel-control-prev-resources {
        left: -60px;
    }
}

/* On smaller screens, hide the side arrows... */
@media (max-width: 991.98px) {
    .custom-carousel-control-resources,
    .custom-carousel-control-prev-resources {
        display: none;
    }
    
    /* ...and create a new navigation area below the carousel instead. */
    #resourcesCarousel::after {
        content: ''; /* Required for the nav to appear */
        display: block;
        text-align: center;
        margin-top: 1.5rem;
    }
    
    #resourcesCarousel .carousel-control-prev,
    #resourcesCarousel .carousel-control-next {
        display: inline-flex; /* Make them visible again */
        position: relative;
        transform: none;
        width: 45px;
        height: 45px;
        opacity: 1;
        background-color: #fff;
        box-shadow: 0 4px 12px rgba(30, 41, 59, 0.1);
        margin: 0 0.5rem;
    }
}

/* --- END: RESOURCES SECTION --- */


/* --- CONTACT SECTION --- */
.contact-section {
    padding: 4rem 0 2rem;
    background: #fff;
}
.contact-form {
    background: var(--light);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.06);
    border: 1px solid #e5e7eb;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.form-control,
.form-select {
    border-radius: var(--radius);
    border: 1px solid #d1d5db;
    padding: 0.7rem 1rem;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

/* Styles for Contact Form Feedback Message */
#contactFormMessage {
  padding: 10px;
  border-radius: 5px;
  font-weight: 600;
  margin-bottom: 1rem; /* Adjust as needed */
  display: none; /* Initially hidden, JS will show it */
  text-align: center;
}

/* --- START: STYLES FOR SERVICE DETAIL PAGES --- */
.page-header {
    padding: 4rem 0;
    background-color: var(--light);
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}
.page-title {
    font-weight: 800;
    color: var(--dark);
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}
.page-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 650px;
    margin: 0 auto;
}
.service-detail-section {
    padding: 4rem 0;
}
.service-detail-section:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}
/* --- START: SERVICE CATEGORY LIST STYLES --- */

/* Styles for each category block (e.g., Legal Translation, Technical Translation) */
.service-category {
    margin-bottom: 1.75rem; /* Creates vertical space between each category block */
}

/* A flex container to neatly align the icon and title on the same horizontal line */
.category-header {
    display: flex;
    align-items: center; /* Vertically aligns the icon and title */
    gap: 0.75rem;      /* Creates a small space between the icon and the title */
    margin-bottom: 0.5rem; /* Space between the header and the list of items below it */
}

/* Styles for the checkmark icon in front of the title */
.category-icon {
    font-size: 1.1rem;      /* Makes the icon slightly smaller than the text for balance */
    color: var(--success); /* Uses your theme's green color for the icon */
}

/* Styles for the title of each category */
.category-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem; /* Increased for better separation */
  color: var(--primary);
}

.category-items {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin: 0; /* Ensure no conflicting margin */
}
/* --- END: SERVICE CATEGORY LIST STYLES --- */

.feature-card {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid #e5e7eb;
    height: 100%;
}
.feature-card .icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.cta-section {
    background: var(--dark);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.cta-section h2 {
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.cta-section p {
    max-width: 500px;
    margin: 0 auto 1.5rem auto;
    color: #cbd5e1;
}
/* --- END: STYLES FOR SERVICE DETAIL PAGES --- */

/* --- START: ABOUT US PAGE STYLES --- */
.team-section {
    padding: 4rem 0;
    background-color: var(--light); /* A light background to stand out */
}

.team-card {
    text-align: center;
    background-color: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.12);
}

.team-card-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    border: 4px solid var(--secondary); /* Uses your theme's gold color */
}

.team-card-name {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.team-card-role {
    color: #64748b; /* Muted secondary text color */
    font-size: 0.95rem;
}
/* --- END: ABOUT US PAGE STYLES --- */

/* --- UTILITIES --- */
#services,
#how,
#testimonials,
#faq,
#contact {
    scroll-margin-top: var(--navbar-height);
}
.quote-slide-btn {
    position: fixed;
    top: calc(var(--navbar-height) + 18px);
    right: -250px;
    z-index: 1050;
    transition: right 0.6s cubic-bezier(0.77, 0, 0.18, 1);
    box-shadow: 0 4px 16px rgba(30, 41, 59, 0.13);
    border-radius: 2rem;
    opacity: 0.98;
}
.quote-slide-btn.show {
    right: 32px;
}
a#quoteSlideBtn.quote-slide-btn {
    position: fixed !important;
    top: calc(var(--navbar-height) + 18px);
    right: -220px !important;
    z-index: 1050;
    transition: right 0.6s cubic-bezier(0.77, 0, 0.18, 1);
    box-shadow: 0 4px 16px rgba(30, 41, 59, 0.13);
    border-radius: 2rem;
    opacity: 0.98;
}
a#quoteSlideBtn.quote-slide-btn.show {
    right: 32px !important;
}
@media (max-width: 991px) {
    .quote-slide-btn {
        display: none !important;
    }
}

/* --- FOOTER --- */
.footer {
    background: var(--dark);
    color: #fff;
    padding: 2.5rem 0 1.5rem;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}
.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}
.footer-link:hover {
    color: var(--accent);
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}
.social-icon {
    color: #fff;
    font-size: 1.4rem;
    transition: color 0.2s, transform 0.2s;
}
.social-icon:hover {
    color: var(--success);
    transform: translateY(-2px) scale(1.1);
}
.footer small,
.footer p {
    color: #cbd5e1;
}

/* --- MODALS & OVERLAY --- */
#auth-toggle {
    padding-top: 0.6rem; /* Slightly increase padding */
    padding-bottom: 0.6rem; /* Slightly increase padding */
    font-size: 1rem;
    line-height: 1.6; /* Adjust line-height for better alignment */
    border-radius: 0.5rem; /* Ensure consistent corner rounding */
}
#auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    justify-content: center;
    align-items: center;
}
#auth-modal .modal-content {
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 400px;
    width: 90%;
    position: relative;
}
#auth-modal h2 {
    margin-top: 0;
    text-align: center;
    color: var(--primary);
}
#auth-modal hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #ddd;
}
#auth-modal .or-text {
    text-align: center;
    margin: 10px 0 20px;
    color: #666;
    font-weight: 500;
}
.google-btn {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 15px 0;
    font-weight: 500;
    transition: background-color 0.2s;
}
.google-btn:hover {
    background-color: #f1f1f1;
}
.google-btn i {
    margin-right: 10px;
    color: #4285f4;
    font-size: 1.2rem;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1049;
    backdrop-filter: blur(5px);
    display: none;
}
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.close-btn:hover {
    color: #1e293b;
    background-color: rgba(0, 0, 0, 0.05);
}

/* --- START: RESPONSIVE STYLES --- */

/* Tablet (Screens less than 992px) */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.75rem 15px !important;
    }
    .navbar-brand img {
        margin-left: 5px !important;
    }
    .navbar-toggler {
        margin-right: 5px;
    }
    .nav-link {
        margin-right: 0.5rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    .hero-section .row {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    .hero-text-col,
    .hero-section .col-lg-6.text-center {
        border-radius: var(--radius);
        min-height: auto;
        height: auto;
        padding: 1.5rem;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    .hero-text-col {
        border-radius: var(--radius);
    }
    .hero-section .hero-image {
        border-radius: var(--radius);
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-image {
        width: 100%;
        min-height: 350px;
        object-position: center;
    }
    .testimonial-card,
    .contact-form {
        max-width: 100%;
        padding: 1.5rem;
    }
    .testimonial-card {
        padding-bottom: 4rem;
        min-height: auto;
    }
    .custom-carousel-control {
        position: relative;
        top: auto;
        right: auto;
        margin: 1.5rem auto 0;
        display: block;
    }
    .navbar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .nav-link {
        margin-right: 0;
        padding: 0.5rem 0.75rem !important;
    }
}

/* Mobile (Screens less than 576px) */
@media (max-width: 575.98px) {
    .navbar-brand img {
        height: calc(65px * 0.65);
        width: auto;
    }
    body {
        padding-left: 0;
        padding-right: 0;
    }
    .navbar {
        padding: 0.75rem 0 !important;
        margin-left: 0;
        margin-right: 0;
        width: 100vw;
        left: 0;
        right: 0;
        position: fixed;
        top: 0;
        z-index: 1020;
    }
    .navbar > .container {
        max-width: 100vw;
        padding-left: 15px;
        padding-right: 15px;
        margin: 0;
        width: 100%;
    }
    .navbar-brand img {
        margin-left: 10px;
    }
    .navbar-toggler {
        margin-right: 10px;
    }
    .hero-section {
        padding: 0;
        margin: 0;
        width: 100%;
        padding-top: var(--navbar-height); /* Add padding to avoid overlap with fixed navbar */
    }
    .hero-section .col-lg-6.text-center {
        display: none !important; /* Hide image on mobile */
    }
    .hero-text-col {
        border-radius: 0 !important;
        min-height: auto;
        width: 100vw;
        margin-left: 0;
        margin-right: 0;
        padding: 2rem 15px;
        background: var(--primary);
    }
    .footer {
        margin-left: 0;
        margin-right: 0;
        padding-left: 15px;
        padding-right: 15px;
        width: 100vw;
    }
    .testimonial-card {
        padding-bottom: 2rem;
    }
    .custom-carousel-control {
        bottom: 1rem;
    }
}