/* ==========================================================================
   Homepage Styles
   ========================================================================== */

/* Latest Edition — Hero + Supporting Layout */
.edition-hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Hero article (left column) */
.edition-hero {
    display: flex;
    flex-direction: column;
}

.edition-hero-image {
    display: block;
    aspect-ratio: 3 / 2;
    width: 100%;
    background: linear-gradient(135deg, var(--accent-warm) 0%, #147a9e 100%);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.edition-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.edition-hero-image.investing { background: linear-gradient(135deg, #215b81 0%, #0d3a5c 100%); }
.edition-hero-image.super-smsf { background: linear-gradient(135deg, #1d93bd 0%, #147a9e 100%); }
.edition-hero-image.property { background: linear-gradient(135deg, #33475b 0%, #1e2d3d 100%); }
.edition-hero-image.model-portfolios { background: linear-gradient(135deg, #1d93bd 0%, #0d3a5c 100%); }
.edition-hero-image.broker-recommendations { background: linear-gradient(135deg, #33475b 0%, #215b81 100%); }
.edition-hero-image.video { background: linear-gradient(135deg, #0d3a5c 0%, #33475b 100%); }

.edition-hero-content .edition-article-category {
    margin-bottom: 10px;
}

.edition-hero h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}

.edition-hero h3 a {
    color: inherit;
    text-decoration: none;
}

.edition-hero h3 a:hover {
    color: var(--accent-primary);
}

.edition-hero-excerpt {
    font-family: "Source Serif 4", serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Supporting articles (right column) */
.edition-supporting {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.edition-supporting-article {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start;
}

.edition-supporting-article:first-child {
    padding-top: 0;
}

.edition-supporting-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.edition-supporting-image {
    flex-shrink: 0;
    width: 120px;
    aspect-ratio: 3 / 2;
    background: linear-gradient(135deg, var(--accent-warm) 0%, #147a9e 100%);
    overflow: hidden;
    display: block;
}

.edition-supporting-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.edition-supporting-image.investing { background: linear-gradient(135deg, #215b81 0%, #0d3a5c 100%); }
.edition-supporting-image.super-smsf { background: linear-gradient(135deg, #1d93bd 0%, #147a9e 100%); }
.edition-supporting-image.property { background: linear-gradient(135deg, #33475b 0%, #1e2d3d 100%); }
.edition-supporting-image.model-portfolios { background: linear-gradient(135deg, #1d93bd 0%, #0d3a5c 100%); }
.edition-supporting-image.broker-recommendations { background: linear-gradient(135deg, #33475b 0%, #215b81 100%); }
.edition-supporting-image.video { background: linear-gradient(135deg, #0d3a5c 0%, #33475b 100%); }

.edition-supporting-content {
    flex: 1;
    min-width: 0;
}

.edition-supporting-content .edition-article-category {
    margin-bottom: 6px;
}

.edition-supporting-content h4 {
    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 6px;
}

.edition-supporting-content h4 a {
    color: inherit;
    text-decoration: none;
}

.edition-supporting-content h4 a:hover {
    color: var(--accent-primary);
}

/* Shared styles */
.edition-article-category {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-warm);
    margin-bottom: 8px;
}

.edition-article-meta {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: var(--text-tertiary);
}

.edition-article-author {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-tertiary);
}

.edition-article-author a {
    color: var(--accent-primary);
    text-decoration: none;
}

.edition-article-author a:hover {
    text-decoration: underline;
}

/* Full Width Button */
.full-width-button {
    display: block;
    width: 100%;
    padding: 20px;
    background: var(--accent-primary);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 40px;
}

.full-width-button:hover {
    background: var(--accent-highlight);
}

.full-width-button span {
    margin-left: 8px;
}

/* Category Section Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Two Column Category Layout */
.two-column-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.two-column-categories .content-box {
    margin-bottom: 0;
}

/* Q&A Header */
.qa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-light);
}

.qa-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qa-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ask-question-btn {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: white;
    background: var(--accent-primary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s;
}

.ask-question-btn:hover {
    background: var(--accent-highlight);
}

/* Video/Podcast Section */
.media-section {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #0d3a5c 100%);
    padding: 60px;
    margin-bottom: 40px;
    color: white;
}

.media-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.media-section-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 12px;
}

.media-section-header p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 16px;
}

.media-section-header .view-all-link {
    color: var(--accent-warm);
    display: inline-flex;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.media-card {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    color: white;
    display: block;
}

.media-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-4px);
}

.media-card-image {
    aspect-ratio: 3 / 2;
    width: 100%;
    background: rgba(0,0,0,0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-card-image.tv { background: linear-gradient(135deg, #33475b 0%, #1e2d3d 100%); }
.media-card-image.boom { background: linear-gradient(135deg, #1d93bd 0%, #147a9e 100%); }
.media-card-image.podcast { background: linear-gradient(135deg, var(--accent-warm) 0%, #147a9e 100%); }

.play-button {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.play-button svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.media-card-body {
    padding: 24px;
}

.media-card-type {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.media-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

.media-card p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    opacity: 0.7;
}

/* ==========================================================================
   Subscribe Leaderboard Banner (728x90 replacement for logged-out users)
   ========================================================================== */

.subscribe-leaderboard {
    max-width: 728px;
    height: 50px;
    margin: 0 auto 16px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #1d93bd 0%, #215b81 100%);
    box-shadow: 0 2px 8px rgba(29, 147, 189, 0.25);
}

.subscribe-leaderboard-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 32px;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s ease;
}

.subscribe-leaderboard-inner:hover {
    opacity: 0.92;
}

.subscribe-leaderboard-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.95);
}

.subscribe-leaderboard-text strong {
    font-weight: 700;
    font-size: 15px;
    color: white;
}

.subscribe-leaderboard-btn {
    flex-shrink: 0;
    background: white;
    color: #215b81;
    padding: 10px 24px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-left: 24px;
}

/* ==========================================================================
   Edition Supporting Excerpts
   ========================================================================== */

.edition-supporting-excerpt {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-top: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Responsive: Subscribe Leaderboard
   ========================================================================== */

@media (max-width: 768px) {
    .subscribe-leaderboard {
        height: auto;
        max-width: 100%;
    }
    .subscribe-leaderboard-inner {
        flex-direction: column;
        text-align: center;
        padding: 16px 20px;
        gap: 12px;
    }
    .subscribe-leaderboard-btn {
        margin-left: 0;
    }
}


/* Subscribe leaderboard in pre-footer position */
.subscribe-leaderboard--prefooter {
    margin: 40px auto;
}