/* Main Styles for Maya Estetik */

:root {
    --primary-color: #2563eb;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --light-color: #fff;
    --dark-color: #212529;
    --border-color: #dee2e6;
    --border-radius: 5px;
    --transition: all 0.3s ease;
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9f9f9;
}

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

a:hover {
    color: #b01c1e;
}

img {
    max-width: 100%;
}

.btn {
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-weight: 600;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.section-title {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.maya-logo {
    height: 50px;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    margin: 0 10px;
}

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

.navbar-nav .phone-link {
    color: var(--primary-color);
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
}

.hero-content h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.video-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Form Styles */
.contact-form-container {
    background-color: transparent;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: 1px solid #fff;
}

.form-control-lg {
    height: auto;
    padding: 12px 15px;
}

.phone-input-group .input-group-text {
    background-color: #fff;
    border-color: #fff;
    color: #333;
    font-weight: 500;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    padding: 12px 15px;
}

.form-submit-btn {
    background-color: #fff;
    color: var(--primary-color);
    border: none;
    padding: 12px 15px;
    font-weight: 700;
    transition: all 0.3s;
}

.form-submit-btn:hover {
    background-color: #f2f2f2;
    color: var(--primary-color);
}

/* Contents Section */
.contents-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.contents-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 25px;
}

.contents-nav {
    list-style: none;
    padding: 0;
    margin-left: 18px;
}

.contents-nav > li {
    position: relative;
}

.contents-nav > li:before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: -18px;
    font-weight: 600;
    color: var(--primary-color);
}

.contents-nav a {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: all 0.2s;
    font-weight: 500;
}

.contents-nav a:hover {
    color: #1d4ed8;
    transform: translateX(5px);
}

.contents-nav .sub-item {
    padding-left: 20px;
    margin-top: 5px;
    list-style-type: none;
}

.contents-nav .sub-item a {
    color: #555;
    font-weight: 400;
    font-size: 0.95rem;
}

/* Content Detail Section */
.content-detail-section {
    padding: 40px 0;
    background-color: #fff;
}

.content-category {
    margin-bottom: 30px;
}

.content-category h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 10px;
}

.content-item {
    margin-bottom: 40px;
}

.content-item h3 {
    color: #333;
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.content-body {
    line-height: 1.7;
}

/* Special Offer Section */
.special-offer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.special-offer:before {
    content: "";
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 20px 20px 20px 0;
    border-style: solid;
    border-color: transparent var(--primary-color) transparent transparent;
}

.special-offer h3 {
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.special-offer p {
    text-align: center;
    margin-bottom: 20px;
}

/* Buttons */
.whatsapp-btn {
    background-color: #25D366;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    padding: 12px 25px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.phone-btn {
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 5px;
    padding: 12px 25px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    text-decoration: none;
    margin-bottom: 10px;
}

.phone-btn:hover {
    background-color: #f8f8f8;
    color: var(--primary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

/* FAQ Section */
.faq-section {
    padding: 30px 0;
}

.faq-title {
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
    margin-bottom: 25px;
}

.accordion-item {
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.accordion-button {
    color: var(--primary-color);
    font-weight: 600;
    background-color: white;
    box-shadow: none;
    padding: 20px;
}

.accordion-button:not(.collapsed) {
    background-color: white;
    color: var(--primary-color);
}

.accordion-body {
    padding: 20px;
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.contact-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 25px;
}

.doctor-img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 100%;
}

/* Footer */
.footer {
    background-color: var(--primary-color) !important;
    color: white !important;
    padding: 40px 0 20px 0;
    font-size: 0.9rem;
    margin-top: 0;
    width: 100%;
    clear: both;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact .contact-item i {
    width: 20px;
    margin-right: 10px;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact .contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact .contact-item a:hover {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-menu a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.phone-social {
    background-color: white;
    color: var(--primary-color);
}

.phone-social:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.whatsapp-social {
    background-color: #25D366;
    color: white;
}

.whatsapp-social:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 30px 0 20px 0;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Float Buttons */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: white;
}

.back-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.back-to-top:hover {
    background-color: #1d4ed8;
    transform: translateY(-5px);
    color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        text-align: center;
        margin-top: 30px;
    }
    
    .special-offer:before {
        display: none;
    }
    
    .special-offer {
        margin-top: 30px;
    }
    
    .contents-nav {
        margin-bottom: 20px;
    }
}

/* Gallery Section Styles */
.gallery-section {
    background-color: #f9f9f9;
    padding: 30px 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: white;
    height: 280px;
    width: 100%;
}

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

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

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

/* Gallery Grid Responsive */
.gallery-grid .col-lg-6 .gallery-item,
.gallery-grid .col-lg-4 .gallery-item,
.gallery-grid .col-lg-3 .gallery-item {
    height: 280px;
}

/* Gallery Modal Enhancements */
.modal-dialog.modal-lg {
    max-width: 90vw;
}

#modalImage {
    max-height: 70vh;
    border-radius: var(--border-radius);
}

#modalDescription {
    font-size: 1rem;
    color: #666;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .contents-section,
    .faq-section,
    .contact-section {
        padding: 25px 0;
    }
    
    .doctor-img {
        margin-bottom: 30px;
    }
    
    /* Gallery Mobile Optimizations */
    .gallery-section {
        padding: 25px 0;
    }
    
    .gallery-item {
        height: 220px;
        margin-bottom: 15px;
    }
    
    /* Footer Mobile Optimizations */
    .footer {
        padding: 30px 0 15px 0;
    }
    
    .footer-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 15px;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .footer-contact .contact-item {
        margin-bottom: 12px;
    }
    
    .footer-menu li {
        margin-bottom: 8px;
    }
    
    .footer-divider {
        margin: 20px 0 15px 0;
    }
}