/* Variables */
:root {
    --primary: #5CB647;
    --primary-light: #7ED957;
    --primary-dark: #4A9939;
    --secondary: #FF6B35;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b7280;
    --background: #f8fafc;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode */
[data-theme="dark"] {
    --primary: #7ED957;
    --primary-light: #8FE968;
    --primary-dark: #5CB647;
    --secondary: #FF8B55;
    --text-dark: #f8f9fa;
    --text-medium: #e9ecef;
    --text-light: #ced4da;
    --background: #121212;
    --white: #1e1e1e;
    --border: #333333;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Arial', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    padding-bottom: 80px; /* Increased from 50px */
    font-size: 16px;
}

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

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.header-logo {
    position: relative;
    padding-bottom: 0;
    margin-right: 20px;
    text-align: left;
    width: auto;
}

.header-name {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1.1;
}

.header-title {
    font-size: 14px;
    color: #333;
    font-weight: 50;
    letter-spacing: 2.5px;
    display: block;
    margin-top: 3px;
}

/* Mobile specific styling for header title */
@media (max-width: 768px) {
    [data-theme="dark"] .header-title {
        color: #ffffff;
        font-weight: 700;
    }
    
    [data-theme="light"] .header-title {
        color: #333333;
        font-weight: 700;
    }
}

/* Desktop styling for header title */
[data-theme="dark"] .header-title {
    color: #ffffff;
    font-weight: 700;
}

[data-theme="light"] .header-title {
    color: #333333;
    font-weight: 700;
}

.header-nav {
    width: auto;
    text-align: right;
    margin-top: 0;
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 11px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.header-nav a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 15px;
    padding: 4px 5px;
    border-radius: 6px;
    transition: var(--transition);
    display: block;
}

.header-nav a:hover {
    color: var(--primary);
    background-color: rgba(92, 182, 71, 0.1);
    transform: translateY(-1px);
}

/* Theme Toggle Button */
.theme-toggle {
    margin-left: 5px;
}

#theme-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 5px;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle-btn:hover {
    background-color: rgba(92, 182, 71, 0.1);
    transform: translateY(-1px);
}

/* Sun and Moon icons */
.sun-icon, .moon-icon {
    display: none; /* Both hidden by default */
}

/* Show appropriate icon based on theme */
[data-theme="light"] .moon-icon {
    display: block; /* Show moon in light mode */
}

[data-theme="dark"] .sun-icon {
    display: block; /* Show sun in dark mode */
}

/* Quote Section */
#Quote {
    padding-top: 30px;
    margin-top: -30px;
    scroll-margin-top: 80px !important;
}

h1 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 18px;
    color: var(--text-medium);
    line-height: 1.5;
}

/* Desktop quote section text layout */
@media (min-width: 769px) {
    #Quote .intro {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    #Quote .intro p:first-of-type {
        margin-bottom: 0;
    }
    
    #Quote .intro p:nth-of-type(2) {
        margin-top: 10px;
        color: var(--primary); /* Make the second sentence green */
        display: block; /* Ensure it's on its own line */
        width: 100%; /* Full width to ensure it's on its own line */
        font-weight: bold; /* Make the text bold */
    }
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    background: var(--white);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    margin-top: 0;
}

.trust-badge {
    text-align: center;
    flex: 1 1 100px;
    min-width: 90px;
    margin: 10px;
}

.trust-badge .number {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--white);
    padding: 6px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.tab-button {
    padding: 12px 25px;
    font-size: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    border-radius: 12px;
    color: var(--text-medium);
    flex: 1;
    position: relative;
}

.tab-button:hover {
    color: var(--primary);
    background-color: rgba(92, 182, 71, 0.05);
}

.tab-button.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Tab Content */
.tab-content {
    display: none;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content iframe {
    height: 700px;
    width: 100%;
    border: none;
    padding: 0 15px;
    box-sizing: border-box;
}

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

.tab-content h2 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 700;
}

.tab-content p {
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-medium);
    font-size: 16px;
}

/* Sections */
.section {
    padding-top: 30px;
    margin-top: 20px;
    border-top: 1px solid var(--border);
    scroll-margin-top: 80px !important;
}

/* Stories Section Optimization */
#stories.section {
    padding-top: 15px; /* Reduced from 30px */
}

#stories .page-navigation {
    margin-bottom: 10px; /* Reduced from 20px */
}

/* My Liability Section Optimization */
#liability.section {
    padding-top: 15px; /* Reduced from 30px */
}

#liability .page-navigation {
    margin: 8px 0; /* Reduced vertical margin */
    display: flex;
    flex-direction: column;
    gap: 5px; /* Minimal gap between button rows */
}

/* Create two distinct rows */
#liability .button-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px; /* Small gap between buttons */
}

#liability .page-button {
    padding: 3px 13px; /* Reduced height by 50% from 6.5px */
    font-size: 12px;
    margin: 0;
    white-space: nowrap;
}

/* Reduce button height for state and check buttons */
#liability .button-row.states .page-button {
    padding: 3px 13px; /* Reduced height by 50% from 6.5px */
    font-size: 12px; /* Keep original font size */
}

/* Ensure consistent height for license verification buttons */
.check-license-btn, .find-npn-btn {
    padding: 3px 13px !important; /* Match the reduced height */
    font-size: 12px !important; /* Keep original font size */
}

/* Mobile adjustments for My Liability section - certificates in one line */
@media (max-width: 768px) {
    #liability .button-row.certificates {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 3px;
    }
    
    #liability .button-row.certificates .page-button {
        font-size: 7px;
        padding: 3px 4px;
        white-space: nowrap;
        min-width: 0;
        flex: 1;
    }
    
    /* Adjust Check My License button to match certificate buttons height but keep font size */
    .check-license-btn, .find-npn-btn {
        padding: 1.5px 6px !important; /* Reduced height by 50% for mobile */
        font-size: 12px !important;
    }
    
    /* Center the courthouse icon between buttons */
    .license-icon-container {
        display: flex;
        justify-content: center;
        margin: 5px 0;
    }
    
    .license-icon {
        font-size: 24px;
        color: var(--primary);
    }
    
    #liability .button-row.states .page-button {
        padding: 1.5px 6px; /* Reduced height by 50% for mobile */
    }
}

/* Desktop adjustments for license verification buttons - UPDATED to match mobile layout */
@media (min-width: 769px) {
    /* Create a third row for verification buttons */
    #liability .button-row.verification {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }
    
    /* Center the courthouse icon between buttons */
    .license-icon-container {
        display: flex;
        justify-content: center;
        margin: 0 10px;
    }
    
    .license-icon {
        font-size: 24px;
        color: var(--primary);
    }
}

/* Consistent button styling for light/dark modes */
.check-license-btn, .find-npn-btn {
    background: var(--white);
    border: 2px solid var(--border);
    color: var(--text-medium);
}

[data-theme="dark"] .check-license-btn, 
[data-theme="dark"] .find-npn-btn {
    color: var(--text-dark);
}

[data-theme="light"] .check-license-btn, 
[data-theme="light"] .find-npn-btn {
    color: var(--text-medium);
}

.check-license-btn:hover, .find-npn-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Contact page license link styling */
.check-license-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-medium);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.check-license-link:hover {
    color: var(--primary);
    background-color: rgba(92, 182, 71, 0.1);
}

.check-license-link .license-icon {
    margin-right: 8px;
}

/* License verification modal styles */
.license-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.license-modal-content {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    max-width: 90%;
    width: 500px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    color: var(--text-dark); /* Use the theme's text color */
}

.license-modal-content h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.state-buttons, .confirmation-buttons, .search-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.state-buttons button, .confirmation-buttons button, .search-options button, .cancel-btn {
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: white; /* Always white text on primary color buttons */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.state-buttons button:hover, .confirmation-buttons button:hover, .search-options button:hover, .cancel-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.cancel-btn {
    background: #ff6b6b;
}

.cancel-btn:hover {
    background: #e74c3c;
}

/* Modal text color follows theme */
[data-theme="dark"] .license-modal-content h3,
[data-theme="dark"] .license-modal-content p {
    color: var(--text-dark); /* Dark theme text color */
}

[data-theme="light"] .license-modal-content h3,
[data-theme="light"] .license-modal-content p {
    color: var(--text-medium); /* Light theme text color */
}

/* Mobile adjustments for license modals */
@media (max-width: 768px) {
    .license-modal-content {
        padding: 15px;
    }
    
    .state-buttons, .confirmation-buttons, .search-options {
        gap: 5px;
    }
    
    .state-buttons button, .confirmation-buttons button, .search-options button, .cancel-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* FAQ Section - New Dynamic Version */
.faq-page {
    display: none;
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    text-align: left;
}

.faq-page.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.faq-item {
    margin-bottom: 25px;
    position: relative;
    padding-left: 40px;
}

.faq-question-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-weight: bold;
    font-size: 16px;
}

.faq-question {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 16px;
}

.faq-answer {
    color: var(--text-medium);
    position: relative;
    padding-left: 30px;
    line-height: 1.6;
}

.faq-answer::before {
    content: '👨‍💼';
    position: absolute;
    left: 0;
    top: 0;
}

.no-faq-message {
    text-align: center;
    padding: 30px;
    color: var(--text-medium);
    font-style: italic;
}

/* FAQ Admin Panel Styles */
.faq-admin-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border: 2px solid var(--primary);
    overflow: hidden;
}

.faq-admin-header {
    background: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-admin-header h3 {
    margin: 0;
    font-size: 18px;
}

.faq-admin-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.faq-admin-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.faq-admin-content {
    padding: 20px;
    max-height: calc(90vh - 60px);
    overflow-y: auto;
}

.faq-admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.faq-admin-tab {
    padding: 8px 15px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-medium);
    transition: var(--transition);
}

.faq-admin-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.faq-admin-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.faq-admin-form .form-group {
    margin-bottom: 20px;
}

.faq-admin-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.faq-admin-form input,
.faq-admin-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-dark);
}

.faq-admin-form input:focus,
.faq-admin-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(92, 182, 71, 0.1);
}

.faq-admin-form textarea {
    resize: vertical;
    min-height: 200px;
    font-family: monospace;
}

.faq-save-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.faq-save-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile adjustments for FAQ admin panel */
@media (max-width: 768px) {
    .faq-admin-panel {
        width: 95%;
        max-height: 95vh;
    }
    
    .faq-admin-content {
        padding: 15px;
    }
    
    .faq-admin-form input,
    .faq-admin-form textarea {
        padding: 10px;
    }
    
    .faq-admin-tab {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .faq-item {
        padding-left: 35px;
    }
    
    .faq-question-number {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
}

/* Specific adjustments for FAQ buttons with longer text */
#faq .page-button {
    font-size: 9px; /* Slightly smaller font to fit text */
    padding: 6.5px 10px; /* Adjust padding to fit text */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px; /* Limit width to prevent buttons from becoming too wide */
}

/* Mobile adjustments for FAQ buttons */
@media (max-width: 768px) {
    #faq .page-navigation {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 10px;
    }
    
    #faq .page-button {
        width: 100%;
        max-width: none;
        font-size: 11px; /* Slightly larger font for mobile vertical layout */
    }
}

/* Quote CTA styling */
.quote-cta {
    text-align: center;
    margin: 20px auto 0;
    max-width: 600px;
}

.quote-phrase {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.compact-quote-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(92, 182, 71, 0.2);
}

.compact-quote-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(92, 182, 71, 0.3);
}

/* Adjust spacing for About section to ensure visibility without scrolling */
#about .quote-cta {
    margin-top: 25px;
}

/* Adjust spacing for Stories section */
#stories .page-content .quote-cta {
    margin-top: 15px;
}

/* Voice intro container and controls */
.voice-intro-container {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
}

.voice-intro {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    background-color: rgba(92, 182, 71, 0.1);
}

.voice-intro:hover {
    background-color: rgba(92, 182, 71, 0.2);
    transform: translateY(-2px);
}

.volume-slider-container {
    display: flex;
    align-items: center;
    margin-top: 8px;
    background-color: rgba(92, 182, 71, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.volume-slider {
    width: 100px;
    margin-right: 8px;
    -webkit-appearance: none;
    height: 5px;
    border-radius: 5px;
    background: var(--text-light);
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

.volume-value {
    font-size: 12px;
    color: var(--text-medium);
    min-width: 36px;
}

/* Mobile adjustments for volume slider */
@media (max-width: 768px) {
    .volume-slider {
        width: 80px;
    }
}

/* Hidden audio element */
.hidden-audio {
    display: none;
}

section[id] {
    scroll-margin-top: 80px !important;
}

.section h2 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 700;
}

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

/* About Section */
.about-flex {
    display: flex;
    gap: 30px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.about-photo {
    width: 150px;
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 3px solid var(--white);
}

.about-photo img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

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

.about-text {
    flex: 1;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.partner-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.partner-item img {
    max-width: 100%;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.partner-item p {
    color: var(--text-medium);
    font-weight: 500;
    font-size: 14px;
}
.partner-quote-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 5.6px 16px; /* Reduced height by 30% from 8px */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: var(--transition);
    text-align: center;
}

.partner-quote-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Page Navigation */
.page-navigation {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 10px;
    flex-wrap: wrap;
}

.page-button {
    background: var(--white);
    border: 2px solid var(--border);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-medium);
    transition: var(--transition);
    font-size: 14px;
}

#stories .page-button,
#clientsking .page-button {
    font-size: 9.1px;
    padding: 6.5px 13px;
    border-radius: 16.25px;
}

.page-button:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.page-button.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* Page Content */
.page-content {
    display: none;
    text-align: center;
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.page-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin: 0 auto;
}

/* FIXED: Drum Carousel Styles for circular infinite carousel with LARGER IMAGES */
.drum-carousel-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    perspective: 1000px;
    margin: 30px auto;
    max-width: 800px;
    padding-bottom: 60px;
}

.drum-carousel {
    position: relative;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.drum-category {
    position: absolute;
    width: 100%;
    height: 180px; /* Increased from 160px to prevent title cutoff */
    left: 0;
    right: 0;
    margin: auto;
    opacity: 0;
    transform-origin: center center;
    transition: all 0.4s ease-out;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    will-change: transform, opacity;
}

.drum-category.active {
    opacity: 1;
    height: 200px; /* Increased from 180px to prevent title cutoff */
    z-index: 3;
    box-shadow: var(--shadow-lg);
}

.category-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px; /* Increased from 10px to give more space */
    text-align: center;
    font-size: 14px;
    transition: font-size 0.4s ease;
    white-space: nowrap; /* Ensure title stays on one line */
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis if text overflows */
}

.category-number {
    color: var(--primary);
    font-weight: 700;
    margin-right: 5px;
}

.drum-category.active .category-title {
    font-size: 16px;
    color: var(--primary-dark);
}

.drum-category.active .category-number {
    font-size: 18px;
}

.category-images {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-image {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
}

.drum-category.active .category-image {
    width: 130px;
    height: 130px;
    box-shadow: var(--shadow-md);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-tap-highlight-color: transparent;
}

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

.drum-controls {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 15px;
    z-index: 100 !important;
}

.drum-prev, .drum-next {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.drum-prev:hover, .drum-next:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Fullscreen viewer with navigation */
#fullscreen-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.fullscreen-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fullscreen-viewer img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-tap-highlight-color: transparent;
}

#fullscreen-viewer img:focus {
    outline: none;
}

.close-fullscreen {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Updated fullscreen category title positioning - moved above the image */
.fullscreen-category-title {
    position: absolute;
    top: 15px; /* Position well above the image */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    z-index: 3;
    text-align: center;
    max-width: 90%;
    white-space: nowrap; /* Force single line */
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis if text overflows */
}

/* Make navigation buttons smaller and more compact */
.nav-prev-image,
.nav-next-image,
.nav-prev-category,
.nav-next-category {
    width: 36px;
    height: 36px;
    font-size: 18px;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.nav-prev-image:hover,
.nav-next-image:hover,
.nav-prev-category:hover,
.nav-next-category:hover {
    opacity: 1;
    background: var(--primary-dark);
}

/* Desktop positioning */
@media (min-width: 769px) {
    /* Left/right image navigation - keep in current position */
    .nav-prev-image {
        left: -50px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .nav-next-image {
        right: -50px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Up/down category navigation - move to edges */
    .nav-prev-category {
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
    }
    
    .nav-next-category {
        top: 50%;
        right: 15px;
        left: auto;
        transform: translateY(-50%);
    }
    
    /* Hover effects for desktop */
    .nav-prev-category:hover,
    .nav-next-category:hover,
    .nav-prev-image:hover,
    .nav-next-image:hover {
        transform: translateY(-50%);
    }
}

/* Mobile positioning */
@media (max-width: 768px) {
    /* Category title adjustments for mobile */
    .fullscreen-category-title {
        top: 10px;
        font-size: 14px;
        padding: 6px 12px;
    }
    
    /* Left/right image navigation - move to edges */
    .nav-prev-image {
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .nav-next-image {
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Up/down category navigation - move outside the image */
    .nav-prev-category {
        top: 10px;
        right: 10px;
        left: auto;
        transform: none;
    }
    
    .nav-next-category {
        bottom: 10px;
        right: 10px;
        left: auto;
        transform: none;
    }
}

/* Fix for overlapping buttons on mobile */
@media (max-width: 480px) {
    .nav-prev-category {
        top: 55px; /* Move below the title */
    }
}

.nav-prev-image.hidden,
.nav-next-image.hidden,
.nav-prev-category.hidden,
.nav-next-category.hidden {
    display: none;
}

/* Breathing Quote Button - UPDATED POSITIONING */
.breathing-btn {
    display: none; /* Hidden by default, shown only in fullscreen */
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(92, 182, 71, 0.3);
    position: absolute;
    z-index: 10;
    animation: breathing 2s infinite ease-in-out;
    transition: transform 0.3s ease;
}

.breathing-btn:hover {
    animation-play-state: paused;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: scale(1.05);
}

/* Breathing animation */
@keyframes breathing {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(92, 182, 71, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(92, 182, 71, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(92, 182, 71, 0.3);
    }
}

/* Desktop positioning - fixed position relative to the image */
@media (min-width: 769px) {
    .breathing-btn {
        bottom: 20px;
        right: -180px; /* Positioned outside the image */
        min-width: 150px;
        padding: 12px 20px;
        font-size: 16px;
        position: absolute; /* Ensure it stays positioned relative to the image */
    }
}

/* Mobile positioning - fixed position at the bottom of the viewer */
@media (max-width: 768px) {
    .breathing-btn {
        bottom: 20px; /* Fixed position from bottom of viewer */
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        max-width: 300px;
        padding: 8px 15px;
        font-size: 16px;
        position: fixed; /* Fixed position relative to the viewport */
    }
    
    /* Adjust the breathing animation for mobile */
    @keyframes breathing {
        0% {
            transform: translateX(-50%) scale(1);
            box-shadow: 0 4px 15px rgba(92, 182, 71, 0.3);
        }
        50% {
            transform: translateX(-50%) scale(1.05);
            box-shadow: 0 8px 20px rgba(92, 182, 71, 0.5);
        }
        100% {
            transform: translateX(-50%) scale(1);
            box-shadow: 0 4px 15px rgba(92, 182, 71, 0.3);
        }
    }
    
    /* Adjust hover for mobile */
    .breathing-btn:hover {
        transform: translateX(-50%) scale(1.05);
    }
}

/* Animation for image transitions */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Animation for category transitions */
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-right {
    animation: slideInRight 0.3s forwards;
}

.slide-in-left {
    animation: slideInLeft 0.3s forwards;
}

.slide-in-up {
    animation: slideInUp 0.3s forwards;
}

.slide-in-down {
    animation: slideInDown 0.3s forwards;
}

/* Contact Form - FIXED */
.contact-form {
    background: var(--white);
    padding: 20px 30px 30px; /* Adjusted padding */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px; /* Reduced from 5px */
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 15px; /* Reduced from 25px */
    color: var(--text-dark);
    font-size: 18.2px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px; /* Reduced from 15px */
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 12px; /* Reduced from 20px */
}

.form-group label {
    display: block;
    margin-bottom: 6px; /* Reduced from 8px */
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 18px; /* Reduced height from 14px */
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(92, 182, 71, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px; /* Reduced from 20px */
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border: none;
    padding: 12px 30px; /* Reduced from 16px */
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(92, 182, 71, 0.2);
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(92, 182, 71, 0.3);
}

/* User Reviews */
.user-review {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: left;
    max-width: 800px;
    margin: 0 auto 20px;
}

.user-review h3 {
    font-size: 14.3px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.review-date {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}
.review-text {
    line-height: 1.7;
    color: var(--text-medium);
    white-space: pre-line;
    margin-bottom: 15px;
}

.no-reviews {
    text-align: center;
    padding: 30px;
    color: var(--text-medium);
    font-style: italic;
}

.add-review-container {
    margin-top: 30px;
}

/* Reviews Container */
.reviews-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 15px;
}

.user-review:last-child {
    margin-bottom: 0;
}

/* Scrollbar styling */
.reviews-container::-webkit-scrollbar {
    width: 8px;
}

.reviews-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.reviews-container::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.reviews-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Multiple Photo Upload Styles */
.photo-upload-container {
    margin-bottom: 15px;
}

.add-photo-btn {
    background: var(--primary-light);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 20px;
    transition: var(--transition);
    display: block;
    width: auto;
}

.add-photo-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.remove-photo-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    margin-left: 10px;
}

.remove-photo-btn:hover {
    background: #e74c3c;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

/* Photo gallery in reviews */
.review-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.review-photo {
    width: calc(33.333% - 7px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.review-photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-tap-highlight-color: transparent;
}

.review-photo img:hover {
    transform: scale(1.03);
}

/* Footer */
footer {
    background-color: var(--white);
    padding: 40px 0 20px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    margin-top: 40px;
    border-top: 1px solid var(--border);
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 11.7px;
    font-weight: 600;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition);
    font-size: 15px;
}

.footer-section ul li a:hover {
    color: var(--primary);
    transform: translateX(2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    margin-bottom: 36px;
    font-size: 14px;
}

/* Logo Ticker - COMPLETE FIX */
.logo-ticker {
    background: var(--white);
    height: 36px;
    overflow: hidden;
    white-space: nowrap;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.logo-ticker-content {
    display: inline-block;
    animation: none; /* We'll apply animation via JS */
    height: 100%;
    line-height: 36px;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.logo-ticker img {
    height: 30px;
    width: auto;
    margin: 3px 10px;
    vertical-align: middle;
}

@keyframes scroll-left {
    from { transform: translateX(100vw); }
    to { transform: translateX(-100%); }
}

/* Mobile-specific ticker fixes */
@media (max-width: 768px) {
    .logo-ticker {
        height: 30px;
    }
    
    .logo-ticker-content {
        line-height: 30px;
    }
    
    .logo-ticker img {
        height: 24px;
        margin: 3px 8px;
    }
}

/* Admin Panel Styles */
.admin-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    border: 2px solid var(--primary);
}

.admin-header {
    background: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h3 {
    margin: 0;
    font-size: 18px;
}

.admin-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.admin-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-content {
    padding: 20px;
    max-height: calc(80vh - 70px);
    overflow-y: auto;
}

.admin-review {
    background: var(--background);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
}

.admin-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.admin-review-name {
    font-weight: 600;
    color: var(--text-dark);
}

.admin-review-date {
    font-size: 12px;
    color: var(--text-light);
}

.admin-review-text {
    color: var(--text-medium);
    margin-bottom: 10px;
    white-space: pre-line;
}

.admin-review-photos {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.admin-review-photo {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.admin-review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-tap-highlight-color: transparent;
}

.admin-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-checkbox {
    margin-right: 10px;
}

.delete-selected {
    background: #ff4757;
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    margin-bottom: 20px;
}

.delete-selected:hover {
    background: #ff3742;
    transform: translateY(-2px);
}

.delete-selected:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    /* Mobile header adjustments - OPTIMIZED */
    header {
        padding: 0px 0; /* Reduced from 6px */
        margin-bottom: 5px; /* Reduced from 10px */
    }
    
    .header-inner {
        flex-direction: column;
        align-items: center;
        gap: 3px; /* Reduced from 8px */
    }
    
    .header-logo {
        margin-right: 0;
        text-align: center;
        width: 100%;
        margin-bottom: 0;
    }
    
    .header-name {
        font-size: 18px; /* Reduced from 20px */
        line-height: 1.1;
    }
    
    .header-title {
        font-size: 11px; /* Reduced from 12px */
        font-weight: 600;
        letter-spacing: 1.5px;
        margin-top: 1; /* Reduced from 1px */
    }
    
    .header-nav {
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }
    
    .header-nav ul {
        justify-content: center;
        gap: 2px; /* Reduced from 8px */
        flex-wrap: wrap;
    }
    
    .header-nav a {
        font-size: 12px;
        padding: 3px 4px;
    }
    
    /* Mobile h1 adjustments */
    h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .intro {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    /* Mobile trust badges layout - more compact */
    .trust-badges {
        padding: 5px 3px;
        margin-bottom: 10px;
    }
    
    .trust-badge {
        margin: 0 2px;
        flex: 1;
        min-width: auto;
        font-size: 10px;
        white-space: nowrap;
    }
    
    .trust-badge .number {
        font-size: 16px;
        margin-bottom: 0;
    }
    
    .tabs {
        flex-direction: column;
        max-width: none;
        margin: 0 0 20px 0;
    }
    
    .tab-button {
        margin: 0;
        border-radius: 0;
    }
    
    .tab-button:first-child {
        border-radius: 10px 10px 0 0;
    }
    
    .tab-button:last-child {
        border-radius: 0 0 10px 10px;
    }
    
    /* MORE COMPACT WIDGETS ON MOBILE */
    .tab-content {
        padding: 10px;
        margin-bottom: 20px;
    }
    
    .tab-content iframe {
        height: 650px;
        padding: 0 10px;
    }
    
    .about-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
    }
    
    .about-photo {
        margin-bottom: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Further reduced section h2 size for mobile */
    .section h2 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Improved section positioning for mobile */
    section[id], div[id="Quote"] {
        scroll-margin-top: 100px !important; /* Increased from 70px to ensure sections are visible */
    }
    
    /* Make section top padding smaller */
    .section {
        padding-top: 15px; /* Reduced from 20px */
        margin-top: 10px; /* Reduced from 15px */
    }
    
    #Quote {
        padding-top: 20px;
        margin-top: -20px;
        scroll-margin-top: 80px !important;
    }
    
    /* Mobile adjustments for My Liability section */
    #liability .page-navigation {
        flex-direction: column;
        gap: 5px;
    }
    
    #liability .button-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    /* Mobile adjustments for partners grid */
    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
    }
    
    .partner-item {
        padding: 15px;
    }
    
    .partner-item img {
        height: 40px;
    }
    
    .partner-item p {
        font-size: 12px;
    }
    
    /* Mobile styles for photo gallery */
    .review-photos {
        gap: 5px;
    }
    
    .review-photo {
        width: calc(50% - 5px);
    }
    
    .file-input-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .remove-photo-btn {
        margin-left: 0;
        margin-top: 5px;
        width: 100%;
    }
    
    /* Mobile adjustments for quote CTA */
    .quote-phrase {
        font-size: 16px;
    }
    
    .compact-quote-btn {
        padding: 6px 16px;
        font-size: 14px;
    }
    
    /* Quote section optimization - MOBILE */
    .pre-lead-form {
        padding: 15px 20px; /* Reduced from 20px 30px */
    }
    
    .pre-lead-form .form-group {
        margin-bottom: 8px; /* Reduced from 12px */
    }
    
    .pre-lead-form input {
        padding: 8px 15px; /* Reduced from 10px 15px */
    }
    
    .pre-lead-form .submit-btn {
        padding: 7px 20px; /* Reduced from 8px 25px */
        margin-top: 5px; /* Reduced from 8px */
    }

    .pre-lead-tabs {
        margin-bottom: 10px; /* Reduced from 15px */
    }
    
    .pre-lead-tab {
        padding: 5px 15px; /* Reduced from 6px 15px */
    }
    
    /* Mobile adjustments for drum carousel with larger images - UPDATED WITH OVERLAPPING IMAGES */
    .drum-carousel-container {
        height: 420px;
        padding-bottom: 50px;
    }
    
    .drum-category {
        height: 160px;
        padding: 10px 15px;
    }
    
    .drum-category.active {
        height: 180px;
    }
    
    .category-title {
        font-size: 11px;
        margin-bottom: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .drum-category.active .category-title {
        font-size: 13px;
    }
    
    .category-image {
        width: 104px;
        height: 104px;
    }
    
    /* Keep images in one line on mobile with 15% overlap */
    .drum-category .category-images {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
        padding-bottom: 5px;
        margin: 0 -15px;
        padding: 0 15px;
        -webkit-overflow-scrolling: touch;
        gap: 0; /* Remove gap to allow for overlap */
    }
    
    /* Only apply the overlap to the active category for better visibility */
    .drum-category.active .category-image {
        flex: 0 0 auto;
        width: 104px;
        height: 104px;
        margin-right: -15px; /* Negative margin creates overlap */
        position: relative; /* Needed for z-index to work */
        z-index: 1; /* Default z-index */
    }
    
    /* Increase z-index for hovered images to appear on top */
    .drum-category.active .category-image:hover {
        z-index: 2;
    }
    
    /* Last image doesn't need negative margin */
    .drum-category.active .category-image:last-child {
        margin-right: 0;
    }
    
    /* Non-active categories have slightly smaller images */
    .drum-category:not(.active) .category-image {
        flex: 0 0 auto;
        width: 91px;
        height: 91px;
        margin-right: 5px; /* Keep normal spacing for non-active categories */
    }
    
    .drum-controls {
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        position: absolute !important; /* Reset position for mobile */
    }
    
    .drum-prev, .drum-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    /* Optimize contact form for mobile */
    .contact-form {
        padding: 15px 20px 25px; /* Reduced from 20px 30px 30px */
    }
    
    .contact-form h3 {
        margin-bottom: 10px; /* Reduced from 15px */
        font-size: 16px; /* Reduced from 18.2px */
    }
    
    /* Optimize footer for mobile */
    footer {
        padding: 30px 0 20px; /* Reduced from 40px 0 20px */
    }
    
    .footer-content {
        gap: 1.5rem; /* Reduced from 2rem */
    }
    
    /* Fix for last section to ensure proper scrolling to the end */
    body {
        padding-bottom: 100px; /* Even more padding on mobile */
    }
    
    /* Ensure the last section has enough space */
    #contact {
        margin-bottom: 50px;
    }
    
    /* Mobile adjustments for volume slider */
    .volume-slider-container {
        padding: 4px 8px;
    }
    
    .volume-slider {
        width: 80px;
    }
    
    .volume-value {
        font-size: 11px;
        min-width: 30px;
    }
}

/* Desktop adjustments for drum carousel */
@media (min-width: 769px) {
    .drum-controls {
        position: fixed !important;
        bottom: auto !important;
        left: auto !important;
        right: 80px !important;
        top: 60% !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        z-index: 100 !important;
    }
    
    .drum-prev, .drum-next {
        width: 45px !important;
        height: 45px !important;
        font-size: 20px !important;
    }
    
    /* Improved section scroll margin for desktop */
    section[id], div[id="Quote"] {
        scroll-margin-top: 80px !important; /* Increased from 50px for desktop */
    }
}

/* Additional fix for image selection in fullscreen mode */
::selection {
    background: transparent;
}

/* For Firefox */
::-moz-selection {
    background: transparent;
}

/* Ensure all images in the site have consistent non-selection behavior */
img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Fix for iOS devices that might still show selection */
* {
    -webkit-touch-callout: none;
}

/* Loading indicator for review form */
.loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-indicator p {
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

/* Admin review items */
.admin-review-item {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
}

.review-checkbox {
    margin-right: 15px;
    margin-top: 3px;
    transform: scale(1.2);
}

.review-label {
    flex: 1;
    cursor: pointer;
}

.review-preview {
    color: var(--text-medium);
    margin-top: 5px;
    font-size: 14px;
}

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

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header, footer, .drum-controls, #fullscreen-viewer, .logo-ticker {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .drum-category {
        opacity: 1 !important;
        transform: none !important;
        position: relative !important;
        height: auto !important;
        margin-bottom: 20px !important;
        page-break-inside: avoid;
    }
    
    .category-image {
        page-break-inside: avoid;
    }
}

/* Loading state for partners grid */
.partners-grid .loading,
.partners-grid .error {
    text-align: center;
    padding: 30px;
    color: var(--text-medium);
    font-style: italic;
    grid-column: 1 / -1;
}

.partners-grid .error {
    color: #e74c3c;
}
