/* Apex Strength - Rich & Grounded Theme */

/* 1. Global Styles & Variables */
/* --------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700;900&family=Roboto:wght@400;500;700&family=Archivo:wght@400;500;700;900&display=swap');

:root {
    --primary-color: #E2FF31;
    /* Electric Neon Lime */
    --primary-dark-color: #C0DE00;
    --background-color: #121212;
    /* True Black */
    --card-color: #1A1A1A;
    --secondary-color: #2D2D2E;
    /* Concrete Grey */
    --dark-color: #0A0A0A;
    --text-color: #FFFFFF;
    --heading-font: 'Oswald', sans-serif;
    --body-font: 'Roboto', sans-serif;
}


html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--body-font);
    background-color: var(--background-color);
    background-image: radial-gradient(circle at center, #1a1a1a 0%, #121212 100%);
    color: var(--text-color);
    line-height: 1.8;
    overflow: visible !important;
    position: relative;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

img {
    filter: grayscale(20%) contrast(1.2) brightness(0.9);
    /* High-end & Gritty */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

h1,
h2 {
    font-family: var(--heading-font);
    font-weight: 900;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: -0.05em;
    /* Nike-Pro Look */
    transition: all 0.3s ease-in-out;
}

h3,
h4 {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease-in-out;
}

h1:hover,
h2:hover,
h3:hover {
    text-shadow: 0 0 5px #E2FF31;
}

h1 {
    font-size: clamp(3.5rem, 6vw + 1rem, 5rem);
    line-height: 1;
}

/* Constant Neon Glow for Hero Headers */
.hero h1 {
    text-shadow: 0 0 10px rgba(226, 255, 49, 0.5);
}

h2 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
    text-align: center;
    margin-bottom: 70px;
    line-height: 1.1;
}

h3 {
    font-size: clamp(1.8rem, 3.5vw + 0.5rem, 2.2rem);
    line-height: 1.2;
}

/* Global Section Refinement */
section {
    padding: 120px 0;
    background-color: transparent;
}

section {
    padding: 120px 0;
    background-color: transparent;
}

/* 2. Header & Navigation */
/* --------------------------------- */
header {
    background-color: rgba(18, 18, 18, 0.85);
    /* Glass Nav */
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.logo {
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav li {
    margin-left: 35px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

nav a:hover,
.dropbtn:hover {
    color: var(--primary-color);
}

.dropbtn {
    background: none;
    border: none;
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-color);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 0px;
    margin-top: 0;
    border: 1px solid #44545C;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.dropdown-container:hover .dropdown-content {
    display: block;
    padding-top: 10px;
    /* Add padding to create a buffer zone */
}

.menu-icon {
    display: none;
}


/* 3. Hero Section */
/* --------------------------------- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-new.jpg') center/cover no-repeat;
    background-attachment: scroll;
    background-color: var(--background-color);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    text-align: center;
    padding: 0;
    position: relative;
    border-bottom: 4px solid var(--primary-color);
    /* Neon Bottom Line */
    filter: grayscale(20%) contrast(1.2) brightness(0.9);
    /* Gritty Hero Look */
}

.hero::before {
    display: none;
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white-color);
    margin-bottom: 20px;
    letter-spacing: -0.05em;
    /* Nike-Pro Look */
    font-weight: 900;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* 4. Buttons */
/* --------------------------------- */
.btn {
    background-color: var(--primary-color);
    color: #000000;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 0px;
    /* Sharp corners */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 4px 4px 0px #000000;
    /* Hard Shadow */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    background-color: var(--dark-color);
    color: var(--primary-color);
    box-shadow: 4px 4px 0px var(--primary-color);
    transform: translate(-2px, -2px);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000000;
}

.btn-tertiary {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
}

.btn-tertiary:hover {
    color: var(--white-color);
    text-decoration: underline;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    /* Tech Spacing */
    transition: all 0.3s ease-in-out;
}

nav a:hover,
.dropbtn:hover {
    color: var(--primary-color);
    background-color: transparent;
    transform: none;
}


/* 5. Content Sections & Cards */
/* --------------------------------- */
.welcome {
    background-color: var(--card-color);
}

.welcome-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.welcome-text {
    flex: 1;
}

.welcome-image {
    flex: 1;
    overflow: hidden;
    /* Hide overflow within the image container */
}

.welcome-image img {
    width: 100%;
    border-radius: 0px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.featured-classes {
    background-color: transparent;
}

.class-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    background-color: #1E1E1E;
    /* Gear Look */
    background-image: linear-gradient(45deg, #1a1a1b 25%, #121212 25%, #121212 50%, #1a1a1b 50%, #1a1a1b 75%, #121212 75%, #121212 100%);
    background-size: 4px 4px;
    /* Machined Texture */
    border: 1px solid #2D2D2E;
    /* Base Module Border */
    border-radius: 0px;
    overflow: hidden;
    box-shadow: none;
    text-align: center;
    padding: 40px 20px;
    transition: all 0.3s ease-in-out;
}

.card:hover {
    transform: none;
    /* Stable/Mechanical */
    border-color: var(--primary-color);
    /* Neon Border Glow */
    box-shadow: 0 0 15px rgba(226, 255, 49, 0.2);
}

.card-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
}

/* Testimonials */
.testimonials {
    background-color: transparent;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: stretch;
    /* Force all cards in a row to the same height */
}

.testimonial-card {
    background-color: var(--card-color);
    border-radius: 0px;
    /* Sharp */
    padding: 30px;
    border: 1px solid var(--secondary-color);
    /* Concrete Border */
    box-shadow: none;
    display: flex;
    /* Make it a flex container */
    flex-direction: column;
    /* Stack children vertically */
    height: 100%;
    /* Fill the grid cell height */
    transition: all 0.3s ease-in-out;
}

.testimonial-author {
    display: flex;
    align-items: center;
    /* Vertically align image and text */
    margin-top: auto;
    /* Push to the bottom to align horizontally across cards */
    padding-top: 20px;
}

.testimonial-author img {
    width: 64px;
    /* w-16 */
    height: 64px;
    /* h-16 */
    border-radius: 0px;
    /* Industrial Sharp */
    margin-right: 15px;
    object-fit: cover;
}

/* Specific adjustments for testimonial images */
.testimonial-author img[src*="client1.jpg"] {
    object-position: 20% center;
}

.testimonial-author img[src*="client2.jpg"] {
    object-position: center center;
    /* Ensure client2 is centered */
}

.testimonial-author img[src*="client3.jpg"] {
    object-position: center 20%;
}

/* Blog */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.blog-post {
    background-color: var(--card-color);
    border-radius: 0px;
    overflow: hidden;
    border: 1px solid #3a505c;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.blog-post img,
.blog-post iframe {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.blog-post h3,
.blog-post p {
    padding: 0 20px;
}

.blog-post h3 {
    margin-top: 20px;
}

.blog-post .post-meta {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 10px;
}

.blog-post .btn-tertiary {
    display: block;
    padding: 20px;
}


/* 6. Page-Specific (About, Offerings, Contact) */
/* --------------------------------- */
.about-content,
.offering-page .about-content {
    display: flex;
    align-items: flex-start;
    /* Align items to the top */
    gap: 50px;
}

.about-image,
.offering-image {
    flex: 1;
}

.about-text {
    flex: 1;
}

.about-image img,
.offering-image img {
    width: 100%;
    height: 400px;
    /* Set a fixed height for consistency */
    object-fit: cover;
    border-radius: 0px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-intro-text {
    text-align: center;
}

.contact-form-container {
    background-color: var(--card-color);
    padding: 40px;
    border-radius: 0px;
    border: 1px solid #3a505c;
    margin-bottom: 50px;
}

.contact-details-section {
    background-color: var(--card-color);
    padding: 40px;
    border-radius: 0px;
    border: 1px solid transparent;
    /* Make border invisible */
    text-align: center;
}

.contact-info-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.contact-info,
.contact-image {
    flex: 1;
}

.contact-image img {
    width: 100%;
    max-height: 180px;
    /* Adjust this value as needed */
    object-fit: cover;
    border-radius: 0px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--secondary-color);
    /* Concrete Border */
    border-radius: 0px;
    /* Sharp Corners */
    font-family: var(--body-font);
    font-size: 1rem;
    background-color: var(--card-color);
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:-webkit-autofill,
form input:-webkit-autofill:hover,
form input:-webkit-autofill:focus,
form textarea:-webkit-autofill,
form textarea:-webkit-autofill:hover,
form textarea:-webkit-autofill:focus,
form select:-webkit-autofill,
form select:-webkit-autofill:hover,
form select:-webkit-autofill:focus {
    border: 1px solid var(--primary-color);
    -webkit-text-fill-color: var(--text-color);
    -webkit-box-shadow: 0 0 0px 1000px var(--card-color) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.form-group {
    position: relative;
    z-index: 1;
}

.form-group.dropdown-fix {
    padding-bottom: 10em;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(226, 255, 49, 0.2);
    /* Neon Glow */
}

form button {
    align-self: center;
}

.btn-service-page {
    margin-top: 40px;
    /* Increased margin-top */
}

/* Schedule */
.schedule-table table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid #3a505c;
    padding: 15px;
}

.schedule-table th {
    background-color: var(--card-color);
    color: var(--text-color);
}

.schedule-table td.has-class {
    background-color: #2C404C;
    font-weight: 600;
}

.schedule-table td.has-class a {
    color: var(--primary-color);
    text-decoration: none;
}

/* 7. Footer */
/* --------------------------------- */
footer {
    background-color: var(--dark-color);
    color: #ccc;
    padding: 60px 0 30px;
}

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

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
    color: var(--text-color);
    margin-bottom: 20px;
}

.social-links a {
    color: #ccc;
    font-size: 20px;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-contact a {
    color: #ccc;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

.developer-credit a {
    color: var(--primary-color);
    text-decoration: none;
}


/* 8. Responsive Design */
/* --------------------------------- */
@media (min-width: 820px) and (max-width: 1180px) {
    .dropdown-content {
        right: 0;
        left: auto;
    }
}

@media (max-width: 992px) {

    .class-cards,
    .testimonial-cards,
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-cards {
        display: block;
        /* Force block-level display for cards */
    }

    .testimonial-card {
        margin-bottom: 80px;
        /* Increased margin for clear separation */
    }

    .welcome-content,
    .about-content,
    .offering-page .about-content,
    .contact-info-container {
        flex-direction: column;
    }

    .welcome-image,
    .about-image,
    .offering-image,
    .contact-image {
        margin-top: 30px;
    }

    .welcome-text,
    .about-text {
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    /* Show hamburger menu and hide nav links on tablets */
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--card-color);
        position: absolute;
        top: 75px;
        left: 0;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-icon {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: var(--text-color);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    h3 {
        font-size: 1.3rem;
    }

    .schedule-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .schedule-table table {
        width: 100%;
        min-width: 600px;
        /* Ensure a minimum width to force scrolling */
    }

    .schedule-table th,
    .schedule-table td {
        white-space: nowrap;
        /* Prevent text from wrapping */
    }

    section {
        padding: 80px 0;
    }

    .container {
        padding: 0 15px;
    }

    .class-cards,
    .testimonial-cards,
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .welcome-content,
    .about-content,
    .offering-page .about-content,
    .contact-info-container {
        flex-direction: column;
        gap: 30px;
    }

    .welcome-image,
    .about-image,
    .offering-image {
        margin-top: 20px;
    }

    .welcome-text,
    .about-text {
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .offering-image {
        margin: 0 auto;
    }

    .contact-image img {
        width: 100%;
        height: auto;
        max-height: none;
    }
}




.cta-buttons {
    display: flex;
    gap: 15px;
    /* Adjust the space between buttons */
    margin-top: 20px;
    /* Space above the buttons */
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 13px 30px;
    /* Adjust padding to match the primary button's height */
    transition: all 0.3s ease-in-out;
}

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

.developer-credit {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #aaa;
}

.developer-credit p {
    margin-bottom: 10px;
}

.developer-credit a {
    color: #f9f9f9;
    text-decoration: underline;
}

.developer-credit a:hover {
    color: var(--primary-color);
}

.disclaimer {
    font-style: italic;
    color: #888;
}

/* Keyframe Animations */
@media (prefers-reduced-motion: no-preference) {
    .hero-content {
        animation: fadeInUp 1.5s ease-out forwards;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

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

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Additional Styles for the New Section */
.client-showcase {
    padding: 100px 0;
    background-color: var(--background-color);
}

.client-showcase h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: clamp(2rem, 4vw + 1rem, 2.5rem);
    color: var(--text-color);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.showcase-item {
    background-color: var(--card-color);
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    border: 1px solid #3a505c;
}

.showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.showcase-image-container {
    position: relative;
    height: 250px;
}

.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.showcase-item:hover .showcase-image {
    transform: scale(1.05);
}

.showcase-content {
    padding: 30px;
}

.showcase-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.showcase-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: var(--primary-dark-color);
    color: var(--text-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Responsive adjustments for the new section */
@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}



.confirmation-section {
    padding: 120px 0;
    text-align: center;
    background-color: var(--background-color);
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.confirmation-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--card-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.confirmation-content h1 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.confirmation-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.page-hero {
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    filter: grayscale(20%) contrast(1.2) brightness(0.9);
    /* Gritty Page Hero */
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 53, 62, 0.7);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero .cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero .cta-content i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.page-hero .cta-content h2 {
    font-size: clamp(2.5rem, 5vw + 1rem, 3.2rem);
    margin-bottom: 20px;
    color: var(--white-color);
}

.page-hero .cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.placeholder-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    /* Adjust as needed */
    text-align: center;
}

.placeholder-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--card-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Overrides */

/* Tablet Styles */

/* Tablet Styles */
@media (min-width: 768px) {

    .welcome-content,
    .about-content,
    .offering-page .about-content {
        flex-direction: row;
        text-align: left;
    }

    .welcome-text,
    .about-text {
        text-align: left;
    }

    .class-cards,
    .testimonial-cards,
    .blog-posts {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        text-align: left;
    }

    .footer-contact p {
        justify-content: flex-start;
    }
}

@media (min-width: 768px) and (max-width: 991px) {

    .class-cards,
    .blog-posts {
        grid-template-columns: repeat(2, 1fr);
    }

    .class-cards .card:last-child:nth-child(odd),
    .blog-posts .blog-post:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        text-align: center;
        /* Center the content */
        gap: 20px;
        /* Adjust gap for stacked layout */
    }

    .footer-about,
    .footer-links,
    .footer-contact {
        text-align: center;
        /* Ensure all sections are centered */
    }

    .footer-contact p {
        justify-content: center;
        /* Ensure content within p tags is centered */
    }
}

/* Desktop Styles */
@media (min-width: 992px) and (max-width: 1200px) {
    nav a {
        font-size: 0.9rem;
    }

    nav li {
        margin-left: 25px;
    }
}

@media (min-width: 1024px) {

    .class-cards,
    .testimonial-cards,
    .blog-posts {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop Styles */
@media (min-width: 1440px) {
    .container {
        max-width: 1360px;
    }
}

/* Schedule Scroll Fix for Mid-sized Devices */
@media (min-width: 800px) and (max-width: 880px) {
    .schedule-table {
        overflow-x: auto;
    }
}