/* Landing Page Styles */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    line-height: 1.6;
    color: #333;
}

/* Main content container */
.main-content {
    margin-top: 0;
    padding-top: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("{{ url_for('static', filename='BG.png') }}");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

/* Hero overlay for transparency effect */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.7), rgba(52, 152, 219, 0.6));
    opacity: 0.8;
    z-index: 1;
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #2f5294;
    max-width: 800px;
    padding: 2rem;
    background-color: transparent;
    border-radius: 5%;
    animation: fadeInUp 1s ease-out;
}

/* .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(10, 3, 3, 0.3);
    letter-spacing: -1px;
} */

.hero-logo {
    width: 250px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    /* set the behind to blur */
    backdrop-filter: blur(10px);
    text-shadow: 1px 1px 2px rgba(235, 235, 235, 0.3);
    padding: 0.2rem 0.7rem;
    border-radius: 5px;
    border: 1px solid #2f5294;
}

/* Hero buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #219a52, #27ae60);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-secondary {
    background: transparent;
    color: linear-gradient(45deg, #219a52, #27ae60);
    border: 2px solid linear-gradient(45deg, #219a52, #27ae60);
}

.btn-secondary:hover {
    background: white;
    color: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Statistics Dashboard */
.stats-dashboard {
    position: relative;
    margin-top: -100px;
    z-index: 3;
    padding: 0 2rem 4rem;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.stat-card {
    background: #2f5294;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(39, 174, 96, 0.1);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Action buttons inside stat cards */
.stat-btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 40px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-top: 0.6rem;
    white-space: nowrap;
}

/* Ensure the global loader doesn't block interaction when hidden */
.global-loader.hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.stat-card .btn-primary.stat-btn {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: #fff;
    border: 2px solid rgba(39, 174, 96, 0.15);
}

.stat-card .btn-secondary.stat-btn {
    background: transparent;
    color: #27ae60;
    border: 2px solid rgba(39, 174, 96, 0.15);
}

.stat-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.18);
}

/* Make the stat cards more compact when they contain buttons */
.stat-card .stat-icon {
    margin-bottom: 0.8rem;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #27ae60, #2ecc71, #3498db);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    background: white;
    padding: 0.2rem;
    width: 96px;
    height: 96px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Images used inside stat-icon */
.stat-image {
    width: 70%;
    height: 70%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Icon styles using CSS shapes */
.icon-location::after {
    content: '📍';
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.icon-patients::after {
    content: '👥';
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.icon-services::after {
    content: '⚕️';
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-number {
    animation: countUp 0.8s ease-out 0.5s both;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .stats-container {
        max-width: 1000px;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.8rem;
    }
    
    .stat-card {
        padding: 2.5rem 1.8rem;
        min-height: 260px;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
}

@media screen and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .stat-card {
        padding: 2.2rem 1.5rem;
        min-height: 240px;
    }
    
    .stat-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.2rem;
    }
    
    .stat-number {
        font-size: 2.6rem;
    }
    
    .stat-label {
        font-size: 1.1rem;
    }
    
    .stats-dashboard {
        margin-top: -80px;
        padding: 0 1.5rem 3rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        margin: 0;
    }
    
    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .stat-card {
        padding: 2rem 1.5rem;
        min-height: 220px;
        border-radius: 15px;
    }
    
    .stat-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2.4rem;
        margin-bottom: 0.4rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .stats-dashboard {
        margin-top: -60px;
        padding: 0 1rem 2.5rem;
    }
}

@media screen and (max-width: 640px) {
    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.2rem;
    }
    
    .stat-card {
        padding: 1.8rem 1.2rem;
        min-height: 200px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .icon-location::after,
    .icon-patients::after,
    .icon-services::after {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        max-width: 250px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 350px;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
        min-height: 180px;
        border-radius: 12px;
    }
    
    .stat-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 0.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .icon-location::after,
    .icon-patients::after,
    .icon-services::after {
        font-size: 1.6rem;
    }
    
    .stats-dashboard {
        margin-top: -15px;
        padding: 0 0.8rem 2rem;
    }
}

@media screen and (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        max-width: 220px;
    }
    
    .stats-container {
        max-width: 300px;
        gap: 0.8rem;
    }
    
    .stat-card {
        padding: 1.2rem 0.8rem;
        min-height: 160px;
        border-radius: 10px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.6rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .icon-location::after,
    .icon-patients::after,
    .icon-services::after {
        font-size: 1.4rem;
    }
    
    .stats-dashboard {
        margin-top: -30px;
        padding: 0 0.5rem 1.5rem;
    }
}

/* Background image fallback */
.hero-section {
    /* background-color: #27ae60; */
    /* background-image: linear-gradient(135deg, #27ae60 0%, #2ecc71 50%, #3498db 100%); */
    background-image: url("BG.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.8;
    z-index: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Testimonials Section (moved from about page) */
.testimonials-section {
    padding: 5rem 0;
    background: white;
}

.testimonials-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-track {
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
}

.testimonial-content {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 6rem;
    color: #27ae60;
    opacity: 0.3;
    font-family: serif;
}

.testimonial-rating {
    margin-bottom: 1.5rem;
}

.star {
    font-size: 1.5rem;
    margin: 0 0.1rem;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    font-size: 3rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-info {
    text-align: left;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.author-location {
    color: #666;
    font-size: 0.9rem;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.slider-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: linear-gradient(135deg, #219a52, #27ae60);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #27ae60;
    transform: scale(1.2);
}

/* Testimonials Responsive Design */
@media screen and (max-width: 768px) {
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .testimonials-container {
        padding: 0 1rem;
    }
    
    .testimonial-content {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .slider-controls {
        gap: 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .testimonial-content {
        padding: 1.5rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .author-info {
        text-align: center;
    }
}

/* Doctor Panel Slider Styles */
.doctor-panel-root {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.doctor-slider {
    width: 100%;
    max-width: 1100px;
}
.doctor-slide {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    width: 100%;
}
.doctor-left {
    flex: 0 0 36%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.doctor-right {
    flex: 1 1 64%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(248,249,250,0.95));
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
.doctor-photo {
    width: 92%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.doctor-name {
    font-size: 2rem;
    font-weight: 800;
    color: #2f5294;
    margin-bottom: 0.6rem;
}
.doctor-qualification {
    font-size: 1.1rem;
    color: #27ae60;
    font-weight: 700;
    margin-bottom: 1rem;
}
.doctor-description {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}

@media screen and (max-width: 900px) {
    .doctor-slide { flex-direction: column; margin-top: 15%;}
    .doctor-left { flex: none; width: 100%; }
    .doctor-right { width: 100%; padding: 1rem; }
    .doctor-photo { width: 60%; margin: 0 auto; }
    .doctor-name { text-align: center; }
    .doctor-qualification { text-align: center; }
}

