/* Healthcare Page Styles */

/* Content Section Container */
.content-section-container {
    position: relative;
}

/* Mobile Menu Toggle Button */
.mobile-tabs-toggle {
    background-color: #039BC1;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-tabs-toggle:hover {
    background-color: #0288a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(3, 155, 193, 0.3);
}

/* Mobile Overlay */
.mobile-tabs-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-tabs-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar Navigation */
.sidebar-nav {
    min-width: 250px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    z-index: 10;
    /* No scrolling - sidebar stays fixed */
    /* No background on desktop */
}

/* Sidebar Close Button (Mobile) */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    z-index: 11;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-close-btn:hover {
    background-color: #f0f0f0;
    color: #039BC1;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.sidebar-item {
    width: 100%;
    margin-bottom: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    width: 100%;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-link:hover {
    background-color: #f0f0f0;
    color: #039BC1;
    text-decoration: none;
}

.sidebar-item.active .sidebar-link {
    background-color: #E8F4F8;
    color: #039BC1;
    font-weight: 600;
}

.sidebar-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Content Area */
.content-area {
    min-height: 500px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    /* No scrollbar - let the main page scroll naturally */
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
    max-width: 100%;
    overflow-x: hidden;
}

.tab-content.active {
    display: block;
}

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

.tab-content h2 {
    color: #051c2c;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
}

.tab-content h3 {
    color: #051c2c;
    font-size: 24px;
    font-weight: 600;
    margin-top: 2rem;
}

.tab-content h4 {
    color: #051c2c;
    font-size: 20px;
    font-weight: 600;
}

.tab-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.tab-content ul {
    list-style: none;
    padding-left: 0;
}

.tab-content ul li {
    padding-left: 24px;
    position: relative;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.tab-content ul li::before {
    content: "•";
    color: #039BC1;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Healthcare Images Grid */
.healthcare-images-grid {
    margin-top: 1rem;
}

.healthcare-image {
    width: 32%;
    border-radius: 8px;
    object-fit: cover;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.healthcare-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        max-width: 80%;
        height: 100vh;
        margin: 0;
        z-index: 999;
        transition: left 0.3s ease;
        overflow-y: auto;
        background-color: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar-nav.active {
        left: 0;
    }
    
    .sidebar-close-btn {
        display: block;
    }
    
    .sidebar-list {
        flex-direction: column;
        gap: 8px;
        margin-top: 40px;
    }
    
    .sidebar-item {
        width: 100%;
    }
    
    .sidebar-link {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .content-area {
        width: 100% !important;
    }
    
    .tab-content h2 {
        font-size: 28px;
    }
    
    .tab-content h3 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .sidebar-list {
        flex-direction: column;
    }
    
    .sidebar-item {
        width: 100%;
    }
    
    .tab-content h2 {
        font-size: 24px;
    }
    
    .tab-content h3 {
        font-size: 20px;
    }
    
    .tab-content p {
        font-size: 15px;
    }
    
    /* Healthcare Images - 2 per row on tablet */
    .healthcare-image {
        width: 48%;
    }
}

@media (max-width: 576px) {
    /* Healthcare Images - 1 per row on mobile */
    .healthcare-image {
        width: 100%;
    }
    
    .healthcare-images-grid {
        gap: 1rem !important;
    }
}

/* News Card Styles for Education Section */
.news-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    padding: 15px;
    padding-bottom: 0;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    color: #051c2c;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-card-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.news-card-link {
    color: #039BC1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.news-card-link:hover {
    color: #0288a1;
    text-decoration: none;
}

.news-card-link span {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.news-card-link:hover span {
    transform: translateX(5px);
}

/* Education News Swiper Styles */
.educationNewsSwiper,
.publicHealthNewsSwiper {
    width: 100%;
    max-width: 100%;
    padding-bottom: 20px;
    overflow: hidden;
    margin: 0;
}

.educationNewsSwiper .swiper-wrapper,
.publicHealthNewsSwiper .swiper-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.educationNewsSwiper .swiper-slide,
.publicHealthNewsSwiper .swiper-slide {
    height: auto;
    box-sizing: border-box;
    flex-shrink: 0;
}

.educationNewsSwiper .swiper-slide .news-card,
.publicHealthNewsSwiper .swiper-slide .news-card {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Large desktop - 3 items */
@media (min-width: 1200px) {
    .educationNewsSwiper .swiper-slide,
    .publicHealthNewsSwiper .swiper-slide {
        width: calc((100% - 40px) / 3);
        max-width: calc((100% - 40px) / 3);
    }
}

/* Laptop screens - 2 items (993px to 1160px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .educationNewsSwiper,
    .publicHealthNewsSwiper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .educationNewsSwiper .swiper-wrapper,
    .publicHealthNewsSwiper .swiper-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .educationNewsSwiper .swiper-slide,
    .publicHealthNewsSwiper .swiper-slide {
        width: calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
        flex-shrink: 0;
    }
}

/* Tablet - 2 items */
@media (max-width: 991px) and (min-width: 768px) {
    .educationNewsSwiper .swiper-slide,
    .publicHealthNewsSwiper .swiper-slide {
        width: calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
    }
}

/* Mobile - 1 item */
@media (max-width: 767px) {
    .educationNewsSwiper .swiper-slide,
    .publicHealthNewsSwiper .swiper-slide {
        width: 100%;
        max-width: 100%;
    }
}

/* Responsive Styles for News Cards */
@media (max-width: 992px) {
    .news-card-title {
        font-size: 18px;
    }
    
    .news-card-description {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .news-card-image {
        height: 180px;
    }
    
    .news-card-content {
        padding: 16px;
    }
    
    .news-card-title {
        font-size: 16px;
    }
    
    .news-card-description {
        font-size: 13px;
    }
}

