/* ===== CORE STYLES ===== */
:root {
    --primary: #2c5282;
    --secondary: #ed8936;
    --accent: #38a169;
    --background: #f7fafc;
    --white: #ffffff;
    --text: #2d3748;
    --text-light: #718096;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --blue: #2c5282;
    --gold: #ed8936;
    --black: #1a202c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVIGATION ===== */
nav {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 150px 0 100px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
    justify-content: center;
}

.hero-keywords span {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

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

.btn-primary:hover {
    background: var(--background);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== MEDICAL SPECIALTIES ===== */
.medical-specialties {
    margin-top: 3rem;
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.specialty-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    color: var(--blue);
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
}

.specialty-item:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

/* ===== PROGRAMS ===== */
.programs-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.programs-list li {
    background: var(--white);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
    border-left: 4px solid var(--primary);
}

/* ===== BLOG SECTION ===== */
.blog-section {
    background: var(--background);
}

.blog-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: center;
}

.search-box {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 50px;
    border: 2px solid var(--border);
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary);
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.blog-posts-container {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-post-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
}

.post-header {
    margin-bottom: 1rem;
}

.post-category {
    background: var(--primary);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.post-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 1rem 0;
    line-height: 1.4;
}

.post-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-content {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tag {
    background: var(--background);
    color: var(--text);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.blog-stats {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== RESOURCES ===== */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.resource-category h3 {
    color: var(--blue);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
}

.resource-category ul {
    list-style: none;
}

.resource-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.resource-category li:last-child {
    border-bottom: none;
}

/* ===== FORMS ===== */
.join-form,
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.join-form input,
.join-form select,
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.join-form input:focus,
.join-form select:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== COMMUNITY STATS ===== */
.community-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== CONTACT INFO ===== */
.contact-info {
    max-width: 600px;
    margin: 3rem auto 0;
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 30px;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
    background: #1a202c;
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h4 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-specialties h4,
.footer-social h4 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-links a,
.footer-specialties a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-specialties a:hover {
    color: var(--gold);
}

.footer-specialties {
    text-align: center;
}

.specialty-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.specialty-links a {
    background: #333;
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.specialty-links a:hover {
    background: var(--gold);
    color: var(--black);
}

.footer-social .social-links {
    justify-content: flex-start;
    margin-top: 0;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #999;
}

.footer-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #999;
}

/* ===== ANIMATIONS ===== */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-keywords {
        gap: 0.3rem;
    }
    
    .hero-keywords span {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .specialty-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .community-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }

    .filter-buttons {
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .section {
        padding: 60px 0;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
