/* ================= RESET ================= */
* { box-sizing: border-box; margin:0; padding:0; }
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
background: #fcfcfc;
color:#222;
}

/* ================= HEADER ================= */
.navbar-custom {
display:flex;
align-items:center;
justify-content:space-between;
padding:8px 12px;
border-bottom:1px solid #ddd;
background:#fff;
}
.menu-toggle { font-size:22px; cursor:pointer; display:none; }
.logo-container { text-align:center; width:100%; font-size:1rem; }
.logo-container .text-muted { margin-top:2px; line-height:1; }

/* ================= MAIN MENU ================= */
.sub-menu-bar {
    list-style: none;
    display: flex;
    gap: 5px;
    padding: 5px 10px;
    background: #1f2937;   /* dark menu background */
    align-items: center;
}

.sub-menu-bar li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;           /* white text */
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s ease;
}
/* Only highlight TOP-LEVEL active menu */
.sub-menu-bar > li.active > a {
    background: #cc0000;
    color: #fff;
}

/* Only highlight ACTIVE dropdown item */
.dropdown-menu li.active > a {
    background: #cc0000;
    color: #fff;
}

.menu-right {
    margin-left: auto;
    color: #fff;
    font-size: 13px;
}
/* ================= HOVER EFFECT FOR MAIN MENU ================= */
/* Highlight top-level menu item on hover like active */
.sub-menu-bar li a:hover {
    background: #cc0000;   /* same as active */
    color: #fff;
}

/* Highlight dropdown toggle on hover (already partially done) */
.sub-menu-bar li.dropdown > .dropdown-toggle:hover {
    background: #cc0000;
    color: #fff;
}

/* Optional: smooth transition for all menu items */
.sub-menu-bar li a,
.sub-menu-bar li.dropdown > .dropdown-toggle {
    transition: background 0.2s ease, color 0.2s ease;
}

/* ================= DROPDOWN PARENT ================= */

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 10px 10px;
    border-radius: 5px;
    background: #1f2937;  /* same as main menu */
    color: #fff;           /* white text */
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-toggle .caret {
    margin-left: 1px;
}

.dropdown-toggle:hover {
    background: #cc0000;   /* red on hover */
}

/* ================= DROPDOWN SUBMENU ================= */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;      /* dropdown appears below parent */
    min-width: 180px;
    background: #fff;       /* white background */
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    z-index: 1000;
    padding: 8px;
}

/* Nested submenu (if any) opens to the right */
.dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;     /* open right of parent submenu */
}

/* Submenu links */
.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 6px;
     padding: 10px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a i {
    width: 16px;
    text-align: center;
    font-size: 13px;
}

/* Hover / active effect */
.dropdown-menu li a:hover,
.dropdown-menu li.active > a {
    background: #cc0000;
    color: #fff;
}

/* Show submenu on hover or focus */
.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu {
    display: block;
}

/* ================= NEWS CARD ================= */
.news-card {
border:1px solid #c0c7d0;
border-radius:10px;
transition: transform .2s ease, box-shadow .2s ease;
height:100%;
}
.news-card:hover {
transform:translateY(-3px);
box-shadow:0 10px 20px rgba(0,0,0,.12);
}
.news-card .card-body { padding:14px; }

/* ================= NEWS TEXT ================= */
.news-source {
font-size:12px;
font-weight:800;
text-transform:uppercase;
color:#cc0000;
margin-bottom:3px;
}
.news-title {
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
text-overflow:ellipsis;
height:2.6em;
line-height:1.3;
font-size:16px;
font-weight:700;
color:#111827;
text-decoration:none;
margin-bottom:3px;
}
.news-title:hover { color:#cc0000; }
.news-date { font-size:12px; color:#cc0000; margin-bottom:8px; }

/* ================= IMAGE ================= */
.news-image,
.no-image-placeholder {
width:100%;
height:180px;
border-radius:6px;
object-fit:cover;
margin-bottom:8px;
}
.no-image-placeholder {
background:#e5e7eb;
color:#6b7280;
display:flex;
align-items:center;
justify-content:center;
font-size:14px;
}

/* ================= SOCIAL SHARE ================= */
.share-buttons {
display:flex;
align-items:center;
gap:4px;
}
.share-buttons a {
width:18px;
height:18px;
border-radius:50%;
display:inline-flex;
align-items:center;
justify-content:center;
background:transparent;
border:1px solid currentColor;
font-size:10px;
text-decoration:none !important;
transition:all .25s ease;
}
.share-buttons .fa-facebook-f { color:#1877f2; }
.share-buttons .fa-x-twitter  { color:#000; }
.share-buttons .fa-linkedin-in{ color:#0a66c2; }
.share-buttons .fa-whatsapp   { color:#25d366; }
.share-buttons a:hover {
background:currentColor;
color:#fff !important;
transform:scale(1.08);
box-shadow:0 4px 10px rgba(0,0,0,.18);
}
.share-buttons small {
margin-left:auto;
background:#f3f4f6;
color:#111827;
font-size:9px;
font-weight:700;
padding:1px 6px;
border-radius:999px;
}

/* ================= PAGINATION ================= */
.pagination .page-link {
color:#1f2937;
font-weight:500;
}
.pagination .active .page-link {
background:#cc0000;
border-color:#cc0000;
color:#fff;
}

/* ================= FOOTER ================= */
footer {
background:#111827;
color:#d1d5db;
padding:12px 0;
font-size:13px;
}

/* ================= MOBILE ================= */
@media (max-width:768px){
.menu-toggle { display:block; }
.logo-container { font-size:1.5rem; }
.sub-menu-bar {
flex-direction:column;
display:none;
width:100%;
}
.sub-menu-bar.active { display:flex; }
.sub-menu-bar li a { font-size:12px; }
.news-image, .no-image-placeholder { height:160px; }
}
/* ================= USER DROPDOWN / LOGOUT MINIMAL ================= */
.menu-right .dropdown-toggle {
    cursor: pointer;
    padding: 4px 8px;
    font-size: 13px;
    color: #fff;
    background: #1f2937;
    border-radius: 4px;
}

.menu-right .dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-width: 120px;
    padding: 5px; /* 5px around all sides */
    z-index: 1000;
}

.menu-right .dropdown-menu li a {
    display: block;
    padding: 5px; /* 5px around all sides */
    font-size: 13px;
    color: #1f2937;
    text-decoration: none;
}

.menu-right .dropdown-menu li a:hover {
    background: #cc0000;
    color: #fff;
}
