
.services-container {
    display: flex;
    min-height: 100vh;
    padding-top: 60px;
    background: #f8f9fa;
}

.services-sidebar {
    width: 280px;
    background: #6c93ff;
    padding: 30px 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 80px;
    margin-top: 20px;
    height: fit-content;
}

.services-sidebar h2 {
    color: white;
    font-family: 'David Libre', serif;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

/* Add styles for the actual menu.php structure */
.container {
    display: flex;
    height: calc(100vh - 70px);
    margin-top: 70px;
    background: #f8f9fa;
    overflow: hidden;
}

.sidebar {
    width: 280px;
    background: #6c93ff;
    padding: 30px 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    height: 100%;
    position: relative;
}

.sidebar-content {
    padding: 0;
}

.sidebar-header {
    margin-bottom: 30px;
}

.logo-section {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar-logo {
    width: 50px;
    height: auto;
    margin-bottom: 10px;
}

.sidebar-header h2 {
    color: white;
    font-family: 'David Libre', serif;
    font-size: 24px;
    margin: 10px 0 20px 0;
    text-align: center;
}

.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

.service-tabs {
    margin-bottom: 20px;
}

.subcategory-list {
    margin: 0 0 16px 0;
    padding: 0;
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 8px;
}

.subcategory-list.show {
    display: flex;
}

.subcategory-btn {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    border: none;
    border-radius: 18px;
    padding: 10px 15px;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.subcategory-btn:hover,
.subcategory-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    height: 100%;
    max-width: calc(100% - 280px);
}

/* Custom scrollbar styling */
.sidebar::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb {
    background: #6c93ff;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 147, 255, 0.8);
}

.content-header {
    text-align: center;
    margin-bottom: 40px;
}

.content-header h1 {
    font-family: 'David Libre', serif;
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.content-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.service-content {
    padding: 25px;
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.service-features li {
    color: #555;
    margin-bottom: 6px;
    font-size: 14px;
}

.service-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.service-pricing .price {
    font-size: 18px;
    font-weight: bold;
    color: #6c93ff;
}

.service-pricing .duration {
    color: #666;
    font-size: 14px;
}

.service-tab {
    display: block;
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.service-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.service-tab.active {
    background: white;
    color: #6c93ff;
    border-color: white;
    font-weight: 600;
}

.services-content {
    flex: 1;
    padding: 40px;
    max-width: 1200px;
}

.services-header {
    text-align: center;
    margin-bottom: 40px;
}

.services-header h1 {
    font-family: 'David Libre', serif;
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.services-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6c93ff, #4a7bff);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.service-card h3 {
    font-family: 'David Libre', serif;
    color: #333;
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.service-details {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.service-details span {
    background: #f8f9fa;
    color: #495057;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.duration {
    background: #e3f2fd !important;
    color: #1976d2 !important;
    border-color: #bbdefb !important;
}

.coverage {
    background: #f3e5f5 !important;
    color: #7b1fa2 !important;
    border-color: #ce93d8 !important;
}

.service-card .price {
    font-size: 24px;
    font-weight: bold;
    color: #6c93ff;
    margin-bottom: 15px;
    display: block;
}

.book-btn {
    background: #6c93ff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-btn:hover {
    background: #5a7fd8;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .services-container, .container {
        flex-direction: column;
        height: auto !important;
        min-height: 100vh;
    }
    
    .services-sidebar, .sidebar {
        width: 100% !important;
        padding: 15px !important;
        height: auto !important;
        max-height: none !important;
        position: relative !important;
        top: 0 !important;
        margin-top: 0 !important;
    }
    
    .sidebar-header {
        margin-bottom: 15px !important;
    }
    
    .sidebar h2, .services-sidebar h2 {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
    }
    
    /* Search box */
    .search-box, input[type="text"] {
        padding: 10px !important;
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }
    
    /* Sort buttons - make them smaller and inline */
    .sort-section {
        margin-bottom: 15px !important;
    }
    
    .sort-section h3 {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }
    
    .sort-btn, button {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        margin: 3px !important;
    }
    
    /* Categories - make them compact */
    .category-section {
        margin-bottom: 15px !important;
    }
    
    .category-btn, .subcategory-btn {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
    }
    
    .services-content, .main-content {
        padding: 15px !important;
        height: auto !important;
        max-width: 100% !important;
        overflow-y: visible !important;
    }
    
    .services-header, .content-header {
        margin-bottom: 20px !important;
    }
    
    .services-header h1, .content-header h1 {
        font-size: 1.5rem !important;
        margin-bottom: 8px !important;
    }
    
    .services-header p, .content-header p {
        font-size: 0.9rem !important;
    }
    
    .service-items, .services-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .service-card {
        padding: 15px !important;
        margin-bottom: 0 !important;
    }
    
    .service-card h3 {
        font-size: 1.1rem !important;
    }
    
    .service-card p {
        font-size: 0.85rem !important;
    }
    
    .service-card .price {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 480px) {
    .services-sidebar, .sidebar {
        padding: 12px !important;
    }
    
    .sidebar h2, .services-sidebar h2 {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
    }
    
    .sort-btn, button {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
    }
    
    .category-btn, .subcategory-btn {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
    }
    
    .services-content, .main-content {
        padding: 12px !important;
    }
    
    .services-header h1, .content-header h1 {
        font-size: 1.3rem !important;
    }
    
    .service-card {
        padding: 12px !important;
    }
    
    .service-card h3 {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }
    
    .service-card p {
        font-size: 0.8rem !important;
        margin-bottom: 12px !important;
    }
    
    .service-card .price {
        font-size: 1.2rem !important;
    }
    
    .book-btn {
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
    }
    
    .service-icon {
        font-size: 36px !important;
        margin-bottom: 10px !important;
    }
    
    .service-details {
        flex-direction: column !important;
        gap: 6px !important;
    }

    .service-details span {
        text-align: center !important;
        font-size: 0.75rem !important;
        padding: 5px 10px !important;
    }
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0 20px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: white;
    font-family: 'David Libre', serif;
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-section h4 {
    color: white;
    font-family: 'David Libre', serif;
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.social-links img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.legal-links {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.legal-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: white;
}

@media (max-width: 768px) {
    footer {
        padding: 30px 0 15px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}