@font-face {
    font-family: 'ShurjoWeb';
    src: url('../fonts/ShurjoWeb_400_v5_1.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'ShurjoWeb';
    src: url('../fonts/ShurjoWeb_700_v5_1.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --brand-red-dark: #b30000;
    /* Approximate from image */
    --brand-red-main: #ff0000;
    /* Approximate from image */
    --text-white: #ffffff;
    --font-main: 'ShurjoWeb', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: #fff;
    margin: 0;
    padding: 0;
}

/* Utilities */
.bg-brand-red-dark {
    background-color: var(--brand-red-dark);
}

.bg-brand-red-main {
    background-color: var(--brand-red-main);
}

.text-white {
    color: var(--text-white) !important;
}

/* Top Bar */
.top-bar {
    background-color: var(--brand-red-dark);
    color: #fff;
    padding: 12px 0;
    /* Increased padding */
    font-size: 0.95rem;
}

.search-box-area {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 4px 12px;
    margin-right: 20px;
    font-size: 0.85rem;
    border-radius: 2px;
}

.search-box-area i {
    margin-left: 8px;
    font-size: 1rem;
}

.social-icons a {
    color: #fff;
    margin-left: 15px;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}

.social-icons a:hover {
    opacity: 0.8;
}

/* Main Header */
.main-header {
    background-color: var(--brand-red-main);
    color: #fff;
    padding: 0;
    position: relative;
    overflow: hidden;
    padding-top: 0;
}

/* Container for the flex alignment */
.header-row {
    display: flex;
    align-items: center;
    /* Center vertically */
    flex-wrap: wrap;
    /* Allow wrapping for mobile */
    position: relative;
}

.main-logo {
    max-height: 200px;
    width: auto;
    display: block;
    position: relative;
    z-index: 10;
    padding: 20px 0;
}

/* Left side container (Navigations) */
.nav-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Navigation Menus */
.primary-nav {
    padding-bottom: 0;
    position: relative;
    z-index: 5;
    margin-top: 80px;
}

.primary-nav ul {
    margin-bottom: 0;
}

.primary-nav li {
    margin-right: 0;
    padding-right: 20px;
    /* Slightly reduced to balance */
    padding-left: 20px;
    position: relative;
    display: flex;
    align-items: flex-end;
}

/* More padding before the first item as requested */
.primary-nav li:first-child {
    padding-left: 0;
}

/* The vertical separator - Making it look more structural */
.primary-nav li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    width: 1px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    /* Slightly more visible */
    bottom: -1px;
    /* Precision touch */
    top: auto;
}

.primary-nav a {
    color: #fff;
    font-size: 2rem;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
    /* Better line height for text box feeling */
    display: block;
    padding-bottom: 5px;
    /* Space text from the line below */
}

/* Hamburger */
.hamburger-menu {
    font-size: 2rem;
    cursor: pointer;
    margin-right: 15px;
}

/* Secondary Nav - Compressed to fit one line */
.secondary-nav {
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    padding: 0;
    display: flex;
    width: 100%;
}

.secondary-nav ul {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    /* Flex is good, but if it wraps, it violates "same line" */
    flex-wrap: nowrap;
    /* Force single line */
    justify-content: flex-start;
    /* Start from left */
}

.secondary-nav li {
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    flex-grow: 1;
    /* Distribute space evenly if possible, or 0 if fixed width needed */
    flex-basis: 0;
    /* Ensures equal width distribution if flex-grow is 1 */
    text-align: center;
    /* Center text in the "box" */
    padding: 12px 0;
}

.secondary-nav li:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.6);
}

.secondary-nav a {
    color: #fff;
    padding: 8px 2px;
    /* Drastically reduced horizontal padding to fit all */
    display: block;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: normal;
    white-space: nowrap;
    /* Prevent text wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Handle overflow gracefully if too small */
}

.secondary-nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Helper to center the line with the logo */
.logo-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}


/* Mobile Alignment adjustments */
.header-right-logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Mobile Responsive Styles */
@media (max-width: 991px) {
    .main-header .row {
        min-height: 80px;
    }

    .logo-col {
        justify-content: flex-end;
    }

    .main-logo {
        max-height: 100px;
        padding: 5px 0;
    }

    .nav-container {
        align-items: flex-start;
        justify-content: center;
    }

    /* Top Bar Stacking */
    .top-bar .d-flex {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
    }

    .top-bar .date-display {
        margin-bottom: 10px;
    }

    .top-bar .right-elements {
        flex-direction: column;
        width: 100%;
        align-items: center !important;
    }

    .search-box-area {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        /* Optional: Full width search on mobile? User just said rows. */
        justify-content: center;
        max-width: 250px;
    }

    .social-icons {
        margin-top: 5px;
    }

    .social-icons a {
        margin: 0 5px;
        /* Equal spacing */
    }

    /* Top Bar Order Control */
    .top-bar .date-display {
        order: 1;
    }

    .top-bar .right-elements {
        order: 2;
    }

    .top-bar .search-box-area {
        order: 1;
    }

    /* Inside right-elements */
    .top-bar .social-icons {
        order: 2;
    }

    /* Inside right-elements */

    /* Main Header Mobile Layout */
    .hamburger-menu {
        margin-left: 0;
        margin-right: 15px;
        font-size: 1.5rem;
        /* Larger as requested */
    }

    .main-logo {
        max-height: 60px;
        /* Smaller logo on mobile */
    }
}

/* Offcanvas / Mobile Menu Styling */
.mobile-offcanvas {
    background-color: var(--brand-red-main);
    color: #fff;
    width: 280px;
}

.mobile-offcanvas .btn-close {
    filter: invert(1);
}

.mobile-menu-list {
    padding: 0;
    list-style: none;
}

.mobile-menu-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-list a {
    display: block;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
}

.mobile-menu-list a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Latest News Section Styles */
.section-title-wrapper {
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-red-main);
    display: inline-block;
    border-bottom: 3px solid var(--brand-red-main);
    padding-bottom: 5px;
    margin-bottom: -1px;
    /* Overlap border */
}

.latest-news-list .latest-news-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.latest-news-list .latest-news-item:first-child {
    padding-top: 0;
}

.latest-news-list .latest-news-item:last-child {
    border-bottom: none;
}

.latest-news-item a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
    line-height: 1.4;
    display: block;
}

.latest-news-item a:hover,
.news-title a:hover,
.news-title-small a:hover {
    color: var(--brand-red-main);
}

.news-title a {
    text-decoration: none;
    color: #000;
    line-height: 1.3;
}

.news-title-small a {
    text-decoration: none;
    color: #000;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}