html,
body {
    margin: 0;
    padding-left: 0;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.cm-img-col {
    padding: 0 !important;
}

.cm-profile-img {
    width: 100% !important;
    border-radius: 0 !important;
}


.stack-container {
    display: block;
    width: 100%;
}

.main-p {
    color: #fff;
    width: 100%;
    max-width: 500px;
}

.card-1-banner {
    height: 384px;
    width: 100%;
    position: relative;
    z-index: 1;
    background: url(../img/images/cheif-message-bg.webp)center/cover no-repeat;
    /* background: url("{{asset('public/img/images/about-banner.svg')}}") center/cover no-repeat; */
    display: flex;
    align-items: center;
    color: white;
}

.card-details-banner {
    height: 100vh;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1;
    background: url(../img/images/about-banner.svg)center/cover no-repeat;
    /* background: url("{{asset('public/img/images/about-banner.svg')}}") 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%;
}






.figma-dark-theme {
    background: #0d0d0d !important;

    color: #ffffff;

}


.motto-label {
    font-size: 28px;
    font-weight: 800;
    -webkit-text-stroke: 1px #fff;
    color: transparent;
}

.motto-text {
    /* font-family: 'YourCustomFont', serif; */

    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: lowercase;
}

.motto-desc {

    /* font-family: 'Urbanist', sans-serif; */
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    line-height: 24px;
    letter-spacing: 0%;
    color: rgba(255, 255, 255, 1);


    max-width: 700px;
    margin: 0 auto 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}


.bubble-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.bubble {
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b-lg {
    width: 150px;
    height: 150px;
}

.b-md {
    width: 110px;
    height: 110px;
}

.b-sm {
    width: 70px;
    height: 70px;
}

.icon-purple {
    background: #3f3d99;
    color: white;
    font-size: 24px;
}

.icon-red {
    background: #c32026;
    color: white;
    font-size: 24px;
}

.mission-vision-grid {
    max-width: 1000px;
    margin: 0 auto;
}

.dark-glass {
    background: linear-gradient(239.1deg, rgba(255, 255, 255, 0.12) 1.7%, rgba(255, 255, 255, 0.06) 81.79%);
    backdrop-filter: blur(21px);
    -webkit-backdrop-filter: blur(21px);

    max-width: 531px;
    width: 100%;
    height: auto;
    opacity: 1;

    display: flex;
    align-items: center;
    gap: 24px;
    padding: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);

    box-sizing: border-box;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .dark-glass {
        width: 100%;
        height: auto;
        padding: 20px;
    }
}

.box-icon {
    font-size: 40px;
    margin-right: 20px;
}

.yellow-text {
    color: #ffcc00;
}

.orange-text {
    color: #ff6600;
}

.box-text h3 {
    /* font-family: 'Urbanist', sans-serif; */
    font-weight: 600;
    font-style: normal;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: 0%;
    color: rgba(255, 255, 255, 1);


    margin-bottom: 10px;
    vertical-align: middle;
    display: flex;
    align-items: center;


    margin-top: 0;
}

.box-text p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #bbb;
}

.motto-hindi-img {

    width: 897px;
    height: 86.6px;


    display: block;
    opacity: 1;
    object-fit: contain;


    max-width: 90%;
}


.figma-dark-theme .motto-hindi-img {
    filter: brightness(0) invert(1);
}

.logoother {
    display: flex;
    flex-direction: row;
    /* gap: 22px; */
    align-items: center;
    /* height: 100px; */
    padding: 20px 0;
    justify-content: space-evenly;
    max-width: 90%;
    margin: auto;
    background: #383278;
    position: relative;
    border-radius: 12px;
    margin-top: -100px;
    margin-bottom: 40px;
}

.cm-quote-wrapper {
    /* The purple radial glow from the image */
    /* background: radial-gradient(circle at bottom right, rgba(58, 44, 131, 0.8) 0%, rgba(0,0,0,0) 50%); */
    position: relative;
}

.quote-border-box {
    position: relative;
    padding: 40px;
    border-left: 2px solid #fff;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

/* Quote Icons Styling */
.quote-icon {
    position: absolute;
    background: #000;
    /* Matches the background to "cut" the line */
    padding: 0 15px;
    font-size: 2.5rem;
    color: #4c66fb;
    /* Bright blue/purple quote color */
}

.top-icon {
    top: -30px;
    left: 50px;
}

.bottom-icon {
    bottom: -30px;
    left: 150px;
    transform: rotate(180deg);
}

.quote-text-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 300;
    max-width: 90%;
    color: #fff;
}

.cm-profile-img {
    width: 100%;
    max-width: 507px;
    height: 531px;
    object-fit: cover;
}

.text-primary {
    color: #7b61ff !important;
}


.custom-quote-container-dgp {
    position: relative;
    padding-top: 3rem;
    padding-bottom: 2rem;
    color: #333333;
    margin-bottom: 5rem;
}




.custom-quote-container {
    position: relative;
    padding-top: 3rem;
    padding-bottom: 2rem;
    color: #333333;
}

/* Remaining straight lines to fill gaps */
.quote-content {
    border-top: 2px solid transparent;
    /* Placeholder */
    position: relative;
}





.quote-icon {
    position: absolute;
    color: #3f459c;
    /* Purple color for icons */
    z-index: 2;
    background: #ffffff;
    /* Must match section background to hide lines */
    padding: 0 15px;
}

.top-a,
.top-q {
    top: -20px;
    left: 0;
}

.bottom-q,
.bottom-a {
    bottom: -20px;
    right: 0;
}

.quote-content p {
    font-weight: 400;
    font-style: normal;
    /*font-size: 20px;*/
    line-height: 1.6;
    color: #555555;

    letter-spacing: 0;
    vertical-align: middle;
    margin-bottom: 20px;

    text-edge: none;
    leading-trim: none;
}

#text-wrapper {
    /* Standard transition for the height */
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

/* Shrunk State */
.content-shrunk {
    max-height: 85px;
    /* Adjust based on how many lines you want to show */
}

/* Expanded State */
.content-expanded {
    max-height: 1000px;
    /* Needs to be larger than your total text content */
}

/* The "Fade Out" effect only visible when shrunk */
.content-shrunk::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(transparent, #ffffff);
    transition: opacity 0.3s ease;
}

.content-expanded::after {
    opacity: 0;
    /* Fades the gradient out when expanded */
}

/* Link Styling */
#toggle-link {
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

#toggle-link:hover {
    text-decoration: underline;
}

.quote-author .name {
    color: #d32f2f;
    font-size: 1.25rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.quote-author-dgp .name {
    color: #313160;
    font-size: 1.25rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.quote-author .designation,
.quote-author-dgp .designation {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #777777;
}

@media screen and (max-width: 768px) {
    .section-titil {

        font-size: 18px;
        line-height: 13.97px;
        letter-spacing: 0.04em;
    }

    .main-title {
        font-size: 2rem;
    }

    /* .figma-dark-theme {
                padding: 27px 40px !important;
            } */
    .section-title-red {
        font-size: 24px;
    }

    .container-fluid {
        margin-bottom: 12rem;
    }

}

@media (max-width: 991px) {

    .figma-dark-theme {
        padding: 0;
    }

    /* Stack components vertically */
    .cm-quote-wrapper .row {
        flex-direction: column !important;
    }

    /* Responsive Profile Image and Column Styling */
    .cm-img-col {
        padding: 0 15px !important;
        justify-content: center !important;
        margin-top: 20px;
    }

    .cm-profile-img {
        /* max-width: 100% !important; */
        height: auto;
        /* max-height: 380px; */
        /* Reduced image size for mobile */
        margin-bottom: 0;
        mask-image: none !important;
    }

    /* Overlap effect for the Quote Box */
    .custom-quote-container,
    .custom-quote-container-dgp {

        margin-left: auto;
        margin-right: auto;
        width: 90%;
        /*padding: 3rem 1.5rem 2rem !important;*/
    }

    /* Centered Quote Icons */
    .quote-icon img {
        max-width: 25px;
        height: auto;
    }
    
    .quote-icon {
        padding: 0 10px;
    }

    .quote-icon.top-q,
    .quote-icon.top-a {
        /* left: 50% !important; */
        transform: translateX(-50%) !important;
        top: -20px !important;
    }

    /* Adjust the white L-borders to be smaller on mobile */
    .custom-quote-container::before,
    .custom-quote-container-dgp::before,
    .custom-quote-container::after,
    .custom-quote-container-dgp::after {
        width: 45% !important;
        height: 25% !important;
    }

    /* Hide desktop helper lines that break on small screens */
    .custom-quote-container .top-q::before,
    .custom-quote-container .bottom-q::before,
    .custom-quote-container .top-a::before {
        display: none !important;
    }

    .quote-content p {
        font-size: 14px !important;
        line-height: 1.6;
        text-align: start;
    }

    .quote-author,
    .quote-author-dgp {
        text-align: center;
        padding-top: 15px;
    }
	
	
	.quote-content .designation{
		text-align: center;
	}
	.custom-quote-container-dgp, .custom-quote-container {
		padding-top:1rem;
	}
}

.custom-margin-top {
    margin-top: 8rem;
}
@media screen and (max-width: 768px) {
     .container-fluid {
        margin-bottom: 6rem;
    }
}
/* 
@media (max-width: 768px) {
    .custom-margin-top {
        margin-top: 1rem;
    }
} */

/* New Chief's Message UI */
.nameplate {
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    padding: 15px 30px;
    z-index: 10;
    margin-bottom: 30px;
    margin-top: 20px;
}

.nameplate-odd {
    margin-left: 45px;
    background: #c32026;
}

.nameplate-even {
    margin-right: 45px;
    background: #383278;
}

@media (max-width: 991px) {
    .nameplate {
        margin-left: 0 !important;
        margin-right: 0 !important;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        text-align: center;
    }
    .nameplate-designation {
        border-left: none !important;
        padding-left: 0 !important;
        margin-top: 5px;
        width: 100%;
    }
    .nameplate-name {
        margin-right: 0 !important;
    }
}

.nameplate-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-right: 15px;
    margin-bottom: 0;
    color: #ffffff;
}

.nameplate-designation {
    font-size: 0.9rem;
    font-weight: 400;
    border-left: 1px solid rgba(255,255,255,0.5);
    padding-left: 15px;
}

.quote-content-new {
    padding: 0 15px;
}

.quote-content-new .text-wrapper {
    font-size: 14px;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 10px;
}

.quote-content-new .text-wrapper p:first-child::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('../img/images/invert-coma.svg') center/contain no-repeat;
    margin-right: 10px;
    vertical-align: text-top;
}

.quote-content-new .text-wrapper p:last-child::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('../img/images/invert-coma.svg') center/contain no-repeat;
    transform: rotate(180deg);
    margin-left: 10px;
    vertical-align: text-top;
}