/* ==================== RESPONSIVE ==================== */
@media (max-width: 576px) {
    .nav-item {
        margin: 10px 0 !important;
    }

    .title {
        font-size: 14px !important;
    }

    .description {
        font-size: 12px !important;
    }

    .nav-pills {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

/* ==================== GLOBAL IMAGE STYLES ==================== */
.carousel-item img {
    height: auto;
    max-height: 1000px;
    object-fit: cover;
}

.img-fluid {
    height: 200px;
    object-fit: cover;
}

.rounded-bottom,
.rounded-top {
    border-radius: 0 !important;
}

/* ==================== CUSTOM UNDERLINE ==================== */
.custom-underline {
    border-bottom: 2px solid transparent;
    background-image: linear-gradient(to right, #a82834, #a82834, red);
    background-size: 10% 5px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    padding-bottom: 5px;
}

/* ==================== VIEW & DATE BOXES ==================== */
.view-box,
.publication-date-box {
    font-size: 12px;
    border-radius: 5px;
}

.view-box {
    color: rgb(0, 0, 0);
}

.publication-date-box {
    color: white;
    padding: 5px 10px;
    background-color: rgba(170, 15, 15, 0.7);
}

/* ==================== FLEX BOX ==================== */
.d-flex1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==================== COLOR VARIABLES ==================== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: rgb(202, 26, 26);
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --text-light: #ecf0f1;
    --text-dark: #2c3e50;
}

/* ==================== BODY ==================== */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    padding: 12px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.breadcrumb-item.active {
    color: var(--secondary-color);
    font-weight: 600;
}

/* ==================== SERVICE CARD ==================== */
.service-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    overflow: hidden;
    border: none;
    background: white;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-img {
    overflow: hidden;
    height: 220px;
    position: relative;
}

.service-img img {
    transition: all 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-item:hover .service-img img {
    transform: scale(1.1);
}

.service-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-item:hover .service-img::before {
    opacity: 1;
}

/* ==================== SECTION TITLE ==================== */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* ==================== PAGINATION ==================== */
.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.custom-pagination button {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 600;
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.custom-pagination button:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.custom-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.custom-pagination select {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 600;
    padding: 8px 15px;
    margin: 0 10px;
    border-radius: 50px;
    cursor: pointer;
    outline: none;
}

/* ==================== SIDEBAR ==================== */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary-color);
}

.widget-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

/* ==================== SEARCH BOX ==================== */
.search-box {
    position: relative;
}

.search-box input {
    border: 2px solid #eee;
    border-radius: 50px;
    padding: 12px 20px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: var(--primary-color);
    transform: rotate(15deg);
}

/* ==================== RECENT POSTS ==================== */
.recent-post {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.recent-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post:hover .recent-post-thumb img {
    transform: scale(1.1);
}

.recent-post-content h5 {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.recent-post-content h5 a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.recent-post-content h5 a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.recent-post-meta {
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* ==================== ARCHIVE ==================== */
.archive-year {
    cursor: pointer;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 8px;
    background-color: var(--light-bg);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.archive-year:hover {
    background-color: #e1f0fa;
    color: var(--secondary-color);
}




    /* Base Styles */
    :root {
        --primary-color: #2c3e50;
        --secondary-color:rgb(202, 26, 26);
        --accent-color: #e74c3c;
        --light-bg: #f8f9fa;
        --dark-bg: #2c3e50;
        --text-light: #ecf0f1;
        --text-dark: #2c3e50;
    }

    body {
        font-family: 'Poppins', sans-serif;
        background-color: #f5f7fa;
    }

    /* Header Styles */


    .breadcrumb {
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 50px;
        padding: 12px 25px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .breadcrumb-item.active {
        color: var(--secondary-color);
        font-weight: 600;
    }

    /* Card Styles */
    .service-item {
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border-radius: 12px;
        overflow: hidden;
        border: none;
        background: white;
        margin-bottom: 25px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }

    .service-item:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    .service-img {
        overflow: hidden;
        height: 220px;
        position: relative;
    }

    .service-img img {
        transition: all 0.5s ease;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .service-item:hover .service-img img {
        transform: scale(1.1);
    }

    .service-img::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
        z-index: 1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .service-item:hover .service-img::before {
        opacity: 1;
    }

    /* Title Styles */
    .section-title {
        position: relative;
        display: inline-block;
        margin-bottom: 30px;
    }

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 50px;
        height: 4px;
        background: var(--secondary-color);
        border-radius: 2px;
    }

    /* Pagination Styles */
    .custom-pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 40px;
    }

    .custom-pagination button {
        border: 2px solid var(--secondary-color);
        color: var(--secondary-color);
        font-weight: 600;
        padding: 8px 20px;
        margin: 0 5px;
        border-radius: 50px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
    }

    .custom-pagination button:hover {
        background: var(--secondary-color);
        color: white;
        transform: translateY(-2px);
    }

    .custom-pagination button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .custom-pagination select {
        border: 2px solid var(--secondary-color);
        color: var(--secondary-color);
        font-weight: 600;
        padding: 8px 15px;
        margin: 0 10px;
        border-radius: 50px;
        cursor: pointer;
        outline: none;
    }

    /* Sidebar Styles */
    .sidebar-widget {
        background: white;
        border-radius: 12px;
        padding: 25px;
        margin-bottom: 30px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        border-top: 4px solid var(--secondary-color);
    }

    .widget-title {
        color: var(--primary-color);
        font-size: 1.3rem;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #eee;
        position: relative;
    }

    .widget-title::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 50px;
        height: 2px;
        background: var(--secondary-color);
    }

    /* Search Box */
    .search-box {
        position: relative;
    }

    .search-box input {
        border: 2px solid #eee;
        border-radius: 50px;
        padding: 12px 20px;
        width: 100%;
        transition: all 0.3s ease;
    }

    .search-box input:focus {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    }

    .search-box button {
        position: absolute;
        right: 5px;
        top: 5px;
        background: var(--secondary-color);
        color: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .search-box button:hover {
        background: var(--primary-color);
        transform: rotate(15deg);
    }

    /* Recent News */
    .recent-post {
        display: flex;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px dashed #eee;
    }

    .recent-post:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .recent-post-thumb {
        width: 70px;
        height: 70px;
        border-radius: 8px;
        overflow: hidden;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .recent-post-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .recent-post:hover .recent-post-thumb img {
        transform: scale(1.1);
    }

    .recent-post-content h5 {
        margin-bottom: 5px;
        font-size: 0.95rem;
    }

    .recent-post-content h5 a {
        color: var(--text-dark);
        transition: color 0.3s ease;
    }

    .recent-post-content h5 a:hover {
        color: var(--secondary-color);
        text-decoration: none;
    }

    .recent-post-meta {
        font-size: 0.8rem;
        color: #7f8c8d;
    }

    /* Archive Styles */
    .archive-year {
        cursor: pointer;
        font-weight: 600;
        padding: 12px 15px;
        border-radius: 8px;
        background-color: var(--light-bg);
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s ease;
    }

    .archive-year:hover {
        background-color: #e1f0fa;
        color: var(--secondary-color);
    }

    .archive-year i {
        transition: transform 0.3s ease;
    }

    .archive-months {
        margin-left: 15px;
        display: none;
        animation: fadeIn 0.4s ease-out;
    }

    .archive-month {
        padding: 8px 15px;
        margin: 5px 0;
        border-radius: 6px;
        transition: all 0.3s ease;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .archive-month:hover {
        background-color: #e1f0fa;
        transform: translateX(5px);
    }

    .archive-month a {
        color: var(--text-dark);
        text-decoration: none;
        display: flex;
        align-items: center;
    }

    .archive-month a i {
        margin-right: 10px;
        color: var(--secondary-color);
    }

    .archive-count {
        background: var(--secondary-color);
        color: white;
        padding: 2px 8px;
        border-radius: 50px;
        font-size: 0.7rem;
        font-weight: bold;
    }

    /* Animation */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Responsive Adjustments */
    @media (max-width: 768px) {
        .bg-breadcrumb {
            padding: 70px 0;
            clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
        }
        
        .service-img {
            height: 180px;
        }
        
        .col-lg-3 {
            margin-top: 50px !important;
        }
    }

    .custom-pagination {
    justify-content: center;
    flex-wrap: wrap;
}

.custom-pagination .btn {
    padding: 6px 12px;
    font-size: 14px;
}

.custom-pagination select.form-select {
    padding: 6px 12px;
    font-size: 14px;
    border-color:rgb(9, 13, 19);
    color:rgb(24, 25, 25);
    max-width: 150px;
}

.custom-pagination select.form-select:focus {
    box-shadow: none;
    border-color:rgb(20, 20, 21);
}


