/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0f172a;
    --secondary-color: #dc2626; /* Watcher Red */
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

/* Topbar & Navbar */
.topbar { background-color: var(--primary-color); color: #fff; font-size: 0.85rem; padding: 5px 0; }
.topbar a { color: #cbd5e1; text-decoration: none; }
.topbar a:hover { color: #fff; }
.navbar { border-bottom: 1px solid #e2e8f0; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.navbar-brand { font-weight: 900; font-size: 1.8rem; letter-spacing: -0.5px; }
.navbar-brand span { color: var(--secondary-color); }
.nav-link { font-weight: 500; font-size: 0.95rem; color: var(--primary-color) !important; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-link:hover { color: var(--secondary-color) !important; }

/* Ticker */
.ticker-wrap { background: var(--bg-light); border-bottom: 1px solid #e2e8f0; padding: 8px 0; display: flex; align-items: center; }
.ticker-label { background: var(--secondary-color); color: #fff; padding: 2px 10px; font-weight: bold; font-size: 0.8rem; text-transform: uppercase; margin-right: 15px; }
.ticker-news { flex-grow: 1; overflow: hidden; white-space: nowrap; }
.ticker-news span { display: inline-block; animation: ticker 25s linear infinite; padding-left: 100%; }
@keyframes ticker { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-100%, 0, 0); } }

/* Cards & Editorial Layout */
.article-card { border: none; transition: transform 0.2s ease-in-out; margin-bottom: 1.5rem; }
.article-card:hover { transform: translateY(-3px); }
.article-card img { border-radius: 4px; object-fit: cover; }
.category-tag { color: var(--secondary-color); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; display: block; margin-bottom: 5px; }
.article-title { font-size: 1.25rem; line-height: 1.3; margin-bottom: 8px; font-weight: 700; }
.article-title a { color: var(--primary-color); text-decoration: none; }
.article-title a:hover { color: var(--secondary-color); }
.article-meta { font-size: 0.8rem; color: var(--text-muted); }

/* Hero Section */
.hero-story .article-title { font-size: 2.5rem; font-weight: 900; }
.hero-story img { height: 450px; width: 100%; }

/* Section Headers */
.section-header { border-bottom: 2px solid var(--primary-color); margin-bottom: 1.5rem; padding-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: flex-end; }
.section-header h2 { margin: 0; font-size: 1.5rem; text-transform: uppercase; }

/* Footer */
footer { background-color: var(--primary-color); color: #cbd5e1; padding-top: 4rem; padding-bottom: 2rem; }
footer h5 { color: #fff; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; margin-bottom: 1.5rem; }
footer a { color: #cbd5e1; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: #fff; }






/* Hero Carousel / Slider */
.carousel-inner {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.custom-caption {
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem 2rem 2rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0) 100%);
    text-align: left;
}
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}
.custom-caption h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 10px;
}
.carousel-indicators [data-bs-target] {
    background-color: #fff;
    height: 4px;
    border-radius: 2px;
}
.carousel-indicators .active {
    background-color: var(--secondary-color);
}

/* Mobile Responsive Adjustments for Slider */
@media (max-width: 768px) {
    .custom-caption {
        padding: 2rem 1rem 1rem 1rem; /* Reduces inner spacing */
    }
    .custom-caption h2 {
        font-size: 1.4rem; /* Scales down the title text */
        line-height: 1.3;
    }
    .custom-caption .badge {
        font-size: 0.7rem; /* Scales down the category pill */
    }
    .carousel-item img {
        height: 400px !important; /* Prevents the image from being too tall on small screens */
    }
}


/* Mobile Search Bar (Vanguard Style) */
.mobile-search-form {
    display: flex;
    max-width: 140px; /* Fits nicely next to the hamburger */
}
.mobile-search-form .form-control {
    background-color: #f1f5f9;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}
.mobile-search-form .form-control:focus {
    box-shadow: none;
    background-color: #e2e8f0;
}
.mobile-search-form .btn {
    background-color: #e60000; /* Vanguard Red */
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0.25rem 0.6rem;
}

/* Mobile Swipeable Menu */
.swipe-menu-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 10px 0;
}
.swipe-menu-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari/Opera */
}
.swipe-menu-wrapper {
    -ms-overflow-style: none;  /* Hide scrollbar for IE/Edge */
    scrollbar-width: none;  /* Hide scrollbar for Firefox */
}
.swipe-menu {
    display: inline-flex;
    margin: 0;
    padding: 0 15px;
    list-style: none;
}
.swipe-menu li {
    margin-right: 20px;
}
.swipe-menu .nav-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main) !important;
    text-transform: uppercase;
    padding: 0;
}
.swipe-menu .nav-link.active {
    color: #e60000 !important; /* Vanguard Red */
}









/* Desktop Search Bar */
.desktop-search-form {
    display: flex;
    min-width: 250px; /* Much wider for PC screens */
}
.desktop-search-form .form-control {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
}
.desktop-search-form .form-control:focus {
    box-shadow: none;
    background-color: #fff;
    border-color: #cbd5e1;
}
.desktop-search-form .btn {
    background-color: #e60000; /* Dark standard color for PC */
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0.4rem 1rem;
    transition: background-color 0.2s;
}
.desktop-search-form .btn:hover {
    background-color: #e60000; /* Vanguard Red on hover */
    color: white;
}


/* Responsive Logo Sizing */
.nav-logo {
    width: 130px; /* Default size for Mobile */
    transition: width 0.3s ease; /* Smooth transition when resizing window */
}

@media (min-width: 992px) { /* Bootstrap 'lg' breakpoint for Desktop */
    .nav-logo {
        width: 180px; /* Larger size for PC */
    }
}


/* Latest News Timeline Widget */
.timeline-widget {
    position: relative;
    padding-left: 20px; /* Space for the vertical line */
    margin-bottom: 2rem;
    margin-top: 1rem;
}
.timeline-widget::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 4px; /* Positions the line */
    width: 1px;
    background-color: #fca5a5; /* Light red line like the reference */
}
.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}
.timeline-time {
    color: #e60000; /* Vanguard Red */
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
}
.timeline-time::before {
    content: '';
    position: absolute;
    left: -20px; /* Aligns the dot perfectly over the line */
    width: 9px;
    height: 9px;
    background-color: #e60000;
    border-radius: 50%;
}
.timeline-card {
    display: flex;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease-in-out;
}
.timeline-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.timeline-card img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0; /* Prevents image from squishing */
}
.timeline-card-title {
    font-size: 0.95rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    align-self: center;
}
.timeline-card-title a {
    color: var(--primary-color);
    text-decoration: none;
}
.timeline-card-title a:hover {
    color: #e60000;
}

/* Main Page Latest News Timeline */
.main-timeline-container {
    position: relative;
    padding-left: 24px; /* Space for the vertical line and dots */
    margin-bottom: 2rem;
    margin-top: 1rem;
}
.main-timeline-container::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 0;
    left: 4px; /* Position the vertical red line */
    width: 1px;
    background-color: #fca5a5; /* Light red line */
}
.main-timeline-item {
    position: relative;
    margin-bottom: 1.2rem;
}
.main-timeline-time {
    color: #e60000; /* Vanguard Red */
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
}
.main-timeline-time::before {
    content: '';
    position: absolute;
    left: -24px; /* Align dot perfectly over the line */
    width: 9px;
    height: 9px;
    background-color: #e60000;
    border-radius: 50%;
}
.main-timeline-card {
    display: flex;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    text-decoration: none; 
    transition: box-shadow 0.2s ease-in-out;
}
.main-timeline-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.main-timeline-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0; /* Keeps the image perfectly square on all screens */
}
.main-timeline-content {
    display: flex;
    align-items: center; /* Centers the text vertically next to the image */
}
.main-timeline-title {
    font-size: 0.95rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary-color);
    margin: 0;
}
.main-timeline-card:hover .main-timeline-title {
    color: #e60000;
}


/* Single Article Typography & Layout */
.article-header-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}
.share-buttons .btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.share-buttons .btn:hover {
    transform: translateY(-3px);
}
.article-featured-img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 8px;
}
.image-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 8px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}
.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #1e293b;
}
.article-body p {
    margin-bottom: 1.5rem;
}
.article-body h2, .article-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
/* Dropcap for the first letter of the article */
.article-body > p:first-of-type::first-letter {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--secondary-color);
    float: left;
    line-height: 1;
    margin-right: 8px;
    margin-top: 5px;
}
.pull-quote {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    margin: 2rem 0;
    font-style: italic;
    font-weight: 700;
}
.author-box {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}





/* Author Profile Header */
.author-profile-banner {
    background-color: var(--bg-light);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
}
.author-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}
.author-profile-name {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}
.author-profile-role {
    color: #e60000; /* Vanguard Red */
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.author-profile-bio {
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}
.author-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    color: var(--primary-color);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}
.author-social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* About Page Styles */
.about-hero-bg {
    background-color: var(--primary-color);
    color: #fff;
    padding: 4rem 0;
    border-radius: 8px;
    margin-bottom: 3rem;
    background-image: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7)), url('https://images.unsplash.com/photo-1504711434969-e33886168f5c?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
}
.value-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    height: 100%;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}
.value-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.value-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.team-card {
    text-align: center;
    margin-bottom: 2rem;
}
.team-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.team-card h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}
.team-card .role {
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
