/* ============================================
   AgFoodNews.com — Custom Stylesheet
   Bootstrap 5.3 + Custom Components
   "TechCrunch for Ag-Food"
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --afn-dark: #163019;
    --afn-dark-hover: #0e2010;
    --afn-accent: #2D8A4E;
    --afn-accent-light: #e1f5ee;
    --afn-green: #2D8A4E;
    --afn-green-light: #e1f5ee;
    --afn-orange: #D4760A;
    --afn-orange-light: #faeeda;
    --afn-red: #C0392B;
    --afn-purple: #534AB7;
    --afn-purple-light: #EEEDFE;
    --afn-pink: #D4537E;
    --afn-pink-light: #FBEAF0;
    --afn-coral: #D85A30;
    --afn-coral-light: #FAECE7;
    --afn-amber: #BA7517;
    --afn-amber-light: #FAEEDA;

    --afn-body-font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --afn-display-font: 'Oswald', sans-serif;

    --afn-border: #e8e8e8;
    --afn-bg-soft: #f7f9fc;
    --afn-text: #111111;
    --afn-text-muted: #333333;
    --afn-text-faint: #4e555d;

    --afn-radius: 8px;
    --afn-radius-lg: 12px;
    --afn-transition: 0.2s ease;
}

/* --- Base --- */
html {
    font-size: 115%; /* Increased base font size */
}

body {
    font-family: var(--afn-body-font);
    color: var(--afn-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--afn-display-font);
    font-weight: 600;
    font-style: normal;
    color: rgb(40, 40, 40);
}

.container-fluid {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

a {
    color: var(--afn-accent);
    transition: color var(--afn-transition);
}
a:hover {
    color: var(--afn-dark);
}

/* --- Top Bar --- */
.afn-topbar {
    background: var(--afn-dark);
    color: #ffffff;
    padding: 6px 0;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.afn-topbar__date { opacity: 0.7; }
.afn-topbar__sep { opacity: 0.3; }
.afn-topbar__edition {
    color: #ffffff;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    transition: all var(--afn-transition);
}
.afn-topbar__edition:hover,
.afn-topbar__edition.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.afn-topbar__link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color var(--afn-transition);
}
.afn-topbar__link:hover { color: #e0e0e0; }

.afn-topbar__btn {
    display: inline-block;
    padding: 3px 12px;
    background: var(--afn-accent);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all var(--afn-transition);
}
.afn-topbar__btn:hover {
    background: var(--afn-dark-hover);
    color: #fff;
}
.afn-topbar__btn--outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}
.afn-topbar__btn--outline:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* --- Masthead --- */
.afn-masthead {
    border-bottom: 1px solid var(--afn-border);
    background: #fff;
}
.afn-masthead__logo {
    display: inline-block;
    transition: opacity var(--afn-transition);
}
.afn-masthead__logo:hover {
    opacity: 0.85;
}
.afn-masthead__logo img {
    max-height: 90px;
    width: auto;
    display: block;
    margin: -5px auto -10px auto;
    padding: 0 !important;
}
.afn-masthead__tagline {
    font-size: 0.72rem;
    color: var(--afn-text-muted);
    margin-top: 0px;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

/* --- Primary Nav --- */
.afn-hero__sidebar {
    border-left: 1px solid var(--afn-border);
    padding-left: 20px;
}
.afn-hero__side-column {
    border-left: none;
    padding-left: 0;
}
@media (min-width: 992px) {
    .afn-hero__side-column {
        border-left: 1px solid #dee2e6;
        padding-left: 1.25rem;
        height: 100%;
    }
}
.afn-nav {
    border-top: 1px solid var(--afn-border);
    padding-top: 4px;
    margin-top: 4px;
}
.afn-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 0;
}
.afn-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--afn-text);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--afn-radius);
    transition: all var(--afn-transition);
}
.afn-nav__link:hover {
    color: var(--afn-accent);
    background: var(--afn-accent-light);
}
.afn-nav__link.active {
    color: var(--afn-accent);
    font-weight: 800;
}
.afn-nav__link i {
    display: none;
}

/* --- Navigation Dropdowns & Mega Menus --- */
.afn-nav {
    position: relative;
}
.afn-nav__item.dropdown {
    position: static;
}
.afn-nav__list .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform var(--afn-transition);
}
.afn-nav__list .dropdown-toggle.show::after {
    transform: rotate(180deg);
}

/* Mega Menu Container */
.afn-nav__list .afn-mega-menu {
    border: 1px solid var(--afn-border);
    border-radius: var(--afn-radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    padding: 24px 30px !important;
    width: 100%;
    max-width: 1200px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-top: 6px;
    background: #ffffff;
    z-index: 1050;
    display: none;
    border-top: 3px solid var(--afn-accent);
    animation: afnFadeIn 0.2s ease;
}

.afn-mega-menu__title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--afn-accent);
    text-transform: none;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--afn-border);
    padding-bottom: 6px;
}

.afn-mega-menu__link {
    display: block;
    color: var(--afn-text) !important;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 0;
    transition: all var(--afn-transition);
}

.afn-mega-menu__link:hover {
    color: var(--afn-accent) !important;
    padding-left: 4px;
}

@keyframes afnFadeIn {
    from { opacity: 0; transform: translate(-50%, 5px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Hover dropdown open on desktop */
@media (min-width: 768px) {
    .afn-nav__list .dropdown:hover .afn-mega-menu {
        display: block;
    }
}

/* --- News Ticker --- */
.afn-ticker {
    background: var(--afn-dark);
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
}
.afn-ticker__label {
    background: var(--afn-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 14px;
    flex-shrink: 0;
}
.afn-ticker__track {
    flex: 1;
    overflow: hidden;
    padding: 0 16px;
}
.afn-ticker__content {
    display: inline-block;
    animation: tickerScroll 40s linear infinite;
    color: #c8d8e8;
    font-size: 0.78rem;
}
.afn-ticker__item {
    cursor: pointer;
    transition: color var(--afn-transition);
}
.afn-ticker__item:hover { color: #fff; }
.afn-ticker__sep {
    margin: 0 12px;
    opacity: 0.4;
}

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Category Pills --- */
.afn-pill {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}
.afn-pill--sm { font-size: 0.62rem; padding: 2px 8px; margin-top: 0; }

.afn-pill--startups { background: var(--afn-purple-light); color: #3C3489; }
.afn-pill--capital  { background: var(--afn-green-light);  color: #085041; }
.afn-pill--policy   { background: var(--afn-amber-light);  color: #633806; }
.afn-pill--ag-ai    { background: var(--afn-accent-light); color: #0C447C; }
.afn-pill--dairy-tech { background: var(--afn-pink-light); color: #72243E; }
.afn-pill--ag-robotics { background: var(--afn-coral-light); color: #712B13; }

/* --- Hero Section --- */
.afn-hero {
    padding: 20px 0;
}
.afn-hero__image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.afn-hero__placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #163019 0%, #2d5a33 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    gap: 6px;
}
.afn-hero__headline {
    font-family: var(--afn-display-font);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
    margin-top: 8px;
}
.afn-hero__headline a {
    color: rgb(40, 40, 40);
    text-decoration: none;
    transition: color var(--afn-transition);
}
.afn-hero__headline a:hover { color: var(--afn-accent); }
.afn-hero__excerpt {
    font-size: 0.88rem;
    color: var(--afn-text-muted);
    margin-top: 8px;
    line-height: 1.6;
}
.afn-hero__meta {
    font-size: 0.72rem;
    color: var(--afn-text-faint);
    margin-top: 8px;
}

/* Side Stories */
.afn-hero__sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.afn-side-story {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--afn-border);
}
.afn-side-story:last-child { border-bottom: none; padding-bottom: 0; }
.afn-side-story__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--afn-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.afn-side-story__icon--startups { background: var(--afn-purple-light); color: var(--afn-purple); }
.afn-side-story__icon--ag-ai    { background: var(--afn-accent-light); color: var(--afn-accent); }
.afn-side-story__icon--policy   { background: var(--afn-amber-light);  color: var(--afn-amber); }
.afn-side-story__icon--dairy-tech { background: var(--afn-pink-light); color: var(--afn-pink); }
.afn-side-story__headline {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 4px;
}
.afn-side-story__headline a {
    color: var(--afn-text);
    text-decoration: none;
}
.afn-side-story__headline a:hover { color: var(--afn-accent); }
.afn-side-story__meta {
    font-size: 0.68rem;
    color: var(--afn-text-faint);
    margin-top: 4px;
}

/* --- Section Headers --- */
.afn-section {
    padding: 24px 0;
    border-top: 1px solid var(--afn-border);
}
.afn-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.afn-section__title {
    font-family: var(--afn-display-font);
    font-size: 20px;
    line-height: 24px;
    font-weight: 600;
    font-style: normal;
    color: rgb(40, 40, 40);
    display: flex;
    align-items: center;
    gap: 6px;
}
.afn-section__title i {
    color: var(--afn-accent);
    font-size: 1.1rem;
}
.afn-section__link {
    font-size: 0.78rem;
    color: var(--afn-accent);
    text-decoration: none;
    font-weight: 500;
}
.afn-section__link:hover { text-decoration: underline; }

/* --- Interview Cards --- */
.afn-interview-card {
    border: 1px solid var(--afn-border);
    border-radius: var(--afn-radius-lg);
    padding: 12px;
    background: #fff;
    transition: all var(--afn-transition);
}
.afn-interview-card:hover {
    border-color: var(--afn-accent);
    box-shadow: 0 2px 12px rgba(46,117,182,0.08);
}
.afn-interview-card__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--afn-accent-light);
    color: var(--afn-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
}
.afn-interview-card__name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--afn-dark);
}
.afn-interview-card__title {
    font-size: 0.65rem;
    color: var(--afn-text-muted);
}
.afn-interview-card__quote {
    font-size: 0.68rem;
    color: var(--afn-text-faint);
    font-style: italic;
    line-height: 1.3;
}

/* --- Deal Flow Table --- */
.afn-deal-tabs {
    gap: 0;
    border-bottom: none;
}
.afn-deal-tab {
    font-size: 0.78rem;
    padding: 6px 16px;
    border: 1px solid var(--afn-border);
    background: #fff;
    color: var(--afn-text-muted);
    text-decoration: none;
    transition: all var(--afn-transition);
    cursor: pointer;
}
.afn-deal-tab:first-child { border-radius: var(--afn-radius) 0 0 var(--afn-radius); }
.afn-deal-tab:last-child  { border-radius: 0 var(--afn-radius) var(--afn-radius) 0; }
.afn-deal-tab.active {
    background: var(--afn-dark);
    color: #fff;
    border-color: var(--afn-dark);
}
.afn-deal-table {
    font-size: 0.78rem;
}
.afn-deal-table th {
    font-weight: 500;
    color: var(--afn-text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom-width: 1px;
}
.afn-deal-table td {
    vertical-align: middle;
    border-bottom: 1px solid var(--afn-border);
}
.afn-deal-amount {
    font-weight: 700;
    color: var(--afn-green);
}

/* --- Vertical Cards --- */
.afn-vert-card {
    display: block;
    border: 1px solid var(--afn-border);
    border-radius: var(--afn-radius);
    padding: 12px;
    background: #fff;
    transition: all var(--afn-transition);
    height: 100%;
}
.afn-vert-card:hover {
    border-color: var(--afn-accent);
    background: var(--afn-accent-light);
    transform: translateY(-1px);
}
.afn-vert-card__icon {
    color: var(--afn-accent);
    font-size: 1.1rem;
}
.afn-vert-card__name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--afn-dark);
    margin-top: 4px;
}
.afn-vert-card__headline {
    font-size: 0.7rem;
    color: var(--afn-text-muted);
    margin-top: 4px;
    line-height: 1.3;
}

/* --- Country Cards --- */
.afn-country-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (min-width: 576px) {
    .afn-country-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 992px) {
    .afn-country-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}
.afn-country-card {
    display: block;
    border: 1px solid var(--afn-border);
    border-radius: var(--afn-radius-lg);
    padding: 16px 8px;
    background: #fff;
    text-align: center;
    text-decoration: none;
    transition: all var(--afn-transition);
}
.afn-country-card:hover {
    border-color: var(--afn-accent);
    background: var(--afn-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 138, 78, 0.08);
}
.afn-country-card__flag {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 6px;
}
.afn-country-card__name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--afn-text);
    line-height: 1.2;
}

/* --- Network Strip --- */
.afn-network {
    background: var(--afn-bg-soft);
    padding: 24px 0;
    border-top: 1px solid var(--afn-border);
}

/* --- Network Cards --- */
.afn-network-card {
    display: block;
    padding: 16px 8px;
    background: #fff;
    border: 1px solid var(--afn-border);
    border-radius: var(--afn-radius-lg);
    text-decoration: none;
    transition: all var(--afn-transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    height: 100%;
}
.afn-network-card:hover {
    border-color: var(--afn-accent);
    background: var(--afn-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 138, 78, 0.08);
}
.afn-network-card__title {
    font-family: var(--afn-display-font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--afn-dark);
    margin-bottom: 4px;
}
.afn-network-card:hover .afn-network-card__title {
    color: var(--afn-accent);
}
.afn-network-card__desc {
    font-size: 0.7rem;
    color: var(--afn-text-faint);
    line-height: 1.2;
}
.afn-network__label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--afn-text-muted);
    margin-bottom: 12px;
}
.afn-network__logos {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.afn-network__logo {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--afn-text);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity var(--afn-transition);
}
.afn-network__logo:hover { opacity: 1; color: var(--afn-accent); }
.afn-network__teaser {
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--afn-orange);
    font-weight: 500;
}

/* --- Community Cards --- */
.afn-comm-card {
    border: 1px solid var(--afn-border);
    border-radius: var(--afn-radius-lg);
    padding: 16px;
    background: #fff;
    height: 100%;
}
.afn-comm-card__title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--afn-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}
.afn-comm-card__title i { color: var(--afn-accent); }
.afn-comm-card__search {
    margin-top: 8px;
    padding: 8px 10px;
    background: var(--afn-bg-soft);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--afn-text-faint);
}
.afn-comm-card__item {
    font-size: 0.75rem;
    color: var(--afn-text-muted);
    padding: 6px 0;
    border-bottom: 1px solid var(--afn-border);
}
.afn-comm-card__item:last-of-type { border-bottom: none; }
.afn-comm-card__link {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--afn-accent);
    font-weight: 500;
    text-decoration: none;
}
.afn-comm-card__link:hover { text-decoration: underline; }
.afn-comm-card__powered {
    font-size: 0.65rem;
    color: var(--afn-text-faint);
    margin-top: 8px;
}

/* --- Newsletter --- */
.afn-newsletter {
    background: var(--afn-dark);
    padding: 40px 0;
}
.afn-newsletter__title {
    font-family: var(--afn-display-font);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
}
.afn-newsletter p {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 16px;
}
.afn-newsletter__companies {
    font-size: 0.75rem;
    color: #ffffff;
    margin-top: 16px;
}
.afn-newsletter__sub {
    color: #ffffff;
    font-size: 0.85rem;
    margin-top: 6px;
}
.afn-newsletter__form {
    display: flex;
    gap: 8px;
    max-width: 440px;
    margin: 16px auto 0;
}
.afn-newsletter__input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--afn-radius);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.85rem;
    font-family: var(--afn-body-font);
}
.afn-newsletter__input::placeholder { color: #6a8aa8; }
.afn-newsletter__input:focus {
    outline: none;
    border-color: var(--afn-accent);
    background: rgba(255,255,255,0.12);
}
.afn-newsletter__btn {
    padding: 10px 24px;
    border: none;
    border-radius: var(--afn-radius);
    background: var(--afn-accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background var(--afn-transition);
}
.afn-newsletter__btn:hover { background: #2563a0; }
.afn-newsletter__proof { margin-top: 18px; }
.afn-newsletter__proof-label {
    font-size: 0.7rem;
    color: #ffffff;
}
.afn-newsletter__proof-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 6px;
}
.afn-newsletter__proof-logos span {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    opacity: 1;
}

/* --- Footer --- */
.afn-footer {
    border-top: 1px solid var(--afn-border);
    padding: 32px 0 16px;
    background: #fff;
}
.afn-footer__heading {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--afn-text-muted);
    margin-bottom: 8px;
}
.afn-footer__link {
    display: block;
    font-size: 0.78rem;
    color: var(--afn-text-muted);
    text-decoration: none;
    padding: 8px 0; /* Increased touch target */
}
.afn-footer__link:hover { color: var(--afn-accent); }
.afn-footer__verticals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 12px;
}
@media (min-width: 768px) {
    .afn-footer__verticals {
        grid-template-columns: repeat(3, 1fr);
        gap: 0 16px;
    }
}
.afn-footer__vert-link {
    display: block;
    font-size: 0.72rem;
    color: var(--afn-text-muted); /* Darker for better contrast */
    text-decoration: none;
    padding: 6px 0;
}
.afn-footer__vert-link:hover { color: var(--afn-accent); }
.afn-footer__bottom {
    margin-top: 32px;
    padding: 16px 0;
    background: #111111;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
}
.afn-footer__bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--afn-transition);
}
.afn-footer__bottom a:hover { color: #ffffff; }

/* --- Inner Page Styles --- */
.afn-page-main {
    min-height: 60vh;
}
.afn-page-heading {
    font-family: var(--afn-display-font);
    font-size: 1.6rem;
    font-weight: 600;
    color: rgb(40, 40, 40);
    margin-bottom: 4px;
}
.afn-page-desc {
    font-size: 0.88rem;
    color: var(--afn-text-muted);
    margin-bottom: 24px;
    max-width: 700px;
}
.afn-breadcrumb {
    font-size: 0.75rem;
}
.afn-breadcrumb .breadcrumb-item a {
    color: var(--afn-text-muted);
    text-decoration: none;
}
.afn-breadcrumb .breadcrumb-item a:hover {
    color: var(--afn-accent);
}
.afn-breadcrumb .breadcrumb-item.active {
    color: var(--afn-text-faint);
}

/* Sidebar cards */
.afn-sidebar-card {
    border: 1px solid var(--afn-border);
    border-radius: var(--afn-radius-lg);
    padding: 16px;
    background: #fff;
}
.afn-sidebar-card__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--afn-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.afn-sidebar-card__title i {
    color: var(--afn-accent);
}

/* Article body typography */
.afn-article-body {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--afn-text);
}
.afn-article-body h2 {
    font-family: var(--afn-display-font);
    font-size: 1.3rem;
    font-weight: 600;
    color: rgb(40, 40, 40);
    margin-top: 32px;
    margin-bottom: 12px;
}
.afn-article-body p {
    margin-bottom: 16px;
}
.afn-article-body .lead {
    font-size: 1.1rem;
    color: var(--afn-dark);
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Placeholder content */
.afn-placeholder-content {
    padding: 40px;
    border: 2px dashed var(--afn-border);
    border-radius: var(--afn-radius-lg);
    text-align: center;
}
/* --- Verticals Grid Section --- */
.afn-section--verticals {
    background: var(--afn-dark);
    color: #fff;
    padding: 20px 0;
    margin-bottom: 16px;
}
.afn-section--verticals .afn-section__title {
    color: #fff;
}
.afn-section--verticals .afn-section__link {
    color: var(--afn-amber);
}
.afn-vert-card {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--afn-radius);
    padding: 8px 12px;
    height: 100%;
    transition: all var(--afn-transition);
}
.afn-vert-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--afn-amber);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.afn-vert-card__name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--afn-amber);
    margin-bottom: 6px;
}
.afn-vert-card__headline {
    font-size: 0.75rem;
    color: #e0e0e0;
}
.afn-section--verticals .btn-outline-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}
.afn-section--verticals .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* --- Ad Slot System --- */
.afn-ad {
    text-align: center;
    margin: 20px 0;
    clear: both;
}
.afn-ad--leaderboard { margin: 16px auto; }
.afn-ad--sidebar { margin-bottom: 16px; }
.afn-ad--in-feed { margin: 12px 0; }
.afn-ad--sticky-sidebar {
    position: sticky;
    top: 16px;
}
.afn-ad__placeholder {
    margin: 0 auto;
    background: repeating-linear-gradient(
        45deg,
        var(--afn-bg-soft),
        var(--afn-bg-soft) 10px,
        #eef2f7 10px,
        #eef2f7 20px
    );
    border: 1px dashed var(--afn-border);
    border-radius: var(--afn-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.afn-ad__label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--afn-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.afn-ad__dims {
    font-size: 0.62rem;
    color: var(--afn-text-faint);
}

/* Tile ads: small inline cards for sponsored content */
.afn-ad-tile {
    border: 1px solid var(--afn-border);
    border-radius: var(--afn-radius);
    padding: 12px;
    background: var(--afn-bg-soft);
    margin-bottom: 12px;
}
.afn-ad-tile__label {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--afn-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.afn-ad-tile__content {
    font-size: 0.78rem;
    color: var(--afn-text);
    font-weight: 500;
}
.afn-ad-tile__sponsor {
    font-size: 0.68rem;
    color: var(--afn-text-muted);
    margin-top: 4px;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .afn-topbar__editions,
    .afn-topbar__sep { display: none; }
    .afn-hero__headline { font-size: 1.2rem; }
    .afn-hero__placeholder,
    .afn-hero__image img { height: 200px; }
    .afn-nav__list {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px; /* adds spacing for scrolling */
    }
    /* Mobile optimization: render mega menu columns vertically inline */
    .afn-nav__list .afn-mega-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        border-top: none !important;
        background: transparent !important;
        padding: 10px 15px !important;
        width: auto !important;
        max-width: none !important;
        margin-top: 0 !important;
        animation: none !important;
    }
    .afn-mega-menu__title {
        font-size: 0.78rem;
        margin-top: 10px;
        margin-bottom: 4px;
        border-bottom: none;
        padding-bottom: 0;
    }
    .afn-mega-menu__link {
        font-size: 0.88rem;
        padding: 3px 10px;
    }
    .afn-newsletter__form { flex-direction: column; }
    .afn-footer__bottom { flex-direction: column; gap: 4px; }
    .afn-country-card__flag { font-size: 1.2rem; }

    /* Mobile drawer navigation styles */
    .offcanvas {
        background-color: #ffffff;
        font-family: var(--afn-body-font);
    }
    .offcanvas-header {
        border-bottom: 1px solid var(--afn-border);
    }
    .offcanvas-title {
        font-weight: 800;
        letter-spacing: 0.5px;
    }
    #afnMobileAccordion .accordion-item {
        border-bottom: 1px solid var(--afn-border);
        background: transparent;
    }
    #afnMobileAccordion .accordion-button {
        font-size: 1rem;
        font-weight: 700;
        color: var(--afn-text);
        padding: 15px 20px;
        background-color: transparent;
        box-shadow: none;
    }
    #afnMobileAccordion .accordion-button:not(.collapsed) {
        color: var(--afn-accent);
        background-color: var(--afn-accent-light);
    }
    #afnMobileAccordion .accordion-button.no-chevron::after {
        display: none !important;
    }
    #afnMobileAccordion .accordion-body {
        border-top: 1px solid var(--afn-border);
    }
    #afnMobileAccordion .accordion-body a {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--afn-text) !important;
        transition: all var(--afn-transition);
    }
    #afnMobileAccordion .accordion-body a:hover {
        color: var(--afn-accent) !important;
        padding-left: 4px;
    }
    .site-logo {
        max-width: 180px;
        height: auto;
    }
}
