:root {
    /* Colors */
    --color-primary: #D4AF37;
    /* Gold */
    --color-primary-light: #F4E5B2;
    --color-secondary: #F9F3F1;
    /* Soft Nude/Pinkish White */
    --color-text-dark: #2C2C2C;
    --color-text-light: #FFFFFF;
    --color-bg-light: #FFFFFF;
    --color-bg-alt: #FDFBF7;
    --color-bg-dark: #1A1A1A;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-handwriting: 'Pinyon Script', cursive;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-fast: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-bg-light);
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

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

.bg-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.text-light {
    color: var(--color-text-light);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: #B5952F;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-dark);
    color: var(--color-dark);
}

.btn-secondary:hover {
    background-color: var(--color-dark);
    color: var(--color-bg-light);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
}

.logo {
    font-family: var(--font-handwriting);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-primary);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
    margin-right: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-left: auto;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--color-primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text-dark);
    margin: 5px 0;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-secondary);
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('assets/images/location/2bc2d757-4b65-4da9-be39-20c31f6db13a_01-large.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding-top: 80px;
    /* Navbar height */
}

.hero-content {
    max-width: 800px;
    padding: 0 var(--spacing-sm);
    animation: fadeIn Up 1s ease;
}

.hero h1 {
    font-family: var(--font-handwriting);
    font-size: 6rem;
    font-weight: 100;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.3);
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    color: #f0f0f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

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

.section-header .subtitle {
    font-family: var(--font-body);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    margin-top: 2rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
    text-align: left;
}

.about-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
    align-items: center;
}

.about-actions .btn-primary {
    flex: 1;
    text-align: center;
    min-width: 180px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .about-actions {
        gap: 0.5rem;
    }
    
    .about-actions .btn-primary {
        padding: 10px 12px;
        font-size: 0.8rem;
        min-width: 0;
        flex: 1;
    }
}

@media (max-width: 1024px) {
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .about-actions {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .about-actions .btn-primary {
        flex: 1;
        min-width: 0;
    }
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    padding-top: 20px;
    padding-left: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    z-index: 1;
}

/* Team Section */
.team-section {
    margin-top: 5rem;
    text-align: center;
}

.team-title {
    font-size: 2.5rem;
    color: var(--color-text-dark);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.team-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.team-member {
    cursor: pointer;
    transition: var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-img-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 4px solid var(--color-primary-light);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
}

.team-member:hover .team-img-wrapper {
    border-color: var(--color-primary);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

/* Modal Styles */
.modal {
    display: flex; /* Always flex but hidden by opacity/visibility */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px); /* Slightly more blur for luxury feel */
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--color-bg-light);
    margin: auto;
    padding: 3.5rem; /* Slightly more padding */
    border-radius: 20px; /* Rounder corners */
    width: 90%;
    max-width: 650px;
    position: relative;
    transform: scale(0.9) translateY(20px); /* Subtle entry position */
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--color-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-header h3 {
    font-size: 2rem;
    color: var(--color-text-dark);
}

.modal-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    white-space: pre-wrap;
}

/* Specific styles for Policy Modal */
#policy-modal .modal-content {
    max-width: 750px;
    padding: 2.5rem;
}

#policy-modal .modal-header {
    margin-bottom: 1.5rem;
    text-align: left;
}

#policy-modal .modal-header h3 {
    font-size: 1.75rem;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    padding-bottom: 0.5rem;
}

#policy-text {
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 1.5rem;
    color: #444;
    line-height: 1.6;
    text-align: left;
    white-space: pre-wrap;
}

/* Custom scrollbar for policy text */
#policy-text::-webkit-scrollbar {
    width: 6px;
}

#policy-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#policy-text::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
}

#policy-text::-webkit-scrollbar-thumb:hover {
    background: #B5952F;
}

@media (max-width: 768px) {
    .team-grid {
        gap: 2rem;
    }
    .modal-content {
        padding: 2rem;
    }
    .modal-header img {
        width: 120px;
        height: 120px;
    }
    .modal-header h3 {
        font-size: 1.5rem;
    }
}


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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition-fast);
    text-align: center;
    display: flex;
    flex-direction: column;
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-card .duration {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.service-card .description {
    color: #666;
    margin-bottom: 1.5rem;
    height: 4.8rem;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar for Service Card Descriptions */
.service-card .description::-webkit-scrollbar {
    width: 4px;
}

.service-card .description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.service-card .description::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
}

.service-card .description::-webkit-scrollbar-thumb:hover {
    background: #C39D2E;
}

/* Firefox support */
.service-card .description {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) #f1f1f1;
}

.service-card .price {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-top: auto;
}

/* Online Course Cards (Reference Image Design) */
.online-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.online-course-card {
    background: white;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.online-course-card .image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
}

.online-course-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.online-course-card:hover .image-container img {
    transform: scale(1.05);
}

.online-course-card .badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #333;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.online-course-card .content {
    padding: 1.5rem 0;
    text-align: left;
}

.online-course-card h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-dark);
    font-weight: 400;
}

.online-course-card .description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.online-course-card .description::-webkit-scrollbar {
    display: none;
}

.online-course-card .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.online-course-card .price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

.online-course-card .buy-link {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.online-course-card .buy-link span {
    transition: transform 0.3s ease;
}

.online-course-card:hover .buy-link span {
    transform: translateX(5px);
}

/* Wide (Horizontal) Layout for Single Course */
.online-course-card.wide {
    flex-direction: row;
    grid-column: 1 / -1; /* Default to full width for wide cards */
    max-width: 100%;
    margin: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    background: white;
}

.online-course-card.wide.span-2 {
    grid-column: span 2;
}

.online-course-card.wide .image-container {
    flex: 1;
    aspect-ratio: auto;
    height: 100%;
}

.online-course-card.wide .content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.online-course-card.wide h3 {
    font-size: 2.5rem;
    margin-top: 1rem;
}

.online-course-card.wide .badge {
    top: 30px;
    left: 30px;
}

.online-course-card.wide .footer {
    margin-top: 1rem;
    padding-top: 1.5rem;
}

@media (max-width: 1024px) {
    .online-course-card.wide {
        flex-direction: column;
    }
    .online-course-card.wide .image-container {
        aspect-ratio: 1/1;
    }
    .online-course-card.wide .content {
        padding: 1.5rem 0;
    }
}

/* Gallery */
.carousel-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    padding: 0 40px;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Momentum scrolling for iOS */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.gallery-item {
    min-width: 300px;
    width: 300px; /* Explicit width for Safari */
    flex: 0 0 300px; /* Force fix for Safari/iOS flex issues */
    scroll-snap-align: center;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
    .gallery-item {
        min-width: 260px;
        width: 260px;
        flex: 0 0 260px;
        height: 260px;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #ccc;
}

.hours {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hours h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Booking Section Specifics */
#booking {
    position: relative;
    background-image: linear-gradient(rgba(253, 251, 247, 0.9), rgba(253, 251, 247, 0.95)), url('assets/images/location/7379e504-5ff6-4a71-9b28-8f014676ad82_02-large.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.booking-form {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    color: var(--color-text-dark);
    max-width: 700px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.booking-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), 0 2px 5px rgba(0, 0, 0, 0.05);
}

.booking-form h3 {
    margin-bottom: 2rem;
    text-align: center;
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
    color: #444;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #aaa;
    font-weight: 300;
}

.booking-form .btn-primary.btn-block {
    margin-top: 1.5rem;
    padding: 16px;
    font-size: 1.1rem;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.booking-form .btn-primary.btn-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background-color: #C39D2E;
}

.btn-block {
    width: 100%;
}

/* Contact Bento Grid */
.contact-bento-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: stretch;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition-fast);
}

.contact-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.contact-secondary-col {
    display: grid;
    grid-template-rows: 1.5fr 1fr;
    gap: 2rem;
}

.map-card {
    padding: 0;
    overflow: hidden;
    min-height: 300px;
}

.useful-info-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
}

.policy-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    list-style: none;
    padding: 0;
}
.policy-list li {
    font-size: 0.9rem;
    color: #ccc;
    padding-left: 1.5rem;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.policy-list li:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}
    cursor: pointer;
    transition: color 0.3s ease;
}

.policy-list li:hover {
    color: var(--color-primary);
}

.policy-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

@media (max-width: 1024px) {
    .contact-bento-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-secondary-col {
        grid-template-rows: auto auto;
    }
    
    .map-card {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .contact-card {
        padding: 1.5rem;
    }
    
    .policy-list {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background-color: #111;
    color: #666;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-container {
        justify-content: space-between;
        padding: 0 1.5rem;
        height: 50px;
    }

    .logo {
        margin: 0;
        font-size: 2rem;
    }

    .logo img {
        max-height: 40px !important;
    }

    .nav-social {
        margin-left: auto;
        margin-right: 0.75rem;
    }

    .mobile-toggle {
        display: block;
        z-index: 1200;
        margin: 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 320px;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1100;
        padding: 3rem 1.5rem;
        margin: 0;
    }

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

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem;
        font-size: 1.1rem;
        color: var(--color-text-dark);
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }
}

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

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Navbar Social Icons */
.nav-social {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: auto;
    margin-right: 1.5rem;
}

.nav-social-link {
    color: var(--color-text-dark);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
}

.icon-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

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

.nav-social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 1024px) {
    .nav-social {
        margin-left: auto;
        margin-right: 1rem;
    }
}
.courses-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.courses-flyer img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.courses-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.physical-course-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-primary);
    transition: var(--transition-fast);
}

.physical-course-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.physical-course-item h3 {
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.physical-course-item p {
    color: #666;
    line-height: 1.6;
    white-space: pre-wrap;
    margin-bottom: 1.5rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-primary);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.whatsapp-btn:hover {
    background-color: #B5952F;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.whatsapp-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 1024px) {
    .courses-grid-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- Dashboard Styles --- */
.dashboard-page .navbar {
    display: none;
}

.dashboard-page {
    background-color: var(--color-bg-alt);
    min-height: 100vh;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 280px;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--transition-fast);
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 0;
    text-align: center;
}

.sidebar-header .logo {
    margin-right: 0;
}

.sidebar-header .logo img {
    max-height: 40px;
    filter: brightness(0) invert(1);
    margin: 0 auto 10px;
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
}

.sidebar-nav a {
    display: block;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #888;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
}

.sidebar-nav a.active, 
.sidebar-nav a:hover {
    color: var(--color-primary);
    background-color: rgba(212, 175, 55, 0.1);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.dashboard-main {
    flex: 1;
    margin-left: 280px;
    padding: var(--spacing-lg);
}

.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-topbar h1 {
    font-size: 1.8rem;
    color: var(--color-text-dark);
    letter-spacing: 2px;
}

.user-greeting {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-primary);
}

.dashboard-content {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.empty-state {
    text-align: center;
    padding: var(--spacing-xl) 0;
    color: #888;
}

.empty-state p {
    font-style: italic;
    font-size: 1.1rem;
}

@media (max-width: 1024px) {
    .dashboard-sidebar {
        width: 220px;
    }
    .dashboard-main {
        margin-left: 220px;
        padding: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    .dashboard-sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    .dashboard-main {
        margin-left: 0;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.modal-header h3 {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 1.8rem;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0 2px;
    color: #888;
    font-family: var(--font-body);
    transition: color 0.3s ease;
}

.lang-btn.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* --- Mobile Admin Dashboard Enhancements --- */

.admin-mobile-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    background: var(--color-bg-dark);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.admin-mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .admin-mobile-toggle {
        display: flex;
    }

    .dashboard-sidebar {
        transform: translateX(-100%);
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        width: 280px;
        height: 100vh;
    }

    .dashboard-sidebar.active {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0 !important;
        padding-top: 60px;
    }
    
    .admin-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .item-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .btn-edit, .btn-delete {
        flex: 1;
        text-align: center;
    }
    
    .admin-section-header {
        justify-content: center;
    }
    
    .admin-section-header button {
        width: 100%;
    }

    .dashboard-topbar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

.admin-mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.admin-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.admin-mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Skeleton Loading --- */
.loading {
    text-align: center;
    padding: 3rem 0;
    width: 100%;
}

.skeleton {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 5px;
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

.blog-skeleton {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.blog-skeleton-image {
    width: 100%;
    height: 280px;
}

.blog-skeleton-content {
    padding: 1.5rem;
}

.blog-skeleton-title {
    height: 1.8rem;
    width: 80%;
    margin-bottom: 1rem;
}

.blog-skeleton-text {
    height: 1rem;
    width: 100%;
    margin-bottom: 0.6rem;
}

.blog-skeleton-btn {
    height: 1.2rem;
    width: 40%;
    margin-top: 1rem;
}

/* --- Blog Styles --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    min-height: 400px;
    transition: opacity 0.3s ease;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

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

.blog-image {
    width: 100%;
    height: 240px; /* Slightly reduced height for better proportions */
    overflow: hidden;
    background-color: #f5f5f5;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Use cover for a more professional, filled look */
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.blog-image.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--color-dark);
}

.blog-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-text {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}

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

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Navbar Search --- */
.nav-search {
    position: relative;
    margin-left: 1.5rem;
    flex-grow: 0;
    width: 150px; /* Reduced width (approx half of 300px) */
}

.nav-search input {
    width: 100%;
    padding: 6px 30px 6px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s ease;
    background: #fdfdfd;
}

.nav-search input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
    background: white;
}

.nav-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    display: flex;
}

@media (max-width: 1024px) {
    .nav-search {
        display: none; /* Hide on mobile to avoid crowding, or we can move it to the mobile menu */
    }
}

/* ANPC Links in Footer */
.anpc-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.anpc-links a {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.anpc-links a:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.anpc-links img {
    height: 40px;
    width: auto;
    border-radius: 4px;
    background: white;
    padding: 2px;
}

@media (max-width: 480px) {
    .anpc-links {
        gap: 1rem;
    }
    .anpc-links img {
        height: 30px;
    }
}
/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.review-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(201, 164, 76, 0.1);
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-card .stars {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.review-author {
    font-weight: 600;
    color: var(--color-dark);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Override for secondary buttons in dark/hero sections */
.hero .btn-secondary,
.bg-dark .btn-secondary {
    border-color: var(--color-text-light);
    color: var(--color-text-light);
}

.hero .btn-secondary:hover,
.bg-dark .btn-secondary:hover {
    background-color: var(--color-text-light);
    color: var(--color-text-dark);
}

/* Specific hover color for reviews section button */
#reviews .btn-secondary:hover {
    background-color: #d2ae37;
    border-color: #d2ae37;
    color: white;
}

/* Temporary: Hide Online Courses section and its nav link */
#online-courses,
.nav-links li:has(a[href="#online-courses"]) {
    display: none !important;
}
