/* Custom overrides */

/* RSS Icon Style */
#gt-header-rss-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

#gt-header-rss-icon svg {
    width: 20px;
    height: 20px;
    stroke: #666;
    transition: stroke 0.2s;
}

#gt-header-rss-icon:hover svg {
    stroke: #000;
}

/* Fix scrolling in About popup */
.tl-main-content-block {
    overflow-y: auto !important;
    max-height: 80vh !important;
    /* Limit height to viewport to ensure scrolling triggers */
}

/* Ensure inner content allows height expansion */
.tl-mc-content {
    height: auto !important;
    overflow: visible !important;
}

/* Fix for AJk carousel if used inside */
.ajk-cs-carousel {
    overflow-y: visible !important;
}

/* Language Selector in Header */
#gt-header-menu .language-selector {
    display: inline-block;
}

#gt-header-menu .language-selector-button {
    color: inherit !important;
    opacity: 0.75;
    border: none;
    background: transparent;
    padding: 4px 8px;
    font-size: 14px;
}

#gt-header-menu .language-selector-button:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#gt-header-menu .language-flag {
    font-size: 16px;
    margin-right: 4px;
}

#gt-header-menu .language-name {
    font-size: 14px;
}

#gt-header-menu .language-arrow {
    font-size: 8px;
    margin-left: 4px;
}

#gt-header-menu .language-dropdown {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-separator {
    display: inline-block;
    width: 1px;
    height: 12px;
    background-color: rgba(156, 163, 175, 0.5);
    margin: 0 4px;
}

.footer-links a {
    text-decoration: none;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    font-size: 13px;
}

.footer-links a:hover {
    opacity: 1;
}

/* President Quote Section */
.president-quote-section {
    margin: 20px 15px 10px 15px;
    padding: 20px 20px 10px 20px;
    text-align: center;
    color: inherit;
}

.president-quote-content {
    max-width: 900px;
    margin: 20px auto;
}

.president-quote-title {
    font-size: 28px;
    font-weight: 700;
    color: #007940 !important;
    opacity: 1;
    margin: 0px 0 60px 0;
    margin-top: 0px !important;
    margin-bottom: 40px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.president-quote-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.6;
    border-radius: 2px;
}

.president-quote-title::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: currentColor;
    opacity: 0.3;
}

.president-quote {
    margin: 0;
    padding: 0;
    border: none;
    position: relative;
}

.quote-text {
    font-size: 20px;
    line-height: 1.8;
    font-style: italic;
    color: inherit;
    opacity: 0.9;
    margin: 0 0 15px 0;
    font-weight: 400;
    position: relative;
    padding: 0 40px;
}

.quote-text::before {
    content: '"';
    font-size: 80px;
    line-height: 1;
    position: absolute;
    left: 0;
    top: -20px;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.quote-text::after {
    content: '"';
    font-size: 80px;
    line-height: 1;
    position: absolute;
    right: 0;
    bottom: -60px;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.quote-footer {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.quote-author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-style: normal;
}

.author-name {
    font-size: 18px;
    font-weight: 700;
    color: inherit;
    opacity: 0.95;
}

.quote-date {
    font-size: 15px;
    color: inherit;
    opacity: 0.8;
    font-weight: 500;
}

.quote-occasion {
    font-size: 14px;
    color: inherit;
    opacity: 0.7;
    font-weight: 400;
    font-style: italic;
}

/* Footer spacing - reduced spacing */
.cdr-timeline-info .footer {
    margin-top: 20px !important;
    padding-top: 15px !important;
}

/* Responsive adjustments */
/* Responsive Subtitle */
@media (max-width: 768px) {
    .gt-header-subtitle {
        position: absolute !important;
        top: 42px !important;
        left: 50% !important;
        /* Strictly centered */
        transform: translateX(-50%) !important;
        right: auto !important;
        margin: 0 !important;
        /* Reset margins to prevents shifts */
        min-width: 0 !important;
        width: auto !important;
        max-width: 90% !important;
        padding: 2px 8px !important;
        font-size: 0.3rem !important;
        letter-spacing: 0.05em !important;
        line-height: 1.0 !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        text-align: center !important;
        z-index: 1000 !important;
        /* Ensure it stays on top */
    }

    .president-quote-section {
        margin: 40px 10px 30px 10px;
        padding: 30px 15px;
    }

    .president-quote-title {
        font-size: 18px;
        margin-bottom: 60px !important;
        letter-spacing: 1.5px;
    }

    .president-quote-title::after {
        width: 60px;
        height: 2px;
    }

    .president-quote-title::before {
        width: 90px;
    }

    .quote-text {
        font-size: 18px;
        line-height: 1.7;
        padding: 0 30px;
        margin-bottom: 25px;
    }

    .quote-text::before,
    .quote-text::after {
        font-size: 60px;
    }

    .quote-footer {
        margin-top: 25px;
        padding-top: 20px;
    }

    .author-name {
        font-size: 16px;
    }

    .quote-date {
        font-size: 14px;
    }

    .quote-occasion {
        font-size: 13px;
    }
}

/* Medium phones / small tablets: make subtitle box larger */
@media (min-width: 480px) and (max-width: 768px) {
    .gt-header-subtitle {
        padding: 8px 14px !important;
        font-size: 0.60rem !important;
        letter-spacing: 0.12em !important;
        line-height: 1.2 !important;
        max-width: 92% !important;
        white-space: normal !important;
    }
}


/* Title Separator (Desktop/Tablet default) */
.title-separator::after {
    content: " - ";
}

/* Header Mobile Responsive */
@media (max-width: 1111px) {

    /* Logo */
    .gt-logo {
        height: 40px !important;
        width: auto !important;
    }

    /* Title */
    .gt-title-main {
        font-size: 14px !important;
        /* Increased for Tablets/Large Mobile */
        line-height: 1.2 !important;
        max-width: 55vw !important;
        white-space: normal !important;
        /* Allow wrapping naturally if needed, but we control break via separator */
    }

    .title-separator {
        display: block;
        height: 0;
    }

    .title-separator::after {
        content: "";
    }



    /* Brand container */
    .gt-brand {
        gap: 8px !important;
    }

    /* View icons */
    .gt-header-view-icons {
        padding-right: 4px !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin-right: 4px !important;
    }

    .gt-header-view-icons .icon {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        overflow: visible !important;
    }

    /* Timeline and Pinboard icons - larger and more visible */
    #gt-header-view-timeline-icon,
    #gt-header-view-pinboard-icon {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
    }

    #gt-header-rss-icon {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
        flex-shrink: 0 !important;
    }

    #gt-header-rss-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Menu / Language Selector - reduced spacing from icons */
    #gt-header-menu {
        margin-right: 6px !important;
        top: 6px !important;
        margin-left: 2px !important;
    }

    #gt-header-menu .language-selector-button {
        padding: 3px 6px !important;
        font-size: 12px !important;
    }

    #gt-header-menu .language-flag {
        font-size: 14px !important;
        margin-right: 3px !important;
    }

    #gt-header-menu .language-name {
        font-size: 12px !important;
    }

    #gt-header-menu .language-arrow {
        font-size: 7px !important;
    }

    /* Header height */
    #gt-header {
        height: 28px !important;
    }
}

/* Very small mobile devices */
@media (max-width: 480px) {

    /* Logo - smaller but still visible */
    .gt-logo {
        height: 36px !important;
    }

    /* Title - smaller but still visible */
    .gt-title-main {
        font-size: 14px !important;
    }

    /* Brand container - tighter spacing */
    .gt-brand {
        gap: 6px !important;
    }

    /* View icons - smaller but still visible */
    .gt-header-view-icons {
        gap: 3px !important;
        padding-right: 2px !important;
        margin-right: 2px !important;
    }

    .gt-header-view-icons .icon {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        min-height: 16px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        overflow: visible !important;
    }

    /* Timeline and Pinboard icons - larger on small screens too */
    #gt-header-view-timeline-icon,
    #gt-header-view-pinboard-icon {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
    }

    #gt-header-rss-icon {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
    }

    #gt-header-rss-icon svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Language selector - reduced spacing */
    #gt-header-menu {
        margin-right: 1px !important;
        margin-left: 0px !important;
    }

    /* Language selector - ULTRA COMPACT version */
    #gt-header-menu .language-selector-button {
        padding: 1px 3px !important;
        /* Minimal padding */
        font-size: 0px !important;
        /* Hide potential text artifacts */
        gap: 2px !important;
        height: 18px !important;
        /* Even smaller height */
        border-radius: 9px !important;
        border-width: 0.5px !important;
        /* Thinner border */
    }

    #gt-header-menu .language-flag {
        font-size: 10px !important;
        margin-right: 0px !important;
        width: 12px !important;
        /* Tiny flag */
        height: 9px !important;
    }

    #gt-header-menu .language-name {
        display: none !important;
    }

    #gt-header-menu .language-arrow {
        font-size: 5px !important;
        /* Tiny arrow */
        margin-left: 1px !important;
        opacity: 0.7 !important;
    }
}

/* Mobile (small tablets/phones): Separator acts as line break */
@media (max-width: 480px) {
    .title-separator {
        display: block;
        height: 0;
        content: "";
    }

    .gt-title-main {
        white-space: normal !important;
        font-size: 7px !important;
        /* Keep mobile phones small */
        line-height: 1.1 !important;
    }
}

/* Extra small devices (phones, less than 340px) */
@media (max-width: 340px) {
    .gt-title-main {
        font-size: 9px !important;
        line-height: 1.0 !important;
        max-width: 40vw !important;
    }
}

/* Subtitle below header bar */
.gt-header-subtitle {
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 380px;
    text-align: center;

    /* Premium Glass Box */
    background: rgba(255, 255, 255, 0.85);
    padding: 12px 40px;
    border-radius: 12px;

    /* Gold Accent Border */
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: 3px solid #FCD116;
    /* Burkina Gold */

    /* Sophisticated Shadow */
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.5);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* Typography */
    color: #000000;
    /* Burkina Green */
    font-size: 0.95rem;
    font-weight: 800;
    z-index: 100;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    white-space: nowrap;

    /* Transition for smoothness */
    transition: all 0.3s ease;
}

/* Mid-sized screens (Tablets landscape / small laptops) */
@media (min-width: 768px) and (max-width: 1110px) {

    /* Shrink the subtitle/quote box */
    .gt-header-subtitle {
        transform: translateX(-50%) scale(0.55) !important;
        transform-origin: top center !important;
        top: 35px !important;
        white-space: nowrap !important;
    }

    /* Shrink the stats box */
    .timeline-stats-box {
        transform: translateX(-50%) scale(0.65) !important;
        transform-origin: bottom center !important;
        bottom: 60px !important;
        /* Adjust if needed */
        width: max-content !important;
        padding: 6px 15px !important;
    }

    /* Ensure contents scale or fit */
    .timeline-stats-value {
        font-size: 13px !important;
    }

    .timeline-stats-label {
        font-size: 8px !important;
    }
}

/* Add a subtle glow on hover (even though it's pointer-events: none, consistent styling) */
.gt-header-subtitle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(252, 209, 22, 0.2);
    opacity: 0.5;
    z-index: -1;
}

.cdr-view-pinboard .president-quote-overlay,
.cdr-view-presentation .president-quote-overlay,
.cdr-view-pinboard .gt-header-subtitle,
.cdr-view-presentation .gt-header-subtitle,
.cdr-view-pinboard .timeline-stats-box,
.cdr-view-presentation .timeline-stats-box {
    display: none !important;
}

/* =========================================
   President Quote Overlay (Replacing Spatial)
   ========================================= */
.president-quote-overlay {
    position: absolute;
    top: 140px;
    /* Below the header/subtitle */
    left: 4%;
    /* Left aligned where spatial was */
    width: 300px;
    /* Reduced from 350px */
    z-index: 50;
    /* Above timeline canvas */
    perspective: 1000px;
    /* 3D effect potential */
}

.president-quote-content-glass {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    /* Slightly reduced */
    padding: 20px 18px;
    /* Reduced from 30px 25px */
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    border-left: 4px solid #007940;
    /* Reduced width */
    /* Burkina Green Accent */
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideInLeft 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.president-quote-content-glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.quote-icon {
    position: absolute;
    top: -15px;
    /* Adjusted */
    left: 15px;
    /* Adjusted */
    font-size: 40px;
    /* Reduced from 60px */
    color: #FCD116;
    /* Burkina Gold */
    background: #fff;
    border-radius: 50%;
    width: 35px;
    /* Reduced from 50px */
    height: 35px;
    /* Reduced from 50px */
    line-height: 50px;
    /* Adjusted vertical center */
    /* Adjust vertical center for quote mark */
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: Georgia, serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.president-quote-text p {
    font-size: 1.1rem;
    /* Slightly increased based on readability for bold text */
    line-height: 1.5;
    color: #1a1a1a;
    font-style: italic;
    font-weight: bold;
    margin: 10px 0 15px 0;
    font-family: 'Georgia', serif;
}

.quote-footer-glass {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Reduced from 15px */
    margin-top: 15px;
    /* Reduced from 20px */
    padding-top: 10px;
    /* Reduced from 15px */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.author-avatar img {
    width: 35px;
    /* Reduced from 50px */
    height: 35px;
    /* Reduced from 50px */
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FCD116;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.quote-author-info {
    display: flex;
    flex-direction: column;
}

.quote-author-info .author-name {
    font-weight: 800;
    color: #007940;
    text-transform: uppercase;
    font-size: 0.75rem;
    /* Reduced from 0.9rem */
    letter-spacing: 0.05em;
}

.quote-author-info .quote-details {
    font-size: 0.7rem;
    /* Reduced from 0.8rem */
    color: #666;
    margin-top: 2px;
}

.quote-decoration-line {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #007940, #FCD116, #EF2D2D);
    /* Burkina Flag Colors */
    border-radius: 0 0 20px 0;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Adjustments */
/* Mobile Adjustments */
@media (max-width: 768px) {
    .president-quote-overlay {
        position: absolute !important;
        top: 45px !important;
        left: 10px !important;
        transform: scale(0.75);
        /* Larger scale */
        transform-origin: top left;
        width: 260px !important;
        /* Larger width */
        right: auto !important;
        z-index: 50 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    .president-quote-content-glass {
        padding: 6px 12px !important;
        min-height: 80px !important;
        /* Slightly tighter padding */
        border-radius: 10px !important;
        border-left-width: 3px !important;
    }

    .president-quote-text p {
        font-size: 0.7rem !important;
        /* Reduced font size */
        line-height: 1.25 !important;
        margin: 4px 0 6px 0 !important;
    }

    .quote-icon {
        font-size: 20px !important;
        /* Smaller icon */
        width: 20px !important;
        height: 20px !important;
        top: -8px !important;
        left: 8px !important;
        line-height: 20px !important;
    }

    .quote-footer-glass {
        gap: 6px !important;
        margin-top: 6px !important;
        padding-top: 6px !important;
    }

    .author-avatar img {
        width: 24px !important;
        height: 24px !important;
        border-width: 1px !important;
    }

    .quote-author-info .author-name {
        font-size: 0.55rem !important;
        /* Reduced name size */
    }

    .quote-author-info .quote-details {
        font-size: 0.5rem !important;
        /* Reduced details size */
    }

    .quote-decoration-line {
        width: 40px !important;
        height: 2px !important;
    }

    .timeline-stats-box {
        bottom: 160px !important;
        width: 65vw !important;
        padding: 4px 6px !important;
        min-width: 200px !important;
    }

    .timeline-stats-item {
        flex: 1 1 55px !important;
        min-width: 55px !important;
        gap: 0px !important;
    }

    .timeline-stats-value {
        font-size: 10px !important;
    }

    .date-value {
        font-size: 9px !important;
    }

    .timeline-stats-label {
        font-size: 7px !important;
    }

    .duration-value {
        font-size: 0.75em !important;
    }
}

/* Slightly smaller on narrow phones */
@media (max-width: 680px) {
    .president-quote-overlay {
        transform: scale(0.65) !important;
        width: 230px !important;
        top: 50px !important;
        left: 8px !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .president-quote-overlay {
        top: 55px !important;
        left: 8px !important;
        transform: scale(0.58);
        /* Slightly smaller */
        width: 140px !important;
        /* Slightly narrower */
    }

    .president-quote-text p {
        font-size: 0.55rem !important;
        /* Further reduced font size */
        line-height: 1.1 !important;
    }

    .timeline-stats-box {
        bottom: 170px !important;
        width: 55vw !important;
        padding: 3px 5px !important;
        min-width: 160px !important;
    }

    .timeline-stats-item {
        flex: 1 1 45px !important;
        min-width: 45px !important;
        gap: 0px !important;
    }

    .timeline-stats-value {
        font-size: 9px !important;
    }

    .date-value {
        font-size: 8px !important;
    }

    .timeline-stats-label {
        font-size: 6px !important;
    }

    .duration-value {
        font-size: 0.7em !important;
    }
}

/* Responsive detail modal */
@media (max-width: 768px) {
    .tl-main-content-block-holder.tl-mc-show {
        padding: 10px !important;
        box-sizing: border-box;
    }

    .tl-main-content-block-holder .tl-main-content-block {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .tl-main-content-block-holder .tl-mc-top-right,
    .tl-main-content-block-holder .tl-mc-bottom-right {
        padding-right: 10px !important;
    }

    .tl-main-content-block-holder .tl-mc-content {
        padding: 10px 8px 0 8px !important;
    }

    .tl-main-content-block-holder .tl-ch-content-block {
        float: none !important;
        width: 100% !important;
    }

    .tl-main-content-block-holder .tl-ch-content-block-inner {
        margin: 10px 0 0 0 !important;
    }

    .tl-main-content-block-holder .tl-ch-panel-date-display {
        position: static !important;
        margin: 6px 0 0 0 !important;
        text-align: center;
    }

    .tl-main-content-block-holder .tl-ch-content-block-inner .tl-ch-title {
        font-size: 1.4em !important;
    }

    .tl-main-content-block-holder .tl-ch-media-list {
        width: auto !important;
    }
}

/* =========================================
   Home Bottom Columns Section
   ========================================= */
.home-content-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 100px auto;
    /* Increased bottom margin */
    padding: 0 20px;
    position: relative;
    z-index: 10;
    align-items: stretch;
    /* Ensure all columns have equal height */
}

.content-column {
    display: flex;
    flex-direction: column;
}

.column-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #FCD116;
    border-radius: 2px;
}

.premium-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    /* Equal height */
    min-height: 250px;
}

.premium-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Video Column */
.video-container iframe {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    min-height: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Events Column */
.content-column.events-column {
    display: flex;
    flex-direction: column;
}

.events-list.premium-box {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mini-event-item {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mini-event-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.mini-event-date {
    display: block;
    font-size: 0.75rem;
    color: #007940;
    /* Green Date */
    font-weight: 600;
    margin-bottom: 2px;
}

.mini-event-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.no-events {
    font-style: italic;
    color: #888;
    text-align: center;
    padding-top: 20px;
}

/* Resources Column */
.resources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resources-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: color 0.2s;
}

.resources-list li:hover {
    color: #007940;
}

.resources-list li:last-child {
    border-bottom: none;
}

.resource-icon {
    font-size: 1.2rem;
}

/* Responsive Columns */
@media (max-width: 900px) {
    .home-content-columns {
        grid-template-columns: 1fr;
        /* Stack on smaller screens */
        gap: 80px !important;
        /* Increased gap for better separation */
        margin-left: 10% !important;
        margin-right: 10% !important;
    }

    .speech-column {
        margin-bottom: 20px;

    }


    .premium-box {
        min-height: auto;
        justify-content: center;
    }
}

.home-content-columns .view-all-btn {
    display: inline-block;
    width: auto;
    /* Allow it to be smaller */
    min-width: 200px;
    margin: 5px auto 0 auto;
    /* Center it */
    padding: 8px 20px;
    /* Reduced padding */
    text-align: center;
    background: #4CAF50 !important;
    /* Force Lighter Green */
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    /* Reduced font size */
    border-radius: 6px;
    /* Reduced radius */
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0, 121, 64, 0.2);
    border: none;
    outline: none;
}

.home-content-columns .view-all-btn:hover {
    background: #43A047 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 121, 64, 0.3);
}

/* Center the button in the video container if needed */
.video-container {
    text-align: center;
}

/* Scrollable Events List */
.events-list.custom-scroll {
    max-height: 280px;
    /* Limit height to trigger scroll - matches video column height */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #007940 rgba(0, 0, 0, 0.05);
    /* Firefox */
}

/* Webkit Scrollbar Styling */
.events-list.custom-scroll::-webkit-scrollbar {
    width: 6px;
}

.events-list.custom-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 3px;
}

.events-list.custom-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0, 121, 64, 0.5);
    border-radius: 3px;
}

.events-list.custom-scroll::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 121, 64, 0.8);
}

.mini-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.mini-event-category {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid currentColor;
    background: rgba(255, 255, 255, 0.5);
}

/* Hide Timeline Stats Box when detail popup is open */
body.cdr-content-panel-is-open .timeline-stats-box,
.tl-main-content-block-holder.tl-mc-show~.timeline-stats-box,
.tl-main-content-block-holder.fixed-mode~.timeline-stats-box {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* =========================================
   Vertical Side Bands (Monument Images)
   ========================================= */
.side-band-left,
.side-band-right {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 250px;
    /* Adjust width as needed - roughly 15-20% */
    max-width: 250px;
    /* Force same width for both bands */
    background-image: url('');
    background-size: contain;
    /* or cover depending on cut */
    background-repeat: no-repeat;
    background-position: center;
    z-index: 900;
    /* Much higher to be safe */
    /* Behind main content which is higher, but check timeline z-index */
    pointer-events: none;
    opacity: 1;
    /* Full opacity to verify visibility first */
}

.side-band-left {
    left: 0;
    background-position: center left;
    /* Adjust alignment to show the 'cut' properly */
}

.side-band-right {
    right: 0;
    background-position: center right;
    transform: scaleX(-1);
    /* Mirror for symmetry */
}

/* Hide on laptops/tablets/mobile where space is tight */
@media (max-width: 1400px) {

    .side-band-left,
    .side-band-right {
        opacity: 0.4;
        width: 150px;
        max-width: 150px;
    }
}

@media (max-width: 1024px) {

    .side-band-left,
    .side-band-right {
        width: 80px;
        max-width: 80px;
        opacity: 0.3;
    }
}

/* Extra small mobile - smaller but visible with equal width */
@media (max-width: 768px) {

    .side-band-left,
    .side-band-right {
        width: 50px;
        max-width: 50px;
        opacity: 0.2;
    }
}

/* Force Header Title Black */
.gt-title-main,
#cdr-header-main-timeline-logo {
    color: #000000 !important;
}

/* Centering and Responsive Fixes for the Timeline Content Panel (Modal) */
#tl-content-holder {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10000 !important;
    max-height: 80vh !important;
    max-width: 95vw;
    width: auto !important;
    margin: 0 !important;
    display: none;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* Hide legacy structural boxes that create unwanted backgrounds/borders */
.tl-mc-panel-background-color,
.tl-mc-panel-background-blur-fallback,
.tl-mc-panel-border,
.tl-mc-bg-image,
.tl-mc-fade,
.tl-mc-coloured-border {
    display: none !important;
}

body.cdr-content-panel-is-open #tl-content-holder {
    display: block !important;
}

/* Ensure the main block is a scrollable styled container */
.tl-main-content-block {
    background: #fff !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    max-width: 900px !important;
    width: 90vw !important;
    height: auto !important;
    max-height: 70vh !important;
    /* Shorter modal length */
    position: relative !important;
    display: block !important;
    /* Changed from flex to block for standard flow */
}

/* The horizontal flex container for images and text */
.tl-mc-content-images-and-text {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    /* ALLOW WRAPPING FOR THE HEADER */
    width: 100% !important;
    height: auto !important;
    background: #fff;
    align-items: stretch !important;
}

/* The header (Images (1), Close button, Date) */
.tl-ch-top-content {
    flex: 0 0 100% !important;
    /* FORCE HEADER TO TAKE FULL WIDTH AT THE TOP */
    width: 100% !important;
    height: auto !important;
    min-height: 45px !important;
    background: #fccf11 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 100;
}

.tl-ch-panel-date-display {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    flex: 1;
    text-align: center;
    font-size: 0.9rem !important;
    color: #000 !important;
}

/* Image Column (Left) */
.tl-ch-gallery-block {
    flex: 0 0 45% !important;
    width: 45% !important;
    position: relative !important;
    height: 300px !important;
    /* Slightly reduced height */
    background: #f5f5f5 !important;
    overflow: hidden !important;
    display: block !important;
}

/* Text Column (Right) */
.tl-ch-content-block-text {
    flex: 0 0 55% !important;
    width: 55% !important;
    position: relative !important;
    padding: 15px 20px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    max-height: 300px !important;
    /* Align with image height */
    overflow-y: auto !important;
}

/* Internal Text Elements Fix */
.tl-ch-content-block-inner,
.tl-ch-content-intro-block,
.ajk-cs-carousel-stage,
.tl-ch-title,
.tl-ch-standfirst,
.tl-ch-author,
.tl-ch-extra-info-text {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    display: block !important;
    margin: 0 0 8px 0 !important;
    text-align: left !important;
    color: #000 !important;
    box-sizing: border-box !important;
    clear: both !important;
}

.tl-ch-title {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

/* Navigation at the bottom */
.tl-mc-nav-block {
    width: 100% !important;
    height: 40px !important;
    background: #fff !important;
    border-top: 1px solid #eee !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #tl-content-holder {
        max-height: 85vh !important;
        width: 98vw !important;
        /* Increased from auto/content defined */
        max-width: 98vw !important;
    }

    .tl-main-content-block {
        max-height: 80vh !important;
        width: 98vw !important;
        /* Use full available width on mobile */
    }

    .tl-mc-content-images-and-text {
        flex-direction: column !important;
    }

    .tl-ch-gallery-block,
    .tl-ch-content-block-text {
        width: 100% !important;
        flex: none !important;
        height: auto !important;
        max-height: none !important;
    }

    .tl-ch-gallery-block {
        height: 180px !important;
    }
}

/* Ensure images fit */
.ak-gallery-stage img {
    max-width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}