/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Add this line for consistent box model */
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    height: 40px;
    margin-right: 12px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin: 0 1rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.dropdown-toggle i {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: var(--transition);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-link:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
/* The .hero class is now primarily for the Swiper container */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.cards-grid {
    display: flex; /* Changed from grid to flex */
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: center; /* Center items when they don't fill a row */
    gap: 2rem; /* Flexbox now supports gap */
    margin-top: 3rem;
}

.card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    /* Add flex properties for card sizing */
    flex: 1 1 300px; /* flex-grow: 1, flex-shrink: 1, flex-basis: 300px */
    max-width: 350px; /* Prevent cards from becoming too wide on partial rows */
}

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

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    /* Added for consistent height and text truncation */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.card-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Course Cards */
.course-card {
    position: relative;
}

.course-price {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.course-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.course-rating {
    display: flex;
    align-items: center;
}

.course-rating i {
    margin-right: 0.25rem;
}

/* Stats Section */
.stats {
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Testimonials */
.testimonials {
    background: var(--bg-primary);
}

.testimonial-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
}

.testimonial-quote {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-designation {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Client Logos */
.clients {
    background: var(--bg-secondary);
    padding: 3rem 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.client-logo {
    max-width: 120px;
    height: auto;
    opacity: 0.7;
    transition: var(--transition);
    margin: 0 auto;
    display: block;
}

.client-logo:hover {
    opacity: 1;
}

/* Contact Form */
.contact-form {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #d1d5db;
}

.contact-info i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        padding: 2rem 0;
    }

    .nav-item {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        padding: 1rem;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-secondary);
        margin-top: 0.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .cards-grid {
        /* No specific changes needed here for mobile, flexbox handles it well */
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .course-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
    }

    .course-sidebar {
        order: -1;
    }

    .course-content {
        order: 1;
        display: flex;
        flex-direction: column;
    }

    .course-content img {
        order: -1;
    }

    .course-hero {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .course-hero {
        padding: 2.5rem 0;
    }

    .course-content,
    .course-sidebar {
        padding: 1.5rem;
    }

    .course-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        margin-top: 1.5rem;
        display: flex !important;
        flex-direction: column;
    }

    .course-sidebar {
        order: -1;
    }

    .course-content {
        order: 1;
        display: flex;
        flex-direction: column;
    }

    .course-content img {
        order: -1;
    }

    .pdf-iframe {
        display: none;
    }

    .view-pdf-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    transform: translateY(30px);
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Course Detail Page */
.course-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: left !important;
}

.course-hero .hero-content {
    text-align: left !important;
}

.course-hero .hero-content p {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    text-align: left !important;
}

.course-hero .hero-content h1 {
    text-align: left !important;
}

.course-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.course-content {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.course-sidebar {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    height: fit-content;
}

.course-features {
    list-style: none;
    margin: 1.5rem 0;
}

.course-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.course-features li:last-child {
    border-bottom: none;
}

/* Interactive Star Rating Styles */
.course-rating .interactive-stars {
    display: inline-flex;
    font-size: 1.2rem; /* Adjust size as needed */
    margin-right: 0.5rem;
}

/* Explicitly target Font Awesome solid star icon for default (light) color */
.course-rating .interactive-stars i.fas.fa-star {
    color: var(--text-light) !important; /* Force light gray for non-active stars */
    transition: color 0.2s ease;
    cursor: pointer !important; /* Force cursor to pointer on the stars themselves */
}

/* Explicitly target Font Awesome solid star icon for active/hover (yellow) color */
.course-rating .interactive-stars i.fas.fa-star.active,
.course-rating .interactive-stars i.fas.fa-star:hover,
.course-rating .interactive-stars i.fas.fa-star:hover ~ i {
    color: var(--secondary-color) !important; /* Force yellow for active/hover stars */
}

/* Ensure the numerical rating text remains secondary color */
.course-rating #average-rating-display,
.course-rating #total-ratings-count-display {
    color: var(--secondary-color);
}

/* Styles for static stars on course listing pages (courses.php, index.php) */
.course-card .course-rating i.fas.fa-star {
    color: var(--secondary-color); /* Filled stars should be yellow */
}

.course-card .course-rating i.fas.fa-star-o {
    color: var(--text-light); /* Outlined stars should be light gray */
}

/* Swiper Custom Styles for Hero Section */
.hero-swiper-container {
    position: relative;
    padding-bottom: 50px; /* Space for pagination dots */
    overflow: hidden;
    height: 500px; /* Set a fixed height for the carousel container */
    background: none; /* Background is applied to individual slides */
    width: 100%; /* Explicitly set width to 100% */
    display: block; /* Ensure it behaves as a block element */
    clear: both; /* Add this to ensure it clears any floats */
}

/* The .swiper class is now directly on .hero-swiper-container, so this is redundant */
/* .hero-swiper-container.swiper {
    width: 100% !important;
    height: 100%;
} */

.hero-swiper-container .swiper-wrapper {
    align-items: stretch;
}

.hero-swiper-container .swiper-slide {
    height: 100%; /* Make slides take full height of container */
    width: 100%; /* Make slides take full width of container */
    flex-shrink: 0; /* Prevent slides from shrinking */
    display: flex; /* Use flexbox to center content within the slide */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    /* Remove padding from here, as the inner container will handle it */
    padding: 0;
}

.hero-swiper-container .swiper-slide .container {
    /* Add padding and max-width to the container inside each slide */
    max-width: 1200px; /* Match global container max-width */
    padding: 6rem 20px; /* Apply padding here for content within the slide */
    width: 100%; /* Ensure container takes full width of slide */
}

.hero-slide-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0; /* Remove padding here, handled by .container */
}

.hero-slide-content .slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.hero-slide-content .slide-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: rgba(255,255,255,0.9);
}

/* Services Slide (Compact) */
.hero-services-slide .services-grid-compact {
    display: flex;
    flex-wrap: nowrap; /* Keep in one row on larger screens */
    justify-content: center; /* Changed from space-evenly to center */
    gap: 1rem;
    margin-top: 2rem;
    max-width: 1100px; /* Increased max-width */
    margin-left: auto;
    margin-right: auto;
    /* Removed overflow-x: auto and -webkit-overflow-scrolling: touch */
}

.hero-services-slide .service-item-compact {
    flex-shrink: 0; /* Prevent items from shrinking */
    width: 180px; /* Keep fixed width for consistent sizing */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-services-slide .service-item-compact:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.hero-services-slide .service-item-compact i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.hero-services-slide .service-item-compact span {
    font-size: 1rem;
    text-align: center;
}

/* Client Logos Slide (Compact) */
.hero-clients-slide .clients-grid-compact {
    display: flex;
    flex-wrap: nowrap; /* Keep in one row on larger screens */
    justify-content: center; /* Changed from space-evenly to center */
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1100px; /* Increased max-width */
    margin-left: auto;
    margin-right: auto;
    /* Removed overflow-x: auto and -webkit-overflow-scrolling: touch */
}

.hero-clients-slide .client-logo-compact {
    flex-shrink: 0; /* Prevent logos from shrinking */
    max-width: 120px;
    height: auto;
    opacity: 0.8;
    transition: var(--transition);
    filter: grayscale(100%) brightness(180%);
}

.hero-clients-slide .client-logo-compact:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(100%);
}

/* Swiper Navigation and Pagination for Hero */
.hero-swiper-container .hero-swiper-pagination {
    bottom: 20px !important;
    z-index: 10; /* Ensure pagination is above slides */
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
}

.hero-swiper-container .hero-swiper-pagination .swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
    transition: var(--transition);
    width: 10px; /* Explicit size */
    height: 10px; /* Explicit size */
    display: inline-block; /* Ensure bullets are displayed */
    border-radius: 50%; /* Make them round */
    margin: 0 4px; /* Spacing between bullets */
    cursor: pointer; /* Indicate clickable */
}

.hero-swiper-container .hero-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--secondary-color);
    opacity: 1;
}

.hero-swiper-container .hero-swiper-button-next,
.hero-swiper-container .hero-swiper-button-prev {
    color: white;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10; /* Ensure navigation is above slides */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.hero-swiper-container .hero-swiper-button-next {
    right: 10px;
}

.hero-swiper-container .hero-swiper-button-prev {
    left: 10px;
}

.hero-swiper-container .hero-swiper-button-next::after,
.hero-swiper-container .hero-swiper-button-prev::after {
    font-size: 1.2rem;
}

/* Responsive adjustments for hero slides */
@media (max-width: 768px) {
    .hero-swiper-container {
        height: auto;
        min-height: 500px;
        padding-bottom: 60px;
    }
    .hero-swiper-container .swiper-slide {
        height: auto;
        min-height: 500px;
    }
    .hero-swiper-container .swiper-slide .container {
        padding: 3rem 1.5rem;
    }
    .hero-content {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    .hero-content h1 {
        font-size: 1.875rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
        max-width: 100%;
    }
    .hero-slide-content {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    .hero-slide-content .slide-title {
        font-size: 1.875rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    .hero-slide-content .slide-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    .hero-services-slide .services-grid-compact {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 1.5rem;
        max-width: 100%;
    }
    .hero-services-slide .service-item-compact {
        width: calc(50% - 0.5rem);
        min-width: 140px;
        padding: 1.25rem 0.75rem;
    }
    .hero-services-slide .service-item-compact i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    .hero-services-slide .service-item-compact span {
        font-size: 0.875rem;
    }
    .hero-clients-slide .clients-grid-compact {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin-top: 1.5rem;
        max-width: 100%;
    }
    .hero-clients-slide .client-logo-compact {
        max-width: 90px;
    }
}

@media (max-width: 480px) {
    .hero-swiper-container {
        min-height: 600px;
        padding-bottom: 60px;
    }
    .hero-swiper-container .swiper-slide {
        min-height: 600px;
    }
    .hero-swiper-container .swiper-slide .container {
        padding: 2rem 1rem;
    }
    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.875rem;
        line-height: 1.3;
    }
    .hero-content p {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }
    .hero-slide-content .slide-title {
        font-size: 1.5rem;
        margin-bottom: 0.875rem;
        line-height: 1.3;
    }
    .hero-slide-content .slide-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }
    .hero-buttons .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        max-width: 260px;
    }
    .hero-services-slide .services-grid-compact {
        gap: 0.625rem;
        margin-top: 1.25rem;
    }
    .hero-services-slide .service-item-compact {
        width: calc(50% - 0.375rem);
        padding: 1rem 0.5rem;
    }
    .hero-services-slide .service-item-compact i {
        font-size: 1.75rem;
    }
    .hero-services-slide .service-item-compact span {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    .hero-clients-slide .clients-grid-compact {
        gap: 0.875rem;
    }
    .hero-clients-slide .client-logo-compact {
        max-width: 70px;
    }
    .hero-swiper-container .hero-swiper-button-next,
    .hero-swiper-container .hero-swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    .hero-swiper-container .hero-swiper-button-next::after,
    .hero-swiper-container .hero-swiper-button-prev::after {
        font-size: 1rem;
    }
}

/* Testimonials Swiper Specific Styles */
.testimonials-swiper-container {
    position: relative;
    padding-bottom: 80px;
    overflow: visible;
}

.testimonials-swiper-container .swiper-wrapper {
    align-items: stretch; /* Ensure all slides stretch to the same height */
}

.testimonials-swiper-container .swiper-slide {
    height: auto; /* Allow slide height to adjust to content */
    display: flex; /* Use flex to align content within the slide */
    flex-direction: column;
    justify-content: space-between; /* Push quote to top, author to bottom */
}

.testimonials-swiper-container .testimonial-card {
    height: 100%; /* Make card take full height of slide */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Testimonials Swiper Pagination */
.testimonials-swiper-container .testimonials-swiper-pagination {
    bottom: 20px !important;
    z-index: 10;
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
}

.testimonials-swiper-container .testimonials-swiper-pagination .swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.6;
    transition: var(--transition);
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
}

.testimonials-swiper-container .testimonials-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--secondary-color);
    opacity: 1;
}

