/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Define variables for consistency */
:root {
    --primary-color: #d9042b; /* Inspired by Indian Express red */
    --secondary-color: #1e1e1e; /* Dark gray for text */
    --white-color: #ffffff;
    --dark-color: #333333;
    --light-bg: #f5f5f5;
    --font-weight-bold: 700;
    --font-weight-medium: 500;
    --p-font-size: 16px;
    --h6-font-size: 18px;
    --menu-font-size: 14px;
    --copyright-font-size: 12px;
}

/* Body styling */
body {
    font-family: 'Droid Serif', serif; /* News-like font for body text */
    background-color: var(--white-color);
    color: var(--dark-color);
    line-height: 1.6;
}

/* Headings and navigation */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif; /* Modern font for headings */
}

/* Navbar */
.navbar {
    background-color: var(--primary-color) !important; /* Bold red header */
    z-index: 9;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif; /* Modern font for navigation */
}

.navbar-brand {
    color: var(--white-color);
    font-size: var(--h6-font-size);
    font-weight: var(--font-weight-bold);
}

.navbar-brand span {
    display: inline-block;
    vertical-align: middle;
}

.navbar-brand small {
    color: var(--white-color);
    display: block;
    font-size: 10px;
    text-transform: uppercase;
}

.logo {
    width: 100px; /* Adjusted for a modern look */
    height: auto;
}

.navbar-expand-lg .navbar-nav .nav-link {
    color: var(--white-color);
    font-size: var(--p-font-size);
    font-weight: var(--font-weight-medium);
    padding: 15px 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.2); /* Subtle hover effect */
    color: var(--white-color);
}

/* Dropdown menu */
.dropdown-menu {
    background: var(--white-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 0;
    margin-top: 0;
}

.dropdown-item {
    color: var(--dark-color);
    font-size: var(--menu-font-size);
    padding: 10px 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--light-bg);
    color: var(--primary-color);
}

.dropdown-toggle::after {
    font-family: 'bootstrap-icons';
    content: "\f282";
    font-size: var(--copyright-font-size);
    vertical-align: middle;
    border: none;
    margin-left: 5px;
}

@media screen and (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Navbar toggler */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 35px;
    cursor: pointer;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    background: var(--white-color);
    width: 30px;
    height: 2px;
    position: relative;
    transition: background 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    background: var(--white-color);
    width: 30px;
    height: 2px;
    position: absolute;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Main header */
.main_header {
    background: var(--white-color);
    padding: 20px 0;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Softer shadow */
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* Subtle lift on hover */
}

.card-block {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Carousel */
.carousel-indicators li {
    border-radius: 50%;
    width: 10px;
    height: 10px;
    background-color: var(--dark-color);
    margin: 0 3px;
}

.carousel-indicators .active {
    background-color: var(--primary-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(100%); /* White icons */
}

/* Category news (News Button Box) */
.category-news .cat-news {
    display: block; /* Makes the entire box clickable if wrapped in <a> */
    text-decoration: none; /* Removes underline from link */
    color: inherit; /* Inherits text color */
    align-items: center;
    margin-bottom: 20px;
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease; /* Smooth hover transition */
}

.category-news .cat-news:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Enhanced shadow on hover */
}

.category-news .cat-img {
    width: 150px;
    flex-shrink: 0;
}

.category-news .cat-img img {
    width: 100%;
    height: auto;
    display: block; /* Ensures no gaps below image */
}

.category-news .cat-title {
    padding: 15px;
}

.category-news .cat-title a {
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-news .cat-title a:hover {
    color: var(--primary-color);
}

/* News card */
.news-card {
    padding: 30px 15px;
    background: var(--light-bg);
    border-radius: 8px;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white-color);
    padding: 60px 0 0;
}

.footer .footer-widget {
    margin-bottom: 40px;
}

.footer .footer-widget .title {
    color: var(--white-color);
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    text-transform: uppercase;
}

.footer .contact-info p {
    margin-bottom: 10px;
    font-size: var(--p-font-size);
}

.footer .footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer .footer-widget ul li {
    margin-bottom: 12px;
}

.footer .footer-widget ul li a {
    color: var(--white-color);
    font-size: var(--p-font-size);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .footer-widget ul li a:hover {
    color: var(--primary-color);
}

/* Footer menu */
.footer-menu {
    background: #000000;
    padding: 15px 0;
}

.footer-menu .f-menu {
    text-align: center;
}

.footer-menu .f-menu a {
    color: var(--white-color);
    font-size: 14px;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid var(--white-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu .f-menu a:hover {
    color: var(--primary-color);
}

/* Footer bottom */
.footer-bottom {
    background: #000000;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom .copyright p {
    color: var(--white-color);
    font-size: var(--copyright-font-size);
    margin: 0;
}

/* Job title */
h1.job_title {
    color: var(--secondary-color);
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
}

/* Pagination */
.page-link {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.active > .page-link,
.page-link.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(217, 4, 43, 0.25);
}

/* Miscellaneous */
.title {
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: var(--font-weight-bold);
}

.btn {
    margin-top: auto;
}

/* Hide owl nav (carousel navigation) */
.owl-nav {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding: 10px 0;
    }

    .category-news .cat-img {
        width: 100px;
    }

    .category-news .cat-title a {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .footer .footer-widget {
        margin-bottom: 30px;
    }

    .footer-menu .f-menu a {
        display: block;
        margin: 5px 0;
        border-right: none;
    }

    .category-news .cat-news {
        display: flex; /* Still flex for Option 1; adjust if using Option 2 */
        flex-direction: column;
        text-align: center;
    }

    .category-news .cat-img {
        width: 100%;
    }
}