/*
Theme Name: VW Healthcare Child
Theme URI: https://www.ecpnghs.org
Description: Custom child theme for ECPNG Health Services with enhanced styling
Author: ECPNG Health Services
Author URI: https://www.ecpnghs.org
Template: vw-healthcare
Version: 1.0.0
Text Domain: vw-healthcare-child
*/

/* ============================================
   GLOBAL STYLES
   ============================================ */

/* Service Cards & Content Cards */
.service-card,
.content-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
}

.service-card:hover,
.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Card Icons */
.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 2rem;
}

/* Color Variants */
.card-icon.red { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.card-icon.blue { background: linear-gradient(135deg, #3498db, #2980b9); }
.card-icon.pink { background: linear-gradient(135deg, #e91e63, #c2185b); }
.card-icon.purple { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.card-icon.green { background: linear-gradient(135deg, #27ae60, #229954); }
.card-icon.orange { background: linear-gradient(135deg, #f39c12, #d68910); }
.card-icon.teal { background: linear-gradient(135deg, #1abc9c, #16a085); }

/* Border Top Variants */
.border-red { border-top: 5px solid #e74c3c; }
.border-blue { border-top: 5px solid #3498db; }
.border-pink { border-top: 5px solid #e91e63; }
.border-purple { border-top: 5px solid #9b59b6; }
.border-green { border-top: 5px solid #27ae60; }
.border-orange { border-top: 5px solid #f39c12; }
.border-teal { border-top: 5px solid #1abc9c; }

/* Header Sections */
.page-header,
.section-header {
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 10px;
    color: white;
}

.page-header h1,
.section-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-header p,
.section-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Gradient Backgrounds */
.bg-gradient-blue { background: linear-gradient(135deg, #2c5aa0 0%, #4a90e2 100%); }
.bg-gradient-red { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.bg-gradient-green { background: linear-gradient(135deg, #27ae60 0%, #229954 100%); }
.bg-gradient-orange { background: linear-gradient(135deg, #f39c12 0%, #d68910 100%); }
.bg-gradient-purple { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); }

/* Grid Layouts */
.services-grid,
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Card Content */
.card-title {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.card-description {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-list {
    list-style-type: none;
    padding: 0;
    color: #7f8c8d;
}

.card-list li {
    padding: 5px 0;
}

.card-list li i {
    color: #27ae60;
    margin-right: 10px;
}

/* Contact Sections */
.contact-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-item {
    flex: 1;
    min-width: 250px;
}

.contact-item i {
    color: #3498db;
    margin-right: 10px;
    font-size: 1.2rem;
}

.contact-item h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-item p {
    color: #7f8c8d;
    margin: 0;
}

/* Coverage Area */
.coverage-area {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.coverage-area h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.coverage-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.coverage-badge {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1,
    .section-header h1 {
        font-size: 2rem;
    }
    
    .page-header p,
    .section-header p {
        font-size: 1rem;
    }
}

/* Content Container */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Agency Level Indicators */
.level-indicator {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.level-hospital {
    background: #ffebee;
    color: #c62828;
}

.level-health-center {
    background: #e8f5e9;
    color: #2e7d32;
}

.level-clinic {
    background: #fff3e0;
    color: #e65100;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 1rem;
}
/* ============================================
   HOMEPAGE STYLES
   ============================================ */

/* Homepage Hero Section */
.homepage-hero {
    position: relative;
    overflow: hidden;
}

.hero-slideshow {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #f39c12, #d68910);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #2c3e50;
    font-size: 1.2rem;
}

.hero-nav:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero-nav.prev {
    left: 30px;
}

.hero-nav.next {
    right: 30px;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active,
.hero-dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Quick Access Section */
.quick-access-section {
    padding: 80px 20px;
    background: white;
}

.quick-access-section .section-header {
    background: none;
    color: #2c3e50;
    padding: 0 20px 40px;
}

.quick-access-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.quick-access-section .section-header p {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quick-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.quick-card.orange {
    background: linear-gradient(135deg, #f39c12, #d68910);
}

.quick-card.blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.quick-card.green {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.quick-card i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.quick-card h3 {
    font-size: 1.5rem;
    margin: 0;
    color: white;
}

/* Agencies and Services Sections */
.agencies-section,
.services-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.agencies-section .section-header,
.services-section .section-header {
    background: none;
    color: #2c3e50;
    padding: 0 20px 40px;
}

.agencies-section .section-header h2,
.services-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.agencies-section .section-header p,
.services-section .section-header p {
    font-size: 1.2rem;
    color: #7f8c8d;
}

/* Card Slider Container */
.card-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 70px;
}

.card-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.agency-card,
.service-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: calc(33.333% - 20px);
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.agency-card:hover,
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.agency-card h3,
.service-card h3 {
    font-size: 1.3rem;
    margin: 20px 0 10px;
    color: #2c3e50;
}

.service-card p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.card-btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s;
    margin-top: auto;
}

.card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e0e0e0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #2c3e50;
}

.slider-nav:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

/* Stories Section */
.stories-section {
    padding: 80px 20px;
    background: white;
}

.stories-section .section-header {
    background: none;
    color: #2c3e50;
    padding: 0 20px 40px;
}

.stories-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stories-section .section-header p {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.stories-grid-slider {
    max-width: 1200px;
    margin: 0 auto;
}

.story-slider-container {
    position: relative;
    overflow: hidden;
    padding: 0 70px;
}

.story-slides {
    position: relative;
    width: 100%;
}

.story-slide-group {
    display: none;
}

.story-slide-group.active {
    display: block;
}

.stories-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.story-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.story-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-image.no-image {
    background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
    color: white;
    font-size: 3rem;
}

.story-content {
    padding: 25px;
}

.story-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.story-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.story-date i {
    margin-right: 5px;
}

.story-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.4;
}

.story-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.story-btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s;
}

.story-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.story-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.story-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
}

.story-dot.active,
.story-dot:hover {
    background: #3498db;
    transform: scale(1.2);
}

/* Responsive Design for Homepage */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .card-slider-container {
        padding: 0 60px;
    }
    
    .agency-card,
    .service-card {
        flex: 0 0 calc(50% - 15px);
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .hero-slideshow {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-nav {
        width: 40px;
        height: 40px;
    }
    
    .hero-nav.prev {
        left: 10px;
    }
    
    .hero-nav.next {
        right: 10px;
    }
    
    .quick-access-grid {
        grid-template-columns: 1fr;
    }
    
    .card-slider-container,
    .story-slider-container {
        padding: 0 50px;
    }
    
    .agency-card,
    .service-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .stories-row {
        grid-template-columns: 1fr;
    }
    
    .quick-access-section,
    .agencies-section,
    .services-section,
    .stories-section {
        padding: 50px 15px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-slideshow {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .hero-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .card-slider-container,
    .story-slider-container {
        padding: 0 40px;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}/* ============================================
   STORY POST SLIDESHOW STYLES
   ============================================ */

.story-slideshow {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.slideshow-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.slideshow-track {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.slideshow-slide {
    display: none;
    position: relative;
    width: 100%;
}

.slideshow-slide.active {
    display: block;
}

.slideshow-slide img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
    background: #000;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 40px 20px 20px;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.slide-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: #f5f5f5;
    color: #999;
}

.slide-error i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #2c3e50;
    font-size: 1.2rem;
}

.slideshow-nav:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-nav.prev {
    left: 20px;
}

.slideshow-nav.next {
    right: 20px;
}

.slideshow-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.slideshow-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex: 1;
}

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

.slideshow-dot.active,
.slideshow-dot:hover {
    background: #3498db;
    transform: scale(1.2);
}

.slideshow-counter {
    color: #7f8c8d;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: right;
}

.slideshow-counter .current-slide {
    font-weight: bold;
    color: #3498db;
}

@media (max-width: 768px) {
    .slideshow-track {
        min-height: 300px;
    }
    
    .slideshow-slide img {
        max-height: 400px;
    }
    
    .slideshow-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slideshow-nav.prev {
        left: 10px;
    }
    
    .slideshow-nav.next {
        right: 10px;
    }
    
    .slide-caption {
        font-size: 0.9rem;
        padding: 30px 15px 15px;
    }
}

@media (max-width: 480px) {
    .slideshow-track {
        min-height: 250px;
    }
    
    .slideshow-slide img {
        max-height: 300px;
    }
    
    .slideshow-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .slide-caption {
        font-size: 0.85rem;
        padding: 25px 10px 10px;
    }
    
    .slideshow-counter {
        font-size: 0.8rem;
    }
}
