/* 
 * Tham Clinic Website - Modern Styles
 * Additional styles for enhanced visual design
 */

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

@media (min-width: 992px) {
    .hero-section {
        padding: 6rem 0;
    }
}

.hero-section h1 {
    font-family: 'Montserrat', 'Noto Sans SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section p.lead {
    font-family: 'Open Sans', 'Noto Sans SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-section .btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43, 138, 150, 0.3);
}

.hero-section .img-fluid {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.hero-section .img-fluid:hover {
    transform: translateY(-5px);
}

/* Modern Navigation */
.top-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.navbar {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 700;
}

.nav-link {
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover:after, .nav-link.active:after {
    width: 100%;
}

/* Services Cards */
.services-highlight .card {
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(43, 138, 150, 0.1);
}

.services-highlight .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(43, 138, 150, 0.15) !important;
    border-color: rgba(43, 138, 150, 0.2);
}

.service-icon {
    background: linear-gradient(135deg, rgba(43, 138, 150, 0.1) 0%, rgba(43, 138, 150, 0.05) 100%);
    transition: all 0.3s ease;
}

.services-highlight .card:hover .service-icon {
    background: linear-gradient(135deg, #2b8a96 0%, #1c5c64 100%);
    color: white;
    transform: scale(1.1);
}

.services-highlight .card-body {
    padding: 2rem;
}

.services-highlight .card-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.services-highlight .btn-outline-primary {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.services-highlight .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(43, 138, 150, 0.3);
}

/* Patient Testimonials */
.testimonials {
    padding: 5rem 0;
}

.testimonials .card {
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.testimonials .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #495057;
}

.testimonial-author-name {
    color: #2c3e50;
    font-weight: 600;
}

.avatar {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Stats Counter */
.stats-counter {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 0;
}

.counter-item {
    text-align: center;
    color: #343a40;
    transition: all 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-5px);
}

.icon-box {
    transition: all 0.3s ease;
}

.counter-item:hover .icon-box {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(43, 138, 150, 0.3);
}

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2b8a96;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.counter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

/* Doctor Profile */
.doctor-profile {
    padding: 5rem 0;
}

.doctor-profile .card {
    transition: all 0.3s ease;
    border: 1px solid rgba(43, 138, 150, 0.1);
}

.doctor-profile .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(43, 138, 150, 0.15) !important;
}

.doctor-avatar {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #2b8a96 0%, #1c5c64 100%);
}

.doctor-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(43, 138, 150, 0.3);
}

.doctor-profile h3 {
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.credential-item {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(43, 138, 150, 0.1);
}

.credential-item:hover {
    background: linear-gradient(135deg, rgba(43, 138, 150, 0.1) 0%, rgba(43, 138, 150, 0.05) 100%);
    border-color: rgba(43, 138, 150, 0.2);
}

.credential-item i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

/* Hours & Location */
.hours-location {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 0;
}

.hours-location .card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hours-location .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.hours-list li {
    transition: all 0.3s ease;
}

.hours-list li:hover {
    /* Removed translateX effect */
}

.contact-info .d-flex {
    transition: all 0.3s ease;
}

.contact-info .d-flex:hover {
    color: #2b8a96;
}

.location-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.location-map:hover {
    transform: scale(1.02);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #2b8a96 0%, #1c5c64 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-weight: 700;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.cta-section .btn {
    border-radius: 50px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-light {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #2b8a96;
    font-weight: 600;
}

.cta-section .btn-light:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: #1c5c64;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.cta-section .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

.cta-section .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

/* Section Titles */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 3rem;
}

/* Animations */
.fadeIn {
    animation: fadeInAnimation 1s ease-in forwards;
    opacity: 0;
}

.fadeInUp {
    animation: fadeInUpAnimation 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInAnimation {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUpAnimation {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    /* Mobile padding and margin adjustments */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-section .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section p.lead {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Card spacing adjustments */
    .card-body {
        padding: 1.5rem !important;
    }
    
    .services-highlight .card-body {
        padding: 2rem 1.5rem !important;
    }
    
    .hours-location .card-body {
        padding: 2rem 1.5rem !important;
    }
    
    .credential-item {
        justify-content: center;
        text-align: center;
        margin-bottom: 1rem;
    }

    .top-bar {
        display: none;
    }

    .footer-language-switcher {
        text-align: right;
        padding-right: 15px;
    }

    .footer-language-switcher .language-toggle {
        margin-top: 1rem;
    }

    .footer .row > div[class^="col-lg-"] {
        margin-bottom: 2rem;
    }

     .footer .row > div[class^="col-lg-"]:last-child {
        margin-bottom: 0;
    }

     .footer .contact-info, .footer .quick-links {
        padding-left: 15px;
    }
    
    .stats-counter,
    .doctor-profile,
    .hours-location,
    .testimonials {
        padding: 3rem 0;
    }
    
    .cta-section {
        padding: 4rem 0;
    }
    
    /* Mobile stats counter adjustments */
    .counter-item {
        padding: 2rem 1rem !important;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
    
    .counter-title {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .icon-box {
        width: 60px !important;
        height: 60px !important;
    }
    
    .icon-box i {
        font-size: 1.5rem !important;
    }
    
    /* Statistics section mobile adjustments */
    .statistics .stat-item {
        padding: 2rem 1rem;
    }
    
    .statistics .stat-number {
        font-size: 2.5rem;
    }
    
    .statistics .stat-label {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    /* Mobile button spacing */
    .btn {
        margin-bottom: 0.75rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Mobile text spacing */
    .text-center .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    /* Mobile row spacing */
    .row.g-4 {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .row.g-4 > * {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Mobile alert spacing */
    .alert {
        margin-left: 0;
        margin-right: 0;
        font-size: 0.9rem;
    }
    
    /* Mobile address and contact info */
    address {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .contact-info {
        font-size: 0.95rem;
    }
    
    /* Appointments page mobile optimizations */
    .appointment-process {
        padding: 3rem 0 !important;
    }
    
    .appointment-form {
        padding: 3rem 0 !important;
    }
    
    .prepare-visit {
        padding: 3rem 0 !important;
    }
    
    .step-item {
        margin-bottom: 2rem !important;
        padding: 0 10px;
    }
    
    .step-number {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        margin-right: 1rem !important;
    }
    
    .step-content h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .step-content p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    .appointment-note {
        padding: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    .appointment-note h3 {
        font-size: 1rem !important;
    }
    
    .appointment-note p {
        font-size: 0.9rem !important;
    }
    
    /* Form optimizations */
    .form-label {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .form-control, .form-select {
        padding: 0.75rem !important;
        font-size: 1rem !important;
    }
    
    .form-control:focus, .form-select:focus {
        box-shadow: 0 0 0 0.2rem rgba(43, 138, 150, 0.25) !important;
    }
    
    textarea.form-control {
        min-height: 100px !important;
    }
    
    .form-check {
        margin-bottom: 1rem !important;
    }
    
    .form-check-label {
        font-size: 0.95rem !important;
    }
    
    /* Button optimizations */
    .btn.w-100.py-3 {
        padding: 1rem !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
    }
    
    /* Contact info in appointments */
    .contact-info p {
        margin-bottom: 0.5rem !important;
        font-size: 1rem !important;
    }
    
    .contact-info i {
        width: 20px !important;
        margin-right: 0.5rem !important;
    }
}

/* Service Features */
.service-features {
    text-align: left;
    display: inline-block;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #495057;
    transition: all 0.3s ease;
}

.feature-item:hover {
    color: #2b8a96;
    transform: translateX(3px);
}

.feature-item i {
    margin-top: 0.25rem;
}

/* Add custom styles for value cards */
.value-card, .mission-card {
    transition: all 0.3s ease;
    border-left: 4px solid var(--bs-primary);
}

.value-card:hover, .mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.icon-box-sm {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-card i {
    font-size: 18px;
}

/* Mission Card specific styles */
.mission-card {
    min-height: 255px;
    display: flex;
    align-items: center;
}

/* Footer Enhancements */
.footer {
    background-color: #212529;
}

.footer h4, .footer h5 {
    color: #ffffff;
    font-weight: 600;
}

.footer p, .footer li, .footer span {
    color: #adb5bd;
}

.footer a {
    color: #ced4da;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffffff;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #007bff;
    color: #fff;
}

.contact-info i {
    color: #007bff;
    width: 20px;
}

.quick-links li {
    margin-bottom: 0.5rem;
}

.quick-links a::before {
    content: '\\f0da';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    opacity: 0.6;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Appointments Page Styles */
.appointment-steps {
    position: relative;
}

.step-item {
    position: relative;
    padding-left: 0;
}

.step-number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #2b8a96 0%, #1c5c64 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(43, 138, 150, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

.appointment-note {
    background: #f8f9fa;
    border-left: 4px solid #2b8a96;
    border-radius: 10px;
}

.appointment-note h3 {
    color: #2b8a96;
    font-weight: 600;
}

.appointment-form .card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #2b8a96;
    box-shadow: 0 0 0 0.2rem rgba(43, 138, 150, 0.25);
}

/* Date picker styling */
.input-group .input-group-text {
    border-radius: 10px 0 0 10px;
    border: 2px solid #2b8a96;
    border-right: none;
}

.input-group .form-control {
    border-radius: 0 10px 10px 0;
    border: 2px solid #e9ecef;
    border-left: none;
}

.input-group .form-control:focus {
    border-color: #2b8a96;
    border-left: none;
    box-shadow: 0 0 0 0.2rem rgba(43, 138, 150, 0.25);
}

/* Custom date input styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

input[type="date"] {
    position: relative;
}

/* Input group styling for all form fields */
.input-group .input-group-text.bg-primary {
    background-color: #2b8a96 !important;
    border-color: #2b8a96 !important;
    color: white !important;
    font-weight: 500;
}

.input-group .form-control.border-start-0,
.input-group .form-select.border-start-0 {
    border-left: none !important;
}

.input-group .form-control:focus.border-start-0,
.input-group .form-select:focus.border-start-0 {
    border-left: none !important;
    box-shadow: 0 0 0 0.2rem rgba(43, 138, 150, 0.25);
}

/* Textarea specific styling in input groups */
.input-group textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Hover effects for input groups */
.input-group:hover .input-group-text.bg-primary {
    background-color: #1c5c64 !important;
    border-color: #1c5c64 !important;
    transition: all 0.3s ease;
}

.input-group .input-group-text {
    transition: all 0.3s ease;
}

.form-label {
    font-weight: 600;
    color: #495057;
}

.prepare-visit .card {
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(43, 138, 150, 0.1);
}

.prepare-visit .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(43, 138, 150, 0.15);
}

.prepare-visit .card-title {
    color: #2b8a96;
    font-weight: 600;
}

.prepare-visit ul li {
    margin-bottom: 0.75rem;
    color: #495057;
}

.prepare-visit ul li i {
    color: #2b8a96;
    margin-right: 0.75rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 1.2rem;
    z-index: 1000;
    transition: background-color 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0.8;
}

.back-to-top:hover {
    background-color: #0056b3;
    opacity: 1;
    color: white;
} 
