/* Smooth scrolling configuration */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Original Font Stack - English */
body {
    scroll-behavior: smooth;
    font-family: var(--creote-family-two);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Marathi Language Support - Professional fonts like UMC */
html[lang="mr-IN"] body,
html[lang="mr"] body,
body[lang="mr-IN"],
body[lang="mr"],
.marathi-text,
[lang="mr"],

/* English Language - Original Font */
html[lang="en-US"] body,
html[lang="en"] body,
body[lang="en-US"],
body[lang="en"],
.english-text,
[lang="en"],
[lang="en-US"] {
    font-family: var(--creote-family-two) !important;
}

/* Marathi Headings - Professional Style */
html[lang="mr-IN"] h1,
html[lang="mr-IN"] h2,
html[lang="mr-IN"] h3,
html[lang="mr-IN"] h4,
html[lang="mr-IN"] h5,
html[lang="mr-IN"] h6,
html[lang="mr"] h1,
html[lang="mr"] h2,
html[lang="mr"] h3,
html[lang="mr"] h4,
html[lang="mr"] h5,
html[lang="mr"] h6,
.marathi-text h1,
.marathi-text h2,
.marathi-text h3,
.marathi-text h4,
.marathi-text h5,
.marathi-text h6 {
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Marathi Paragraph Text */
html[lang="mr-IN"] p,
html[lang="mr"] p,
.marathi-text p {
    font-size: 16px;
    line-height: 1.8;
    font-weight: 600;
}

/* Marathi Menu & Navigation */
html[lang="mr-IN"] .navigation_menu,
html[lang="mr"] .navigation_menu,
html[lang="mr-IN"] .nav-link,
html[lang="mr"] .nav-link,
.marathi-text .nav-link {
    font-size: 15px;
    font-weight: 600;
}

/* Optimize scroll performance */
* {
    scroll-behavior: smooth;
}

/* Original Typography - English */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--creote-family-one);
    font-weight: 700;
    line-height: 1.3;
    color: #283678;
    margin-bottom: 1rem;
}

/* Original English Headings */
h1,
.h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 54px;
}

h2,
.h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 44px;
}

h3,
.h3 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 38px;
}

h4,
.h4 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 34px;
}

h5,
.h5 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 30px;
}

h6,
.h6 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 26px;
}

/* Marathi Headings - Slightly larger for better readability */
html[lang="mr-IN"] h1,
html[lang="mr"] h1,
html[lang="mr-IN"] .h1,
html[lang="mr"] .h1 {
    font-size: 2.625rem;
    /* 10% larger than English */
    line-height: 1.25;
}

html[lang="mr-IN"] h2,
html[lang="mr"] h2,
html[lang="mr-IN"] .h2,
html[lang="mr"] .h2 {
    font-size: 2.125rem ;
    line-height: 1.3;
}

html[lang="mr-IN"] h3,
html[lang="mr"] h3,
html[lang="mr-IN"] .h3,
html[lang="mr"] .h3 {
    font-size: 1.875rem;
    line-height: 1.35;
}

html[lang="mr-IN"] h4,
html[lang="mr"] h4,
html[lang="mr-IN"] .h4,
html[lang="mr"] .h4 {
    font-size: 1.625rem;
    line-height: 1.4;
}

html[lang="mr-IN"] h5,
html[lang="mr"] h5,
html[lang="mr-IN"] .h5,
html[lang="mr"] .h5 {
    font-size: 1.375rem;
    line-height: 1.45;
}

html[lang="mr-IN"] h6,
html[lang="mr"] h6,
html[lang="mr-IN"] .h6,
html[lang="mr"] .h6 {
    font-size: 1.25rem;
    line-height: 1.5;
}

/* Section titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #283678;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Original Paragraph styling - English */
p {
    font-size: 16px;
    line-height: 26px;
    color: #555;
    margin-bottom: 15px;
    font-weight: 600;
    font-family: var(--creote-family-two);
}

/* Marathi Paragraph - Better line height */
html[lang="mr-IN"] p,
html[lang="mr"] p {
    font-size: 1.0rem;
    /* 17px - 6% larger */
    font-weight: 600 !important;
}

.text-muted {
    color: #6c757d;
}

/* Original Button and Link Text */
a,
button,
.btn {
    font-family: inherit;
}

html[lang="mr-IN"] a,
html[lang="mr"] a,
html[lang="mr-IN"] button,
html[lang="mr"] button,
html[lang="mr-IN"] .btn,
html[lang="mr"] .btn {
    font-weight: 600 !important;
}

/* Original Menu Items */
.nav-link,
.menu-item a {
    font-family: var(--creote-family-one);
    font-size: 15px;
    font-weight: 600;
}

html[lang="mr-IN"] .nav-link,
html[lang="mr"] .nav-link,
html[lang="mr-IN"] .menu-item a,
html[lang="mr"] .menu-item a {
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* Responsive Typography */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    h1,
    .h1 {
        font-size: 2rem;
    }

    h2,
    .h2 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    h1,
    .h1 {
        font-size: 1.75rem;
    }

    h2,
    .h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

.read-more-content {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* Fixed 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    /* Consistent line height */
    height: 6em;
    /* Fixed height for 4 lines (1.5 * 4 = 6em) */
}

.title-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Fixed 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    /* Consistent line height */
    height: 2.8em;
    /* Fixed height for 2 lines (1.4 * 2 = 2.8em) */
}

/* Facebook button styling */
.facebook-btn {
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 50%;
}

.facebook-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.facebook-btn svg {
    transition: all 0.3s ease;
}

.facebook-btn:hover svg {
    filter: drop-shadow(0 2px 4px rgba(24, 119, 242, 0.3));
}

/* Hardware acceleration for better scroll performance */
body,
html {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
}

/* Optimize animations and transitions */
* {
    will-change: auto;
}

/* Smooth scrolling for specific elements */
.smooth-scroll {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.page_header_default {
    min-height: 220px !important;
    padding: 50px 0px 50px !important;
}

/* Home css start */
/* Common Styles */
.slider_content h1,
.slider_content p,
.slider_content a {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.banner_title_inner .title_page,
.banner_title_inner h4 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.icon-img {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border: 1px solid #283678;
    border-radius: 8px;
    padding: 5px;
    object-fit: contain;
    transition: transform 0.2s, background 0.2s;
}

.icon-img:hover {
    transform: scale(1.1);
    background: rgba(40, 54, 120, 0.2);
}

.text-blue {
    color: #283678;
}

.slider.style_four .slide-item-content .slider_content {
    padding: 60px 0px 60px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

@media (max-width: 768px) {
    .slider.style_four .slide-item-content .slider_content {
        padding: 40px 0px 40px !important;
    }
}

@media (max-width: 576px) {
    .slider.style_four .slide-item-content .slider_content {
        padding: 30px 0px 30px !important;
    }
}

.slider.style_four .slide-item-content .slider_content h1 {
    font-size: 2.75rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

@media (max-width: 768px) {
    .slider.style_four .slide-item-content .slider_content h1 {
        font-size: 2rem !important;
    }
}

.custom-card-news {
    max-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 0 0 30px 30px;
    background: #fff;
}

.news-card {
    background: linear-gradient(90deg, #f6f7ff 0%, #fff 100%);
    overflow: hidden;
    position: relative;
}

.news-list {
    display: flex;
    flex-direction: column;
    animation: scrollNews 15s linear infinite;
}

.news-card:hover .news-list {
    animation-play-state: paused;
}

@keyframes scrollNews {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.news-item {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    white-space: normal;
    word-wrap: break-word;
    color: #283678 !important;
}

.news-item span.badge {
    color: #283678 !important;
    font-size: 0.7rem;
    margin-left: 8px;
    display: inline-block;
}

.slider.style_four .slide-item-content .content_left {
    border-radius: 0px;
    overflow: hidden;
    position: relative;
}

/* Ensure owl-carousel items have consistent height */
.slider.style_four .owl-carousel .owl-item {
    height: 500px !important;
}

@media (max-width: 768px) {
    .slider.style_four .owl-carousel .owl-item {
        height: 400px !important;
    }
}

@media (max-width: 576px) {
    .slider.style_four .owl-carousel .owl-item {
        height: 350px !important;
    }
}

.slide-item-content {
    position: relative;
    overflow: hidden;
}

.slide-item {
    position: relative;
    width: 100%;
    height: 100%;
}

.custom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 54, 120, 0.25);
    z-index: 1;
}

.slider_content {
    position: relative;
    z-index: 2;
}

.glass-bg {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(40, 54, 120, 0.5);
}

/* Rectangular rings */
.rect-ring {
    position: absolute;
    border: 8px solid #283678;
    width: 270px;
    height: 270px;
    z-index: -2;
}

.rect-ring.top-right {
    top: -30px;
    right: -24px;
}

.rect-ring.bottom-left {
    bottom: -50px;
    left: -24px;
}

@media (max-width: 768px) {
    .rect-ring {
        width: 230px;
        height: 260px;
    }

    .icon-row {
        gap: 10px;
    }

    .icon-img {
        flex: 0 0 calc(20% - 8px);
        width: auto;
    }
}

/* Images & titles */
.image_boxes.style_six .image_box img {
    border-radius: 0px !important;
}

.title_all_box.style_five .title_sections h1,
.title_all_box.style_five .title_sections h2,
.title_all_box.style_five .title_sections h3,
.title_all_box.style_five .title_sections h4,
.title_all_box.style_five .title_sections h5,
.title_all_box.style_five .title_sections .title {
    font-size: 30px !important;
}

.title_all_box.style_five .title_sections h6,
.title_all_box.style_five .title_sections .title {
    font-size: 20px !important;
    line-height: 30px !important;
}

.title_all_box.style_six .title_sections h1,
.title_all_box.style_six .title_sections h2,
.title_all_box.style_six .title_sections h3,
.title_all_box.style_six .title_sections h4 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #283678;
}

.title_all_box.style_six .title_sections h5,
.title_all_box.style_six .title_sections h6,
.title_all_box.style_six .title_sections .title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Leadership & team */
.leadership-box {
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.28) 46.55%, rgba(30, 58, 138, 0.78) 100%);
    backdrop-filter: blur(2.15px);
    padding: 30px;
    transition: backdrop-filter 0.3s ease;
}

/* When hovering on the card inside, remove blur */
.custom-card-news:hover~.leadership-box,
.custom-card-news:hover {
    backdrop-filter: blur(0px);
}

/* Smooth transition on the card itself */
.custom-card-news {
    transition: all 0.3s ease;
}

.leadership-box {
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.28) 46.55%, rgba(30, 58, 138, 0.78) 100%);
    backdrop-filter: blur(2.15px);
    padding: 30px;
    transition: backdrop-filter 0.3s ease;
}

.leadership-box:hover {
    backdrop-filter: blur(0px);
}

.leadership-box h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.leadership-box h5 {
    font-size: 1.125rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .leadership-box {
        padding: 20px;
    }

    .leadership-box h3 {
        font-size: 1.5rem;
    }
}

.team_box.style_four {
    position: relative;
}

.small-img-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.small-img-wrap .rotated-bg {
    position: absolute;
    inset: 0;
    background: #fff;
    transform: rotate(45deg);
    border-radius: 8px;
    z-index: -1;
}

.small-img-wrap img {
    max-width: 50%;
    max-height: 50%;
    position: relative;
    z-index: 1;
}

/* Counter block */
.counter-block.style_one {
    background: none !important;
}

.counter-block.style_one .icon_box .coun_ter {
    margin-left: 0px !important;
}

.counter-block.style_one:before {
    border: none !important;
    display: none;
}

/* Choose box cards */
.choose_box.type_one {
    background: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
    max-height: 320px !important;
}

.choose_box.type_one .content_box {
    padding: 65px 10px 10px !important;
    box-shadow: none !important;
}

.choose_box.type_one .icon_shape {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #283678;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    transition: all 0.3s ease;
    z-index: 1;
}

.choose_box.type_one:hover {
    background: #283678;
}

.choose_box.type_one:hover .icon_shape {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.choose_box.type_one .text_box h4 {
    color: #283678;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.choose_box.type_one .text_box p {
    color: #555;
    transition: all 0.3s ease;
}

.choose_box.type_one:hover .text_box h4,
.choose_box.type_one:hover .text_box p {
    color: #fff;
}

/* Main section flex */
#main-section .row {
    display: flex;
    align-items: stretch;
    min-height: 500px;
}

#main-section .col-lg-7,
#main-section .col-lg-5 {
    display: flex;
    flex-direction: column;
}

.slider.style_four,
.custom-card-news {
    flex: 1;
    min-height: 500px;
}

/* Ensure equal heights on mobile */
@media (max-width: 991px) {
    #main-section .row {
        min-height: auto;
    }

    #main-section .col-lg-7,
    #main-section .col-lg-5 {
        min-height: 400px;
    }

    .slider.style_four,
    .custom-card-news {
        min-height: 400px;
    }
}

/* Project box type one */
.project_box.type_one {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.project_box.type_one .image_box img {
    width: 100%;
    height: auto;
}

.project_box.type_one .content_box {
    padding: 15px;
}

.project_box.type_one .entry-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #283678;
    line-height: 1.4;
}

.project_box.type_one p {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.6;
    margin: 0.5rem 0 0.75rem;
}

/* Project box style two */
.project_box.style_two .content_inner {
    margin: 0px !important;
}

/* Contact form */
.contact_form_box_all.type_four {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 30px;
}

/* Initiatives ticker */
.initiatives-ticker {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.ticker-wrapper {
    display: flex;
    gap: 20px;
    animation: scrollTicker 5s linear infinite;
}

.ticker-item {
    flex: 0 0 auto;
    min-width: 300px;
}

.initiatives-ticker:hover .ticker-wrapper {
    animation-play-state: paused;
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 992px) {
    .ticker-item {
        min-width: 250px;
    }
}

@media (max-width: 576px) {
    .ticker-item {
        min-width: 200px;
    }
}

/* Dynamic About Us */
.dynamic-about-content {
    padding: 0;
    /* text-align: justify; */
}

.dynamic-about-content .about-section {
    background: transparent;
}

.dynamic-about-content .about-header {
    margin-bottom: 20px;
}

.dynamic-about-content .section-subtitle {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.dynamic-about-content .main-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

.dynamic-about-content .main-heading .highlight {
    color: #283678 !important;
}

@media (max-width: 768px) {
    .dynamic-about-content .main-heading {
        font-size: 1.5rem;
    }
}

.dynamic-about-content .achievement-item {
    text-align: center;
    padding: 5px;
}

.dynamic-about-content .achievement-icon {
    font-size: 40px;
    color: #283678;
    margin-bottom: 15px;
}

.dynamic-about-content .achievement-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.dynamic-about-content .features-list {
    list-style: none;
    padding: 0;
}

.dynamic-about-content .features-list li {
    font-size: 15px;
    color: #555;
    display: flex;
    align-items: center;
    font-weight: 600 !important;
}

.dynamic-about-content .features-list li i {
    color: #283678;
    margin-right: 12px;
    font-size: 16px;
}

.dynamic-about-content .establishment-badge {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #666;
}

.dynamic-about-content .establishment-badge i {
    color: #283678;
    margin-right: 8px;
}

.dynamic-about-content .btn-learn-more {
    background: #283678;
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dynamic-about-content .btn-learn-more:hover {
    background: #1e2a5f;
    color: #fff;
}

.dynamic-about-content .btn-learn-more i {
    margin-left: 8px;
}

/* Text alignment for content descriptions */
.description_text {
    text-align: justify;
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
}

/* Better spacing utilities */
.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.read-more-content {
    text-align: justify;
}

.testimonial_box .description {
    text-align: justify;
}

.leadership-box p {
    text-align: justify;
}

.services_box.style_five .text_box p,
.service_box.style_five .text_box p {
    text-align: justify;
}

.project_box .content_box_inner p,
.project_box .content_inner p {
    text-align: justify;
}

.about-us-content p {
    text-align: justify;
}

.description_box p {
    text-align: justify;
}

/* Additional content text alignment */
.content_inner p,
.text_box p,
.testimonial_box .description,
.testimonial_box .testimonial-text,
.service_content .content_inner p,
.team_box .content_box p,
.icon_box_all .text_box p,
.banner_content .description_box p {
    text-align: justify;
}

/* Welcome page specific */
.description_box p,
.mission-content p,
.vision-content p,
.about-content p {
    text-align: justify;
}

@media (max-width: 768px) {
    .dynamic-about-content .about-footer {
        flex-direction: column !important;
        gap: 15px;
    }

    .dynamic-about-content .main-heading {
        font-size: 24px;
    }

    .dynamic-about-content .achievement-item {
        margin-bottom: 20px;
    }
}

/* Slider Fixed Height - All images same size */
.slider.style_four .slide-item-content {
    height: 500px !important;
}

.slider.style_four .slide-item-content .content_left {
    height: 500px !important;
    max-height: 500px !important;
}

.slider.style_four .slide-item-content .image-layer {
    height: 500px !important;
    width: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* News card height matching */
.custom-card-news {
    height: 500px !important;
}

.news-card {
    height: calc(100% - 60px) !important;
    /* Subtract header height */
}

/* Responsive slider heights */
@media (max-width: 991px) {

    .slider.style_four .slide-item-content,
    .slider.style_four .slide-item-content .content_left,
    .slider.style_four .slide-item-content .image-layer {
        height: 400px !important;
    }

    .custom-card-news {
        height: 400px !important;
    }
}

@media (max-width: 768px) {

    .slider.style_four .slide-item-content,
    .slider.style_four .slide-item-content .content_left,
    .slider.style_four .slide-item-content .image-layer {
        height: 350px !important;
    }

    .custom-card-news {
        height: 350px !important;
    }
}

@media (max-width: 576px) {

    .slider.style_four .slide-item-content,
    .slider.style_four .slide-item-content .content_left,
    .slider.style_four .slide-item-content .image-layer {
        height: 300px !important;
    }

    .custom-card-news {
        height: 300px !important;
    }
}

/* Home css end */
/* About us css start */
.text-blue {
    color: #283678;
}

/* Rectangular rings */
.rect-ring {
    position: absolute;
    border: 8px solid #283678;
    width: 270px;
    height: 270px;
    z-index: -2;
}

/* Top-right rectangle */
.rect-ring.top-right {
    top: -30px;
    right: -24px;
}

/* Bottom-left rectangle partially hidden */
.rect-ring.bottom-left {
    bottom: -50px;
    left: -24px;
}

/* Optional: responsive adjustments */
@media (max-width: 768px) {
    .rect-ring {
        width: 230px;
        height: 260px;
    }
}

.icon_box_all.style_five:hover .text_box h2,
.icon_box_all.style_five:hover .text_box p {
    color: #fff !important;
}

.icon_box_all.style_five .icon_content {
    padding: 20px 18px 18px !important;
    box-shadow: none !important;
    border: 1px solid gray !important;
}

.service_card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.service_card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service_card:hover img {
    transform: scale(1.1);
}

/* Hover overlay */
.service_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1E3A8A 0%, rgba(30, 58, 138, 0.50) 60.83%, rgba(30, 58, 138, 0.13) 80.41%, rgba(30, 58, 138, 0.00) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service_card:hover .service_overlay {
    opacity: 1;
}

.service_title {
    background-color: #1E3A8A;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-radius: 4px;
    margin-top: 10px;
}

.service_title span {
    color: white;
    font-weight: 500;
}

.service_title i {
    font-size: 1rem;
    background-color: white;
    color: #1E3A8A;
    padding: 5px;
    border-radius: 4px;
}

/* Center icon on hover */
.center_icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 111;
}

.service_card:hover .center_icon {
    opacity: 1;
}

.learn-more-btn {
    background-color: white;
    color: #1E3A8A;
    /* Dark blue text */
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid #1E3A8A;
    transition: all 0.3s ease;
    text-decoration: none;
}

.learn-more-btn:hover {
    background-color: #1E3A8A;
    color: white;
    text-decoration: none;
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #1E3A8A;
    color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.learn-more-btn:hover .btn-arrow {
    background-color: white;
    color: #1E3A8A;
}

.page_header_default::before {
    background: linear-gradient(0deg, rgb(62 83 162) 0%, rgb(62 83 162) 100%) !important;
}

/* About us css end */
.learn_more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1E3A8A;
    border: 1px solid #1E3A8A;
    color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.learn_more:hover {
    background-color: white !important;
    color: #1E3A8A !important;
    border: 1px solid #1E3A8A !important;
}

/* Principal Carousel - Simple Bootstrap Carousel Styling */
#principalCarousel {
    position: relative;
}

/* Custom Carousel Controls */
#principalCarousel .carousel-control-prev,
#principalCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.3s ease;
}

#principalCarousel .carousel-control-prev {
    left: -20px;
}

#principalCarousel .carousel-control-next {
    right: -20px;
}

#principalCarousel .carousel-control-prev:hover,
#principalCarousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

#principalCarousel .carousel-control-prev-icon,
#principalCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Carousel Indicators */
#principalCarousel .carousel-indicators {
    bottom: -40px;
    margin: 0;
}

#principalCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

#principalCarousel .carousel-indicators button.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
}

#principalCarousel .carousel-indicators button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {

    #principalCarousel .carousel-control-prev,
    #principalCarousel .carousel-control-next {
        width: 35px;
        height: 35px;
    }

    #principalCarousel .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}

/* Simple Swiper Carousel Styling */
.principals-swiper {
    position: relative;
    padding: 0 40px;
}

.principals-swiper .swiper-button-next,
.principals-swiper .swiper-button-prev {
    color: rgba(255, 255, 255, 0.7);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.principals-swiper .swiper-button-next:hover,
.principals-swiper .swiper-button-prev:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.3);
}

.principals-swiper .swiper-button-next:after,
.principals-swiper .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

.principals-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.principals-swiper .swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .principals-swiper {
        padding: 0 30px;
    }

    .principals-swiper .swiper-button-next,
    .principals-swiper .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .principals-swiper .swiper-button-next:after,
    .principals-swiper .swiper-button-prev:after {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .principals-swiper {
        padding: 0 25px;
    }

    .principals-swiper .swiper-button-next,
    .principals-swiper .swiper-button-prev {
        width: 30px;
        height: 30px;
    }

    .principals-swiper .swiper-button-next:after,
    .principals-swiper .swiper-button-prev:after {
        font-size: 12px;
    }
}

/* Principal Carousel - Same as Testimonials */
.swiper-container[data-swiper*='"autoplay":{"delay":4000}'] .swiper-pagination {
    bottom: -35px !important;
    text-align: center !important;
    position: relative !important;
    margin-top: 15px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.swiper-container[data-swiper*='"autoplay":{"delay":4000}'] .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 5px !important;
    display: inline-block !important;
}

.principals-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 5px !important;
    display: inline-block !important;
}

.swiper-container[data-swiper*='"autoplay":{"delay":4000}'] .swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 0.9) !important;
}

.arrows {
    text-align: center;
    margin-top: 15px;
}

.prev-principal,
.next-principal {
    background: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    margin: 0 10px !important;
    padding: 8px 15px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: inline-block !important;
    font-size: 14px !important;
}

.prev-principal:hover,
.next-principal:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: rgba(255, 255, 255, 1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.05) !important;
}

.principals-pagination {
    position: relative !important;
    margin-top: 20px !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

/* ========================================
   COMPREHENSIVE IMAGE STYLING SYSTEM
   ======================================== */

/* Base Image Classes */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Object Fit Classes */
.object-fit-cover {
    object-fit: cover;
    object-position: center;
}

.object-fit-contain {
    object-fit: contain;
    object-position: center;
}

.object-fit-fill {
    object-fit: fill;
}

.object-fit-scale-down {
    object-fit: scale-down;
}

/* Image Container Classes */
.image-container {
    position: relative;
    overflow: hidden;
    display: block;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

/* Aspect Ratio Containers */
.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.aspect-ratio-3-2 {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.aspect-ratio-2-1 {
    aspect-ratio: 2 / 1;
    overflow: hidden;
}

/* Image Sizes */
.img-small {
    max-width: 150px;
    height: auto;
}

.img-medium {
    max-width: 300px;
    height: auto;
}

.img-large {
    max-width: 500px;
    height: auto;
}

.img-xl {
    max-width: 800px;
    height: auto;
}

/* Fixed Height Containers */
.img-height-200 {
    height: 200px;
    overflow: hidden;
}

.img-height-250 {
    height: 250px;
    overflow: hidden;
}

.img-height-300 {
    height: 300px;
    overflow: hidden;
}

.img-height-350 {
    height: 350px;
    overflow: hidden;
}

.img-height-400 {
    height: 400px;
    overflow: hidden;
}

.img-height-450 {
    height: 450px;
    overflow: hidden;
}

.img-height-500 {
    height: 500px;
    overflow: hidden;
}

/* Gallery Specific Image Styling */
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Training Program Images */
.training-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.training-image:hover {
    transform: scale(1.03);
}

/* Initiative Images */
.initiative-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.initiative-image:hover {
    transform: scale(1.03);
}

/* Slider Images */
.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

/* About Us Images */
.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

/* Principal Images */
.principal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Testimonial Images */
.testimonial-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Logo Images */
.logo-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    max-width: 100%;
}

/* Background Images */
.bg-image-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-image-contain {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Image Overlays */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(40, 54, 120, 0.8), rgba(40, 54, 120, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

/* Lazy Loading */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Image Placeholders */
.image-placeholder {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1rem;
    border: 2px dashed #dee2e6;
}

.image-placeholder::before {
    content: "📷";
    font-size: 2rem;
    margin-right: 10px;
}

/* Responsive Image Containers */
@media (max-width: 768px) {
    .img-height-500 {
        height: 300px;
    }

    .img-height-450 {
        height: 250px;
    }

    .img-height-400 {
        height: 200px;
    }

    .img-height-350 {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .img-height-500 {
        height: 250px;
    }

    .img-height-450 {
        height: 200px;
    }

    .img-height-400 {
        height: 150px;
    }

    .img-height-350 {
        height: 150px;
    }
}

/* Image Loading States */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Image Error States */
.image-error {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
    border: 1px solid #dee2e6;
}

.image-error::before {
    content: "⚠︝";
    margin-right: 8px;
}

/* High DPI Image Support */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .high-dpi-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Image Filters */
.image-grayscale {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.image-grayscale:hover {
    filter: grayscale(0%);
}

.image-blur {
    filter: blur(2px);
    transition: filter 0.3s ease;
}

.image-blur:hover {
    filter: blur(0px);
}

.image-brightness {
    filter: brightness(1.1);
}

.image-contrast {
    filter: contrast(1.1);
}

/* Image Borders */
.image-border {
    border: 2px solid #dee2e6;
    border-radius: 8px;
}

.image-border-primary {
    border: 2px solid #283678;
    border-radius: 8px;
}

.image-border-thick {
    border: 4px solid #283678;
    border-radius: 12px;
}

/* Image Shadows */
.image-shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-shadow-lg {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.image-shadow-xl {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Image Rounded Corners */
.image-rounded {
    border-radius: 8px;
}

.image-rounded-lg {
    border-radius: 12px;
}

.image-rounded-xl {
    border-radius: 16px;
}

.image-circle {
    border-radius: 50%;
}

/* Image Hover Effects */
.image-hover-zoom {
    transition: transform 0.3s ease;
}

.image-hover-zoom:hover {
    transform: scale(1.05);
}

.image-hover-fade {
    transition: opacity 0.3s ease;
}

.image-hover-fade:hover {
    opacity: 0.8;
}

/* Image Grid Layouts */
.image-grid {
    display: grid;
    gap: 1rem;
}

.image-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.image-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.image-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .image-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {

    .image-grid-4,
    .image-grid-3,
    .image-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   COMPREHENSIVE PDF HANDLING SYSTEM
   ======================================== */

/* PDF Icon and Button Styles */
.pdf-icon {
    color: #dc3545;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.pdf-icon:hover {
    transform: scale(1.2);
    color: #c82333;
}

.pdf-download-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.pdf-download-btn:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.pdf-download-btn:active {
    transform: translateY(0);
}

.pdf-download-btn i {
    font-size: 16px;
}

/* PDF Preview Container */
.pdf-preview-container {
    position: relative;
    width: 100%;
    height: 400px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    margin: 15px 0;
}

.pdf-preview-container iframe,
.pdf-preview-container embed {
    width: 100%;
    height: 100%;
    border: none;
}

/* PDF Thumbnail */
.pdf-thumbnail {
    width: 150px;
    height: 200px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-thumbnail:hover {
    border-color: #dc3545;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pdf-thumbnail iframe,
.pdf-thumbnail embed {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.pdf-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 53, 69, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pdf-thumbnail:hover .pdf-thumbnail-overlay {
    opacity: 1;
}

.pdf-thumbnail-overlay i {
    color: white;
    font-size: 24px;
}

/* PDF Modal Styles */
.pdf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.pdf-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pdf-modal-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    height: 90%;
    max-height: 800px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pdf-modal-overlay.active .pdf-modal-container {
    transform: scale(1);
}

.pdf-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.pdf-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin: 0;
    flex: 1;
    margin-right: 20px;
}

.pdf-modal-close {
    background: #dc3545;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.pdf-modal-close:hover {
    background: #c82333;
    transform: scale(1.1);
}

.pdf-modal-content {
    padding: 0;
    height: calc(100% - 80px);
    overflow: hidden;
}

.pdf-modal-content iframe,
.pdf-modal-content embed {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 12px 12px;
}

/* PDF Controls */
.pdf-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.pdf-control-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.pdf-control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* PDF List Styles */
.pdf-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.pdf-list-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pdf-list-item:hover {
    border-color: #dc3545;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.pdf-list-item-icon {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 15px;
}

.pdf-list-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
    line-height: 1.4;
}

.pdf-list-item-meta {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.pdf-list-item-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* PDF Loading States */
.pdf-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

.pdf-loading i {
    font-size: 24px;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* PDF Error States */
.pdf-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
    padding: 20px;
    text-align: center;
}

.pdf-error i {
    font-size: 32px;
    margin-bottom: 10px;
}

.pdf-error-message {
    font-size: 14px;
    margin-bottom: 15px;
}

.pdf-error-retry {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.pdf-error-retry:hover {
    background: #c82333;
}

/* Responsive PDF Styles */
@media (max-width: 768px) {
    .pdf-modal-container {
        width: 95%;
        height: 95%;
        margin: 10px;
    }

    .pdf-modal-header {
        padding: 15px;
    }

    .pdf-modal-title {
        font-size: 16px;
    }

    .pdf-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .pdf-list-item {
        padding: 15px;
    }

    .pdf-thumbnail {
        width: 120px;
        height: 160px;
    }

    .pdf-preview-container {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .pdf-list {
        grid-template-columns: 1fr;
    }

    .pdf-modal-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .pdf-modal-header {
        border-radius: 0;
    }

    .pdf-modal-content iframe,
    .pdf-modal-content embed {
        border-radius: 0;
    }

    .pdf-controls {
        bottom: 10px;
        right: 10px;
    }

    .pdf-control-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* PDF Accessibility */
.pdf-modal-overlay:focus {
    outline: none;
}

.pdf-modal-container:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print Styles for PDFs */
@media print {
    .pdf-modal-overlay {
        position: static;
        background: none;
        padding: 0;
    }

    .pdf-modal-container {
        width: 100%;
        height: auto;
        max-width: none;
        max-height: none;
        box-shadow: none;
        border-radius: 0;
    }

    .pdf-modal-header {
        display: none;
    }

    .pdf-modal-content {
        height: auto;
    }
}

/* ========================================
   UNIFIED MEDIA HANDLING SYSTEM
   ======================================== */

/* Unified Media Items */
.unified-media-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.unified-media-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 200px;
}

.unified-media-item:hover {
    border-color: #dc3545;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.media-item-icon {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.media-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.media-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
    line-height: 1.4;
    word-wrap: break-word;
}

.media-item-description {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
    line-height: 1.4;
}

.media-item-meta {
    font-size: 12px;
    color: #adb5bd;
    margin-bottom: 15px;
}

.media-item-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: auto;
}

.media-download-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.media-download-btn:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Unified Media Modal */
.unified-media-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.unified-media-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.unified-media-modal-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    max-height: 800px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.unified-media-modal-overlay.active .unified-media-modal-container {
    transform: scale(1);
}

.unified-media-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.unified-media-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin: 0;
    flex: 1;
    margin-right: 20px;
}

.unified-media-modal-close {
    background: #dc3545;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.unified-media-modal-close:hover {
    background: #c82333;
    transform: scale(1.1);
}

.unified-media-modal-content {
    padding: 0;
    height: calc(100% - 80px);
    overflow: hidden;
}

.unified-media-modal-content img,
.unified-media-modal-content iframe,
.unified-media-modal-content embed {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 12px 12px;
    object-fit: contain;
}

/* Media Overlay Styles */
.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 53, 69, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.media-item:hover .media-overlay,
.pdf-thumbnail:hover .media-overlay {
    opacity: 1;
}

.media-overlay i {
    color: white;
    font-size: 24px;
}

/* Media Content Styles */
.media-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    height: 100%;
}

.media-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.media-size {
    font-size: 14px;
    color: #6c757d;
}

/* Loading and Error States for Unified Media */
.media-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-size: 16px;
}

.media-loading i {
    font-size: 24px;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

.media-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
    padding: 20px;
    text-align: center;
}

.media-error i {
    font-size: 32px;
    margin-bottom: 10px;
}

.media-error-message {
    font-size: 14px;
    margin-bottom: 15px;
}

.media-error-retry {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.media-error-retry:hover {
    background: #c82333;
}

/* Responsive Unified Media Styles */
@media (max-width: 768px) {
    .unified-media-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .unified-media-item {
        padding: 15px;
        min-height: 180px;
    }

    .media-item-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }

    .media-item-title {
        font-size: 14px;
    }

    .unified-media-modal-container {
        width: 95%;
        height: 95%;
        margin: 10px;
    }

    .unified-media-modal-header {
        padding: 15px;
    }

    .unified-media-modal-title {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .unified-media-list {
        grid-template-columns: 1fr;
    }

    .unified-media-modal-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .unified-media-modal-header {
        border-radius: 0;
    }

    .unified-media-modal-content img,
    .unified-media-modal-content iframe,
    .unified-media-modal-content embed {
        border-radius: 0;
    }
}

/* Accessibility for Unified Media */
.unified-media-modal-overlay:focus {
    outline: none;
}

.unified-media-modal-container:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print Styles for Unified Media */
@media print {
    .unified-media-modal-overlay {
        position: static;
        background: none;
        padding: 0;
    }

    .unified-media-modal-container {
        width: 100%;
        height: auto;
        max-width: none;
        max-height: none;
        box-shadow: none;
        border-radius: 0;
    }

    .unified-media-modal-header {
        display: none;
    }

    .unified-media-modal-content {
        height: auto;
    }
}

/* Home Page CSS Start */
/* Show navigation on hover */
.home-training-slider-container:hover .home-slider-nav,
.home-initiatives-slider-container:hover .home-slider-nav {
    opacity: 1;
}

/* Auto-play functionality */
.home-training-slider-container:not(:hover) .home-slider-nav,
.home-initiatives-slider-container:not(:hover) .home-slider-nav {
    opacity: 0;
}

.read-more-btn {
    border: 1px solid #283678;
    color: #283678;
    background-color: transparent;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: #f1f1f1;
    border-color: #283678;
    color: #283678;
}

.custom_testimonial_box {
    border-radius: 0px !important;
}

.testimonial_sec.style_two .testimonial_box::before {
    border: none !important;
}

.custom-testimonial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* dark transparent overlay */}

.testimonial-section {
    position: relative;
    z-index: 2;
}

.icon-close{
    position: absolute;
    top: 5px;
    right: 7px;
    font-size: 24px;
    color: #050505;
    cursor: pointer;
    z-index: 10;
}

/* Home Page CSS Start */