@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
    --primary-color: #c4a66a;
    --dark-grey: #1a1a1a;
    --medium-grey: #2c2c2c;
    --light-grey: #f4f4f4;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white);
    color: #333;
    line-height: 1.6;
}

/* Base container styles */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

/* Text alignment for all sections */
main section {
    padding: 8rem 0;
    text-align: center;
    position: relative;
}

main section:nth-child(even) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Modern section styling */
.section-header {
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #b39254);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), #b39254);
    border-radius: 2px;
}

/* Header & Nav */
header {
    background-color: var(--white);
    color: var(--dark-grey);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(196, 166, 106, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    min-height: 80px;
}

.logo {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 12px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

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

.logo-text {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--dark-grey);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(196, 166, 106, 0.1);
    transform: translateY(-2px);
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark-grey);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(44, 44, 44, 0.85) 100%), url('../images/hero-office-building.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Hero section alignment */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    color: var(--white);
    line-height: 1.1;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-text h1 span {
    color: var(--primary-color);
    display: block;
    font-size: 3.5rem;
    margin-top: 1rem;
}

.hero-text p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-image {
    display: none;
}

/* Services Hero Section */
.services-hero {
    background: linear-gradient(135deg, var(--dark-grey) 0%, var(--medium-grey) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.services-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.services-hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.services-hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.services-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

.services-hero-image {
    position: relative;
    z-index: 1;
}

.services-hero-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.services-hero-image img:hover {
    transform: scale(1.05);
}

/* Services Overview Section */
.services-overview {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.primary-services {
    margin-bottom: 4rem;
}

.service-card.featured {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
}

.service-card.featured:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.service-card.compact {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card.compact:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

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

.service-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 25px;
    color: #666;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.specialized-services {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #ddd;
}

.specialized-services h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--dark-grey);
    margin-bottom: 3rem;
}

/* Services grid alignment */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    text-align: center;
}

.services-grid.specialized {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Missing Essential Classes */
.bg-light-grey {
    background-color: #f8f9fa !important;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 400;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.learn-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.learn-more:hover {
    color: #b39254;
    border-bottom-color: #b39254;
    transform: translateX(5px);
}

/* Detailed Services Section */
#services-detailed {
    padding: 6rem 0;
}

.detailed-service {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #eee;
}

.detailed-service:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
}

.service-detail-content.reverse {
    grid-template-columns: 400px 1fr;
}

.service-detail-content.reverse .service-detail-image {
    order: -1;
}

.service-detail-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.service-detail-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 2rem;
}

.service-benefits h4 {
    color: var(--dark-grey);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-benefits ul {
    list-style: none;
    padding: 0;
}

.service-benefits li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 25px;
    color: #666;
}

.service-benefits li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.service-detail-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-detail-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-detail-image:hover img {
    transform: scale(1.1);
}

/* Call to Action Section */
.services-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #b39254 100%);
    padding: 5rem 0;
    text-align: center;
    color: var(--dark-grey);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-grey);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--dark-grey);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--dark-grey);
}

.btn-primary:hover {
    background: transparent;
    color: var(--dark-grey);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-grey);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--dark-grey);
}

.btn-secondary:hover {
    background: var(--dark-grey);
    color: var(--white);
    transform: translateY(-3px);
}

/* Mobile Responsiveness for Services */
@media (max-width: 900px) {
    .services-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .services-hero-text h1 {
        font-size: 2.2rem;
    }

    .services-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-detail-content,
    .service-detail-content.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-detail-content.reverse .service-detail-image {
        order: 0;
    }

    .service-detail-image img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .services-hero {
        min-height: 70vh;
        padding: 2rem 0;
    }

    .services-hero-text h1 {
        font-size: 1.8rem;
    }

    .services-hero-text p {
        font-size: 1rem;
    }

    .service-card.featured {
        padding: 2rem;
    }

    .service-card.compact {
        padding: 1.5rem;
    }

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

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

/* Director Profile Section */
#leadership {
    padding: 6rem 0;
}

/* Leadership section alignment */
.director-profile {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.director-info {
    text-align: center;
}

.director-info h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.director-info h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #b39254);
    transform-origin: center;
    transition: transform 0.8s ease;
}

.director-info.animated h3::after {
    transform: translateX(-50%) scaleX(1);
}

.director-info h4 {
    color: var(--dark-grey);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 400;
}


.qualifications,
.experience,
.specializations {
    margin-bottom: 2rem;
}

.director-info h5 {
    color: var(--dark-grey);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 0.25rem;
}

.qualifications ul {
    list-style: none;
    padding: 0;
    max-width: 500px;
    margin: 0 auto 1rem auto;
}

.qualifications li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.qualifications li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.specialization-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.tag {
    background: var(--primary-color);
    color: var(--dark-grey);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin: 0.25rem;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.specializations.animated .tag {
    transform: translateY(0);
    opacity: 1;
}

.tag:nth-child(1) {
    transition-delay: 0.1s;
}

.tag:nth-child(2) {
    transition-delay: 0.2s;
}

.tag:nth-child(3) {
    transition-delay: 0.3s;
}

.tag:nth-child(4) {
    transition-delay: 0.4s;
}

.tag:nth-child(5) {
    transition-delay: 0.5s;
}

.tag:hover {
    background: #b39254;
    transform: translateY(-3px) scale(1.05);
}

.placeholder-note {
    text-align: center;
    padding: 1.5rem;
    background: rgba(196, 166, 106, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.placeholder-note em {
    color: #666;
    font-size: 0.95rem;
}

/* Main Content */
/* Hero section alignment */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero-text {
    text-align: center;
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: var(--dark-grey);
}

/* About Section */
/* About section alignment */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.about-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #b39254);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.about-text.animated h3::after {
    transform: scaleX(1);
}

.about-text h4 {
    color: var(--dark-grey);
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
    position: relative;
    padding-left: 20px;
}

.about-text h4::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
}

.about-text ul {
    list-style: none;
    padding: 0;
}

.about-text li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 30px;
    transition: all 0.3s ease;
}

.about-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-text.animated li::before {
    opacity: 1;
}

.about-text li:hover {
    background: rgba(196, 166, 106, 0.05);
    transform: translateX(10px);
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Services Section */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

/* Why Choose Us Section */
#why-choose-us {
    padding: 6rem 0;
    background-color: var(--white);
}

#why-choose-us h2 {
    margin-bottom: 3rem;
}

/* Why Choose Us section alignment */
.choose-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-content: center;
    text-align: center;
}

.choose-us-item {
    text-align: center;
}

.choose-us-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.choose-us-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.choose-us-item p {
    font-size: 1rem;
    line-height: 1.7;
}

/* Affiliations Section */
/* Affiliation section alignment */
.affiliation-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    text-align: center;
}

.logo-container {
    text-align: center;
}

.logo-container img {
    height: 80px;
    margin-bottom: 1rem;
}

.affiliation-text {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto;
}

blockquote {
    font-style: italic;
    margin-top: 2rem;
    padding: 1rem;
    border-left: 4px solid var(--primary-color);
    background: var(--light-grey);
}

blockquote footer {
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Contact Section */
.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3,
.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.contact-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-item h4 {
    color: var(--dark-grey);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item p {
    margin: 0;
    line-height: 1.6;
    color: #666;
}

.contact-item p + p {
    margin-top: 1.1rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #b39254;
    text-decoration: underline;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-group textarea {
    height: 150px;
}

#map {
    padding: 6rem 0;
    background-color: var(--light-grey);
}

#map h2 {
    margin-bottom: 1rem;
}

.map-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem auto;
    color: #666;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.map-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.map-card-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
}

.map-card-header h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.map-card-header p {
    margin: 0;
    line-height: 1.6;
    color: #666;
}

.map-card iframe {
    display: block;
    width: 100%;
    border: 0;
}

.map-directions {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.map-directions:hover {
    color: #b39254;
    text-decoration: underline;
}

/* Testimonials Section */
#testimonials {
    padding: 6rem 0;
    background-color: var(--light-grey);
}

#testimonials h2 {
    margin-bottom: 3rem;
}

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

.testimonial-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.5s ease-in-out;
    flex-shrink: 0;
    width: 100%;
}

.testimonial-item p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #555;
}

.testimonial-item h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.slider-dots {
    text-align: center;
    margin-top: 2rem;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary-color);
}

/* Latest News Section */
#latest-news {
    padding: 6rem 0;
}

#latest-news h2 {
    margin-bottom: 3rem;
}

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

.news-cards .card {
    padding: 2rem;
}

.news-cards .card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.news-cards .card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* News Page */
#news-page {
    padding: 6rem 0;
}

.news-articles {
    display: grid;
    gap: 3rem;
}

.news-article-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.news-article-card h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.news-article-card .article-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1.5rem;
}

.news-article-card .article-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.news-article-card p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.form-message {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- NEW FOOTER DESIGN --- */
footer {
    background-color: #fff;
    padding: 2rem 0 1rem;
    /* Reduced padding */
    border-top: 1px solid #eee;
    color: #444;
    text-align: left;
    /* Reset from global center */
}

footer .container {
    text-align: left;
    /* Ensure alignment within container */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 2rem;
    /* Reduced gap */
    margin-bottom: 2rem;
    /* Reduced margin */
}

.footer-column h3 {
    font-size: 1rem;
    /* Reduced font size */
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 700;
}

.footer-column h4 {
    font-size: 0.75rem;
    /* Reduced font size */
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    margin: 1.5rem 0 0.8rem;
    font-weight: 600;
}

.footer-column p {
    font-size: 0.85rem;
    /* Reduced font size */
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #555;
    max-width: 280px;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
    /* Reduced spacing */
}

.footer-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.85rem;
    /* Reduced font size */
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #b39254;
}

.footer-column p + p {
    margin-top: 0.9rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    /* Reduced spacing */
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    /* Slightly smaller */
    transition: color 0.3s;
}

.footer-contact-item:hover {
    color: #b39254;
}

.footer-contact-item svg {
    width: 16px;
    /* Smaller icon */
    height: 16px;
}

.social-icons-wrapper {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.social-icon-box {
    width: 32px;
    /* Smaller box */
    height: 32px;
    background: #fbf8f3;
    /* Light gold tint */
    border: 1px solid #f3ebd8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-box:hover {
    background: #f3ebd8;
    transform: translateY(-2px);
    color: #b39254;
}

.social-icon-box svg {
    width: 14px;
    /* Smaller icon */
    height: 14px;
}

.footer-offices {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-offices h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    margin: 0 0 1rem;
    font-weight: 600;
}

.footer-offices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-offices-grid p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
    max-width: none;
}

.footer-offices-grid p strong {
    color: #1a1a1a;
}

@media (max-width: 900px) {
    .footer-offices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-offices-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.7rem;
    color: #777;
    margin-bottom: 0.4rem;
}

.footer-bottom .registration-info {
    font-size: 0.7rem;
    color: #aaa;
    letter-spacing: 0.5px;
}

/* Adjust mobile footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    footer {
        padding: 4rem 0 2rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100dvh;
        width: 100%;
        background-color: var(--dark-grey);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.5s ease;
        z-index: 999;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        padding: 1rem;
        display: block;
    }

    .burger {
        display: flex;
        z-index: 1000;
    }

    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.toggle .line2 {
        opacity: 0;
    }

    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .logo {
        font-size: 1.4rem;
        gap: 0.5rem;
    }

    .logo-image {
        height: 28px;
    }

    .logo-text {
        font-size: 1.4rem;
    }
}

@media (max-width: 900px) {

    .hero-content,
    .about-content,
    .director-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-details,
    .map-grid {
        grid-template-columns: 1fr;
    }

    #map {
        padding: 4rem 0;
    }

    .about-image,
    .contact-form {
        margin-top: 2rem;
    }

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

    .service-card {
        padding: 2rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

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

    .hero-text p {
        font-size: 1.2rem;
    }

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

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    main section {
        padding: 5rem 0;
    }

    .hero {
        background-attachment: scroll;
    }

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

    .footer-legal {
        text-align: center;
    }
}

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

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

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
    background: var(--primary-color);
    color: var(--dark-grey);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: background 0.3s, transform 0.3s;
}

#backToTop:hover {
    background: #b39254;
    transform: translateY(-4px) scale(1.08);
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #b39254);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(196, 166, 106, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(196, 166, 106, 0.4);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-grey);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

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

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

.stagger-animation {
    transition-delay: 0.1s;
}

.stagger-animation:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-animation:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-animation:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-animation:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-animation:nth-child(6) {
    transition-delay: 0.6s;
}

/* About Section Enhancements */
#about {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

#about h2 {
    animation: slideInFromTop 1s ease;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-text {
    position: relative;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #b39254);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.about-text.animated h3::after {
    transform: scaleX(1);
}

.about-text h4 {
    color: var(--dark-grey);
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
    position: relative;
    padding-left: 20px;
}

.about-text h4::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
}

.about-text ul {
    list-style: none;
    padding: 0;
}

.about-text li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 30px;
    transition: all 0.3s ease;
}

.about-text li::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-text.animated li::before {
    opacity: 1;
}

.about-text li:hover {
    background: rgba(196, 166, 106, 0.05);
    transform: translateX(10px);
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Why Choose Us Section Enhancements */
#why-choose-us {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.choose-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.choose-us-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.choose-us-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #b39254);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.choose-us-item.animated::before {
    transform: scaleX(1);
}

.choose-us-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.choose-us-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    position: relative;
}

/* Leadership Section Enhancements */
#leadership {
    padding: 6rem 0;
    position: relative;
}

.director-profile {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.director-info {
    position: relative;
    text-align: center;
}

.director-info h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.director-info h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #b39254);
    transform-origin: center;
    transition: transform 0.8s ease;
}

.director-info.animated h3::after {
    transform: translateX(-50%) scaleX(1);
}

.tag {
    background: var(--primary-color);
    color: var(--dark-grey);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin: 0.25rem;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.specializations.animated .tag {
    transform: translateY(0);
    opacity: 1;
}

/* Remove checkmarks from leadership lists */
.director-info ul li::before {
    content: none;
}

.tag:nth-child(1) {
    transition-delay: 0.1s;
}

.tag:nth-child(2) {
    transition-delay: 0.2s;
}

.tag:nth-child(3) {
    transition-delay: 0.3s;
}

.tag:nth-child(4) {
    transition-delay: 0.4s;
}

.tag:nth-child(5) {
    transition-delay: 0.5s;
}

.tag:hover {
    background: #b39254;
    transform: translateY(-3px) scale(1.05);
}

/* Mobile Optimizations */
@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .director-profile {
        text-align: center;
    }
    /* Reduce animation intensity on mobile */
    .animate-on-scroll,
    .animate-left,
    .animate-right {
        transform: translateY(20px);
    }

    .animate-left.animated,
    .animate-right.animated {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .choose-us-item:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .about-text li:hover {
        transform: translateX(5px);
    }

    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {

        .animate-on-scroll,
        .animate-left,
        .animate-right,
        .animate-scale {
            transition: none;
        }
        .choose-us-item:hover {
            transform: none;
        }
    }
}

/* --- MOBILE FIXES --- */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  .hero-content {
    flex-direction: column;
    padding: 2rem 1rem;
  }
  .hero-text {
    padding: 2rem 0 0 0;
    max-width: 100%;
  }
  .hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.1;
  }
  .hero-text h1 span {
    font-size: 1.5rem;
  }
  .hero-text p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  .btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    display: none;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.nav-active {
    display: flex;
  }
  .nav-links li {
    margin: 1rem 0;
    width: 100%;
  }
  .nav-links a {
    color: var(--dark-grey);
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 0;
    border-bottom: 1px solid #eee;
  }
  .burger {
    display: flex;
  }
  .about-content, .services-grid, .footer-content {
    grid-template-columns: 1fr !important;
    width: 100%;
    gap: 2rem;
  }
  .about-image img {
    height: 220px;
    object-fit: cover;
  }
  .choose-us-grid {
    grid-template-columns: 1fr;
  }
  .service-card, .choose-us-item {
    padding: 1.5rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
}


/* =====================================================================
   Accessibility and interaction repairs
   ===================================================================== */

/* --- F-13: skip to content ------------------------------------------ */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2000;
    padding: 0.9rem 1.5rem;
    background: var(--dark-grey);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    border-bottom-right-radius: 8px;
    transform: translateY(-120%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

#main-content:focus {
    outline: none;
}

/* --- F-04: visible keyboard focus ----------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Dark backgrounds need a light ring to stay visible. */
header a:focus-visible,
footer a:focus-visible,
.hero a:focus-visible {
    outline-color: var(--white);
}

/* --- F-09: current page in the navigation --------------------------- */
.nav-links a.nav-current {
    color: var(--primary-color);
}

.nav-links a.nav-current::after {
    width: 100%;
}

/* --- F-19: pressed feedback ----------------------------------------- */
.btn:active,
button:active,
.footer-contact-item:active {
    transform: translateY(1px) scale(0.99);
}

.btn:disabled,
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* =====================================================================
   F-05: running prose reads left-aligned
   Headings and short intros stay centred by the section rule; only
   multi-line body copy is realigned.
   ===================================================================== */
.news-article-card,
.about-text,
.service-detail-text,
.service-detail-text p,
.specialized-services .service-card p {
    text-align: left;
}

.news-article-card p,
.about-text p,
.service-detail-text p {
    max-width: 68ch;
}

.news-article-card p {
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================================
   F-01 / F-11: contact form labels, validation and error states
   ===================================================================== */
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-grey);
    text-align: left;
}

.form-group input,
.form-group textarea {
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark-grey);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #999;
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
    border-color: #b3261e;
    box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

.field-error {
    margin: 0.45rem 0 0;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #b3261e;
    text-align: left;
}

.form-message:empty {
    display: none;
}


/* =====================================================================
   F-10: 404 page
   ===================================================================== */
#not-found {
    padding: 7rem 0;
}

#not-found .error-code {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
}

#not-found h1 {
    font-size: 2.6rem;
    margin: 0 0 1rem;
    color: var(--dark-grey);
}

#not-found .section-subtitle {
    max-width: 34rem;
    margin: 0 auto 2.5rem;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

/* .btn-secondary is built for the dark hero - restate it for this light page. */
#not-found .btn-secondary {
    background: transparent;
    color: var(--dark-grey);
    border: 2px solid var(--dark-grey);
    backdrop-filter: none;
}

#not-found .btn-secondary:hover {
    background: var(--dark-grey);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(26, 26, 26, 0.2);
}

.error-links h2 {
    font-size: 1.15rem;
    color: var(--dark-grey);
    margin-bottom: 1.25rem;
}

.error-links ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    justify-content: center;
}

.error-links a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.error-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    #not-found {
        padding: 4.5rem 0;
    }

    #not-found .error-code {
        font-size: 3.5rem;
    }

    #not-found h1 {
        font-size: 2rem;
    }
}
