@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --bni-red: #cf2030;
    --bni-dark-red: #8b0000;
    --bni-crimson: #a60f1e;
    --bni-black: #111111;
    --bni-dark-grey: #333333;
    --bni-light-grey: #f8f9fa;
    --bni-border-grey: #e2e8f0;
    --bni-table-bg: #fdfbf7;
    --bni-green: #00b050;
    --bni-gold: #ffc107;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    background-color: #f2f4f7;
    color: var(--bni-dark-grey);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Page Layout Container */
.newsletter-wrapper {
    max-width: 1100px;
    margin: 30px auto;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

/* Header & Navigation Bar */
.top-nav-bar {
    background: var(--bni-black);
    color: #ffffff;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.month-selector-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.month-select-dropdown {
    background: #222222;
    color: #ffffff;
    border: 1px solid #444444;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.month-select-dropdown:hover,
.month-select-dropdown:focus {
    border-color: var(--bni-red);
}

.btn-nav-month {
    background: var(--bni-red);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s;
}

.btn-nav-month:hover {
    background: #b01826;
}

/* Main Banner Header */
.banner-header {
    background: #ffffff;
    padding: 40px 50px;
    border-bottom: 3px solid var(--bni-red);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bni-logo-badge {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--bni-red);
    letter-spacing: -1px;
    line-height: 1;
}

.region-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: #444444;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.newsletter-title-box {
    text-align: right;
}

.main-newsletter-heading {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: #111111;
    text-transform: capitalize;
    line-height: 1.1;
    letter-spacing: -1px;
}

.month-badge-pill {
    display: inline-block;
    background: var(--bni-black);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 4px;
    margin-top: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Content Container */
.newsletter-body {
    padding: 40px 50px;
}

/* Section Common Styling */
.section-block {
    margin-bottom: 45px;
}

.section-header-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle-text {
    font-size: 15px;
    color: #444444;
    margin-bottom: 20px;
}

/* Section 1: Highest Thank You Note & Visitors */
.two-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.highlight-stat-card {
    background: #ffffff;
    border: 1px solid var(--bni-border-grey);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.card-top-header {
    background: var(--bni-red);
    color: #ffffff;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-inner-padding {
    padding: 22px;
}

.member-name-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--bni-black);
    margin-bottom: 4px;
}

.chapter-name-text {
    font-size: 15px;
    font-weight: 500;
    color: #666666;
    margin-bottom: 12px;
}

.stat-value-badge {
    display: inline-block;
    background: #fff5f5;
    color: var(--bni-red);
    font-size: 20px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid #ffccd1;
}

/* Section 2 & 4: Achievement Banner Cards (Lifetime Sponsorship Milestone) */
.achievement-card-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.achievement-banner-title {
    background: var(--bni-red);
    color: #ffffff;
    padding: 20px 30px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.achievement-content-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    background: #ffffff;
}

.member-photo-col {
    background: var(--bni-dark-red);
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.member-photo-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.member-info-col {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: #ffffff;
}

.achievement-member-name {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    color: var(--bni-black);
    margin-bottom: 6px;
}

.achievement-chapter-name {
    font-size: 18px;
    color: #555555;
    font-weight: 500;
    margin-bottom: 18px;
}

.achievement-desc-text {
    font-size: 20px;
    color: #777777;
    font-weight: 600;
}

.trophy-icon-badge {
    position: absolute;
    bottom: 30px;
    right: 40px;
    font-size: 54px;
    line-height: 1;
}

/* Custom Styled Tables (Matching PDF Screenshots #3, #4, #5) */
.custom-bni-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.custom-bni-table th {
    background: var(--bni-red);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 14px 20px;
    text-align: left;
    letter-spacing: 0.5px;
}

.custom-bni-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #eeeeee;
    font-size: 15px;
    color: #333333;
    font-weight: 500;
}

.custom-bni-table tr:nth-child(even) {
    background-color: var(--bni-table-bg);
}

.custom-bni-table tr:hover {
    background-color: #f1f3f5;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.status-dot-green {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: var(--bni-green);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 176, 80, 0.4);
}

/* Grid Cards for Gold Pin & Club Activities */
.gold-pins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.gold-pin-card {
    background: #ffffff;
    border: 1px solid var(--bni-border-grey);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.gold-pin-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    border: 3px solid var(--bni-red);
}

.gold-pin-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--bni-black);
}

.club-activity-card {
    background: #ffffff;
    border: 1px solid var(--bni-border-grey);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
}

.club-activity-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
}

.club-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 140px;
}

.club-info-container {
    padding: 20px;
}

.club-name-tag {
    display: inline-block;
    background: var(--bni-black);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.club-activity-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--bni-red);
    margin-bottom: 6px;
}

.club-activity-msg {
    font-size: 15px;
    color: #555555;
    line-height: 1.5;
}

/* Footer Container */
.newsletter-footer {
    background: var(--bni-black);
    color: #888888;
    text-align: center;
    padding: 25px 30px;
    font-size: 14px;
    border-top: 3px solid var(--bni-red);
}

.newsletter-footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 850px) {
    .banner-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .newsletter-title-box {
        text-align: center;
    }

    .two-card-grid {
        grid-template-columns: 1fr;
    }

    .achievement-content-grid {
        grid-template-columns: 1fr;
    }

    .member-photo-col {
        padding: 30px 20px;
    }

    .club-activity-grid {
        grid-template-columns: 1fr;
    }
}
