@import url('https://use.typekit.net/jzo5rha.css'); /* Europa font from Adobe, using a common Typekit if available, but primarily relying on local installation */

@font-face {
    font-family: 'EB Garamond';
    src: url('fonts/EBGaramond-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
}

/* Design System & Base Reset */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --border-color: #cccccc;
    --border-light: #e5e5e5;
    --gray-dark: #222222;
    --gray-light: #f5f5f5;
    --font-heading: 'Europa', sans-serif;
    --font-body: 'Europa', sans-serif;
    --font-serif: 'EB Garamond', serif;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f5f5f5;
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding:1rem 5rem;
    overflow-x: hidden;
    position: relative;
}

html, body {
    max-width: 100%;
    overflow-x: hidden !important;
}

/* Elegant Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--text-color);
    border-radius: 3px;
}

/* Typography & Layout */
.container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Redesign */
header {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    /*align-items: center;*/
    
    border-bottom: 1px solid var(--border-color);
    /*background-color: var(--bg-color);*/
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0rem 2rem 4rem;
    z-index:3;
}

h1.main-title {
    font-family: "europa", sans-serif;
    font-weight: 300;
    font-style: normal;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: right;
    margin: 0;
    cursor: default;
    font-size:3rem;
}

.title-live {
    font-family: "europa", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 8rem;
    color: #f7b731;
    line-height: 1;
}
.title-live .asterisk {
    font-size: 3rem;
    vertical-align: top;
}

.header-center {

    
    
    vertical-align: bottom;
}
.header-image {
    height: 200px;
    width: auto;
    margin-left:-70px;
    display: block;       
    margin-bottom: 0;
    
}

.header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}
.top-nav {
    display: flex;
    gap: 1.5rem;
}
.top-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}
.search-bar {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    width: 200px;
}
.search-icon {
    width: 16px;
    height: 16px;
    fill: var(--text-color);
    margin-right: 0.5rem;
}
.search-bar input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 0.8rem;
    font-family: var(--font-body);
}

/* Infinite Sliding Marquee (Bottom Fixed) */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: var(--bg-color);
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    user-select: none;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    animation: scroll-left-to-right 28s linear infinite;
    padding-left: 0;
}

.marquee-item {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 1rem;
    display: inline-flex;
    align-items: center;
    word-spacing: 20px;
}

/* CSS Animation for Left-to-Right loop.
   To make it seamless, we translate from -50% to 0%.
   The content inside is duplicated so that when it hits 0%, it snaps back to -50% invisibly.
*/
@keyframes scroll-left-to-right {
    0% {
        transform: translate3d(-50%, 0, 0);
    }
    100% {
        transform: translate3d(0%, 0, 0);
    }
}

/* Play/Pause on Hover - a premium touch */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Main Grid Layout (Newspaper style, borders instead of spacing) */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1rem;
    flex-grow: 1;
    min-height: 500px;
    padding-bottom: 80px; /* Space for the marquee */

}

.grid-col {
    display: flex;
    flex-direction: column;
}

.grid-col:last-child {
    border-right: none;
}

.col-header {
    padding: 1rem 1.5rem 0.5rem 0rem;
   /* background-color: var(--bg-color);*/
    /*position: sticky;*/
    top: 0;
    z-index: 10;
}

.col-header h2 {
    font-family: "europa", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.col-header h2.live {
    color: #f7b731;
}

.col-body {
    padding: 0rem;
    padding-left:0rem;
    padding-right:0rem;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    
}

/* Post Cards & Mentions Boxes */
.card {
    background: var(--bg-color);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.platform-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
}

.platform-instagram { background: #fff; color: #000; border: 1px solid #e5e5e5; }
.platform-tiktok { background: #000; color: #fff; }
.platform-x { background: #000; color: #fff; }
.platform-facebook { background: #000000; color: #fff; border: 1px solid #e5e5e5; }

.handle {
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
}

.time-ago {
    font-size: 0.75rem;
    color: #888;
}

.card-content {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dotted var(--border-light);
    padding-top: 0.8rem;
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 500;
}

.engagement {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #444;
}


.live-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 1rem;
}
.live-grid-header {


color: #f7b731; 
font-family: var(--font-heading);
 font-size: 1.8rem; 
 font-weight: 800; 
 margin: 0; 
 letter-spacing: -0.02em;

};



/* image csss */

.main-img {
    width: 100%; 
    height: 100%;
    max-height:400px; 
    object-fit: contain; 
    display: block; 
    border-radius: 8px; 
    background: #000;
}



/* Minimalist SVG Post Graphics & Dynamic Media */
.post-visual-wrapper {
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    border: none;
}
.visual-small {
    width: 90px;
    height: 90px;
    min-height: 90px;
    flex-shrink: 0;
    margin-bottom: 0;
}
.visual-large {
    width: 100%;
    min-height: 140px; 
    margin-bottom: 12px;
    height: auto; 
}

/* Card Horizontal Layout */
.card-horizontal {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}
.card-horizontal .card-main-content {
    flex: 1;
    padding-right: 1rem;
}

.post-visual-wrapper svg {
    /* Kept this specific to the SVGs so they maintain their layout */
    width: 100%;
    height: 140px; 
}

/* News Mentions Column styling */
.news-box {
     background: var(--bg-color);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.news-box:hover {
        transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    cursor: pointer;
}

.news-portal-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #666;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.news-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.news-excerpt {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #777;
    font-weight: 500;
}

.news-keyword-badge {
    background: #000;
    color: #fff;
    padding: 0.1rem 0.4rem;
    font-size: 0.65rem;
    text-transform: uppercase;
}

/* Floating CMS Toggle Button */
.cms-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--border-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 100;
    transition: transform 0.2s, background-color 0.2s;
}

.cms-toggle:hover {
    transform: scale(1.08) rotate(30deg);
    background-color: #222;
}

.cms-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Slide-out CMS Panel Drawer */
.cms-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--bg-color);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cms-panel.open {
    right: 0;
}

.cms-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cms-header h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1.5rem;
}

.cms-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 300;
}

.cms-body {
    padding: 2rem;
    overflow-y: auto;
    flex-grow: 1;
}

.cms-section {
    margin-bottom: 2.5rem;
}

.cms-section h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    outline: none;
    border-radius: 0;
    transition: border-color 0.2s;
}

.form-control:focus {
    background-color: var(--gray-light);
}

.form-control-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.list-item-row {
    display: flex;
    gap: 0.5rem;
}

.btn-remove {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0 0.75rem;
    cursor: pointer;
}

.btn-remove:hover {
    background-color: #ff3b30;
    color: white;
    border-color: #ff3b30;
}

.btn-add {
    background: none;
    border: 1px dashed var(--border-color);
    width: 100%;
    padding: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.btn-add:hover {
    background-color: var(--gray-light);
}



.btn-save {
    flex-grow: 1;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.btn-save:hover {
    background-color: #222;
}

.btn-cancel {
    background: none;
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    cursor: pointer;
}

.btn-cancel:hover {
    background-color: #ddd;
}

/* Toast Message Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #000;
    color: #fff;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #fff;
    z-index: 10000;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Shimmer Loading State Placeholder */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer-anim 1.5s infinite;
}

@keyframes shimmer-anim {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Footer Section */
.site-footer {
                background-color: #000000;
                color: #ffffff;
                padding: 3rem 1rem;
                margin-top: 4rem;
                font-family: 'Europa', sans-serif;
                text-align: center;
                
                /* Magic to break out of body padding */
                width: 100vw;
                position: relative;
                left: 50%;
                transform: translateX(-50%);
                box-sizing: border-box;
            }
            .site-footer a {
                color: #f7b731;
                text-decoration: none;
                transition: color 0.2s ease;
            }
            .site-footer a:hover {
                color: #ffffff;
                text-decoration: underline;
            }
            .footer-content {
                max-width: 1200px;
                margin: 0 auto;
                display: flex;
                flex-direction: column;
                gap: 15px;
                align-items: center;
                justify-content: center;
            }
            .footer-contact-info {
                display: flex;
                gap: 20px;
                font-size: 1rem;
                font-weight: 300;
                flex-wrap: wrap;
                justify-content: center;
            }
/* Mobile Navigation Bar */
.mobile-nav {
    display: none;
    position: sticky;
    top: 0;
    background: var(--bg-color);
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
    width: 100vw;
}

.mobile-nav button {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem 0;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #888;
    border-bottom: 3px solid transparent;
    transition: color 0.3s, border-color 0.3s;
    cursor: pointer;
}

.mobile-nav button.active {
    color: #f7b731;
    border-bottom-color: #f7b731;
}

/* --- Tablet & Small Desktop Adjustments (1251px to 1440px) --- */
@media (max-width: 1440px) and (min-width: 1251px) {
    body { padding: 1rem 2rem; }
    .content-grid { grid-template-columns: 1fr 1.3fr 1fr; }
    
    /* Prevent children from blowing out the grid */
    .grid-col, .card, .news-box, .live-grid {
        min-width: 0;
        word-wrap: break-word;
    }

    /* Drop to 2 columns in middle */
    .live-grid { grid-template-columns: 1fr 1fr !important; }

    /* Hide the bottom 5 posts to keep length manageable */
    .live-grid > .card:nth-last-child(-n+5) { display: none !important; }

    .main-img { max-height: 250px; }
    h1.main-title { font-size: 2.2rem; }
    .title-live { font-size: 4rem; }
}

/* --- Extra Tight Desktop Zone (1025px to 1250px) --- */
@media (max-width: 1250px) and (min-width: 1025px) {
    body { padding: 1rem 1.5rem; }
    .content-grid { grid-template-columns: 1fr 1.4fr 1fr; }
    
    .grid-col, .card, .news-box, .live-grid {
        min-width: 0;
        word-wrap: break-word;
    }
    
    /* 2 columns is too squished here, drop to 1 column */
    .live-grid { 
        grid-template-columns: 1fr !important; 
    }
    
    /* Hide a few more posts since it is a single vertical column now */
    .live-grid > .card:nth-last-child(-n+8) { 
        display: none !important; 
    }
    
    /* --- FIXED: Retain Horizontal Layout for Left Section on Desktop Screens --- */
    .card-horizontal {
        display: flex !important;
        flex-direction: row !important; /* Forces side-by-side view */
        align-items: flex-start;
        justify-content: space-between;
    }
    .card-horizontal .card-main-content {
        flex: 1;
        padding-right: 0.5rem; /* Margins to separate text from image */
    }
    .visual-small {
        width: 80px !important;  /* Marginally scale down image size so it fits tight columns */
        height: 80px !important;
        min-height: 80px !important;
        flex-shrink: 0;
    }

    .main-img { max-height: 300px; }
    h1.main-title { font-size: 2rem; }
    .title-live { font-size: 3.5rem; }
}

/* Responsive Grid Adjustments (App-like Mobile Feed) */
@media (max-width: 1024px) {
    /* Lock the body so we scroll inside the columns, not the whole page */
    body {
        padding: 0;
        overflow: hidden;
        height: 100vh;
        height: 100dvh; /* Fixes iOS Safari bottom bar issue */
    }

    .container {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    header {
        flex-shrink: 0;
        padding: 1rem;
    }

    .header-left {
        padding: 0;
        justify-content: space-between;
        width: 100%;
    }

    h1.main-title {
        font-size: 1.8rem;
    }

    .title-live {
        font-size: 3.5rem;
    }
    
    .title-live .asterisk {
        font-size: 1.5rem;
    }

    .header-image, .header-right {
        display: none; /* Hide desktop elements for cleaner mobile view */
    }

    .mobile-nav {
        display: flex; /* Show the 3 buttons */
        flex-shrink: 0;
    }

    /* Horizontal Swipe Container */
    .content-grid {
        display: flex;
        flex-direction: row;
        width: 100vw;
        flex-grow: 1;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory; /* Snaps horizontally */
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0; 
    }
    
    .content-grid::-webkit-scrollbar { 
        display: none; 
    }

    /* Individual Columns */
    .grid-col {
        min-width: 100vw;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        scroll-snap-align: start; /* Keep this so HORIZONTAL swiping works */
        /* REMOVED: scroll-snap-type: y mandatory; */
        border: none;
        padding: 0;
    }
    .col-header {
        display: none; /* Hide original headers, mobile nav handles this */
    }
    
    .col-body {
        padding: 0;
        gap: 0;
        padding-bottom: 150px; /* Space for marquee/footer */
    }

    .live-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .live-grid-header { 
        display: none; 
    }

    /* Edge-to-Edge Snapping Cards */
    .card, .news-box, .live-grid > .card {
        /* REMOVED: scroll-snap-align: start; */
        width: 100vw;
        min-height: calc(100vh - 150px); /* Keeps Left/Middle posts large and full screen */
        margin-bottom: 0;
        border-radius: 0;
        border: none;
        border-bottom: 8px solid var(--gray-light);
        box-shadow: none;
    }

    .card:hover, .news-box:hover {
        transform: none; /* Disable hover lifting on mobile */
        box-shadow: none;
    }

    /* Fix image sizing for full-width cards */
    .visual-large, .visual-small, .visual-grid {
        width: 100%;
        height: auto;
        min-height: 200px;
    }
    .main-img {
        max-height: 50vh; /* Prevents extremely tall images from breaking the view */
    }
}

@media (max-width: 500px) {

}