
* { box-sizing: border-box; font-family: 'Vazirmatn', Tahoma, sans-serif; }
html { scroll-behavior: smooth; }
body { margin: 0; padding: 0; background: #f8fafc; color: #0f172a; line-height: 1.75; }

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

/* Navbar */
.site-navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 900;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    gap: 16px;
}
.site-brand { display: flex; align-items: center; gap: 12px; }
.site-logo-box {
    width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff; font-size: 26px; display: grid; place-items: center;
}
.site-brand-name { font-size: 21px; font-weight: 900; color: #0f172a; }
.site-brand-sub { font-size: 13px; font-weight: 700; color: #0f766e; }

.site-nav-links { display: flex; gap: 22px; }
.site-nav-links a {
    text-decoration: none; color: #334155; font-size: 16.5px; font-weight: 800; transition: 0.15s;
}
.site-nav-links a:hover { color: #0d9488; }
@media (max-width: 820px) {
    .site-nav-links { display: none; }
}

.member-login-trigger {
    background: #0f172a;
    color: #5eead4;
    border: 2px solid #0f172a;
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 16.5px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.18s;
}
.member-login-trigger:hover {
    background: #0d9488;
    border-color: #0d9488;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #115e59 60%, #0d9488 100%);
    color: #ffffff;
    padding: 64px 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 36px;
    align-items: center;
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
}
.hero-badge {
    display: inline-block;
    background: rgba(94, 234, 212, 0.18);
    color: #5eead4;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 14px;
}
.hero-text-col h1 { font-size: 38px; font-weight: 900; margin: 0 0 8px 0; }
.hero-specialty { font-size: 21px; font-weight: 800; color: #99f6e4; margin: 0 0 16px 0; }
.hero-tagline { font-size: 17.5px; color: #e2e8f0; margin-bottom: 26px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-btn-primary {
    background: #5eead4; color: #0f172a; text-decoration: none;
    padding: 13px 24px; border-radius: 12px; font-size: 17px; font-weight: 900;
}
.hero-btn-secondary {
    background: rgba(255,255,255,0.14); color: #fff; text-decoration: none;
    border: 1.5px solid rgba(255,255,255,0.35);
    padding: 13px 24px; border-radius: 12px; font-size: 17px; font-weight: 800;
}
.hero-meta-pills { display: flex; flex-wrap: wrap; gap: 16px; font-size: 15px; color: #ccfbf1; font-weight: 700; }

.doctor-profile-card {
    background: #ffffff;
    color: #0f172a;
    border-radius: 22px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(0,0,0,0.25);
}
.doctor-avatar-img {
    width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
    border: 4px solid #0d9488; margin-bottom: 12px;
}
.doctor-avatar-placeholder {
    width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 14px auto;
    background: #ccfbf1; font-size: 54px; display: grid; place-items: center;
}
.doctor-profile-card h3 { margin: 0 0 4px 0; font-size: 22px; font-weight: 900; }
.doctor-profile-card p { margin: 0; font-size: 15.5px; color: #0f766e; font-weight: 800; }
.doctor-card-divider { height: 2px; background: #e2e8f0; margin: 16px 0; }
.doctor-card-contact { font-size: 15px; font-weight: 700; color: #334155; display: flex; flex-direction: column; gap: 6px; }

/* Sections */
.site-section { padding: 60px 0; }
.site-section.bg-white { background: #ffffff; border-top: 1.5px solid #e2e8f0; border-bottom: 1.5px solid #e2e8f0; }
.section-heading { text-align: center; margin-bottom: 36px; }
.sec-kicker { color: #0d9488; font-size: 15.5px; font-weight: 900; }
.section-heading h2 { font-size: 30px; font-weight: 900; margin: 4px 0 0 0; color: #0f172a; }

.about-box {
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-right: 8px solid #0d9488;
    border-radius: 18px;
    padding: 28px 32px;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.cards-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.cards-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 24px; }
@media (max-width: 520px) { .cards-grid-2 { grid-template-columns: 1fr; } }

.showcase-card, .article-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: 0.2s;
}
.showcase-card:hover, .article-card:hover { transform: translateY(-4px); border-color: #0d9488; }
.showcase-img, .article-img { width: 100%; height: 220px; object-fit: cover; }
.showcase-img-placeholder {
    width: 100%; height: 180px; background: linear-gradient(135deg, #ccfbf1, #dbeafe);
    display: grid; place-items: center; font-size: 20px; font-weight: 900; color: #0f766e;
}
.showcase-body, .article-body { padding: 22px; }
.showcase-body h3, .article-body h3 { margin: 10px 0 8px 0; font-size: 20px; font-weight: 900; }
.tag-pill {
    display: inline-block; background: #ccfbf1; color: #0f766e;
    padding: 4px 12px; border-radius: 8px; font-size: 14px; font-weight: 900;
}
.article-meta { display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; color: #64748b; font-weight: 700; }
.read-more-btn {
    background: transparent; border: none; color: #0d9488; font-size: 16.5px;
    font-weight: 900; cursor: pointer; padding: 0; margin-top: 8px;
}

/* Footer */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 48px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.site-footer h3, .site-footer h4 { color: #ffffff; margin: 0 0 10px 0; }
.footer-member-btn {
    margin-top: 10px; background: #1e293b; color: #5eead4; border: 1.5px solid #334155;
    padding: 10px 18px; border-radius: 10px; font-size: 15.5px; font-weight: 800; cursor: pointer;
}

/* Login & Article Modals */
.portal-modal-backdrop {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.72);
    display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 2000;
}
.portal-modal-backdrop.hidden { display: none; }
.portal-modal-box {
    background: #ffffff; border-radius: 20px; width: 100%; max-width: 460px;
    padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.portal-modal-box.article-reader-box { max-width: 760px; max-height: 88vh; overflow-y: auto; }
.portal-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid #e2e8f0;
}
.portal-modal-header h3 { margin: 0; font-size: 21px; font-weight: 900; }
.close-x-btn { background: #e2e8f0; border: none; border-radius: 8px; padding: 6px 12px; font-weight: 900; cursor: pointer; }
.login-hint { font-size: 15.5px; color: #475569; margin: 0 0 16px 0; }
.p-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.p-form-group label { font-size: 16px; font-weight: 800; }
.p-form-group input {
    padding: 13px 14px; border: 2px solid #cbd5e1; border-radius: 11px; font-size: 17px; font-weight: 700;
}
.p-form-group input:focus { outline: none; border-color: #0d9488; }
.login-error-box {
    background: #fee2e2; color: #b91c1c; padding: 10px 14px; border-radius: 10px;
    font-size: 15px; font-weight: 800; margin-bottom: 12px;
}
.login-error-box.hidden { display: none; }
.p-submit-btn {
    width: 100%; background: #0d9488; color: #fff; border: none; border-radius: 12px;
    padding: 14px; font-size: 18px; font-weight: 900; cursor: pointer;
}
.p-submit-btn:hover { background: #0f766e; }
.reader-body-text { font-size: 17.5px; line-height: 1.9; color: #1e293b; }
