:root {
    --navy-blue: #0b1d39;
    --dark-blue: #001f3f;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --gold: #D4AF37;
    --text-color: #333;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lora', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    margin: 0;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    color: var(--dark-blue);
    font-weight: 600;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 40px; }
h3 { font-size: 1.5rem; }

/* Header & Navigation */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 700;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.logo-link span {
    font-size: 1.6rem;
    font-weight: 700;
}

.logo {
    height: 50px;
    margin-right: 15px;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-blue);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

.nav-wrapper {
    display: flex;
    justify-content: center; /* Center the nav within the wrapper */
    align-items: center;
    flex-grow: 1;
}

.main-nav {
    flex-grow: 0; /* Do not grow, just fit content */
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
}

.main-nav li {
    margin: 0 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 600;
    padding-bottom: 5px;
    transition: color 0.3s, border-bottom-color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-switcher select {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 6px 10px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-weight: 600;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 1em;
    padding-right: 24px; /* Make space for arrow */
    font-size: 0.9rem;
}

.language-switcher select:hover {
    background-color: #0E294B;
}

.language-switcher select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--gold);
}

/* Loader */
.loader {
    border: 5px solid var(--light-gray);
    border-top: 5px solid var(--gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

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

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(10, 34, 64, 0.6), rgba(10, 34, 64, 0.6)), url('hero-background.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 120px 20px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

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

.hero h1 {
    color: var(--white);
    margin-bottom: 20px;
}

.subheadline {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    margin: 0 10px;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--dark-blue);
    border: 2px solid var(--gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--gold);
}

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

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

.scroll-down-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2.5rem;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    animation: bounce 2s infinite;
}

.scroll-down-arrow:hover {
    color: var(--gold);
    transform: translateX(-50%) scale(1.1);
    animation-play-state: paused;
}

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

/* Sections */
section {
    padding: 60px 0;
}

.intro {
    background-color: var(--light-gray);
    text-align: center;
}

.intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Testimonials Home */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--light-gray);
    padding: 30px;
    border-left: 4px solid var(--gold);
}

.testimonial-card blockquote {
    margin: 0 0 15px 0;
    font-style: italic;
    font-family: var(--font-secondary);
    font-size: 1.1rem; /* Slightly larger for readability */
}

.testimonial-card cite {
    font-weight: 600;
    color: var(--dark-blue);
}

/* Page Title */
.page-title {
    background-image: linear-gradient(rgba(10, 34, 64, 0.7), rgba(10, 34, 64, 0.7)), url('hero-background.png');
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--white);
    border-bottom: 2px solid var(--gold);
}

.page-title h1 {
    color: var(--white);
    margin: 0;
}

.page-title.careers-hero {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-subheadline {
    color: var(--white);
    opacity: 0.9;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin-top: 15px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Firm Philosophy */
.firm-philosophy {
    background: var(--light-gray);
    text-align: center;
}

.firm-philosophy blockquote {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.4rem;
    font-family: var(--font-secondary);
    font-style: italic;
    color: var(--dark-blue);
    border-left: 4px solid var(--gold);
    padding-left: 20px;
    text-align: left;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.lawyer-card {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    text-align: center;
    padding: 20px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.lawyer-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.lawyer-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--light-gray);
}

.lawyer-card h3 {
    margin: 10px 0 5px;
    color: var(--dark-blue);
}

.lawyer-card h4 {
    margin: 0 0 15px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--gold);
    font-weight: 600;
}

.lawyer-card p {
    font-size: 0.9rem;
    text-align: left;
}

/* About Us Page Sections */
.about-section {
    padding: 60px 0;
}

.about-gray-bg {
    background-color: var(--light-gray);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 5px;
}

.text-center-max {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.philosophy-expansion {
    margin-top: 30px;
}

.about-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.about-split-grid h2 {
    text-align: left;
}

.values-list {
    list-style: none;
    padding: 0;
    max-width: 850px;
    margin: 0 auto;
}

.values-list li {
    background: var(--light-gray);
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--gold);
}

.values-list strong {
    color: var(--navy-blue);
    font-family: var(--font-secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.value-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 5px;
    border-left: 4px solid var(--gold);
}

.value-card h3 {
    margin-top: 0;
    color: var(--navy-blue);
    font-family: var(--font-secondary);
}

.careers-values-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    grid-column: 1 / -1; /* Span full width */
}

.careers-values-grid li {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat left center;
    padding-left: 35px;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.accreditations-section {
    padding: 60px 0;
    background-color: var(--white);
}

.accreditations-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.accreditation-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.accreditation-logo img {
    height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}

.accreditation-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Services Page Grid */
.services-grid-section {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: var(--dark-blue);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--gold);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Services Page */
.services-list .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 10px;
    margin-top: 0;
}

.service-item {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 5px;
}

.service-item h3 {
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
    margin-top: 0;
}

/* Service Detail Page */
.service-detail-section {
    padding: 60px 0;
}

.service-detail-content h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

.service-detail-content h3 {
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.service-detail-content p, .service-detail-content ul {
    line-height: 1.8;
}

.service-detail-content ul {
    list-style: disc;
    padding-left: 20px;
}

.service-detail-content li {
    margin-bottom: 10px;
}

.service-detail-content .btn {
    margin-top: 40px;
}

/* Testimonials Carousel */
.testimonials-carousel {
    background: var(--navy-blue);
    color: var(--white);
}

.testimonials-carousel h2 {
    color: var(--white);
}

.carousel-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px 50px;
    text-align: center;
    display: none;
}

.carousel-slide.active-slide {
    display: block;
}

.carousel-slide blockquote {
    font-size: 1.2rem;
    font-family: var(--font-secondary);
    margin-bottom: 20px;
}

.carousel-slide cite {
    font-weight: 600;
    color: var(--gold);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background: var(--gold);
    color: var(--dark-blue);
    border-color: var(--gold);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Contact Section */
#contact {
    background: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.contact-form-container, .contact-info-container {
    background: var(--white);
    padding: 30px;
    border-radius: 5px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    border-color: var(--navy-blue);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
}

.contact-form button.btn-primary {
    border: 2px solid var(--gold);
}

.contact-form button.btn-primary:hover {
    background-color: var(--navy-blue);
    color: var(--gold);
}

.form-success {
    background-color: #e6f4ea;
    color: #3c763d;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #d6e9c6;
    margin-top: 20px;
    text-align: center;
}

.contact-info-container h3, .contact-form-container h3 {
    margin-top: 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    fill: var(--gold);
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-info-item p {
    margin: 0;
    line-height: 1.5;
}

.contact-info-container a {
    color: var(--gold);
    text-decoration: none;
}

.contact-info-container a:hover {
    text-decoration: underline;
}

.map-container {
    margin-top: 20px;
}

/* Blog */
.blog-list-item {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.blog-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.blog-list-item h2 a {
    text-decoration: none;
    color: var(--navy-blue);
}

.blog-list-item h2 a:hover {
    color: var(--gold);
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.post-author {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.blog-list-item .btn {
    margin-top: 15px;
}

.blog-post h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.blog-post .post-content {
    margin-top: 30px;
    line-height: 1.8;
}

.blog-post .post-content p {
    margin-bottom: 1.5em;
}

.blog-post .btn {
    margin-top: 30px;
}

/* FAQ Page */
.faq-section {
    padding: 60px 0;
}

.faq-section h2 {
    text-align: left;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 15px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.faq-section h2:first-of-type {
    margin-top: 0;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-secondary);
    color: var(--dark-blue);
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.faq-answer p {
    padding-bottom: 20px;
    margin: 0;
    line-height: 1.7;
}

/* Closing CTA */
.closing-cta {
    background: var(--light-gray);
    text-align: center;
    padding: 60px 20px;
}

.closing-cta p {
    font-size: 1.5rem;
    font-family: var(--font-secondary);
    color: var(--navy-blue);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Careers Page */
.careers-section {
    padding: 60px 0;
}

.apply-section .btn {
    margin-top: 20px;
}

.opportunities-box {
    background: var(--white);
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--gold);
    text-align: left;
    margin-top: 30px;
    border-radius: 5px;
}

.careers-image-banner {
    background-image: linear-gradient(rgba(10, 34, 64, 0.8), rgba(10, 34, 64, 0.8)), url('hero-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.careers-image-banner h2 {
    color: var(--white);
}

.careers-image-banner p {
    max-width: 800px;
    margin: 20px auto 0 auto;
    font-size: 1.1rem;
}

.file-upload-wrapper {
    margin-bottom: 15px;
    text-align: left;
}

.file-upload-wrapper label {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s;
    border: 1px solid var(--gold);
}

.file-upload-wrapper label:hover {
    background-color: #0E294B;
}

.file-upload-wrapper input[type="file"] {
    display: none;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--navy-blue);
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
    z-index: 100;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--gold);
    color: var(--navy-blue);
}

/* Case Studies Page */
.case-studies-section {
    background-color: var(--light-gray);
}

.case-study-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--navy-blue);
    color: var(--navy-blue);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--navy-blue);
    color: var(--gold);
    border-color: var(--gold);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.case-study-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.case-study-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.case-study-text-content {
    padding: 30px;
}

.case-study-card h3 {
    margin-top: 0;
    font-size: 1.6rem;
    color: var(--navy-blue);
}

.case-study-content h4 {
    font-family: var(--font-primary);
    color: var(--gold);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 25px;
    margin-bottom: 10px;
    border-left: 3px solid var(--gold);
    padding-left: 10px;
}

.case-study-content p {
    margin-bottom: 0;
}

/* Accreditations Page */
.accreditations-page-section {
    padding: 60px 0;
}

/* Responsive */
@media (max-width: 992px) {
    .hamburger-menu {
        display: block;
    }

    .nav-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--navy-blue);
        flex-direction: column;
        align-items: stretch;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .nav-wrapper.mobile-nav-open {
        max-height: 500px; /* Adjust as needed */
        border-top: 1px solid var(--gold);
    }

    .main-nav {
        flex-grow: 0;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 10px 0;
        width: 100%;
    }

    .main-nav li {
        margin: 0;
        text-align: center;
    }

    .main-nav a {
        color: var(--white);
        display: block;
        padding: 15px;
        border-bottom: 1px solid #0E294B;
    }

    .main-nav a:hover, .main-nav a.active {
        background-color: var(--gold);
        color: var(--dark-blue);
        border-bottom: 1px solid var(--gold);
    }

    .nav-wrapper {
        order: 3;
        width: 100%;
        position: absolute;
        top: calc(100% - 1px);
        left: 0;
    }

    .header-controls {
        order: 2;
    }

    .logo-link {
        order: 1;
    }

    .main-header .container {
        flex-wrap: wrap;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-grid, .about-split-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .logo-link {
        font-size: 1.2rem;
    }

    .hero {
        padding: 80px 20px;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        box-sizing: border-box;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        display: none;
    }

    .blog-post h1 {
        font-size: 2rem;
    }

    .accreditation-card {
        flex-direction: column;
        text-align: center;
    }
}