/* ================================================
   Newborn Sepsis Society - Inner Page Styles
   ================================================ */

/* ================================================
   Page Hero / Banner
   ================================================ */

.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1e3a5f 100%);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 50%, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
}

.page-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
}

.page-hero .breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.page-hero .breadcrumb .separator {
    color: rgba(255, 255, 255, 0.25);
}

.page-hero .breadcrumb .current {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.page-hero h1 {
    color: var(--white);
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
}

.page-hero .page-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    max-width: 640px;
    margin-bottom: 0;
}

/* ================================================
   Page Content Layout
   ================================================ */

.page-content {
    padding: 4rem 0;
}

.page-content + .page-content {
    padding-top: 0;
}

.page-content-narrow {
    max-width: 800px;
    margin: 0 auto;
}

/* Two column layout: content + sidebar */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
}

.page-layout-reverse {
    grid-template-columns: 340px 1fr;
}

/* ================================================
   Sidebar
   ================================================ */

.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h4 {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--blue-pale);
}

.sidebar-nav li {
    margin-bottom: 0.25rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--gray-600);
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--blue-pale);
    color: var(--blue-primary);
    font-weight: 500;
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    border: none;
    text-align: center;
}

.sidebar-cta h4 {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.sidebar-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

/* ================================================
   Content Cards (generic)
   ================================================ */

.content-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.content-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.content-card p {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

/* ================================================
   Profile / Team Cards
   ================================================ */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.profile-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
}

.profile-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.profile-photo {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--blue-pale) 0%, var(--gray-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.profile-info {
    padding: 1.5rem;
}

.profile-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.profile-role {
    color: var(--blue-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.profile-affiliation {
    color: var(--gray-500);
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.profile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    color: var(--gray-400);
    transition: all var(--transition);
}

.profile-social a:hover {
    background: var(--blue-pale);
    color: var(--blue-primary);
}

/* ================================================
   List Cards (events, publications, news)
   ================================================ */

.list-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.list-card:hover {
    border-color: var(--blue-primary);
    box-shadow: var(--shadow-md);
}

.list-card + .list-card {
    margin-top: 1rem;
}

.list-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--blue-pale);
    border-radius: var(--radius-md);
    color: var(--blue-primary);
    flex-shrink: 0;
}

.list-card-content {
    flex: 1;
}

.list-card-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.375rem;
}

.list-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}

.list-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ================================================
   Tabs / Filters
   ================================================ */

.page-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.page-tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: var(--font-body);
}

.page-tab:hover {
    color: var(--gray-700);
}

.page-tab.active {
    color: var(--blue-primary);
    border-bottom-color: var(--blue-primary);
    font-weight: 600;
}

/* ================================================
   Stats Row
   ================================================ */

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--blue-primary);
    line-height: 1;
    margin-bottom: 0.375rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ================================================
   Timeline
   ================================================ */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.375rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue-primary);
    border: 2px solid var(--white);
    margin-left: -4px;
}

.timeline-year {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--blue-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.timeline-item h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.375rem;
}

.timeline-item p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ================================================
   Form Styles
   ================================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

/* ================================================
   Pricing / Tier Table
   ================================================ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.pricing-featured {
    border-color: var(--blue-primary);
    border-width: 2px;
}

.pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue-primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 1rem;
    border-radius: 50px;
}

.pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.pricing-price span {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-400);
}

.pricing-desc {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.pricing-features {
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.pricing-features svg {
    flex-shrink: 0;
    color: var(--teal);
    margin-top: 3px;
}

/* ================================================
   FAQ / Accordion
   ================================================ */

.faq-list {
    max-width: 800px;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    text-align: left;
    cursor: pointer;
    transition: background var(--transition);
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--gray-400);
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
    color: var(--blue-primary);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
    color: var(--gray-500);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.faq-item.is-open .faq-answer {
    display: block;
}

/* ================================================
   Tag / Badge
   ================================================ */

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.02em;
}

.tag-blue { background: var(--blue-pale); color: var(--blue-primary); }
.tag-teal { background: var(--teal-light); color: var(--teal); }
.tag-coral { background: var(--coral-light); color: var(--coral); }
.tag-gray { background: var(--gray-100); color: var(--gray-600); }

/* ================================================
   Info Box / Callout
   ================================================ */

.info-box {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.info-box-blue {
    background: var(--blue-pale);
    border-left: 3px solid var(--blue-primary);
}

.info-box-teal {
    background: var(--teal-light);
    border-left: 3px solid var(--teal);
}

.info-box svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ================================================
   Responsive for Inner Pages
   ================================================ */

@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .page-layout-reverse {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .page-hero h1 { font-size: 2.25rem; }
}

@media (max-width: 768px) {
    .page-hero { padding: 3rem 0 2rem; }
    .page-hero h1 { font-size: 1.75rem; }
    .page-content { padding: 2.5rem 0; }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .list-card {
        flex-direction: column;
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }
}
