/* Design 2: Modern & Bold (Dark Mode) */
:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --primary: #00e5ff;
    /* Cyan/Bright Blue */
    --accent: #2979ff;
    --text-main: #e0e0e0;
    --text-muted: #b0b0b0;
    --border: #333333;
    --nav-bg: rgba(18, 18, 18, 0.95);
    --hero-bg: radial-gradient(circle at 10% 20%, rgba(41, 121, 255, 0.1) 0%, rgba(18, 18, 18, 1) 90%);
    --shadow-color: rgba(255, 255, 255, 0.05);
    /* For hero image box-shadow */
    --bg-alt: #1a1a1a;
}

[data-theme="light"] {
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --primary: #0091ea;
    /* Darker cyan/blue for contrast against white */
    --accent: #2962ff;
    --text-main: #333333;
    --text-muted: #666666;
    --border: #e0e0e0;
    --nav-bg: #002244;
    --hero-bg: radial-gradient(circle at 10% 20%, rgba(41, 121, 255, 0.1) 0%, #ffffff 90%);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --bg-alt: #ffffff;
}

/* Light Theme Overrides */
[data-theme="light"] .booking-section {
    background: #ffffff;
}

[data-theme="light"] .footer {
    background-color: #002244;
    color: #ffffff;
}

[data-theme="light"] .footer p,
[data-theme="light"] .footer a,
[data-theme="light"] .footer .footer-auth-links a {
    color: #ffffff;
}

[data-theme="light"] .partner-logo {
    background-color: #002244;
    color: #ffffff;
    border-color: #002244;
}

[data-theme="light"] .service-box {
    background-color: var(--primary);
    color: #000000;
}

[data-theme="light"] .service-box h3,
[data-theme="light"] .service-box p {
    color: #000000;
}

[data-theme="light"] .service-box .icon-box i {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

/* Társasházak card – featured dark card in light mode */
[data-theme="light"] .service-box--featured {
    background-color: #002244 !important;
    color: #ffffff;
}

[data-theme="light"] .service-box--featured h3,
[data-theme="light"] .service-box--featured p {
    color: #ffffff;
}

[data-theme="light"] .service-box--featured .icon-box i {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: var(--nav-bg);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border);
}



.logo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo .highlight {
    color: var(--primary);
}

[data-theme="light"] .logo {
    color: #ffffff !important;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

[data-theme="light"] .nav-links a {
    color: #ffffff;
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
    color: var(--primary);
}

.cta-btn {
    border: 2px solid var(--primary);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--primary) !important;
}

.cta-btn:hover {
    background-color: var(--primary);
    color: var(--bg-dark) !important;
}

/* Dropdown submenu */
.has-dropdown {
    position: relative;
}

.has-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nav-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    list-style: none;
    padding: 12px 0 8px;
    margin: 0;
    min-width: 210px;
    z-index: 2000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.has-dropdown:hover .dropdown {
    display: block;
}

.has-dropdown .dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.has-dropdown .dropdown li a:hover {
    background: rgba(0, 229, 255, 0.08);
    color: var(--primary);
}

[data-theme="light"] .has-dropdown .dropdown li a {
    color: #ffffff;
}

[data-theme="light"] .has-dropdown .dropdown li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

/* Admin style*/

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: var(--text-primary);
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 2px solid var(--primary);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.admin-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--primary);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid var(--primary);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.stat-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.stat-card .stat-value {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
}

.quotes-table-container {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 20px;
    overflow-x: auto;
}

.quotes-table {
    width: 100%;
    border-collapse: collapse;
}

.quotes-table thead {
    background: var(--primary);
    color: white;
}

.quotes-table th {
    padding: 15px;
    text-align: left;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
}

.quotes-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
    color: var(--text-primary);
}

.quotes-table tbody tr:hover {
    background: rgba(74, 144, 226, 0.1);
}

.service-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.service-klima {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.service-villany {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.service-viz {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.service-gaz {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.status-select {
    padding: 5px 10px;
    border: 1px solid var(--primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 5px;
    cursor: pointer;
}

.status-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.service-ezermester {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
}

.service-szaktanacsadas {
    background: rgba(162, 155, 254, 0.2);
    color: #a29bfe;
}

.service-szakertoi {
    background: rgba(255, 121, 121, 0.2);
    color: #ff7979;
}

.service-tarsashaz {
    background: rgba(240, 147, 43, 0.2);
    color: #f0932b;
}

.no-quotes {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.add-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
}

.crud-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.crud-table th {
    background: var(--primary);
    color: white;
    padding: 12px;
    text-align: left;
}

.crud-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
    color: var(--text-primary);
}

.crud-table tbody tr:hover {
    background: rgba(74, 144, 226, 0.1);
}

.del-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 0.85rem;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-box {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 10px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-box.large {
    max-width: 900px;
}

.toolbar {
    display: flex;
    gap: 5px;
    background: var(--bg-main);
    padding: 10px;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    flex-wrap: wrap;
}

.toolbar button {
    padding: 5px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.toolbar button:hover {
    background: var(--primary);
    color: white;
}

.modal-box label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}

.modal-box input,
.modal-box textarea,
.modal-box select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-main);
    box-sizing: border-box;
    margin-bottom: 12px;
}

.modal-box input[type="datetime-local"],
.modal-box input[type="date"] {
    color-scheme: dark;
    cursor: pointer;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

@media (max-width: 768px) {
    .admin-container {
        padding-top: 80px;
    }

    /* Stacking responsive table */
    .quotes-table thead {
        display: none;
    }

    .quotes-table,
    .quotes-table tbody,
    .quotes-table tr,
    .quotes-table td {
        display: block;
        width: 100%;
    }

    .quotes-table tr {
        margin-bottom: 25px;
        border: 2px solid var(--primary);
        border-radius: 12px;
        background: var(--bg-secondary);
        padding: 5px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .quotes-table td {
        text-align: right;
        padding: 12px 10px 12px 45% !important;
        position: relative;
        border-bottom: 1px solid rgba(74, 144, 226, 0.1);
        min-height: 45px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        box-sizing: border-box;
    }

    .quotes-table td:last-child {
        border-bottom: none;
        justify-content: center;
        padding-left: 10px !important;
    }

    .quotes-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 40%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        font-family: 'Oswald', sans-serif;
        color: var(--primary);
        font-size: 0.75rem;
        text-transform: uppercase;
    }

    /* Adjust status-select for mobile */
    .status-select {
        width: 100%;
        max-width: 200px;
    }
}

/* Admin blog */

#blogTableBody td,
#galleryTableBody td,
#workShopTableBody td,
#promoTableBody td {
    background-color: var(--bg-secondary);
    text-align: center;
    padding: 20px;
}


#blogModal h2,
#galleryModal h2,
#workShopModal h2,
#promoModal h2 {
    margin-bottom: 20px;
    color: var(--primary);
}


#blogContent,
#galleryContent,
#workShopContent,
#promoContent {
    border-radius: 0 0 5px 5px;
}


.section-header {
    text-align: center;
    margin-bottom: 50px;
}

/* Page headers*/

.page-header {
    padding-top: 130px;
    padding-bottom: 50px;
    text-align: center;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--text-main);
    margin: 0;
}

/* Services page: image+text alternating rows */
.services-detailed-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.service-row {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border);
}

.service-img {
    width: 45%;
}

.service-text {
    width: 45%;
}

.service-row:nth-child(even) {
    flex-direction: row-reverse;
    background-color: var(--bg-alt);
}

.service-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.service-row.reverse>* {
    direction: ltr;
}

.service-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    aspect-ratio: 4/3;
    object-fit: cover;
}

.service-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-main);
    transition: color 0.2s;
}

.service-text h2:hover {
    color: var(--primary);
}

.service-text p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.page-header {
    padding: 130px 20px 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.more-services {
    padding: 60px 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.more-services-div {
    max-width: 1100px;
    margin: 0 auto;
}

.more-services-div h2 {
    text-align: center;
    margin-bottom: 30px;
}

.more-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.more-services-grid a {
    text-decoration: none;
}

.more-services-grid a div {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
    color: var(--text-main);
}

.more-services-grid a div:hover {
    transform: translateY(-5px);
}

.more-services-grid a div i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

@media (max-width: 768px) {
    .service-row {
        grid-template-columns: 1fr;
        gap: 30px;
        direction: ltr !important;
    }

    .has-dropdown .dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 20px;
    }
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-main);
}

[data-theme="light"] .theme-toggle {
    color: #ffffff !important;
}

[data-theme="light"] .menu-toggle {
    color: #ffffff !important;
}

.theme-toggle:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    padding-top: 80px;
    /* Navbar height */
    box-sizing: border-box;
    background: var(--hero-bg);
    gap: 20px;
}

.hero-content {
    max-width: 500px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.highlight-text {
    color: transparent;
    -webkit-text-stroke: 1px var(--primary);
    position: relative;
}

.highlight-text::before {
    content: 'GOMBNYOMÁSRA';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    width: 0%;
    overflow: hidden;
    transition: width 1s ease-in-out;
    white-space: nowrap;
}

.hero:hover .highlight-text::before {
    width: 100%;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    border-left: 3px solid var(--primary);
    padding-left: 15px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    padding: 15px 35px;
    background: linear-gradient(45deg, var(--accent), var(--primary));
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.3);
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.btn-secondary {
    padding: 15px 35px;
    background: transparent;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: brightness(0.7) contrast(1.1);
    /* Darken hero image */
    border-radius: 20px;
    box-shadow: 0 0 50px var(--shadow-color);
}

.hero-promo-badge {
    position: absolute;
    top: 20px;
    right: -10px;
    background: linear-gradient(135deg, #ff9800 0%, #e65100 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(230, 81, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    animation: pulseBadge 2s infinite;
    min-width: 180px;
}

.hero-promo-badge:hover {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 15px 35px rgba(230, 81, 0, 0.6);
}

.hero-promo-badge .badge-text {
    font-weight: 800;
    font-size: 1.1rem;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.hero-promo-badge .badge-subtext {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 2px;
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Services */
.services-section {
    padding: 100px 10%;
}

.section-header {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.line {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-box {
    background-color: var(--bg-card);
    padding: 40px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.service-box:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.service-box:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.icon-box i {
    font-size: 2.5rem;
    background: -webkit-linear-gradient(45deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}

.service-box h3 {
    margin-bottom: 15px;
}

.service-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact / Booking */
.booking-section {
    padding: 50px 10% 100px;
    background-color: #1a1a1a;
    /* Dark mode default */
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.booking-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.booking-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-details .detail {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-details i {
    color: var(--primary);
}

.socials {
    margin-top: 40px;
}

.socials a {
    color: var(--text-main);
    font-size: 1.5rem;
    margin-right: 20px;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--primary);
}

.booking-form {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.booking-form h3 {
    margin-top: 0;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: var(--text-main);
    border: none;
    border-bottom: 1px solid #555;
    outline: none;
    background: transparent;
    transition: border-color 0.3s;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #777;
    transition: 0.3s;
    pointer-events: none;
    z-index: 1;
}

.input-group input:focus~label,
.input-group input:valid~label,
.input-group textarea:focus~label,
.input-group textarea:valid~label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary);
}

.input-group select {
    color: var(--text-muted);
    /* Initial placeholder color */
}

.input-group select option {
    background-color: var(--bg-card);
    color: var(--text-main);
}

/* Hack to simulate floating label for Select */
.select-label {
    top: -20px !important;
    font-size: 0.8rem !important;
    color: var(--primary) !important;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-bottom-color: var(--primary);
}

.booking-form button {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.booking-form button:hover {
    background: var(--accent);
}

/* Checkbox group styling */
.checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-group input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer;
    accent-color: var(--primary);
}


/* Footer */
.footer {
    padding: 20px;
    text-align: center;
    background-color: #1a1a1a;
    /* Dark mode default */
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    margin: 0;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    padding: 0 1rem;
}

/* Specific orange for the Bamaco link */
.footer div a[href="/bamaco-ralli"] {
    color: #ff9800;
    /* Always keep this orange */
}

.footer div a[href="/bamaco-ralli"]:hover {
    color: #e68900;
}

/* Hide reCAPTCHA badge (text notice in footer replaces it, per Google's policy) */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* Original colors for auth links */
.footer .footer-recaptcha-notice {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    opacity: 0.7;
}

.footer .footer-recaptcha-notice a {
    color: var(--text-muted);
    text-decoration: underline;
}

.footer .footer-recaptcha-notice a:hover {
    color: var(--primary);
}


.footer .footer-auth-links a {
    color: var(--text-muted);
}

.footer .footer-auth-links a:hover {
    color: var(--primary);
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        margin: 0;
        background-color: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transform: translateY(-200%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hero {
        flex-direction: column-reverse;
        height: auto;
        padding-bottom: 80px;
        padding-top: 140px;
        text-align: center;
    }

    .hero-content {
        margin-top: 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .booking-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        width: 100%;
        margin-top: 40px;
    }

    .service-row {
        flex-direction: column !important;
        text-align: center;
        gap: 30px;
    }

    .service-img,
    .service-text {
        width: 100% !important;
    }
}

@media (max-width: 800px) {
    .booking-section {
        text-align: center;
    }

    .booking-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .booking-info h3,
    .booking-form h3 {
        text-align: center;
    }

    .contact-details .detail {
        justify-content: center;
    }

    .socials {
        justify-content: center;
        display: flex;
        gap: 20px;
    }

    .socials a {
        margin-right: 0;
    }

    .go-to-top {
        display: none !important;
    }
}





/* Services Detail Page */


.service-column {

    padding: 80px 10%;
    background-color: var(--bg-dark);

}

.service-column-img {
    margin-bottom: 50px;
}

.service-column-img img {
    aspect-ratio: 5/3;
    object-fit: cover;
    object-position: top;
}

.service-row {
    padding: 80px 10%;
    background-color: var(--bg-dark);
}




.service-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ─── Promotions Section ──────────────────────────────────── */
.promotions-section {
    padding: 80px 10%;
    background-color: var(--bg-alt);
}

.promotions-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.promotion-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.promotion-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.promotion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.promo-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.promotion-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.promo-description {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.promo-validity {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ─── Service Card Wrapper (linked cards) ─────────────────── */
.service-card-wrapper .service-box:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

/* ─── Blog card hover ─────────────────────────────────────── */
.blog-card:hover {
    transform: translateY(-5px);
}

/* ─── Blog post content ───────────────────────────────────── */
.blog-post-content p {
    margin-bottom: 1.2em;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-left: 2em;
    margin-bottom: 1.2em;
}

.blog-post-content li {
    margin-bottom: 0.5em;
    color: var(--text-muted);
}

/* ─── Gallery image hover ─────────────────────────────────── */
.gallery-item:hover img {
    transform: scale(1.05);
}

/* ─── Misc CSS Variables aliases (admin uses --bg-main, --text-main etc.) ─ */
:root {
    --bg-main: var(--bg-dark);
    --bg-secondary: var(--bg-card);
    --text-primary: var(--text-main);
    --text-secondary: var(--text-muted);
}

/* Partners Carousel */
.partners-section {
    padding: 80px 0;
    margin: 60px 0;
    background-color: var(--bg-card);
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.carousel-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
    gap: 60px;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.partner-logo:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 30px));
    }
}

/* ─── Go to Top Button ────────────────────────────────────── */
.go-to-top {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.go-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.go-to-top:hover {
    background-color: var(--accent);
    transform: translateY(-5px);
}

/* --- Public Pages Styles --- */

/* Utility & Layout */
.page-container {
    padding: 40px 10%;
    min-height: 100vh;
}

.max-width-1400 {
    max-width: 1400px;
    margin: 0 auto;
}

.flex-column-gap-30 {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.empty-state-box {
    text-align: center;
    padding: 60px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.empty-state-box i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: block;
}

/* Workshops Page */
.workshop-list-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.workshop-full-msg {
    padding: 40px;
    text-align: center;
}

.workshop-full-msg i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.workshop-item-content {
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.workshop-info-col {
    flex: 1;
    min-width: 300px;
}

.workshop-date-tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.workshop-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.workshop-description {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.workshop-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    color: var(--text-muted);
}

.workshop-details-grid i {
    width: 25px;
    color: var(--primary);
}

.workshop-action-col {
    width: 100%;
    max-width: 250px;
    display: flex;
    align-items: center;
}

.workshop-reg-btn-large {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Promotions Page */
.promotion-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.promotion-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.promotion-title {
    font-size: 2rem;
    color: var(--text-main);
    margin: 0;
}

.promotion-badge {
    padding: 6px 15px;
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.promotion-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.promotion-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-main);
    font-weight: 500;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

/* Home Page */
.partners-carousel-container {
    overflow: hidden;
    padding: 20px 0;
}

.checkbox-row {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-input {
    width: auto !important;
    margin-top: 5px !important;
}

.checkbox-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    position: static;
    pointer-events: auto;
}

.workshop-description-top {
    margin-top: 20px;
    color: var(--text-muted);
}

.alert-full {
    display: none;
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.alert-success {
    display: none;
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.alert-error {
    display: none;
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #f5c6cb;
}

.form-group {
    margin-bottom: 15px;
}

.modal-input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-main);
    box-sizing: border-box;
}

.accent-link {
    color: var(--primary);
    text-decoration: underline;
}

.modal-submit-btn {
    width: 100%;
    padding: 12px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
}

.form-footer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    text-align: center;
}

/* Home & Layout Utilities */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.section-header-line-centered {
    margin: 10px auto 0;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.nav-right-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dropdown-chevron {
    font-size: 0.7rem;
}

.footer-inline-links {
    padding: 0 5px;
}

.footer-divider-margin {
    margin-bottom: 10px;
}

.badge-future {
    background: var(--text-muted);
}

.badge-active {
    background: var(--primary);
}

.date-sep {
    margin: 0 10px;
    color: var(--border);
}

.text-primary-bold {
    color: var(--primary);
    font-weight: bold;
}

.text-muted {
    color: var(--text-muted);
}

.accent-link-bold {
    color: var(--primary);
    font-weight: bold;
}

.no-deco {
    text-decoration: none;
}

/* Service Detail Page */
.service-detail-img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-placeholder {
    width: 100%;
    height: 300px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.service-placeholder i {
    font-size: 5rem;
    color: var(--primary);
}

.btn-cta-large {
    display: inline-block;
    margin-top: 30px;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 5px;
}

/* Gallery Page Styles */
.gallery-page-container {
    padding: 80px 10%;
    min-height: 100vh;
}

.gallery-filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.gallery-filter {
    padding: 12px 24px;
    border-radius: 25px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
}

.gallery-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.gallery-filter.active {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

.gallery-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px 15px 15px;
    color: white;
}

.gallery-item-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.gallery-item-badge {
    display: inline-block;
    margin-top: 5px;
    padding: 4px 10px;
    background: var(--primary);
    border-radius: 12px;
    font-size: 0.75rem;
}

/* Lightbox Styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-text {
    margin-top: 20px;
    text-align: center;
    color: white;
    max-width: 600px;
}

.lightbox-title {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.lightbox-desc {
    margin: 0;
    color: #ccc;
    line-height: 1.6;
}


/* Blog Page Styles */
.blog-page-wrapper {
    padding: 80px 10%;
    min-height: 80vh;
}

.blog-view-controls {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 40px;
}

.view-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.view-btn:hover,
.view-btn.active {
    border-color: var(--primary);
    color: var(--primary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.blog-list .blog-card {
    display: flex;
    gap: 60px;
    align-items: center;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    background: none;
}

.blog-list .blog-card:nth-child(even) {
    flex-direction: row-reverse;
}

.blog-list .blog-card .card-img-wrap {
    width: 45%;
    height: auto;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.blog-list .blog-card .card-content {
    width: 45%;
    padding: 0;
}

.blog-list .blog-card .blog-post-title {
    font-size: 2rem;
}

.blog-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.card-img-wrap {
    display: block;
    height: 200px;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}


.blog-post-date {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.blog-post-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.blog-post-title a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s;
}

.blog-post-title a:hover {
    color: var(--primary);
}

.blog-post-excerpt {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 992px) {
    .blog-list .blog-card {
        flex-direction: column !important;
        gap: 30px;
    }

    .blog-list .blog-card .card-img-wrap,
    .blog-list .blog-card .card-content {
        width: 100%;
    }
}

/* Blog Post Detail Page */
.blog-post-page {
    padding-top: 190px;
    min-height: 100vh;
    padding-bottom: 60px;
}

.blog-post-article {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-post-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}

.blog-post-header {
    text-align: left;
    margin-bottom: 20px;
}

.blog-post-header .line {
    margin: 0;
}

.blog-post-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.blog-post-body {
    line-height: 1.8;
    color: var(--text-main);
}

.blog-back-link {
    margin-top: 50px;
}

.blog-back-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}