/**
 * Health Federation Website
 * Main Stylesheet
 */

/* ===== GENERAL STYLES ===== */
:root {
    --primary-color: #0066cc;
    --secondary-color: #0099ff;
    --accent-color: #ff6600;
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --text-color: #333333;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: #e55c00;
    border-color: #e55c00;
    color: white;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== HEADER STYLES ===== */
.top-bar {
    font-size: 0.9rem;
}

.top-bar a:hover {
    opacity: 0.8;
}

.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo img {
    max-height: 60px;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--dark-color);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.navbar-nav .dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 400;
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero {
    background-color: var(--light-color);
    padding: 5rem 0;
    position: relative;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== SLIDER ===== */
.slider {
    position: relative;
    overflow: hidden;
}

.slider-item {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
}

.slider-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
    padding: 0 15px;
}

.slider-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color:#000 !important;
}

.slider-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color:#000 !important;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 5rem 0;
}

.feature-box {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-text {
    color: var(--text-light);
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content {
    padding: 2rem;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* ===== ACTIVITIES SECTION ===== */
.activities {
    padding: 5rem 0;
}

.activity-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

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

.activity-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.activity-content {
    padding: 1.5rem;
}

.activity-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.activity-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.project-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

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

.project-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-status.ongoing {
    background-color: var(--primary-color);
    color: white;
}

.project-status.completed {
    background-color: var(--success-color);
    color: white;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.project-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ===== EVENTS SECTION ===== */
.events {
    padding: 5rem 0;
}

.event-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

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

.event-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.event-date {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    top: -40px;
    left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-weight: 500;
}

.event-date .day {
    font-size: 1.5rem;
    line-height: 1;
}

.event-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.event-content {
    padding: 1.5rem;
    position: relative;
}

.event-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    padding-left: 70px;
}

.event-meta {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.event-meta i {
    margin-right: 0.5rem;
}

.event-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ===== NEWS SECTION ===== */
.news {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.news-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    background-color: white;
}

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

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.news-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ===== MEMBERSHIP SECTION ===== */
.membership {
    padding: 5rem 0;
}

.membership-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    text-align: center;
    padding: 2rem;
}

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

.membership-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.membership-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.membership-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.contact-text h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: var(--text-light);
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form .form-control {
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.contact-form textarea.form-control {
    height: 150px;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter {
    padding: 3rem 0;
}

.newsletter h3 {
    margin-bottom: 1rem;
}

.newsletter-form .form-control {
    border-radius: 4px 0 0 4px;
    padding: 0.75rem 1rem;
}

.newsletter-form .btn {
    border-radius: 0 4px 4px 0;
}

/* ===== FOOTER STYLES ===== */
.footer {
    padding: 5rem 0 3rem;
}

.footer h5 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.social-icons {
    margin-bottom: 1.5rem;
}

.social-icons li {
    margin-right: 1rem;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.contact-info li i {
    color: var(--primary-color);
}

.copyright {
    font-size: 0.9rem;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .slider-item {
        height: 500px;
    }
    
    .slider-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .slider-item {
        height: 400px;
    }
    
    .slider-content h2 {
        font-size: 2rem;
    }
    
    .slider-content p {
        font-size: 1rem;
    }
    
    .feature-box,
    .activity-card,
    .project-card,
    .event-card,
    .news-card,
    .membership-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .top-bar {
        display: none;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .slider-item {
        height: 300px;
    }
    
    .slider-content h2 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 4rem 0;
    position: relative;
    background-color: var(--primary-color);
}

.page-header h1 {
    color: #fff;
    margin-bottom: 0.5rem;
}

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

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item a {
    color: #fff;
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

/* ===== EVENTS PAGE ===== */
.event-card {
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    overflow: hidden;
}

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

.event-image {
    position: relative;
    overflow: hidden;
}

.event-image img {
    transition: all 0.5s ease;
    height: 200px;
    object-fit: cover;
    width: 100%;
}

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

.event-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-date {
    display: flex;
    align-items: center;
}

.date-box {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    padding: 0.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.date-box .month {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 500;
}

.date-box .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

/* ===== EVENT DETAIL PAGE ===== */
.event-detail .event-image {
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.event-detail .event-image img {
    width: 100%;
    height: auto;
}

.event-info-item {
    margin-bottom: 1.5rem;
}

.event-info-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-time {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-speaker {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.timeline-description {
    font-size: 0.95rem;
    color: var(--text-color);
}

.speaker-card {
    margin-bottom: 1.5rem;
}

.speaker-image img {
    object-fit: cover;
}

.gallery-item {
    display: block;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-event-item {
    transition: all 0.3s ease;
}

.related-event-item:hover {
    transform: translateY(-3px);
}

/* ===== NEWS PAGE ===== */
.featured-news-card {
    transition: all 0.3s ease;
}

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

.featured-news-image {
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.news-card {
    transition: all 0.3s ease;
    height: 100%;
}

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

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.object-cover {
    object-fit: cover;
}

/* ===== NEWS DETAIL PAGE ===== */
.news-detail .news-image {
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.news-detail .news-image img {
    width: 100%;
    height: auto;
}

.content-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-body p {
    margin-bottom: 1.5rem;
}

.tags .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.social-share .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-item {
    margin-bottom: 2rem;
}

.comment-avatar img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.comment-reply .comment-avatar img {
    width: 50px;
    height: 50px;
}

.popular-news-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

/* ===== EVENT REGISTRATION PAGE ===== */
.form-label {
    font-weight: 500;
}

.form-text {
    font-size: 0.85rem;
}

.form-check-label {
    font-size: 0.95rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .page-header {
        padding: 3rem 0;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 2.5rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .event-info-item {
        margin-bottom: 1rem;
    }
    
    .date-box {
        width: 50px;
        height: 50px;
    }
    
    .date-box .day {
        font-size: 1.2rem;
    }
    
    .featured-news-image {
        height: 250px;
    }
}

@media (max-width: 575.98px) {
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .timeline {
        padding-left: 1.2rem;
    }
    
    .timeline-marker {
        left: -1.2rem;
        width: 12px;
        height: 12px;
    }
    
    .comment-avatar img {
        width: 50px;
        height: 50px;
    }
    
    .comment-reply .comment-avatar img {
        width: 40px;
        height: 40px;
    }
} 