/* Theme Color */
:root {
    --main-green: #4CBBA4;
    --deep-green: #2B6B5B;
    --light-green: #A7D7C5;
    --accent-yellow: #F7D36A;
    --accent-red: #B45B5B;
    --main-white: #FFFFFF;
    --main-dark: #222;
}

/* General Styles */
body {
    background: #f6fcfa;
    color: var(--main-dark);
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--main-green) 0%, var(--deep-green) 100%);
}

header a {
    text-decoration: none;
}

/* Navigation Styles */
.navbar {
    background: var(--deep-green) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: #eafaf6;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link.active, .navbar-dark .navbar-nav .nav-link:hover {
    color: var(--accent-yellow) !important;
}

/* Hero Section */
.hero-section {
    background: var(--light-green);
    padding: 4rem 0;
}

.hero-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-img {
    max-width: 100%;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* Services Section */
.service-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(44,187,164,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

.service-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.service-card .card-img-top {
    border-radius: 1rem 1rem 0 0;
    height: 180px;
    object-fit: cover;
}

/* Doctors Section */
.doctor-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(44,187,164,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

.doctor-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.doctor-card .card-img-top {
    border-radius: 1rem 1rem 0 0;
    height: 260px;
    object-fit: cover;
}

.doctors-section .doctor-img {
    max-width: 95%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(44,187,164,0.07);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--deep-green) 0%, var(--light-green) 100%);
}

.social-links a {
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
    color: var(--main-green);
}

.social-links a:hover {
    color: var(--main-green-dark);
    opacity: 0.8;
}

/* Review Section */
.reviews-section .card {
    border-radius: 1rem;
    background: #f6fcfa;
}

.reviews-section img {
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Section Headings */
.services-section h2,
.doctors-section h2,
.reviews-section h2 {
    color: var(--deep-green);
    font-weight: 700;
    font-size: 2.1rem;
    margin-bottom: 2rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    .hero-section h2 {
        font-size: 1.7rem;
    }
    .service-card .card-img-top,
    .doctor-card .card-img-top {
        height: 140px;
    }
    .doctors-section {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .hotline-button {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .hotline-card {
        margin-bottom: 2rem;
        box-shadow: 0 4px 15px rgba(75, 187, 164, 0.2);
    }
}

/* Add spacing for sections */
section {
    margin-bottom: 0;
}

/* Custom Button Styles */
.btn-primary {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(44,187,164,0.08);
    background-color: var(--main-green) !important;
    border-color: var(--main-green) !important;
    color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--deep-green) !important;
    border-color: var(--deep-green) !important;
    color: #fff;
}

.btn-accent-yellow {
    background: var(--accent-yellow);
    color: var(--main-dark);
    border: none;
    font-weight: 700;
}

.btn-accent-yellow:hover {
    background: #ffe082;
    color: var(--main-dark);
}

.btn-accent-red {
    background: var(--accent-red);
    color: #fff;
    border: none;
    font-weight: 700;
}

.btn-accent-red:hover {
    background: #d46a6a;
    color: #fff;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

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

/* Hotline Section Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(75, 187, 164, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(75, 187, 164, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(75, 187, 164, 0);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(75, 187, 164, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(75, 187, 164, 0.8), 0 0 30px rgba(75, 187, 164, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(75, 187, 164, 0.5);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.hotline-button {
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--deep-green), var(--main-green)) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(75, 187, 164, 0.3);
    transition: all 0.3s ease;
}

.hotline-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 2s infinite;
}

.hotline-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75, 187, 164, 0.4);
}

.hotline-button:active {
    transform: scale(0.98);
}

.hotline-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(75, 187, 164, 0.3);
}

.hotline-card {
    animation: glow 3s ease-in-out infinite;
    background: linear-gradient(135deg, #ffffff 0%, #f0fffe 100%);
    border: 2px solid var(--main-green) !important;
    box-shadow: 0 8px 25px rgba(75, 187, 164, 0.15);
    position: relative;
    overflow: hidden;
}

.hotline-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(75, 187, 164, 0.1) 0%, transparent 70%);
    animation: glow 4s ease-in-out infinite alternate;
}

.hotline-header {
    background: linear-gradient(135deg, var(--main-green) 0%, var(--deep-green) 100%) !important;
    position: relative;
    overflow: hidden;
}

.hotline-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}
.logo-img {
    height: 80px;
    width: 80px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-right: 1.2rem;
}

.site-title {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 2rem;
    margin-bottom: 0;
    line-height: 1.1;
}

.site-subtitle {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #eafaf6;
    margin-top: 0.2rem;
    margin-bottom: 0;
    letter-spacing: 0.1px;
}

.articles-section .article-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(44,187,164,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}
.articles-section .article-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.articles-section .card-img-top {
    border-radius: 1rem 1rem 0 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    max-width: 100%;
    display: block;
}
.articles-section .card-title {
    font-size: 1.1rem;
    font-weight: 600;
}
.articles-section .btn-outline-primary {
    border-color: var(--main-green);
    color: var(--main-green);
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.articles-section .btn-outline-primary:hover {
    background: var(--main-green);
    color: #fff;
    border-color: var(--main-green-dark);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.article-link:focus .article-card,
.article-link:hover .article-card {
    box-shadow: 0 12px 36px rgba(76,187,164,0.18), 0 8px 32px rgba(0,0,0,0.12);
    outline: 2px solid var(--main-green);
}
.article-link .article-card {
    cursor: pointer;
    transition: box-shadow 0.2s, outline 0.2s;
}

/* Remove padding and border for TikTok video cards */
.tiktok-card {
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
}

.tiktok-embed {
    margin: 0 !important;
}

/* Accent for highlights */
.highlight-yellow {
    background: var(--accent-yellow);
    color: var(--main-dark);
    padding: 0.3em 0.8em;
    border-radius: 0.5em;
    font-weight: 700;
    display: inline-block;
}

.highlight-red {
    color: var(--accent-red);
    font-family: 'Dancing Script', cursive, Arial, Helvetica, sans-serif;
    font-size: 1.2em;
    font-weight: 500;
}

/* --- Modern Patient Stories Section (Big Image Reviews) --- */
.patient-stories-section {
  background: var(--light-green);
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #25629c;
  letter-spacing: 0.5px;
  margin-bottom: 2.5rem;
}
.review-card-modern {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(44,187,164,0.13);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1.5px solid #e0f7ef;
  transition: box-shadow 0.25s, transform 0.25s;
  min-height: 540px;
  position: relative;
}
.review-card-modern:hover {
  box-shadow: 0 16px 48px rgba(44,187,164,0.18);
  transform: translateY(-6px) scale(1.025);
}
.review-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #f6fcfa;
  overflow: hidden;
}
.review-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.review-card-modern:hover .review-image {
  transform: scale(1.045);
}
.review-image-gradient {
  position: absolute;
  left: 0; right: 0; bottom: 0; top: 0;
  background: linear-gradient(180deg,rgba(44,187,164,0.08) 40%,rgba(44,187,164,0.18) 100%);
  z-index: 1;
}
.review-badge {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  background: rgba(44,187,164,0.9);
  color: #fff;
  padding: 0.6em 1.3em;
  border-radius: 1.2em;
  font-weight: 600;
  font-size: 1.08rem;
  box-shadow: 0 2px 12px rgba(44,187,164,0.13);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  z-index: 2;
  transition: background 0.2s, box-shadow 0.2s;
}
.review-card-modern:hover .review-badge {
  background: rgba(44,187,164,1);
  box-shadow: 0 4px 16px rgba(44,187,164,0.18);
}
.reviewer-name {
  font-size: 1.13rem;
  font-weight: 700;
}
.reviewer-age {
  font-size: 1.01rem;
  font-weight: 400;
}
.review-content {
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
}
.review-quote-highlight {
  font-size: 1.18rem;
  font-weight: 700;
  color: #25629c;
  margin-bottom: 0.8rem;
  font-style: italic;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.review-quote-highlight i {
  color: #3ec6a7;
  font-size: 1.3em;
}
.review-full-text {
  font-size: 1.04rem;
  color: #25629c;
  line-height: 1.6;
  margin-bottom: 0.2rem;
  max-width: 95%;
}
@media (max-width: 767px) {
  .review-card-modern {
    min-height: 400px;
  }
  .review-content {
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
  }
  .review-image-wrapper {
    aspect-ratio: 16/11;
  }
}

.social-embed-section {
  background: var(--light-green);
}

/* Phone ring animation */
@keyframes phoneRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-10deg);
    }
    20%, 40%, 60%, 80% {
        transform: rotate(10deg);
    }
}

.phone-ring {
    animation: phoneRing 2s infinite;
    transform-origin: center;
    display: inline-block;
}

/* Enhanced phone ring with bounce effect */
@keyframes phoneRingBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    10% {
        transform: translateY(-3px) rotate(-10deg);
    }
    30% {
        transform: translateY(-2px) rotate(10deg);
    }
    40% {
        transform: translateY(-1px) rotate(-5deg);
    }
    60% {
        transform: translateY(-2px) rotate(5deg);
    }
    70% {
        transform: translateY(-1px) rotate(-3deg);
    }
}

/* Apply enhanced animation to main phone icons */
.hotline-header .phone-ring {
    animation: phoneRingBounce 3s infinite;
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.hotline-button .phone-ring {
    animation: phoneRingBounce 2.5s infinite;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

/* Pause animation on hover for better UX */
.hotline-button:hover .phone-ring {
    animation-play-state: paused;
}

/* Additional icon styling */
.hotline-card .fas {
    transition: all 0.3s ease;
}

.hotline-card .fa-headset,
.hotline-card .fa-user-md,
.hotline-card .fa-gift,
.hotline-card .fa-clock,
.hotline-card .fa-calendar-check {
    color: var(--main-green);
}

/* Hover effects for icons in benefits section */
.hotline-benefits:hover .fas {
    transform: scale(1.1);
    color: var(--deep-green);
}

/* Enhanced text colors for better readability */
.hotline-card .card-body h6 {
    color: var(--deep-green) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.hotline-button {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-weight: 600;
}

.hotline-button .small {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
}

.hotline-button:hover {
    animation: shake 0.5s infinite;
    }

    @keyframes shake {
        0% { transform: translateX(0); }
        15% { transform: translateX(-5px); }
        30% { transform: translateX(5px); }
        45% { transform: translateX(-5px); }
        60% { transform: translateX(5px); }
        75% { transform: translateX(-3px); }
        100% { transform: translateX(0); }
}

.hotline-header h5 {
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    font-weight: 700;
}

.hotline-header small {
    color: rgba(255,255,255,0.95) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Benefits text styling */
.hotline-benefits {
    background: rgba(75, 187, 164, 0.08) !important;
    border-radius: 8px;
}

.hotline-benefits small {
    color: var(--deep-green) !important;
    font-weight: 600;
    text-shadow: none;
}

/* Phone number styling */
.phone-number {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Phone popup error styles */
.phone-popup-error {
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

.phone-popup-error .alert {
    margin-bottom: 0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.phone-popup-error .btn-close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-popup-error .btn-close:hover {
    opacity: 1;
}

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

/* Fixed Mobile Action Buttons */
.mobile-action-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(76, 187, 164, 0.2);
    padding: 8px 12px 8px 12px;
    z-index: 1000;
    display: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.mobile-action-buttons.show {
    display: flex;
}

.mobile-btn-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.mobile-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    min-height: 60px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.mobile-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.mobile-action-btn:hover::before {
    left: 100%;
}

.mobile-action-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.mobile-action-btn i {
    font-size: 20px;
    margin-bottom: 4px;
    display: block;
}

/* Appointment Button */
.mobile-action-btn.appointment {
    background: linear-gradient(135deg, var(--main-green), var(--deep-green));
    color: white;
    border-color: var(--main-green);
}

.mobile-action-btn.appointment:hover {
    background: linear-gradient(135deg, var(--deep-green), var(--main-green));
    color: white;
    box-shadow: 0 4px 15px rgba(76, 187, 164, 0.3);
}

/* Call Button */
.mobile-action-btn.call {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-color: #28a745;
}

.mobile-action-btn.call:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Consultation Button */
.mobile-action-btn.consultation {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #007bff;
}

.mobile-action-btn.consultation:hover {
    background: linear-gradient(135deg, #0056b3, #007bff);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Show only on mobile devices */
@media (max-width: 768px) {
    .mobile-action-buttons.show {
        display: flex;
    }
    
    body {
        padding-bottom: 80px; /* Add space for fixed buttons */
    }
    
    /* Adjust messenger button position to avoid overlap */
    .messenger-button {
        bottom: 90px !important;
    }
}

@media (max-width: 480px) {
    .mobile-action-btn {
        font-size: 10px;
        padding: 10px 6px;
        min-height: 55px;
    }
    
    .mobile-action-btn i {
        font-size: 18px;
        margin-bottom: 3px;
    }
    
    .mobile-btn-group {
        gap: 6px;
    }
}

@media (min-width: 769px) {
    .mobile-action-buttons {
        display: none !important;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* Animation for button appearance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.mobile-action-buttons.show {
    animation: slideUp 0.3s ease-out;
}

.mobile-action-btn.appointment {
    animation: pulse 2s infinite;
}

.mobile-action-btn.appointment:hover {
    animation: none;
}

/* Responsive fix for dynamic article content */
.article-content {
  overflow-x: auto;
  word-break: break-word;
}
.article-content * {
  max-width: 100% !important;
  box-sizing: border-box;
}
