html,
body {
    margin: 0;
    padding: 0;
    overflow-x: visible !important;
    overflow-y: visible !important;
}


.stack-container {
    display: block;
    width: 100%;
}


.card-1-banner {
    height: 384px;
    width: 100%;
    position: relative;
    z-index: 1;
    background: url(../img/images/events-bg.jpg)center/cover no-repeat;
     
    display: flex;
    align-items: center;
    color: white;
}

.container-fluid {

    z-index: 10;

}

.card-1-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0) 50%,
            rgba(0, 0, 0, 0.8) 100%);

    z-index: 1;

}


.stack-card {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 1 !important;
    box-sizing: border-box;
    margin-top: -45px;
}


#history-card {
    z-index: 2;
    margin-top: 0;
}


#travancore-card {
    z-index: 3;
    /* margin-top: 0; */
}


.card-inner-content {
    background: #ffffff;
    width: 100%;
    margin: 0 auto;
    border-radius: 33px 33px 0 0;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 12;
}


.section-titil {
    font-size: 48px;
    font-weight: 800;
    -webkit-text-stroke: 1px #fff;
    color: transparent;
    margin-top: 5rem;
    text-align: center;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    position: relative;
    z-index: 10;
    text-align: center;
}

.main-title span {
    color: rgba(198, 40, 40, 1);
}

.mainhed {
    font-size: 2.5rem;
    font-weight: 700;
}

.mainhed span {
    color: #e31e24;
}

.img-left {
    float: left;
    margin: 0 30px 20px 0;
    border-radius: 20px;
    max-width: 40%;
}



.main-p {

    max-width: 691px;
    min-height: 48px;
    margin-top: 20px;



    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    line-height: 24px;
    letter-spacing: 0%;


    opacity: 1;
    display: flex;
    align-items: center;
    color: #FFFFFF;
}

/* Responsive adjustment for Mobile */
@media (max-width: 768px) {
    .main-p {

        width: 90%;
        height: auto;
    }
}







.figma-dark-theme .motto-hindi-img {
    filter: brightness(0) invert(1);
}

.mission-icon {

    width: 51.75px;
    height: 52.5px;


    max-width: 94.5px;
    max-height: 95.87px;


    opacity: 1;
    display: block;
    object-fit: contain;


    margin: 0;
    padding: 0;
    border: none;
}

.vission-icon {

    width: 61.75px;
    height: 62.5px;


    max-width: 94.5px;
    max-height: 95.87px;


    opacity: 1;
    display: block;
    object-fit: contain;


    margin: 0;
    padding: 0;
    border: none;
}

.figma-white-theme {
    background: #ffffff !important;
    color: #444444;
}

.people-centric-title {

    font-family: 'Urbanist', sans-serif;
    font-weight: 700;

    font-style: normal;
    font-size: 38px;
    line-height: 60px;
    letter-spacing: 0%;
    text-transform: uppercase;
    vertical-align: middle;


    color: #2b2a6d;
    margin-bottom: 40px;


    margin-top: 0;
    display: block;
}

.people-centric-title span {
    color: rgba(198, 40, 40, 1)
}


.police-showcase-img img {
    width: 100%;
    height: auto;
    display: block;
}


.people-centric-text p {
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 25px;
    text-align: left;
}


.people-centric-text p:first-of-type {
    margin-top: 0;
}


@media (max-width: 991px) {
    .figma-white-theme {
        padding: 40px 20px !important;
    }

    .people-centric-title {
        font-size: 28px;
    }
}


.news-card {

    width: 100%;
    /* max-width: 393px; */
    height: 100%;
    /* Make card stretch to match tallest in row */
    /* min-height: 369px; */


    background: rgba(255, 255, 255, 1);
    opacity: 1;
    border-radius: 20px;
    border: none;
    overflow: hidden;


    box-shadow: 0px 1.18px 40px 0px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;

    /* Layout */
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    position: relative;
}




.news-card .card-body {
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card img {
    width: 100%;
    border-radius: 20px;
    padding: 10px;
    height: auto;
    object-fit: fill;
	aspect-ratio: 16 / 9;
}

.news-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #333;

}

.news-text {
    font-size: 16px;
    color: #666;

    line-height: 1.6;
	display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    min-height: calc(1.6em * 4);
}


/* .read-more {
    color: #c62828;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;

    display: inline-block; 
    transition: all 0.3s ease; 
}

.read-more:hover {
    color: #8e0000; 
    transform: translateX(8px); 
    letter-spacing: 0.5px; 
} */
.read-more {
    color: #c62828;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 15px;
    /* Added padding for a larger click area */
    display: inline-block;
    /* Changed from block to fit content */
    border-radius: 5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    background: transparent;
    margin-top: auto;
    align-self: flex-start;
    z-index: 2;
}

/* The Arrow Animation */
.read-more span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #b71c1c;
    background-color: rgba(198, 40, 40, 0.05);
    padding-left: 20px;
}

.read-more:hover span {
    transform: translateX(8px);
}


.read-more::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 20px;
    background-color: #c62828;
    transition: width 0.3s ease;
}

.read-more:hover::after {
    width: 40%;
}

.custom-pagination-white {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.p-btn {
    background: transparent;
    border: none;
    color: #383278;
    font-weight: 600;
    cursor: pointer;
}

.page-num-white {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.page-num-white.active {
    background: #c62828 !important;
    color: white !important;
    border-color: #c62828;
}

.dots-white {
    color: #999;
}

.custom-pagination-white {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.page-num-white {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E0E0E0;
    /* Light grey border */
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    color: #4F4F4F;
}

.page-num-white.active {
    background-color: #c62828 !important;
    /* Kerala Police Red */
    color: #FFFFFF !important;
    border-color: #c62828;
}

.dots-white {
    font-weight: bold;
    color: #828282;
    padding: 0 5px;
}

.p-btn {
    background: none;
    border: none;
    color: #333;
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .section-titil {

        font-size: 18px;
        line-height: 13.97px;
        letter-spacing: 0.04em;
    }

    .main-title {
        font-size: 30px;
    }

    .figma-dark-theme {
        padding: 27px 40px !important;
    }

    .container-fluid {
        margin-bottom: 6rem;
    }
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    transition: var(--trans30);
    -webkit-transition: var(--trans30);
}



.event-detail-wrapper {

    padding: 20px;
    font-family: 'Inter', sans-serif;
}


.event-date {

    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0em;
    color: #383278;
    vertical-align: middle;
    display: inline-block;
}

.event-date-row i {
    font-size: 16px;
}


.event-detail-title {

    font-weight: 600;
    font-size: 32px;
    line-height: 40px;
    letter-spacing: 0%;
    color: #c62828;
    vertical-align: middle;


    margin: 25px 0;
    display: block;
    text-transform: none;
}

.event-detail-body p {

    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0%;
    color: #6b6b6b;
    vertical-align: middle;


    margin-bottom: 20px;
    text-align: justify;
    display: block;
}

.event-detail-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

.iner-banner h2 {
    color: #ffffff;
    font-size: 60px;
    font-weight: 600;
}
@media screen and (max-width: 768px) {
    .iner-banner h2 {
        font-size: 30px;
    }
    .bancont{
       padding-top: 0 !important;
    }
    .event-detail-title{
        font-size: 15px;
       /* text-align: center;*/
    }
}
.bancont {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 143px;
    z-index: 11;
    position: relative;
    justify-content: center;
    height: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography - Urbanist is used for Meta/Titles */
.main-news-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #0e3f6c;
    /* Deep Blue from image */
    line-height: 1.2;
}

.meta-date {
    font-size: 13px;
    color: #6c757d;
}

.badge-tag {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

/* Sidebar Styling */
.sidebar-title {
    /* font-family: 'Urbanist', sans-serif; */
    font-weight: 600;
    color: #0e3f6c;
    border-left: 4px solid #c62828;
    padding-left: 10px;
}

.view-all {
    font-size: 12px;
    text-decoration: none;
    color: #0e3f6c;
    font-weight: 600;
}

.related-item {
    cursor: pointer;
    transition: 0.2s;
}

.related-item:hover .thumb-text {
    color: #c62828;
}

.thumb-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.thumb-date {
    font-size: 11px;
    color: #c62828;
    font-weight: 600;
}

.thumb-text {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Pills */
.category-pill {
    padding: 6px 15px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: 0.3s;
}

.category-pill:hover {
    background: #0e3f6c;
    color: white;
    border-color: #0e3f6c;
}

/* Article Body */
.event-detail-body p {
    /*  font-family: 'Urbanist', sans-serif;*/
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.iner-banner {
    height: 384px;
    position: relative;
    color: #fff;
    background: url(../img/images/events-bg.jpg)center/cover no-repeat;
    ;
    /* background: url(../img/images/iner-bac.webp); */
    background-size: cover;
    background-repeat: no-repeat;
}

.innercont {
    position: relative;
    padding: 60px 0;
    margin-top: -30px;
    background: #fff;
    z-index: 1;
    border-radius: 33px 33px 0 0;
}

.view-all {
    /* font-family: 'Urbanist', sans-serif; */
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #0e3f6c;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: #c62828;
    gap: 10px;
}


.view-all::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #c62828;
    transition: width 0.3s ease;
}

.view-all:hover::after {
    width: 100%;
}

@media (max-width: 768px) {

    #travancore-card {

        /* position: relative; */
        z-index: 15;
    }

}
.custom-margin-top {
    margin-top: 8rem;
}
@media screen and (max-width: 768px) {
    /* .container-fluid {
        margin-bottom: 12rem;
    } */
}

@media (max-width: 768px) {
    .custom-margin-top {
        margin-top: 1rem;
    }
}