/* ============================================================
   HOMEPAGE STYLES — Medley Toastmasters
   ============================================================ */

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 42, 74, 0.88) 0%,
        rgba(151, 43, 37, 0.72) 60%,
        rgba(26, 42, 74, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    padding: .35rem 1rem;
    background: rgba(200, 164, 74, .2);
    border: 1px solid var(--color-gold);
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-title .highlight { color: var(--color-gold); }

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,.85);
    margin-bottom: 2.5rem;
    max-width: 550px;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   SECTION 2 — STATS BAR
   ============================================================ */
.stats-section {
    background: var(--color-navy);
    padding: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem 1rem;
    border-right: 1px solid rgba(255,255,255,.12);
}

.stat-item:last-child { border-right: none; }

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: .4rem;
    display: block;
}

.stat-label {
    font-size: .875rem;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ============================================================
   SECTION 3 — ABOUT STORY BLOCKS
   ============================================================ */
.stories-section { background: var(--color-white); }

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

.story-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.story-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-top-color: var(--color-gold);
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
    transform: scaleX(0);
    transition: transform .3s ease;
}

.story-card:hover::before { transform: scaleX(1); }

.story-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-navy), var(--color-primary));
    overflow: hidden;
}

.story-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.story-card h3 {
    font-size: 1.3rem;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.story-card p { font-size: .95rem; color: var(--color-grey); line-height: 1.75; margin: 0; }

/* ============================================================
   SECTION 4 — EXCOM GRID
   ============================================================ */
.excom-section { background: var(--color-light); }

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

.excom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.excom-section .view-all {
    text-align: center;
    margin-top: 2.5rem;
}

/* ============================================================
   SECTION 5 — RESOURCES + RECENT MEETINGS
   ============================================================ */
.resources-section { background: var(--color-white); }

.resources-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.resource-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.resource-card:hover {
    border-color: var(--color-gold);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.resource-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.resource-icon img { width: 100%; height: 100%; object-fit: cover; }

.resource-info h4 { font-size: 1rem; color: var(--color-navy); margin-bottom: .35rem; }
.resource-info p  { font-size: .875rem; color: var(--color-grey); margin-bottom: .75rem; }

/* Meeting Recordings List */
.recent-meetings-col h3 {
    font-size: 1.3rem;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--color-border);
}

.meeting-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.meeting-row:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.meeting-thumb-img {
    width: 80px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--color-navy);
}

.meeting-info { flex: 1; }
.meeting-info .meeting-title { font-size: .9rem; font-weight: 600; color: var(--color-navy); margin-bottom: .2rem; }
.meeting-info .meeting-date {
    font-size: .78rem;
    color: var(--color-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.meeting-row .btn-sm {
    flex-shrink: 0;
    font-size: .78rem;
    padding: .4rem .9rem;
}

/* ============================================================
   SECTION 6 — PRESIDENT'S NOTE
   ============================================================ */
.presidents-note-section {
    background: var(--color-navy);
    position: relative;
    overflow: hidden;
}

.presidents-note-section::before {
    content: '"';
    position: absolute;
    font-family: var(--font-heading);
    font-size: 20rem;
    color: rgba(200,164,74,.06);
    top: -3rem;
    left: -2rem;
    line-height: 1;
    pointer-events: none;
}

.note-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
}

.note-photo-wrap { text-align: center; }

.note-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-gold);
    margin-bottom: 1rem;
}

.note-president-name {
    font-weight: 700;
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: .2rem;
}

.note-president-title {
    font-size: .8rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.note-content-wrap .note-label {
    display: inline-block;
    padding: .3rem .9rem;
    background: rgba(200,164,74,.2);
    border: 1px solid var(--color-gold);
    border-radius: 20px;
    font-size: .78rem;
    color: var(--color-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.note-content-wrap h2 {
    color: var(--color-white);
    margin-bottom: 1.25rem;
}

.note-excerpt {
    color: rgba(255,255,255,.8);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    padding-left: 1.25rem;
    border-left: 3px solid var(--color-gold);
}
