:root {
    --primary: #0a1622;
    --accent: #b91c1c;
    /* Cautionary Crimson */
    --text-main: #1a202c;
    --text-muted: #4a5568;
    --bg-soft: #fcfdfd;
    --white: #ffffff;
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.08);
    --glass: rgba(255, 255, 255, 0.85);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-soft);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.headline-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--primary);
}


/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: 1400px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 2rem;
    padding-left: 2rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -1rem;
    margin-left: -1rem;
}

.row>* {
    padding-right: 1rem;
    padding-left: 1rem;
}

.col-12 {
    width: 100%;
}

.col-md-6 {
    width: 50%;
}

.col-lg-4 {
    width: 33.333333%;
}

.col-lg-5 {
    width: 41.666667%;
}

.col-lg-7 {
    width: 58.333333%;
}

.col-lg-8 {
    width: 66.666667%;
}

@media (max-width: 991px) {

    .col-lg-4,
    .col-lg-5,
    .col-lg-7,
    .col-lg-8 {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .col-md-6 {
        width: 100%;
    }
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    background: var(--glass);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.btn-submit {
    background: var(--accent);
    color: white !important;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-submit:hover {
    transform: translateY(-2px);
    background: #991b1b;
    box-shadow: 0 10px 20px rgba(185, 28, 28, 0.2);
}

/* --- Mobile Navigation --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 2px solid var(--accent);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .hamburger {
        display: block;
    }

    nav {
        padding: 1rem 5%;
    }
}

/* --- Global Section Utilities --- */
section {
    padding: 120px 8%;
}

.section-tag {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

@media (max-width: 768px) {
    section {
        padding: 80px 5%;
    }
}

/* --- About Page --- */
.mission-container {
    padding: 0 8%;
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.row-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.row-layout.reverse {
    direction: ltr;
}

.row-layout.reverse .content-block {
    order: 2;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 4px;
}

.feature-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: var(--primary);
}

.image-wrapper {
    position: relative;
}

.image-wrapper img,
.responsive-img {
    width: 100%;
    height: auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    filter: grayscale(0.5);
}

.accent-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--accent);
    z-index: -1;
}

.quote-card {
    background: #020617;
    padding: 40px;
    border-left: 8px solid var(--accent);
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
}

/* --- Hero Section (Homepage) --- */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    color: white;
    padding: 160px 8% 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.05;
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    margin-bottom: 1.5rem;
    color: white !important;
}

.hero p {
    max-width: 800px;
    margin: 0 auto 3.5rem;
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.7;
    color: #cbd5e1;
}

.hero-btn {
    background: var(--accent);
    color: white;
    padding: 1.2rem 2.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-btn:hover {
    background: #991b1b;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* --- Story Cards --- */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.story-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.story-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: #0f172a;
    filter: grayscale(0.2);
    transition: 0.4s;
}

.story-card:hover .story-img {
    filter: grayscale(0);
}

.story-content {
    padding: 35px;
    flex-grow: 1;
}

.story-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    line-height: 1.25;
}

.story-content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.story-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

/* --- Section Formatting --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2rem;
}

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

.empty-state {
    background: white;
    border-radius: 0;
    padding: 120px 40px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-soft);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 550px;
    margin: 0 auto 2.5rem;
}

/* --- Medical Feature --- */
.medical-feature {
    background: var(--white);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 1400px;
    margin: 0 auto;
}

.medical-text {
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.medical-image {
    background: #1e293b;
    min-height: 500px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1579154235602-3c2c299e0831?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
}

/* --- Article Detail --- */
.article-content p {
    margin-bottom: 2.5rem;
}

.tag-pill {
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    background: transparent;
    display: inline-block;
}

.tag-pill:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: white !important;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--accent);
}

.group:hover h6 {
    color: var(--accent) !important;
}

/* --- Responsive Helpers --- */
@media (max-width: 1024px) {
    .row-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .row-layout.reverse .content-block {
        order: 0;
    }

    .medical-feature {
        grid-template-columns: 1fr;
    }

    .medical-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 5% 80px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 3rem;
    }

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

    .medical-text {
        padding: 40px 20px;
    }
}

/* --- Auth & Forms --- */
.auth-container {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    margin: 80px auto;
    box-shadow: var(--shadow-soft);
    border-top: 5px solid var(--accent);
}

.auth-header {
    padding: 60px 40px 40px;
    text-align: center;
}

.auth-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
    display: block;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.auth-header h1 {
    font-size: 2.4rem;
    font-style: italic;
    line-height: 1.1;
    margin-bottom: 15px;
}

.auth-body {
    padding: 0 40px 50px;
}

.auth-footer {
    text-align: center;
    padding: 35px 40px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.form-control,
.premium-input {
    width: 100%;
    padding: 18px 25px;
    background: #fcfdfd;
    border: 2px solid #e2e8f0;
    border-radius: 0;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: var(--text-main);
}

.form-control:focus,
.premium-input:focus {
    outline: none;
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 22, 34, 0.05);
}

.form-icon-wrapper {
    position: relative;
}

.form-icon-wrapper i:not(.password-toggle) {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

.form-icon-wrapper .form-control {
    padding-left: 55px;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    font-size: 1.1rem;
}

.alert {
    padding: 20px;
    margin-bottom: 35px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-error {
    background: #020617;
    border-left: 6px solid var(--accent);
    color: white;
}

.alert-success {
    background: #020617;
    border-left: 6px solid #10b981;
    color: white;
}

/* --- Legal Pages --- */
.legal-content {
    color: var(--text-muted);
}

.policy-section,
.terms-section,
.guideline-item {
    margin-bottom: 50px;
}

.policy-section h4,
.terms-section h4,
.guideline-item h4 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.guideline-item {
    background: white;
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

/* --- Grid Helpers --- */
.g-5 {
    gap: 3rem;
}

.gy-5 {
    row-gap: 3rem;
}

.gx-5 {
    column-gap: 3rem;
}

/* --- Footer --- */
footer {
    background: #020617;
    color: white;
    padding: 100px 0 40px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 2rem;
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-col a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    display: block;
    text-decoration: none;
}

.footer-mission {
    opacity: 0.6;
    font-size: 0.95rem;
    max-width: 320px;
    line-height: 1.6;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 40px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.4;
    letter-spacing: 1px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}