/* The Wire Redesign - Custom CSS */
:root {
    --wire-red: #e30613;
    /* The Wire's approximate red */
    --wire-grey: #333333;
    --wire-light-grey: #f6f6f6;
    --wire-border: #e2e2e2;
    --font-serif: 'Merriweather', serif;
    /* Primary font for headings */
    --font-sans: 'Mukta', sans-serif;
    /* Secondary font for UI/Body */
}

body {
    background-color: #fff;
    color: #111;
    font-family: var(--font-sans);
}

a {
    text-decoration: none;
    color: #000;
    transition: color 0.2s;
}

a:hover {
    color: var(--wire-red);
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6,
.article-title,
.title,
.section-title {
    font-family: var(--font-serif);
    font-weight: 700;
    color: #000;
}

/* Header Styles */
.wire-header-top {
    background: #fff;
    border-bottom: 1px solid var(--wire-border);
    padding: 5px 0;
    font-size: 13px;
    font-family: var(--font-sans);
}

.wire-header-main {
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid var(--wire-border);
}

.wire-logo {
    max-height: 60px;
    width: auto;
}

.wire-nav {
    border-bottom: 1px solid #000;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.wire-nav-link {
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    padding: 12px 15px;
    display: inline-block;
    color: #000;
}

.wire-nav-link:hover {
    color: var(--wire-red);
}

/* Lede Section Styles */
.wire-lede-section {
    padding: 30px 0;
    border-bottom: 1px solid var(--wire-border);
}

.border-end-wire {
    border-right: 1px solid var(--wire-border);
}

@media (max-width: 991px) {
    .border-end-wire {
        border-right: none;
        border-bottom: 1px solid var(--wire-border);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
}

.wire-category-tag {
    color: var(--wire-red);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 5px;
}

.wire-main-headline {
    font-size: 2.2rem;
    line-height: 1.15;
    font-weight: 700;
    color: #000;
    margin-top: 5px;
}

.wire-excerpt {
    font-size: 1.05rem;
    color: #444;
    margin-top: 10px;
    line-height: 1.6;
    font-family: var(--font-serif);
}

.wire-meta {
    font-size: 0.8rem;
    color: #999;
    margin-top: 10px;
    text-transform: uppercase;
    font-weight: 600;
    font-family: var(--font-sans);
}

.wire-section-header {
    font-size: 1rem;
    color: var(--wire-red);
    /* Or black, but The Wire uses Red for some section headers */
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-family: var(--font-sans);
    letter-spacing: 0.5px;
}

.wire-separator {
    height: 3px;
    background: var(--wire-red);
    width: 40px;
    margin-bottom: 20px;
}

.wire-side-story-item {
    border-bottom: 1px solid var(--wire-border);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.wire-side-story-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.wire-side-headline {
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 600;
    font-family: var(--font-serif);
    margin: 0;
}

.border-bottom-wire {
    border-bottom: 1px solid var(--wire-border);
}

/* Opinion Section */
.wire-opinion-section {
    background: #fdfdfd;
}

/* Category Section Styles */
.wire-category-section {
    border-bottom: 1px solid var(--wire-border);
    padding: 30px 0;
}

.wire-section-header-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.wire-section-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--wire-red);
    display: inline-block;
    background: #fff;
    padding-right: 15px;
    position: relative;
    z-index: 2;
    margin: 0;
    font-family: var(--font-sans);
    line-height: 1;
}

.wire-section-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--wire-border);
    z-index: 1;
}

.wire-img-container {
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.wire-img-container img {
    transition: transform 0.4s ease;
    width: 100%;
    height: auto;
    display: block;
}

.wire-img-container:hover img {
    transform: scale(1.03);
}

.wire-card-large {
    margin-bottom: 20px;
}

.wire-headline-large {
    font-size: 1.6rem;
    line-height: 1.3;
    font-weight: 700;
    margin-top: 12px;
    margin-bottom: 8px;
}

.wire-card-small {
    margin-bottom: 20px;
}

.wire-headline-small {
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 5px;
}


/* Mobile Header Styles */
.wire-header-mobile {
    background: #fff;
    border-bottom: 1px solid var(--wire-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wire-mobile-logo img {
    max-height: 50px;
    width: auto;
}

.menu-toggle-btn {
    font-size: 24px;
    color: #000;
    cursor: pointer;
    line-height: 1;
}

.wire-mobile-actions a {
    font-size: 20px;
    color: #000;
}

/* Drawer Menu Styles */
.drawer-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1050;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.drawer-menu.active {
    left: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--wire-border);
    background: #f9f9f9;
}

.drawer-title {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 16px;
    margin: 0;
    color: var(--wire-red);
    letter-spacing: 1px;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 20px;
    color: #000;
    cursor: pointer;
    padding: 0;
}

.drawer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-nav-list li {
    border-bottom: 1px solid var(--wire-border);
}

.drawer-nav-list li a {
    display: block;
    padding: 15px 20px;
    color: #000;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: background-color 0.2s, color 0.2s;
}

.drawer-nav-list li a:hover {
    background-color: #f5f5f5;
    color: var(--wire-red);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    display: block;
}


/* Main Story Slider Styles */
#wireMainSlider .carousel-indicators {
    bottom: -40px;
}

#wireMainSlider .carousel-indicators button {
    background-color: var(--wire-red);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

#wireMainSlider .carousel-control-prev,
#wireMainSlider .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 35%;
    opacity: 0.7;
}

#wireMainSlider .carousel-control-prev {
    left: -20px;
}

#wireMainSlider .carousel-control-next {
    right: -20px;
}

#wireMainSlider .carousel-control-prev:hover,
#wireMainSlider .carousel-control-next:hover {
    opacity: 1;
    background: var(--wire-red);
}

@media (max-width: 991px) {
    #wireMainSlider .carousel-control-prev {
        left: 0;
    }

    #wireMainSlider .carousel-control-next {
        right: 0;
    }
}

/* Mobile Nav Slider */
@media (max-width: 991px) {
    .wire-nav {
        position: static;
        /* Prevent overlap with sticky mobile header */
        border-bottom: 1px solid #e2e2e2;
    }

    .wire-nav .container .d-flex {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
        padding-bottom: 5px;
        /* Hide scrollbar spacing if needed */
        scrollbar-width: none;
        /* Firefox */
    }

    .wire-nav .container .d-flex::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .wire-nav-link {
        white-space: nowrap;
        padding: 12px 15px;
        flex-shrink: 0;
        font-size: 14px;
        border-bottom: 2px solid transparent;
        /* fixed height for active state */
    }

    .wire-nav-link.active,
    .wire-nav-link:hover {
        border-bottom-color: var(--wire-red);
        color: var(--wire-red);
    }
}