/* =============================================
   GLOBAL STYLES & TYPOGRAPHY
   ============================================= */

/* Base body styles */
body {
    font-family: inherit, 'Segoe UI';
}

/* Heading text styling */
.h-text {
    font-family: inherit;
    color: #271c68;
    line-height: 1.1;
    font-weight: 600;
    font-size: larger;
}

/* =============================================
   PAGINATION STYLES
   ============================================= */

   /* Compact pagination container */
.pagination-container {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

/* Pagination links - compact */
.pagination > .page-item > .page-link {
    color: #dc3545;              /* Red text */
    border-radius: 0.25rem;      /* Rounded corners */
    border: 1px solid #dee2e6;  
    padding: 0.25rem 0.5rem;     /* Smaller padding */
    font-size: 0.875rem;         /* Smaller font */
    min-width: 32px;
    text-align: center;
    margin: 0 0.25rem;           /* Space between links */
    text-decoration: none;        /* Remove underline */
    transition: all 0.2s ease;
}

/* Hover effect */
.pagination > .page-item > .page-link:hover {
    background-color: #dc3545;
    color: #fff;
    border-color: #dc3545;
    text-decoration: none;
}

/* Active page */
.pagination > .page-item.active > .page-link {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

/* Disabled page */
.pagination > .page-item.disabled > .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
    text-decoration: none;
}

/* =============================================
   INFOMATION CARD STYLES
   ============================================= */

.info-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #fff !important; /* makes the '/' white */
}

.news-scroll-wrapper {
    max-height: 200px;
    overflow-y: auto;
}

.news-scroll-wrapper::-webkit-scrollbar {
    width: 6px;
}
.news-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

/* =============================================
   IMAGE & MEDIA STYLES
   ============================================= */

/* General image container */
.img {
    max-height: 180px;
    object-fit: cover;
    width: 100%;
}

/* Captcha specific image styling */
.captcha-img {
    max-height: 50px;
}

/* Carousel image styling */
.carousel-inner img {
    object-fit: cover;
    height: 400px;
}

@media (max-width: 768px) {
    .carousel-inner img {
        height: 300px;
    }
}

/* =============================================
   BACKGROUND & OVERLAY STYLES
   ============================================= */

/* Background image with blur effect container */
.bg-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background image with blur effect */
.bg-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("assets/img/1.jpg") center/cover no-repeat;
    filter: blur(10px); /* Apply blur to background image */
    z-index: 0;
}

/* Dark overlay */
.bg-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent black overlay */
    z-index: 1;
}

/* Ensure content stays above background effects */
.bg-img > * {
    position: relative;
    z-index: 2; /* Keep cards/content above background */
}

/* Header background with image */
.bg-header {
    width: 100%;
    background: #fff url('../images/header-img.png') center center no-repeat;
    background-size: cover;
}

/* =============================================
   COLOR & BACKGROUND UTILITIES
   ============================================= */

/* Background color classes */
.bg-purple {
    background-color: #700870;
}

.bg-red {
    background-color: #9b030c;
    color: white;
}

.bg-li {
    background: linear-gradient(45deg, #9b030c, #210202bd);
    color: white;
}

/* =============================================
   BUTTON STYLES
   ============================================= */

/* Red button styling */
.btn-red {
    background-color: #9b030c;
    color: #fff;
}

.btn-red:hover {
    background-color: #b02a37;
    color: #fff;
}

/* =============================================
   TEXT COLOR STYLES
   ============================================= */

/* Red text */
.text-red {
    color: #9b030c;
}

/* =============================================
   NAVIGATION & MENU STYLES
   ============================================= */

/* Top header elements */
.top_head a,
.top_head select,
.top_head i {
    font-family: inherit;
    font-size: inherit;
}

/* Navigation link base styling */
.nav-link {
    color: white !important;
}

/* Allow navbar items to wrap on smaller screens */
.navbar-nav {
    flex-wrap: wrap; /* Items will wrap into multiple lines if needed */
}

.navbar-nav .nav-item {
    margin-bottom: 5px; /* Spacing between wrapped rows */
}

/* Dropdown menu styling */
.dropdown-access .dropdown-menu {
    min-width: 220px;
}

.dropdown-access img {
    width: 20px;
    margin-right: 8px;
}

/* Dropdown on hover functionality */
.navbar-nav .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
}

/* Custom dropdown menu styling */
.navbar-nav .dropdown-menu {
    background-color: #990000; /* Dark red background */
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: 220px;
}

.navbar-nav .dropdown-item {
    color: #fff;
    padding: 10px 16px;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
}

    .navbar-nav .dropdown-item:hover {
        background-color: #b30000;
        color: #fff;
        text-decoration: none !important;
    }

    /* HOVER EFFECT */
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus,
    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background-color: #b30000;
        color: #fff;
        text-decoration: none !important;
    }

/* Nested dropdown (submenu) styling */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px; /* Align with parent item */
    margin-left: 0;
    border: none;
    border-radius: 0;
    background-color: #990000;
    min-width: 220px;
    z-index: 1000;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* =============================================
   SIDEBAR & LAYOUT STYLES
   ============================================= */

/* Common sidebar navigation styles */
.sidebar-nav {
    padding: 10px 15px;
}

/* Desktop sidebar - fixed positioning */
@media (min-width: 992px) {
    #mainMenu {
        position: fixed;
        top: 103px; /* Height of header */
        left: 0;
        width: 236px;
        height: calc(100vh - 103px);
        overflow-y: auto;
        z-index: 1030;
    }

    /* Always visible on desktop */
    #mainMenu.collapse {
        display: block !important;
        visibility: visible !important;
    }
}

/* Sidebar link styling */
.sidebar-nav .nav-link {
    padding: 10px 15px;
    border-bottom: 1px solid #bb2222;
    transition: background 0.3s ease;
}

.sidebar-nav .nav-link:hover {
    background-color: #e00b0b;
    text-decoration: none;
    color: #fff;
}

/* Submenu specific styling */
#submenu .nav-link {
    font-size: 14px;
    padding-left: 25px;
}

/* =============================================
   ANIMATION & SCROLLING STYLES
   ============================================= */

/* Marquee scrolling animation */
.marquee {
    white-space: nowrap;
    overflow: hidden;
    animation: scroll-left 10s linear infinite;
}

/* Announcement bar scrolling */
.announcement-bar {
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.scrolling-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.scrolling-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
}

.scrolling-content:hover {
    animation-play-state: paused;
}

.scrolling-content span {
    display: inline-block;
    margin-right: 50px;
}

/* News scroll wrapper */
.news-scroll-wrapper {
    height: 250px; /* Adjust based on visible lines */
    overflow: hidden;
    position: relative;
}

.news-scroll {
    display: inline-block;
    position: absolute;
    animation: scroll-up 8s linear infinite;
    padding-left: 0;
    margin: 0;
}

.news-scroll-wrapper:hover .news-scroll {
    animation-play-state: paused;
}

/* =============================================
   COMPONENT & LAYOUT STYLES
   ============================================= */

/* Logo positioning */
.right-logo {
    height: 116px;
    margin-left: 220px;
}

.left-logo {
    height: 102px;
    margin-right: 255px;
}

/* Card height utility */
.card-h {
    height: 370px !important;
}

/* Shadow/border utility */
.shadow {
    padding: 2px 12px;
    border-left: 1px solid #b20f19;
}

/* Footer link spacing */
.footer-links span {
    margin: 0 12px; /* Spacing around each item */
}

/* Link hover effects */
a:hover {
    text-decoration: underline;
}

/* =============================================
   ANIMATION KEYFRAMES
   ============================================= */

/* Left scrolling animation */
@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Upward scrolling animation */
@keyframes scroll-up {
    0% {
        top: 100%;
    }
    100% {
        top: -100%;
    }
}