* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
}

/* Global Responsive Variables */
:root {
    --primary-color: #01411C;
    --secondary-color: #5B9A70;
    --danger-color: #BE4646;
    --text-muted: #5e5f5e;
    --white: #ffffff;
    --light-bg: #EBF4EF;
    --card-shadow: 0px 4px 12px #e4e4e4;
    --border-radius: 10px;
}

/* Base Styles */
body {
    overflow-x: hidden;

}

.main-history-container {
    min-height: calc(100vh - 86px);
    max-height: calc(100vh - 86px);
    overflow: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ticker-container {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: solid 1px #dddddd;
    overflow: hidden;
    height: 40px;
}

.ticker-title {
    /* background-color: #dc3545; */
    color: #ffffff;
    padding: 10px 15px;
    font-weight: bold;
    flex-shrink: 0;
    z-index: 1;
    animation: blinkingBg 1s infinite;
    cursor: pointer;
}

@keyframes blinkingBg {
    0% {
        background-color: #e76d79;
    }

    50% {
        background-color: #961c1c;
    }

    100% {
        background-color: #e76d79;
    }
}

.ticker-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 50s linear infinite;
    font-size: 14px;
}

.ticker-text:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translate(-100%);
    }
}


.announcement-ticker-container {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: solid 1px #dddddd;
    overflow: hidden;
    height: 40px;
}

.announcement-ticker-title {
    /* background-color: #dc3545; */
    color: #ffffff;
    padding: 10px 15px;
    font-weight: bold;
    flex-shrink: 0;
    z-index: 1;
    animation: blinkingBg 1s infinite;
    cursor: pointer;
}

@keyframes blinkingBg {
    0% {
        background-color: #e76d79;
    }

    50% {
        background-color: #961c1c;
    }

    100% {
        background-color: #e76d79;
    }
}

.announcement-ticker-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
    font-size: 14px;
}

.announcement-ticker-text:hover {
    animation-play-state: paused;

}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translate(-100%);
    }
}

/* Ensure proper padding for all sections */
.hero-section,
.important-links-section,
.about-mod-section,
.attached-department-section,
.mod-gallery-section,
.mod-services-section,
.emergency-contacts-section {
    padding-left: 20px;
    padding-right: 20px;
}

/* Hero Section */
.hero-section {
    background-image: url(../images/map1.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 100%;
    padding: 0;
    max-height: calc(100vh - 166px);
    min-height: calc(100vh - 166px);
}

.hero-section .sub-hero-section {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.hero-section .sub-hero-section .hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
}

.hero-section .sub-hero-section .hero-top .top-left {
    flex: 1;
    max-width: 800px;
}

.hero-section .sub-hero-section .main-left-heading {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
    text-align: center;
}

.hero-section .sub-hero-section .hero-top .mainleft-para {
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.6;
}

.hero-section .sub-hero-section .hero-top .top-left .buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-section .sub-hero-section .hero-top .top-left .buttons .btn {
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hero-section .sub-hero-section .hero-top .top-left .buttons .btn-success {
    background-color: var(--primary-color);
    border: none;
}

.hero-section .sub-hero-section .hero-top .top-left .buttons .btn-outline-success {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.hero-section .sub-hero-section .hero-top .top-left .buttons .btn-outline-success:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
    border: none;
}

.hero-section .sub-hero-section .hero-top .top-right {
    flex: 0 0 auto;
    max-width: 500px;
    background: #ffffff5b;
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-section .sub-hero-section .hero-top .top-right img {
    width: 48px;
    height: 48px;
    margin-right: 12px;
    object-fit: cover;
}

.hero-section .sub-hero-section .hero-top .top-left .welcome-msg {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 800px;
    text-align: center;
}

.hero-section .sub-hero-section .hero-bottom .mission-role {
    max-width: 1200px;
    flex-wrap: nowrap;
    margin-top: 16px;
}

.hero-section .sub-hero-section .secy-message-card .b-card {
    padding: 8px;
    border-radius: 10px;
    border-left: 5px solid var(--secondary-color);
    background-color: #5b9a701f;
    /* max-width: 318px; */
}

.hero-section .sub-hero-section .hero-bottom .secy-message-card .card-header {
    display: flex;
    align-items: center;
    margin-bottom: 0px;
}

.hero-section .sub-hero-section .hero-bottom .secy-message-card .secy-img-intro .content-container {
    padding-left: 35px;
    padding-right: 12px;
}

.hero-section .sub-hero-section .hero-bottom .secy-message-card .secy-img-intro .secy-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #5b9a701f;
    border-radius: 10px;
}

.hero-section .sub-hero-section .hero-bottom .secy-message-card .title-description .title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.hero-section .sub-hero-section .hero-bottom .secy-message-card .quote-title .title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.hero-section .sub-hero-section .hero-bottom .secy-message-card .quote-writer {
    font-size: 12px;
    font-style: italic;
    font-weight: 600;
}

.hero-section .sub-hero-section .hero-bottom .secy-message-card .readmore {
    background-color: #4b8c66;
    border: none;
    font-size: 13px;
}

.hero-section .sub-hero-section .hero-bottom .secy-message-card .title-description .secy-name {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    margin: 0;
}

.hero-section .sub-hero-section .hero-bottom .secy-message-card .secy-message-para {
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    margin: 0;
    line-height: 1.6;
    text-align: justify;


}

.hero-section .sub-hero-section .hero-bottom .secy-message-card .ellipsis-text {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.hero-section .sub-hero-section .hero-bottom .secy-message-card .full-text {
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    height: auto !important;
}

.hero-section .sub-hero-section .hero-bottom .secy-message-card .read-more-btn {
    font-size: 13px;
    padding: 8px 16px;
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hero-section .sub-hero-section .hero-bottom .secy-message-card .read-more-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.hero-section .sub-hero-section .hero-top .top-right .card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.hero-section .sub-hero-section .hero-top .top-right .title-description .title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.hero-section .sub-hero-section .hero-top .top-right .title-description .description {
    font-size: 14px;
    color: var(--text-muted);
}

.hero-section .sub-hero-section .hero-top .top-right .title-description .secy-name {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    margin: 0;
}

.hero-section .sub-hero-section .hero-top .top-right .secy-message-para {
    font-size: 15px;
    font-weight: 400;
    padding-top: 15px;
    color: var(--text-muted);
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.hero-section .sub-hero-section .hero-top .top-right .read-more-btn {
    font-size: 13px;
    padding: 8px 16px;
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hero-section .sub-hero-section .hero-top .top-right .read-more-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Hero Bottom Section */


/* .hero-section .sub-hero-section .hero-bottom {
    display: flex;
    justify-content: space-between;
    gap: 30px;
} */

.hero-section .sub-hero-section .hero-bottom .latest-announcements,
.hero-section .sub-hero-section .hero-bottom .latest-post {
    flex: 1;
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.hero-section .sub-hero-section .hero-bottom .announcement-heading,
.hero-section .sub-hero-section .hero-bottom .post-heading {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.hero-section .sub-hero-section .hero-bottom .read-all-container {
    text-align: right;
    margin-top: 20px;
}

.hero-section .sub-hero-section .hero-bottom .read-all-container .read-all-btn {
    font-size: 11px;
    padding: 5px 10px;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background-color: transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-section .sub-hero-section .hero-bottom .read-all-container .read-all-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.hero-section .sub-hero-section .hero-bottom .announcement-heading img,
.hero-section .sub-hero-section .hero-bottom .post-heading img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.hero-section .sub-hero-section .hero-bottom .announcement-heading h6,
.hero-section .sub-hero-section .hero-bottom .post-heading h6 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Announcement Cards */
.hero-section .sub-hero-section .hero-bottom .unread-announcement-card,
.hero-section .sub-hero-section .hero-bottom .read-announcement-card {
    padding: 16px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.hero-section .sub-hero-section .hero-bottom .unread-announcement-card {
    background-color: #EEF7F1;
    border-left: 5px solid var(--secondary-color);
}

.hero-section .sub-hero-section .hero-bottom .read-announcement-card {
    background-color: #EEF7F1;
    border-left: 5px solid var(--secondary-color);
}

.hero-section .sub-hero-section .hero-bottom .announcement-card-heading {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: left;
}

.hero-section .sub-hero-section .hero-bottom .unread-announcement-card .announcement-card-heading {
    color: var(--secondary-color);
}

.hero-section .sub-hero-section .hero-bottom .read-announcement-card .announcement-card-heading {
    color: var(--secondary-color);
}

.hero-section .sub-hero-section .hero-bottom .announcement-card-para {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Security Cards */
.hero-section .sub-hero-section .hero-bottom .security-card {
    background-color: var(--white);
    padding: 16px;
    border-left: 5px solid var(--secondary-color);
    border-radius: var(--border-radius);
    margin-top: 20px;
    box-shadow: var(--card-shadow);
}

.hero-section .sub-hero-section .hero-bottom .security-card-main {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.hero-section .sub-hero-section .hero-bottom .security-icon img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.hero-section .sub-hero-section .hero-bottom .security-card-heading {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.hero-section .sub-hero-section .hero-bottom .security-card-para {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* Important Links Section */
.important-links-section {
    padding: 60px 0;
}

.important-links-section .links-section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.important-links-section .imp-links-heading {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 10px;
}

.important-links-section .imp-links-description {
    font-size: 16px;
    color: var(--text-muted);
}

.important-links-section .important-links-content {
    max-width: 1200px;
    margin: 0 auto;
}

.important-links-section .imp-link-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.important-links-section .imp-link-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 280px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.important-links-section .imp-link-card:hover {
    transform: translateY(-5px);
}

.important-links-section .imp-link-card img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 10px;
    padding: 10px;
    background: rgba(91, 154, 112, 0.1);
}

.important-links-section .imp-link-card .link-card-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
    line-height: 1.3;
}

.important-links-section .imp-link-card .link-card-description {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.4;
}

.important-links-section .imp-link-card .btn-success {
    background-color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.important-links-section .imp-link-card .btn-success:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 154, 112, 0.3);
}



/* Attached Department Section */
.attached-department-section {
    background-color: #FFFFFF;
    padding: 60px 0;
}

/* Large screen optimization for 14 departments - 2 rows */
@media (min-width: 1400px) {
    .attached-department-section .attached-department-crousel {
        grid-template-columns: repeat(7, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .attached-department-section .attached-department-crousel {
        grid-template-columns: repeat(7, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .attached-department-section .attached-department-crousel {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
}

.attached-department-section .attached-department-heading {
    text-align: center;
    margin-bottom: 40px;
}

.attached-department-section .department-main-heading {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 10px;
}

.attached-department-section .department-main-description {
    font-size: 16px;
    color: var(--text-muted);
}

.attached-department-section .attached-department-crousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.attached-department-section .attached-department-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #cccccc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    transition: transform 0.3s ease;
}

.attached-department-section .attached-department-card:hover {
    transform: translateY(-5px);
}

.attached-department-section .attached-department-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 15px;
}

.attached-department-section .attached-department-card .about-card-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.attached-department-section .attached-department-card .btn-success {
    background-color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Gallery Section */
.mod-gallery-section {
    background-color: #EBF4EF;
    padding: 60px 0;
    min-height: calc(100vh - 86px);
    max-height: calc(100vh - 86px);
    overflow: auto;
}

.mod-gallery-section .mod-gallery-heading {
    text-align: center;
    margin-bottom: 40px;
}

.mod-gallery-section .gallery-main-heading {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.mod-gallery-section .gallery-main-description {
    font-size: 16px;
    color: var(--text-muted);
}

/* Gallery Tabs */
.gallery-tabs {
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-tab {
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.gallery-tab:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.gallery-tab.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Gallery Content */
.gallery-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.gallery-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #bbb;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Responsive Gallery Styles */
@media (max-width: 768px) {
    .gallery-tabs {
        gap: 8px;
    }

    .gallery-tab {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 100px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .gallery-item {
        max-width: 200px;
        max-height: 200px;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 12px 16px;
        font-size: 20px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .gallery-tabs {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .gallery-tab {
        width: 200px;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }
}

/* Services Section */
.mod-services-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.mod-services-section .mod-services-heading {
    text-align: center;
    margin-bottom: 40px;
}

.mod-services-section .services-main-heading {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 10px;
}

.mod-services-section .services-main-description {
    font-size: 16px;
    color: var(--text-muted);
}

.mod-services-section .mod-services-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.mod-services-section .mod-service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.mod-services-section .mod-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.mod-services-section .mod-service-card:hover img {
    transform: scale(1.1);
    background: rgba(91, 154, 112, 0.15);
}

.mod-services-section .mod-service-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 12px;
    padding: 12px;
    background: rgba(91, 154, 112, 0.1);
    transition: all 0.3s ease;
}

.mod-services-section .mod-service-card .service-card-heading {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.3;
}

.mod-services-section .mod-service-card .service-card-description {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.mod-services-section .mod-service-card .btn-success {
    background-color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
    margin-bottom: 0px;
}

.mod-services-section .mod-service-card .btn-success:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 154, 112, 0.3);
}

/* Emergency Contacts Section */
.emergency-contacts-section {
    padding: 60px 0;
}

.emergency-contacts-section .emergency-contact-heading {
    text-align: center;
    margin-bottom: 40px;
}

.emergency-contacts-section .main-emergency-heading {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 10px;
}

.emergency-contacts-section .main-emergency-description {
    font-size: 16px;
    color: var(--text-muted);
}

.emergency-contacts-section .emergency-contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.emergency-contacts-section .emergency-contact-card .emergency-card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.emergency-contacts-section .emergency-contact-card .emergency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.emergency-contacts-section .emergency-contact-card .emergency-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.emergency-contacts-section .emergency-contact-card .emergency-card-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.emergency-contacts-section .emergency-contact-card .emergency-card-description {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.emergency-contacts-section .emergency-contact-card hr {
    margin: 5px 0;
    border-color: #e0e0e0;
}

.emergency-contacts-section .emergency-sub-contact {
    margin-bottom: 15px;
}

.emergency-contacts-section .emergency-sub-contact img {
    width: 20px !important;
    height: 20px !important;
    border-radius: 0 !important;
}


.emergency-contacts-section .contact-number,
.emergency-contacts-section .contact-mail {
    display: flex;
    margin-bottom: 10px;
}

.emergency-contacts-section .contact-number img,
.emergency-contacts-section .contact-mail img {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    margin-bottom: 0;
}

.emergency-contacts-section .contact-number-text {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.emergency-contacts-section .emergency-contact-card .btn-success {
    background-color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .important-links-section .imp-link-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .mod-services-section .mod-services-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .mod-services-section .mod-service-card {
        height: 300px;
        padding: 25px;
    }

    .emergency-contacts-section .emergency-contact-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .emergency-contacts-section .emergency-contact-card .emergency-card {
        height: 300px;
        padding: 20px;
    }

    .attached-department-section .attached-department-crousel {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }

    .container {
        padding: 0 18px;
    }

    /* Ensure proper padding for all sections on tablet */
    .hero-section,
    .important-links-section,
    .about-mod-section,
    .attached-department-section,
    .mod-gallery-section,
    .mod-services-section,
    .emergency-contacts-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-section .sub-hero-section .hero-top {
        flex-direction: column;
        gap: 20px;
    }

    .hero-section .sub-hero-section .hero-top .top-right {
        max-width: 100%;
    }

    .hero-section .sub-hero-section .hero-bottom {
        flex-direction: column;
        gap: 20px;
    }



    .mod-gallery-section .mod-gallery-images {
        grid-template-columns: 1fr;
    }

    .mod-gallery-section .gallery-left {
        flex-direction: row;
    }

    .mod-gallery-section .gallery-left img {
        flex: 1;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Ensure proper padding for all sections on mobile */
    .hero-section,
    .important-links-section,
    .about-mod-section,
    .attached-department-section,
    .mod-gallery-section,
    .mod-services-section,
    .emergency-contacts-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-section {
        padding: 15px 0;
    }

    .hero-section .sub-hero-section {
        min-height: auto;
        padding: 20px 0;
    }

    .hero-section .sub-hero-section .hero-top .top-left .buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-section .sub-hero-section .hero-top .top-left .buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-section .sub-hero-section .hero-top .top-right {
        padding: 15px;
    }

    .hero-section .sub-hero-section .hero-top .top-right .secy-message-para {
        font-size: 13px;
    }

    .important-links-section,
    .about-mod-section,
    .attached-department-section,
    .mod-gallery-section,
    .mod-services-section,
    .emergency-contacts-section {
        padding: 40px 0;
    }

    .important-links-section .imp-link-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .important-links-section .imp-link-card {
        height: auto;
        min-height: 220px;
        padding: 20px;
    }

    .important-links-section .imp-link-card img {
        width: 55px;
        height: 55px;
        margin-bottom: 12px;
    }

    .important-links-section .imp-link-card .link-card-heading {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .important-links-section .imp-link-card .link-card-description {
        font-size: 12px;
        margin-bottom: 12px;
    }



    .attached-department-section .attached-department-crousel {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
    }

    .attached-department-section .attached-department-card {
        height: auto;
        min-height: 180px;
        padding: 15px;
    }

    .mod-gallery-section .gallery-left {
        flex-direction: column;
    }

    .mod-services-section .mod-services-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mod-services-section .mod-service-card {
        height: auto;
        min-height: 280px;
        padding: 25px;
    }

    .mod-services-section .mod-service-card img {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .mod-services-section .mod-service-card .service-card-heading {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .mod-services-section .mod-service-card .service-card-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .mod-services-section .mod-service-card {
        height: auto;
        min-height: 250px;
    }

    .emergency-contacts-section .emergency-contact-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .emergency-contacts-section .emergency-contact-card .emergency-card {
        height: auto;
        min-height: 280px;
        padding: 20px;
    }

    .emergency-contacts-section .emergency-contact-card .emergency-card img {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }

    .emergency-contacts-section .emergency-contact-card .emergency-card-heading {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .emergency-contacts-section .emergency-contact-card .emergency-card-description {
        font-size: 12px;
        margin-bottom: 12px;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    .mod-services-section {
        padding: 60px 0;
    }

    .mod-services-section .mod-service-card {
        padding: 20px;
        min-height: 260px;
    }

    .mod-services-section .mod-service-card img {
        width: 55px;
        height: 55px;
        margin-bottom: 12px;
    }

    .mod-services-section .mod-service-card .service-card-heading {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .mod-services-section .mod-service-card .service-card-description {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .emergency-contacts-section .emergency-contact-card .emergency-card {
        padding: 18px;
        min-height: 260px;
    }

    .emergency-contacts-section .emergency-contact-card .emergency-card img {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
    }

    .emergency-contacts-section .emergency-contact-card .emergency-card-heading {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .emergency-contacts-section .emergency-contact-card .emergency-card-description {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .container {
        padding: 0 12px;
    }

    /* Ensure proper padding for all sections on small mobile */
    .hero-section,
    .important-links-section,
    .about-mod-section,
    .attached-department-section,
    .mod-gallery-section,
    .mod-services-section,
    .emergency-contacts-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-section .sub-hero-section .hero-top .main-left-heading {
        font-size: 0.5rem;
    }

    .hero-section .sub-hero-section .hero-top .mainleft-para {
        font-size: 8px;
    }

    .hero-section .sub-hero-section .hero-top .top-left .buttons .btn {
        font-size: 13px;
        padding: 8px 15px;
    }

    .important-links-section .imp-link-card,
    .mod-services-section .mod-service-card,
    .emergency-contacts-section .emergency-contact-card .emergency-card {
        padding: 20px;
    }

    .attached-department-section .attached-department-card {
        padding: 15px;
    }


}

/* Print Styles */
@media print {
    .hero-section {
        background: none !important;
        color: black !important;
    }

    .btn {
        display: none !important;
    }

    .hero-section .sub-hero-section .hero-top .main-left-heading,
    .hero-section .sub-hero-section .hero-top .mainleft-para {
        color: black !important;
    }
}

/* Person Cards Styles */
.person-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 400px;
}

/* NEW Badge Animation Styles */
.new-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 10;
}

.new-svg {
    width: 60px;
    height: 20px;
    animation: newPulse 2s ease-in-out infinite;
}

@keyframes newPulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

/* Make announcement cards relative for badge positioning */
.hero-section .sub-hero-section .hero-bottom .unread-announcement-card,
.hero-section .sub-hero-section .hero-bottom .read-announcement-card {
    position: relative;
    overflow: visible;
}

.person-card {
    background: var(--white);
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.person-card:hover {
    transform: translateY(-2px);
}

.person-image img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}

.person-info {
    flex: 1;
}

.person-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 4px 0;
}

.person-designation {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

/* Responsive styles for person cards */
@media (max-width: 768px) {
    .person-cards-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .person-card {
        padding: 12px;
    }

    .person-image img {
        width: 45px;
        height: 45px;
    }

    .person-name {
        font-size: 13px;
    }

    .person-designation {
        font-size: 11px;
    }
}

.attached-department-image:hover {
    cursor: pointer;
}

.triservices-detailed-page {
    min-height: calc(100vh - 86px);
    overflow: auto;
}