:root {
    --primary-color: #056839;
    --secondary-color: #F8CF2E;
    --accent-color: #c9a227;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-white: #ffffff;
    --bg-light: #f4f7f6;
    --transition: all 0.3s ease;
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Topbar Redesign */
.topbar {
    background: #004d2a;
    height: 40px;
    font-size: 13px;
    transition: all 0.5s;
    color: #fff;
    padding: 0;
}

.topbar .contact-info i {
    font-style: normal;
    color: #fff;
}

.topbar .contact-info i span {
    padding-left: 5px;
    color: #fff;
}

.topbar .contact-info i a {
    color: #fff;
}

.topbar .pay-now-btn {
    background: var(--secondary-color);
    color: #000 !important;
    padding: 2px 15px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 15px;
    text-decoration: none;
}

/* Header & Navbar */
.header {
    background: #fff;
    transition: all 0.5s;
    z-index: 997;
    height: 90px;
    border-bottom: 3px solid var(--primary-color);
}

.header .logo h1 {
    font-size: 30px;
    margin: 0;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.header .logo h1 span {
    color: var(--secondary-color);
}

.navbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
}

.navbar li {
    position: relative;
}

.navbar a,
.navbar a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 10px 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    transition: 0.3s;
}

.navbar a i,
.navbar a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
    color: var(--primary-color);
}

/* Mobile navbar toggle visibility and responsive behavior */
@media (max-width: 1279px) {
    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-right: 0;
        border-radius: 10px;
        background: rgba(5, 104, 57, 0.12);
        border: 1px solid rgba(5, 104, 57, 0.25);
        color: var(--primary-color);
        font-size: 30px;
        line-height: 1;
        cursor: pointer;
        z-index: 10000;
    }

    .mobile-nav-show {
        color: var(--primary-color);
    }

    .mobile-nav-hide {
        position: fixed;
        right: 14px;
        top: 14px;
        background: rgba(0, 0, 0, 0.35);
        border-color: rgba(255, 255, 255, 0.25);
        color: #fff;
    }

    .navbar {
        width: min(88vw, 360px);
        max-width: 360px;
    }

    .navbar a,
    .navbar a:focus {
        min-height: 46px;
        padding: 12px 20px;
    }
}

@media (max-width: 575px) {
    .header {
        height: 78px;
    }

    .header .logo h1 {
        font-size: 24px;
    }

    .navbar {
        width: 100%;
        max-width: 100%;
    }
}

/* Professional responsive refinements for header and navigation */
@media (max-width: 1199px) {
    .header {
        height: 84px;
    }

    .header .logo img {
        max-height: 58px;
    }

    .header .logo h1 {
        font-size: 26px;
        letter-spacing: 0.6px;
    }

    .topbar .quick-links {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .topbar {
        height: auto;
        padding: 8px 0;
        font-size: 12px;
    }

    .topbar .container {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }

    .topbar .contact-info {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .topbar .contact-info i {
        margin: 0;
        font-size: 12px;
    }

    .topbar .contact-info .bi-envelope {
        margin-left: 0 !important;
    }

    .topbar .d-flex.align-items-center {
        width: 100%;
        justify-content: space-between;
    }

    .topbar .pay-now-btn {
        margin-left: 0;
        padding: 5px 12px;
        font-size: 12px;
        line-height: 1.2;
    }

    .header {
        height: 80px;
    }

    .header .container-xl {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header .logo img {
        max-height: 52px;
    }

    .header .logo h1 {
        font-size: 22px;
        letter-spacing: 0.4px;
    }

    .navbar {
        box-shadow: -16px 0 32px rgba(0, 0, 0, 0.22);
    }

    .navbar ul {
        padding-top: 72px;
        padding-bottom: 14px;
    }

    .navbar .dropdown ul,
    .navbar .dropdown .dropdown ul {
        margin: 8px 14px;
        border-radius: 8px;
    }
}

@media (max-width: 767px) {
    .topbar .contact-info i span {
        white-space: normal;
        line-height: 1.35;
    }

    .header {
        height: 74px;
    }

    .header .logo h1 {
        font-size: 20px;
    }

    .mobile-nav-toggle {
        width: 42px;
        height: 42px;
        font-size: 28px;
    }

    .navbar a,
    .navbar a:focus {
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .topbar .contact-info i {
        width: 100%;
    }

    .header .logo h1 {
        font-size: 18px;
    }

    .mobile-nav-hide {
        top: 10px;
        right: 10px;
    }
}

/* Header/navbar responsive hardening */
#header .container-xl {
    min-width: 0;
}

#header .logo {
    min-width: 0;
    gap: 10px;
}

#header .logo img {
    width: auto;
    max-height: 62px;
}

#header .logo h1 {
    white-space: nowrap;
}

@media (min-width: 1280px) {
    #header .navbar {
        position: static;
        width: auto;
        max-width: none;
        right: auto;
        bottom: auto;
        box-shadow: none;
    }

    #header .navbar > ul {
        flex-wrap: nowrap;
        flex-direction: row;
    }

    #header .navbar a,
    #header .navbar a:focus {
        padding: 10px 0 10px 22px;
        font-size: 14px;
        border-bottom: none;
        color: #333;
    }

    .mobile-nav-overlay {
        display: none !important;
    }
}

@media (max-width: 1279px) {
    #header .navbar {
        position: fixed;
        top: 0;
        right: -100vw;
        bottom: 0;
        width: min(88vw, 360px);
        max-width: 360px;
        height: 100%;
        z-index: 10001;
        transition: right 0.3s ease;
        overflow: hidden;
        box-shadow: -20px 0 35px rgba(0, 0, 0, 0.22);
    }

    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 10000;
        cursor: pointer;
    }

    body.mobile-nav-active .mobile-nav-overlay {
        opacity: 1;
        visibility: visible;
    }

    #header .navbar > ul {
        position: absolute;
        inset: 0;
        margin: 0;
        padding: 84px 0 14px;
        overflow-y: auto;
        background: rgba(0, 131, 116, 0.98);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        list-style: none;
        z-index: 9998;
    }

    #header .navbar > ul > li {
        width: 100%;
        padding: 0;
    }

    #header .navbar .dropdown ul {
        position: static;
        display: none;
        padding: 10px 0;
        margin: 8px 14px;
        background-color: rgba(0, 100, 89, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        flex-direction: column;
    }

    #header .navbar .dropdown > .dropdown-active {
        display: flex;
        flex-direction: column;
    }

    body.mobile-nav-active #header .navbar {
        right: 0;
    }

    #header .navbar a,
    #header .navbar a:focus {
        white-space: normal;
        word-break: break-word;
        min-height: 48px;
        line-height: 1.35;
        padding: 12px 20px;
        color: rgba(255, 255, 255, 0.8);
        font-size: 15px;
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    #header .navbar a:hover,
    #header .navbar .active,
    #header .navbar li:hover > a {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }

    #header .navbar .dropdown ul a {
        padding: 10px 20px;
        font-size: 14px;
        border-bottom: none;
        min-height: 42px;
    }

    #header .mobile-nav-toggle {
        appearance: none;
        -webkit-appearance: none;
        border: 1px solid rgba(5, 104, 57, 0.25);
        background: rgba(255, 255, 255, 0.92);
    }

    #header .mobile-nav-hide {
        position: fixed;
        top: 14px;
        right: 14px;
        width: 44px;
        height: 44px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        z-index: 10002;
        background: rgba(0, 0, 0, 0.35);
        border-color: rgba(255, 255, 255, 0.35);
        color: #fff;
        font-size: 32px;
    }

    #header .mobile-nav-hide.d-none {
        display: none !important;
    }
}

@media (max-width: 991px) {
    #topbar .contact-info i span {
        overflow-wrap: anywhere;
    }

    #header .logo img {
        max-height: 50px;
    }

    #header .logo h1 {
        font-size: 21px;
    }
}

@media (max-width: 575px) {
    #header .container-xl {
        padding-left: 10px;
        padding-right: 10px;
    }

    #header .logo {
        gap: 8px;
    }

    #header .logo img {
        max-height: 44px;
    }

    #header .logo h1 {
        font-size: 18px;
        letter-spacing: 0.2px;
    }

    #header .navbar {
        width: 100%;
        max-width: 100%;
    }
}

/* News Section Cards */
.latest-news-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    padding: 50px 0;
}

.news-intro h2 {
    font-size: 48px;
    font-weight: 800;
    color: #000;
    line-height: 1.1;
    margin-bottom: 20px;
}

.news-intro p {
    color: #666;
    margin-bottom: 30px;
}

.view-all-news {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    position: relative;
}

.view-all-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff9a44 0%, #fc6076 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.view-all-news:hover .view-all-circle {
    transform: scale(1.1);
}

.news-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card-horizontal {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border-left: 5px solid transparent;
}

.news-card-img {
    width: 120px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card-horizontal:hover .news-card-img img {
    transform: scale(1.1);
}

.news-card-content {
    flex: 1;
}

.news-card-horizontal:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-left-color: var(--secondary-color);
}

.news-card-content span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-card-content .cat { color: #ff8c00; }
.news-card-content .date { color: #999; margin-left: 10px; }

.news-card-content h3 {
    margin: 10px 0 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.news-arrow {
    font-size: 24px;
    color: #ccc;
    transition: var(--transition);
}

.news-card-horizontal:hover .news-arrow {
    color: #ff8c00;
    transform: translateX(5px);
}

@media (max-width: 576px) {
    .news-card-horizontal {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .news-card-img {
        width: 100%;
        height: 180px;
        margin-bottom: 15px;
    }
    .news-arrow {
        display: none;
    }
}

@media (max-width: 991px) {
    .latest-news-grid {
        grid-template-columns: 1fr;
    }
}

/* Service Boxes */
.service-box-new {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-box-new:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-box-new:hover .service-icon {
    background: var(--primary-color);
    color: #fff;
}

.service-details h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-details p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link i {
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* MCE Featured Section */
.mce-featured {
    background-color: var(--bg-light);
}

.mce-img-wrapper {
    position: relative;
}

.mce-label {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--bg-white);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mce-label h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.mce-label p {
    margin: 0;
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mce-message h2 {
    font-size: 34px;
    line-height: 1.2;
}

.mce-message .message-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success:hover {
    background-color: #04522d;
    border-color: #04522d;
}

/* Profile Sections & Cards */
.profile-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #eee;
    height: 100%;
    margin-bottom: 20px;
}

.profile-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.profile-img {
    height: 300px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.profile-card:hover .profile-img img {
    transform: scale(1.05);
}

.profile-info {
    padding: 20px;
    text-align: center;
}

.profile-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.profile-info p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

.page-header {
    background: linear-gradient(rgba(5, 104, 57, 0.85), rgba(5, 104, 57, 0.85)), url('../dashboard/assets/img/heroImg/slider-2.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: #fff;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 40px;
    font-weight: 800;
}

/* Sidebar & Content Layouts */
.sticky-sidebar {
    position: sticky;
    top: 120px; /* Adjust based on header height */
    z-index: 10;
}

.sidebar-nav {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.sidebar-nav h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.sidebar-nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 10px 0;
    display: block;
    transition: var(--transition);
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-nav ul li a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.content-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.content-card h3 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.dept-head-box {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.dept-head-box img {
    border: 5px solid var(--bg-light);
}

.info-banner {
    background: var(--primary-color);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
}

.info-banner h4 {
    font-weight: 700;
}

/* Blog & News Styles */
.blog-post-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #eee;
    height: 100%;
}

.blog-post-card:hover {
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
    transform: translateY(-8px);
}

.blog-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-post-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-color);
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-footer {
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #999;
}

/* Pagination */
.custom-pagination {
    margin-top: 50px;
}

.custom-pagination ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    gap: 10px;
}

.custom-pagination li a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.custom-pagination li.active a,
.custom-pagination li a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Gallery & Portfolio Styles */
.gallery-item-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.gallery-img {
    height: 280px;
    overflow: hidden;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 104, 57, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    text-align: center;
    color: #fff;
}

.gallery-item-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item-card:hover .gallery-img img {
    transform: scale(1.1);
}

.gallery-overlay h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.gallery-overlay p {
    font-size: 13px;
    margin-bottom: 20px;
}

.gallery-btn {
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.gallery-btn:hover {
    transform: scale(1.1);
    color: #000;
}

/* Footer Redesign */
#footer {
    background: #002b17;
    padding: 0 0 30px 0;
    color: #fff;
    font-size: 14px;
}

#footer title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

#footer .footer-top {
    padding: 60px 0 30px 0;
    background: #00331b;
}

#footer .footer-top .footer-info h3 {
    font-size: 24px;
    margin: 0 0 20px 0;
    padding: 2px 0 2px 0;
    line-height: 1;
    font-weight: 700;
    color: var(--secondary-color);
}

#footer .footer-top .footer-links {
    margin-bottom: 30px;
}

#footer .footer-top .footer-links h4 {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    position: relative;
    padding-bottom: 12px;
}

#footer .footer-top .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .footer-top .footer-links ul i {
    padding-right: 2px;
    color: var(--secondary-color);
    font-size: 18px;
    line-height: 1;
}

#footer .footer-top .footer-links ul li {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

#footer .footer-top .footer-links ul a {
    color: rgba(255, 255, 255, 0.8);
    transition: 0.3s;
    display: inline-block;
    line-height: 1;
}

#footer .footer-top .footer-links ul a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

#footer .copyright {
    text-align: center;
    padding-top: 30px;
}

/* Quick Links Sidebar */
.quick-links-sidebar {
    position: fixed;
    right: -200px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    transition: all 0.3s ease;
}

.quick-links-sidebar:hover {
    right: 0;
}

.quick-links-btn {
    position: absolute;
    left: -40px;
    background: var(--primary-color);
    color: white;
    padding: 15px 10px;
    border-radius: 5px 0 0 5px;
    writing-mode: vertical-rl;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}

.quick-links-list {
    background: white;
    padding: 25px;
    margin: 0;
    list-style: none;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    width: 240px;
    border-left: 4px solid var(--secondary-color);
}

.quick-links-list li {
    margin-bottom: 15px;
}

.quick-links-list li:last-child {
    margin-bottom: 0;
}

.quick-links-list a {
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.quick-links-list a:hover {
    color: var(--primary-color);
}

.quick-links-list a i {
    font-size: 18px;
    color: var(--primary-color);
}

/* Final responsive polish: typography, spacing, and card rhythm */
section {
    padding: clamp(42px, 6vw, 72px) 0;
}

.page-header {
    padding: clamp(56px, 9vw, 92px) 0;
    margin-bottom: clamp(26px, 5vw, 50px);
}

.page-header h1 {
    font-size: clamp(28px, 4.3vw, 44px);
    line-height: 1.15;
}

.mce-message h2 {
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.22;
}

.content-card,
.sidebar-nav,
.dept-head-box,
.info-banner,
.blog-content {
    border-radius: 14px;
}

.content-card {
    padding: clamp(20px, 3.4vw, 42px);
}

.sidebar-nav {
    padding: clamp(18px, 3vw, 30px);
}

.service-box-new,
.profile-card,
.blog-post-card,
.gallery-item-card {
    border-radius: 14px;
}

.service-details h3,
.blog-title {
    font-size: clamp(18px, 2.4vw, 22px);
    line-height: 1.35;
}

.profile-info h4,
.sidebar-nav h4,
.content-card h3 {
    font-size: clamp(18px, 2.2vw, 24px);
}

@media (max-width: 991px) {
    .sticky-sidebar {
        position: static;
        top: auto;
        margin-bottom: 20px;
    }

    .profile-img {
        height: 250px;
    }

    .blog-img {
        height: 210px;
    }

    #footer .footer-top {
        padding: 44px 0 18px;
    }

    #footer .footer-top .footer-info h3 {
        font-size: 21px;
    }
}

@media (max-width: 767px) {
    section {
        padding: 40px 0;
    }

    .content-card,
    .sidebar-nav,
    .dept-head-box,
    .info-banner,
    .blog-content {
        padding: 18px;
    }

    .service-box-new {
        padding: 20px;
    }

    .news-intro h2 {
        font-size: clamp(28px, 8vw, 36px);
    }

    .mce-label {
        right: 12px;
        bottom: -14px;
        padding: 12px 16px;
    }

    .gallery-img {
        height: 230px;
    }

    .custom-pagination {
        margin-top: 34px;
    }

    .custom-pagination li a {
        width: 40px;
        height: 40px;
    }

    .quick-links-sidebar {
        display: none;
    }
}

@media (max-width: 420px) {
    .profile-img,
    .blog-img,
    .gallery-img {
        height: 200px;
    }

    .topbar .pay-now-btn {
        width: 100%;
        text-align: center;
    }

    .custom-pagination ul {
        gap: 6px;
    }
}
