/* --- GLOBAL/BASE STYLES --- */
body {
    font-family: 'Poppins', sans-serif; /* Consistent font */
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Crucial for responsive layouts */
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

*, *::before, *::after {
    box-sizing: border-box; /* Ensure box-sizing applies to all elements */
}

.container {
    max-width: 1200px; /* Or match your template's container width */
    margin: 0 auto;
    padding: 0 15px; /* Padding on sides for smaller screens */
}

/* Basic Section Padding */
.section {
    padding: 80px 0; /* Standard top/bottom padding for sections */
}

.section-subtitle {
    display: block;
    text-align: center;
    color: #f39c12; /* Your accent color */
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    color: #2c3e50; /* Your dark heading color */
    margin-bottom: 50px;
    line-height: 1.3;
}

/* Base Button Styles */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    white-space: nowrap; /* Prevent button text wrapping unexpectedly */
}

.btn-primary, .header-btn {
    background-color: #007bff; /* Primary brand color (blue for default) */
    color: #fff;
    border: 1px solid #007bff;
}
.btn-primary:hover, .header-btn:hover {
    background-color: #0056b3; /* Darker shade on hover */
    border-color: #0056b3;
}

.btn-secondary {
    background-color: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}
.btn-secondary:hover {
    background-color: #007bff;
    color: #fff;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 14px;
    background-color: #f39c12; /* Match your top-bar button color */
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: none;
}

.btn-sm:hover {
    background-color: #e67e22;
}

/* --- TOP BAR STYLES --- */
.top-bar {
    background-color: #2c3e50; /* Dark background */
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.top-info span,
.top-contact a {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    color: #fff; /* Ensure text color is white */
}
.top-info span:last-child,
.top-contact a:last-of-type { /* Adjust if you have multiple links/spans */
    margin-right: 0;
}

.top-contact a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-contact a:hover {
    color: #f39c12; /* Highlight color */
}

.top-bar .social-icons {
    display: inline-flex;
    margin-left: 10px; /* Space from phone number */
}

.top-bar .social-icons a {
    width: 25px; /* Size for social icons */
    height: 25px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    margin: 0 5px;
    color: #fff; /* Ensure social icons are white */
}
.top-bar .social-icons a:hover {
    background-color: #f39c12;
}


/* --- MAIN HEADER STYLES --- */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative; /* For dropdowns and mobile menu */
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure nav takes full width */
}

/* Header Logo */
.main-header .logo {
    flex-shrink: 0; /* Prevents logo from shrinking */
    margin-right: 30px; /* Space between logo and menu */
}

.main-header .logo img {
    max-height: 70px; /* Adjust as needed for desktop view */
    width: auto;
    display: block; /* Removes extra space below image */
}

/* Main Menu */
.main-header .main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Use flexbox for horizontal menu */
    flex-grow: 1; /* Allows menu to take available space */
    justify-content: flex-start; /* Align menu items to the start */
}

.main-header .main-menu li {
    position: relative;
    margin-right: 30px; /* Space between main menu items */
}

.main-header .main-menu li:last-child {
    margin-right: 0;
}

.main-header .main-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.main-header .main-menu a:hover,
.main-header .main-menu li.has-dropdown a:hover {
    color: #f39c12;
}

/* Dropdown Menu (Submenu) */
.main-header .submenu {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    position: absolute;
    top: 100%; /* Position below parent */
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    border-top: 3px solid #f39c12; /* Highlight border */
}

.main-header .has-dropdown:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-header .submenu li {
    margin: 0; /* Remove margin from submenu items */
}

.main-header .submenu a {
    padding: 10px 20px;
    color: #555;
    white-space: nowrap; /* Prevents text wrapping */
}

.main-header .submenu a:hover {
    background-color: #f5f5f5;
    color: #f39c12;
}

.main-header .dropdown-arrow {
    font-size: 10px;
    margin-left: 5px;
}

/* Header Action (Phone and Button) */
.main-header .header-action {
    display: flex;
    align-items: center;
    margin-left: 30px; /* Space between menu and action items */
    flex-shrink: 0; /* Prevents actions from shrinking */
}

.main-header .header-phone {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    margin-right: 20px;
    display: flex;
    align-items: center;
}

/* --- HERO SECTION --- */
.hero-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    height: 600px; /* Adjust as needed */
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: left;
    position: relative;
}
/* Overlay for better text readability */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px; /* Limit content width */
}

.hero-content span {
    font-size: 18px;
    font-weight: 500;
    color: #f39c12;
    display: block;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-content .btn {
    margin-right: 15px;
    margin-bottom: 10px; /* For mobile stacking */
}

/* Owl Carousel Customizations for Hero Slider */
.hero-slider-section .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5) !important;
    color: #fff !important;
    font-size: 24px !important;
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    opacity: 0.7;
}

.hero-slider-section .owl-nav button:hover {
    opacity: 1;
    background: #f39c12 !important;
}

.hero-slider-section .owl-prev {
    left: 20px;
}

.hero-slider-section .owl-next {
    right: 20px;
}

.hero-slider-section .owl-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.hero-slider-section .owl-dots .owl-dot span {
    background: rgba(255,255,255,0.5);
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
    display: block;
    transition: background-color 0.3s ease;
}

.hero-slider-section .owl-dots .owl-dot.active span {
    background: #f39c12;
}


/* --- ABOUT SECTION --- */
.about-content-grid {
    display: flex;
    align-items: center;
    gap: 50px; /* Space between columns */
    flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
}

.about-image-col {
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
    position: relative;
}

.about-image-col img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.experience-box {
    background-color: #f39c12;
    color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    position: absolute;
    bottom: -30px; /* Position slightly outside the image */
    right: -30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.experience-box .counter-number {
    font-size: 48px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.experience-box p {
    font-size: 16px;
    margin: 0;
}

.about-text-col {
    flex: 1.5; /* Takes more space than the image column */
    min-width: 300px; /* Minimum width before wrapping */
}

.about-text-col .section-subtitle {
    text-align: left;
}

.about-text-col .section-title {
    text-align: left;
    margin-bottom: 20px;
    font-size: 32px; /* Smaller for section content */
}

.about-text-col p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.about-features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.about-features .check-icon {
    color: #007bff; /* Checkmark color */
    margin-right: 10px;
    font-size: 18px;
}


/* --- FEATURES SECTION --- */
.features-section {
    background-color: #f8f9fb; /* Light background */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-item .icon-box {
    width: 70px;
    height: 70px;
    background-color: #f39c12;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.feature-item h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 15px;
    color: #666;
}


/* --- SERVICES SECTION --- */
.services-section {
    background-color: #fff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #f8f9fb; /* Light background for service cards */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.service-item .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #007bff; /* Icon color */
    background-color: rgba(0,123,255,0.1); /* Light background for icon */
    border-radius: 50%;
}

.service-item .service-icon img {
    max-width: 100%; /* If using image icons */
    height: auto;
}

.service-item h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

.service-item .read-more {
    color: #f39c12;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.service-item .read-more:hover {
    color: #e67e22;
}

.service-item .arrow-right {
    margin-left: 8px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.service-item .read-more:hover .arrow-right {
    transform: translateX(5px);
}


/* --- COUNTRIES SECTION --- */
.countries-section {
    background-color: #eef1f6;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.country-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden; /* Ensures image corners are rounded */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.country-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.country-item img {
    width: 100%;
    height: 200px; /* Fixed height for flags */
    object-fit: cover; /* Ensures images cover the area without distortion */
    display: block;
}

.country-item h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 10px;
}

.country-item p {
    font-size: 15px;
    color: #666;
    padding: 0 20px;
    margin-bottom: 20px;
}

.country-item .btn-read-more {
    display: inline-flex;
    align-items: center;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 20px;
    transition: color 0.3s ease;
}

.country-item .btn-read-more:hover {
    color: #f39c12;
}

.country-item .btn-read-more .arrow-right {
    margin-left: 8px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.country-item .btn-read-more:hover .arrow-right {
    transform: translateX(5px);
}


/* --- CTA SECTION --- */
.cta-section {
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: #fff;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 40px;
}


/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    background-color: #f8f9fb;
}

.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    text-align: left;
    min-height: 220px; /* Ensure consistent height */
}

.testimonial-card .client-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-card .client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid #f39c12;
}

.testimonial-card .client-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.testimonial-card .client-info span {
    font-size: 14px;
    color: #888;
    display: block;
}

.testimonial-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 10px;
}

.testimonial-card .quote-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 40px;
    color: #f39c12;
    opacity: 0.1;
}

.testimonials-section .owl-dots {
    margin-top: 30px;
    text-align: center;
}

.testimonials-section .owl-dots .owl-dot span {
    background: #ccc;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.testimonials-section .owl-dots .owl-dot.active span {
    background: #f39c12;
}


/* --- BLOG SECTION --- */
.blog-section {
    background-color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-item:hover .blog-image img {
    transform: scale(1.05);
}

.blog-image .post-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: #f39c12;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

.blog-image .post-date span {
    display: block;
    font-size: 24px;
    line-height: 1;
}

.blog-content {
    padding: 25px;
}

.blog-content .post-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.blog-content .post-meta span {
    margin-right: 15px;
}

.blog-content .post-meta i {
    margin-right: 5px;
    color: #007bff;
}

.blog-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: #f39c12;
}

.blog-content p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

.blog-content .read-more {
    color: #f39c12;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.blog-content .read-more:hover {
    color: #e67e22;
}

.blog-content .arrow-right {
    margin-left: 8px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.blog-content .read-more:hover .arrow-right {
    transform: translateX(5px);
}


/* --- PARTNERS SECTION --- */
.partners-section {
    padding: 50px 0;
    background-color: #f0f2f5;
}

.partner-logo {
    text-align: center;
    padding: 10px 20px;
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo img:hover {
    opacity: 1;
}

.partners-section .owl-nav,
.partners-section .owl-dots {
    display: none; /* Hide nav and dots for partner logos usually */
}


/* --- FOOTER STYLES --- */
.main-footer {
    background-color: #2c3e50; /* Dark footer background */
    color: #ecf0f1;
    padding: 60px 0 20px;
    font-size: 15px;
}

.main-footer .container {
    padding-bottom: 30px;
}

.main-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.main-footer .footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
}

.main-footer .footer-col h4::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #f39c12;
}

.main-footer .footer-logo {
    margin-bottom: 20px;
}

.main-footer .footer-logo img {
    max-height: 80px; /* Adjust footer logo size */
    width: auto;
    display: block;
}

.main-footer p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.main-footer .footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.main-footer .footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.main-footer .footer-social a:hover {
    background-color: #f39c12;
}

.main-footer .footer-links ul,
.main-footer .footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer .footer-links li,
.main-footer .footer-contact li {
    margin-bottom: 10px;
}

.main-footer .footer-links a,
.main-footer .footer-contact a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: flex-start; /* For multi-line addresses */
}

.main-footer .footer-links a:hover,
.main-footer .footer-contact a:hover {
    color: #f39c12;
}

.main-footer .footer-contact i {
    margin-right: 10px;
    font-size: 16px;
    margin-top: 3px; /* Adjust for vertical alignment */
}

.main-footer .newsletter-form {
    display: flex;
    margin-top: 20px;
}

.main-footer .newsletter-form input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    background-color: rgba(255,255,255,0.15);
    color: #fff;
}

.main-footer .newsletter-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

.main-footer .newsletter-form button {
    background-color: #f39c12;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    color: #fff;
    transition: background-color 0.3s ease;
}

.main-footer .newsletter-form button:hover {
    background-color: #e67e22;
}

.main-footer .footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    margin-top: 30px;
}

.main-footer .footer-bottom-bar p {
    margin: 0;
}


/* --- RESPONSIVE STYLES (Place at the very end of your CSS file) --- */

/* Tablet & Smaller Desktops */
@media (max-width: 992px) {
    .top-info span,
    .top-contact a,
    .top-bar .social-icons,
    .top-bar .btn-sm {
        margin-right: 15px; /* Reduce spacing in top bar */
    }

    .main-header .main-menu {
        margin-right: 10px; /* Adjust menu spacing */
    }

    .main-header .main-menu li {
        margin-right: 15px; /* Smaller space between menu items */
    }

    .main-header .header-action {
        margin-left: 15px;
    }

    .main-header .header-phone {
        display: none; /* Hiding for most tablets to simplify header */
    }

    .main-header .btn {
        padding: 10px 20px; /* Smaller button */
    }

    .hero-content h1 {
        font-size: 50px;
    }

    .about-content-grid {
        gap: 30px;
        flex-direction: column; /* Stack on tablets */
    }
    .about-image-col, .about-text-col {
        min-width: unset; /* Remove min-width for stacking */
        width: 100%;
    }
    .experience-box {
        bottom: 10px;
        right: 10px;
    }

    .section-title {
        font-size: 32px;
    }

    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Allow two columns if space permits */
    }
}


/* Mobile Devices (Typically 768px and below) */
@media (max-width: 768px) {
    .section {
        padding: 60px 0; /* Less padding on mobile */
    }
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    /* Top Bar adjustments */
    .top-bar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px; /* Space between stacked items */
    }
    .top-info, .top-contact {
        width: 100%; /* Make info/contact sections take full width */
        justify-content: center; /* Center content within them */
        display: flex; /* Use flex to center items in these wrappers */
        flex-wrap: wrap; /* Allow wrapping within these sections */
    }
    .top-info span,
    .top-contact a,
    .top-bar .social-icons {
        margin-right: 10px; /* Add small space between stacked items */
        margin-bottom: 5px; /* Added for stacking clarity */
    }
    .top-bar .btn-sm {
        display: block; /* Make button block level */
        width: 100%; /* Full width button */
        margin: 10px 0 0 0; /* Top margin to separate from other contact items */
    }


    /* Main Header adjustments */
    .main-header nav {
        flex-wrap: wrap; /* Allow navigation items to wrap */
        justify-content: space-between; /* Logo left, toggle right */
    }

    .main-header .logo {
        margin-right: 0; /* No right margin */
        flex-grow: 1; /* Allow logo area to grow if needed */
        text-align: left; /* Keep logo to the left */
        order: 1; /* Keep logo first */
    }

    .main-header .logo img {
        max-height: 50px; /* Adjust logo size for mobile */
    }

    .main-header .header-action {
        order: 3; /* Push action items to the next line or end */
        width: 100%; /* Take full width */
        justify-content: center; /* Center the phone/button */
        margin-top: 15px;
        margin-left: 0;
        flex-wrap: wrap; /* Allow phone and button to wrap within action block */
    }

    .main-header .header-phone {
        display: inline-flex; /* Show phone number again */
        margin-right: 15px;
        margin-bottom: 10px; /* Space between phone and button */
    }

    .main-header .btn {
        width: auto; /* Allow button to size naturally */
        padding: 10px 20px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex; /* Show hamburger icon */
        order: 2; /* Place toggle after logo */
        margin-left: 15px; /* Space from logo */
    }

    /* Main Menu (Mobile View - Hidden by default) */
    .main-header .main-menu {
        display: none; /* Hide desktop menu */
        flex-direction: column; /* Stack menu items vertically */
        width: 100%;
        background-color: #fff; /* Ensure menu background is white */
        position: absolute;
        top: 100%; /* Position right below header */
        left: 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 10px 0;
        border-top: 1px solid #eee; /* Visual separator */
    }

    .main-header .main-menu.active { /* Class toggled by JS */
        display: flex; /* Show menu when active */
    }

    .main-header .main-menu li {
        margin: 0; /* Remove horizontal margins */
        border-bottom: 1px solid #eee; /* Separator for menu items */
    }

    .main-header .main-menu li:last-child {
        border-bottom: none;
    }

    .main-header .main-menu a {
        padding: 12px 20px; /* More padding for tap targets */
        text-align: left; /* Align text left */
    }

    /* Submenu for Mobile */
    .main-header .submenu {
        position: static; /* Submenu becomes part of the flow */
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        border-top: none;
        padding: 0 0 10px 20px; /* Indent submenu items slightly */
        background-color: #f8f8f8; /* Slightly different background for submenus */
    }

    .main-header .submenu a {
        padding: 8px 15px;
        font-size: 14px;
    }

    /* Override desktop hover effect for touch devices, if needed */
    .main-header .has-dropdown:hover > .submenu {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    /* Hero Section */
    .hero-slide {
        height: 500px; /* Shorter hero on mobile */
    }
    .hero-content h1 {
        font-size: 38px;
    }
    .hero-content p {
        font-size: 16px;
    }

    .experience-box {
        position: static; /* Remove absolute positioning on mobile */
        margin-top: 20px; /* Add space below image */
        margin-left: auto;
        margin-right: auto;
    }

    /* Footer adjustments */
    .footer-grid {
        grid-template-columns: 1fr; /* Stack footer columns on mobile */
        text-align: center;
    }

    .main-footer .footer-col h4::before {
        left: 50%;
        transform: translateX(-50%); /* Center the underline */
    }

    .main-footer .footer-social {
        justify-content: center;
    }

    .main-footer .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    .main-footer .newsletter-form input {
        border-radius: 5px;
        width: 90%;
        margin-bottom: 10px;
    }
    .main-footer .newsletter-form button {
        border-radius: 5px;
        width: 90%;
    }
}

/* Adjustments for very small screens (e.g., iPhone 5/SE) */
@media (max-width: 480px) {
    .main-header .header-phone {
        margin-right: 0;
        width: 100%;
        justify-content: center;
    }
    .main-header .btn {
        width: 100%;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-content .btn {
        display: block;
        width: 100%;
        margin-right: 0;
    }

    .your-menu-class {
        position: fixed;
        top: 0;
        width: 100%;
        background-color: #ffffff; /* Or your menu's background color */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional: for a subtle shadow */
        z-index: 1000; /* Make sure it's above other content */
    }

}