/* Fullscreen overlay */
.st-perloader {
    position: fixed;
    inset: 0;
    background: #ffffff; /* or your brand background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

/* Center wrapper */
.st-perloader-in {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Fade out class added by JS on window.load */
.st-perloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Logo animation */
.st-preloader-logo {
    display: inline-block; /* ensure transforms apply well */
    will-change: transform, opacity;
    animation: pcsPulse 1.5s ease-in-out infinite;
}

/* Keyframes */
@keyframes pcsPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.85;
    }
}

.malayalam-text {
    font-family: "Noto Sans Malayalam", sans-serif;
    line-height: 1.8;
}

/* Global Malayalam Typography Adjustments */
.lang-ml {
    font-family: "Noto Sans Malayalam", sans-serif;
}

/* Headings & titles: do NOT override font-size – use theme’s same sizes as English (e.g. hero 48px, h1 40px, .pcs-section-title 1.35rem) */
.lang-ml h1, .lang-ml h2, .lang-ml h3, .lang-ml h4, .lang-ml h5, .lang-ml h6,
.lang-ml .st-hero-title, .lang-ml .st-section-heading-title, .lang-ml .st-price,
.lang-ml .pcs-section-title, .lang-ml .st-page-heading-title {
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.lang-ml p, .lang-ml span, .lang-ml a {
    line-height: 1.8;
}

/* Header Branding Styles */
.brand-title {
    font-size: 1.1rem;
    line-height: normal;
}

.brand-subtitle {
    font-size: 0.95rem;
    line-height: normal;
}

.lang-ml .brand-title {
    font-size: 0.9rem; /* Further reduced from 1rem */
    line-height: 1.4;
}

.lang-ml .brand-subtitle {
    font-size: 0.8rem; /* Further reduced from 0.85rem */
    line-height: 1.3;
}

.lang-ml .st-nav-list > li > a {
    font-size: 0.9em;
    letter-spacing: -0.01em;
}

.lang-ml .st-nav-list > li {
    margin-right: 18px !important; /* Reduced from 35px */
}

/* Force Header to Stay in One Row */
.st-main-header-in {
    flex-wrap: nowrap !important;
}

.st-main-header-right {
    flex-shrink: 1;
    min-width: 0;
}

/* ============================================================
   PCS Global Custom Styles
   Applies to all service pages (Banking, Welfare, Retail, etc.)
   ============================================================ */

/* Local, page-scoped accents */
.pcs-hero-fallback {
    background-image: url("assets/img/page-heading_02.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.pcs-hero-fallback::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 110, 253, 0.35),
        rgba(11, 172, 123, 0.35)
    );
    mix-blend-mode: multiply;
}
.pcs-hero-fallback .st-page-heading-in {
    position: relative;
    z-index: 1;
}
.pcs-hero-fallback .st-page-heading-title {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   Modern page content & sections (replaces old card look)
   ============================================================ */
.st-about-wrap {
    background: #fff;
}
.st-about-wrap .st-shape-bg {
    display: none; /* remove decorative shape for clean layout */
}
.st-about-wrap .container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 992px) {
    .st-about-wrap .container.container-wide {
        max-width: 1140px;
    }
}

.pcs-page-content {
    padding-top: 0.5rem;
}
.pcs-section {
    padding: 2rem 0;
    border-bottom: 1px solid #eef2f7;
}
.pcs-section:last-child {
    border-bottom: 0;
}
.pcs-section-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.pcs-section-title .pcs-section-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.pcs-section-body {
    color: #475569;
    line-height: 1.7;
    font-size: 1rem;
    text-align: justify;
}
.pcs-section-body p:last-child {
    margin-bottom: 0;
}
.pcs-section-body ul, .pcs-section-body ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}
.st-page-content {
    text-align: justify;
}
.st-page-content p {
    text-align: justify;
}
.pcs-section-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

/* Service card: modern minimal (for download cards, committee cards, etc.) */
.service-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1 !important;
}

/* Committee member photo: square box so 1:1 images fill with no letterboxing */
.pcs-member-photo-wrap {
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pcs-member-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* Tighter spacing below photo and in card body */
.pcs-member-photo-wrap + .card-body {
    padding: 0.65rem 0.75rem 0.75rem;
}
.pcs-member-photo-wrap + .card-body .mb-1:last-of-type {
    margin-bottom: 0 !important;
}

.service-head {
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    font-weight: 600;
    color: #1e293b;
}
.service-head .bi {
    color: #0d6efd;
    opacity: 0.9;
}
.service-body {
    padding: 1.25rem 1.25rem 1.5rem;
    color: #475569;
    line-height: 1.65;
    text-align: justify;
}
.service-body p:last-child {
    margin-bottom: 0;
}
.icon-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.icon-list li {
    position: relative;
    padding-left: 1.75rem;
    margin: 0.4rem 0;
}
.icon-list li::before {
    content: "\F26A"; /* bi-check2-circle */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 0.05rem;
    color: #0aa27c;
    font-size: 1rem;
}
.divider {
    height: 2px;
    border: 0;
    margin: 2rem 0 2.25rem;
    background: linear-gradient(
        90deg,
        transparent,
        #cfe7ff,
        #c7ffe9,
        transparent
    );
}
.badge-pill {
    border-radius: 50rem;
    padding: 0.4rem 0.7rem;
    font-weight: 600;
    font-size: 0.8rem;
}
.badge-blue {
    background: #e9f3ff;
    color: #0b5ed7;
}
.badge-green {
    background: #e9fbf4;
    color: #0a7c59;
}
.badge-gold {
    background: #fff7e6;
    color: #b26f00;
}
.badge-pink {
    background: #ffe9f2;
    color: #b10055;
}
.note {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
}

/* Skip to main content - hidden until focused */
.skip-to-content {
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: #0d6efd;
    color: #fff !important;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    text-decoration: none;
    transform: translateY(-120%);
    transition: transform 0.2s ease;
}
.skip-to-content:focus {
    transform: translateY(0);
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Breadcrumbs: clear fixed header (st-sticky-header is position:fixed; z-index:200) */
.st-breadcrumb-wrap {
    background: #f1f3f5;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9rem;
    padding-top: 130px; /* push below fixed header (top bar + main nav height) */
    position: relative;
    z-index: 10;
}
.st-breadcrumb-wrap .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.st-breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}
.st-breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: #6c757d;
}
.st-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 0.35rem;
    color: #adb5bd;
    font-weight: 300;
}
.st-breadcrumb .breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
}
.st-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}
.st-breadcrumb .breadcrumb-item.active {
    color: #212529;
    font-weight: 500;
}

/* Back to top */
#back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}
#back-to-top:hover {
    color: #fff;
    opacity: 0.95;
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(13,110,253,0.4);
}
#back-to-top:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}
#back-to-top.visible {
    display: flex;
}
@media (min-width: 768px) {
    #back-to-top {
        width: 3rem;
        height: 3rem;
        bottom: 2rem;
        right: 2rem;
    }
}
