:root {
    --primary-blue: #0078bd;
    /* Your specified primary color */
    --dark-theme: #121212;
    /* A true dark black for contrast */
    --text-light: #eef0f2;
    /* Adjusted: Softer off-white */
    --text-dark: #343a40;
    --gray-light: #e9ecef;
    --gray-medium: #6c757d;
    --history-bg: #f7f4e9;
    --navbar-height: 85px;
    /* Approximate height of your fixed navbar */
}

body {
    font-family: "Poppins", sans-serif;
    /* Poppins for all body text */
    background-color: var(--text-light);
    color: var(--text-dark);
    overflow-x: hidden;
    /* Prevent horizontal scroll due to animations */
    padding-top: var(--navbar-height);
    /* Push content below fixed navbar */
}

/* Keyframe Animations */
@keyframes pulseGlow {
    0% {
        text-shadow: 0 0 5px var(--primary-blue), 0 0 10px var(--primary-blue);
    }

    50% {
        text-shadow: 0 0 15px var(--primary-blue), 0 0 25px var(--primary-blue),
            0 0 35px rgba(0, 120, 189, 0.5);
    }

    100% {
        text-shadow: 0 0 5px var(--primary-blue), 0 0 10px var(--primary-blue);
    }
}

/* Keyframes for footer SVG background dots */
@keyframes fadeAndMove {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    50% {
        opacity: 0.2;
        /* Increased base opacity for dots */
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Keyframe for continuous glow on Book Now button */
@keyframes buttonGlow {
    0% {
        box-shadow: 0 0 5px var(--primary-blue), 0 0 10px rgba(0, 120, 189, 0.5);
    }

    50% {
        box-shadow: 0 0 15px var(--primary-blue), 0 0 25px rgba(0, 120, 189, 0.8),
            0 0 35px rgba(0, 120, 189, 0.5);
    }

    100% {
        box-shadow: 0 0 5px var(--primary-blue), 0 0 10px rgba(0, 120, 189, 0.5);
    }
}

/* Fixed Header - Always Solid Black, no glass effect */
.navbar {
    background-color: var(--dark-theme);
    /* Always solid black */
    backdrop-filter: none;
    /* Always no blur */
    -webkit-backdrop-filter: none;
    /* Safari support */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* Keep a subtle shadow for separation */
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    /* Smooth transitions */
    height: var(--navbar-height);
    /* Set a fixed height for the navbar */
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    max-height: 55px;
    /* Slightly larger for sole presence */
    margin-right: 0;
    /* No margin as text is gone */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
    /* Subtle glow */
}

/* Navbar Toggler Button Primary Color */
.navbar-toggler {
    border-color: var(--primary-blue) !important;
    /* Border color */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 120, 189, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    /* SVG for hamburger icon with primary blue color */
}

.nav-link {
    color: var(--text-light) !important;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    /* Changed to 300 */
    margin: 0 15px;
    font-size: 1.05rem;
    position: relative;
    /* For the pseudo-element underline */
    text-decoration: none;
    /* Ensure no default underline */
    transition: color 0.3s ease-in-out;
    /* Removed transform from here */
}

/* Glowing Underline for Nav Menus */
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    /* Position below text */
    left: 0;
    width: 100%;
    height: 2px;
    /* Thickness of the underline */
    background-color: var(--primary-blue);
    box-shadow: 0 0 5px var(--primary-blue), 0 0 10px rgba(0, 120, 189, 0.7);
    /* Glow effect */
    transform: scaleX(0);
    /* Start hidden */
    transform-origin: center;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    /* Expand on hover/active */
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue) !important;
    /* Text color change on hover/active */
}

/* Navbar Book Now Button - Always Glowing & New Hover */
.navbar .btn-book-now {
    background-color: var(--primary-blue);
    color: var(--text-light) !important;
    border: 2px solid var(--primary-blue);
    border-radius: 50px;
    /* Pill shape */
    padding: 8px 20px;
    margin-left: 20px;
    /* Space from last nav link */
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s ease-in-out;
    /* Faster transition for hover responsiveness */
    font-family: "Poppins", sans-serif;
    animation: buttonGlow 3s infinite alternate ease-in-out;
    /* Always glowing */
}

.navbar .btn-book-now:hover {
    background-color: var(--text-light);
    /* Lighter background on hover */
    color: var(--primary-blue) !important;
    /* Primary blue text on hover */
    transform: scale(1.05);
    /* Slight scale on hover */
    box-shadow: 0 8px 20px rgba(0, 120, 189, 0.4);
    /* Stronger shadow, subtle blue glow */
    border-color: var(--text-light);
    /* Border matches background on hover */
}

/* Banner Section */
.banner {
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0.3)),
        url("/web-assets/img/banner2.jpg") no-repeat center center / cover;
    /* Your banner image */
    color: white;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Banner H1 Text Styling (Neue Helvetica Light / System Fallbacks) */
.banner h1 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    /* Helvetica font */
    font-size: 4.5rem;
    font-weight: 300;
    margin-bottom: 8px;
    letter-spacing: 4px;
    position: relative;
    z-index: 2;
    color: var(--text-light);
    text-shadow:
        -1px -1px 0 var(--dark-theme),
        1px -1px 0 var(--dark-theme),
        -1px 1px 0 var(--dark-theme),
        1px 1px 0 var(--dark-theme);
}

/* Highlight for 2.0 */
.banner h1 .version-highlight {
    animation: pulseGlow 3s infinite alternate ease-in-out;
    display: inline-block;
}

.banner p {
    font-family: "Poppins", sans-serif;
    /* Poppins for subtitle */
    font-size: 1.6rem;
    font-weight: 400;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
    color: var(--text-light);
    text-decoration: none;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 3px solid var(--primary-blue);
    /* Removed hover effect */
}

/* Content Section (The New Story) */
.content-section {
    padding: 80px 0;
    background-color: #fff;
    border-bottom: 1px solid var(--gray-light);
    position: relative;
    overflow: hidden;
}

.content-section:last-of-type {
    border-bottom: none;
}

/* Background shapes for "The New Story" section - Circles */
.story-bg-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.story-bg-circles svg {
    position: absolute;
    fill: var(--primary-blue);
    opacity: 0.05;
}

.story-bg-circles .circle-top-left {
    top: -10%;
    left: -10%;
    width: 30%;
    height: 30%;
}

.story-bg-circles .circle-bottom-right {
    bottom: -10%;
    right: -10%;
    width: 30%;
    height: 30%;
}

.content-section .container {
    position: relative;
    z-index: 1;
}

.content-section h2 {
    font-family: "Poppins", sans-serif;
    color: var(--primary-blue);
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.8rem;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
}

.content-section h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 5px;
}

.content-section p {
    line-height: 1.8;
    font-family: "Poppins", sans-serif;
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Founders Section (Our Visionaries) */
.visionaries-section {
    background-color: var(--text-light);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

/* Background shapes for Visionaries section */
.visionaries-side-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.visionaries-side-shapes svg {
    position: absolute;
    top: 0;
    height: 100%;
    fill: var(--primary-blue);
    opacity: 0.03;
}

.visionaries-side-shapes .left-shape-v {
    left: 0;
    width: 15%;
    transform: translateX(-30%);
}

.visionaries-side-shapes .right-shape-v {
    right: 0;
    width: 15%;
    transform: translateX(30%) rotateY(180deg);
}

.visionaries-section .container {
    position: relative;
    z-index: 1;
}

.founder-card {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background-color: rgba(255,
            255,
            255,
            0.2);
    /* Semi-transparent white for glass effect */
    backdrop-filter: blur(5px);
    /* Glass effect */
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255,
            255,
            255,
            0.3);
    /* Lighter border for glass */
    transition: transform 0.3s ease, box-shadow 0.3s ease,
        background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    /* Ensure it takes full width of flex column */
    /* Removed max-width */
}

.founder-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.3);
}

.founder-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-blue);
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0, 120, 189, 0.3);
    transition: border-color 0.3s ease;
}

.founder-card:hover .founder-image {
    border-color: var(--dark-theme);
}

.founder-card h4 {
    font-family: "Poppins", sans-serif;
    color: var(--dark-theme);
    margin-bottom: 5px;
    font-size: 1.5rem;
    display: inline-block;
    position: relative;
    text-align: center;
}

.founder-card h4::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    bottom: -3px;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
    transform-origin: center;
    transition: transform 0.3s ease-out;
}

.founder-card:hover h4::after {
    transform: translateX(-50%) scaleX(1);
}

.founder-card p {
    color: var(--gray-medium);
    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;
    font-style: normal;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.floating-buttons .btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--text-light);
    background-color: var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-buttons .btn:hover {
    background-color: var(--dark-theme);
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Show/Hide Floating buttons with JS */
.floating-buttons.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.floating-buttons.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Footer */
footer {
    background-color: var(--dark-theme);
    color: var(--text-light);
    padding: 60px 0 30px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 4px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
}

.footer-svg-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Animated dots for footer BG */
.footer-svg-bg .animated-dot {
    fill: var(--primary-blue);
    opacity: 0.2;
    animation: fadeAndMove 6s infinite ease-in-out alternate;
    transform-origin: center center;
}

/* Styling for paths (if any) in footer SVG */
.footer-svg-bg svg path {
    stroke: var(--primary-blue);
    stroke-width: 0.7;
    fill: none;
    opacity: 0.15;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.footer-links {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease, transform 0.2s ease, text-shadow 0.3s ease;
    display: inline-block;
    font-family: "Poppins", sans-serif;
}

.footer-links a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
    text-shadow: 0 0 5px var(--primary-blue);
}

.social-icons {
    margin-top: 25px;
    margin-bottom: 20px;
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.8rem;
    margin: 0 12px;
    transition: color 0.3s ease, transform 0.2s ease, text-shadow 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-blue);
    transform: translateY(-3px);
    text-shadow: 0 0 8px var(--primary-blue);
}

/* Contact Info Styling (removed .small class and updated content) */
.contact-info p {
    margin-bottom: 8px;
    /* Maintain vertical spacing */
    color: var(--gray-light);
    font-family: "Poppins", sans-serif;
    line-height: 1.4;
    /* Adjust line height for readability */
}

.contact-info p a {
    /* Specific styling for links inside contact info paragraphs */
    color: var(--gray-light);
    /* Base color for links in contact info */
}

.contact-info a {
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease, text-shadow 0.3s ease;
    /* Added text-shadow transition */
    display: inline-block;
    /* To allow transform on links */
    font-family: "Poppins", sans-serif;
}

.contact-info a:hover {
    color: var(--primary-blue);
    /* Glow color on hover */
    transform: scale(1.02);
    /* Slight scale for contact info links */
    text-shadow: 0 0 5px var(--primary-blue);
    /* Subtle glow for contact links on hover */
}

/* Final Copyright and Designed By text */
footer p.small {
    font-size: 0.85rem;
    /* Adjusted for smaller, less prominent copyright */
    color: var(--gray-medium);
    /* Softer gray for less prominence */
}

footer a.company-title {
    color: var(--primary-blue);
    text-decoration: none;
}

/* About Us Header - Now with fixed glow and wave lines */
.banner-header {
    background-color: var(--dark-theme);
    /* Solid dark background remains the base */
    color: white;
    text-align: center;
    padding-top: 100px;
    /* Adjust based on navbar height */
    padding-bottom: 80px;
    min-height: 280px;
    /* Slightly taller for more dramatic presence */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Contains pseudo-elements */
    isolation: isolate;
    /* Creates a new stacking context for pseudo-elements */
}

/* FIXED GLOW: primary color fixed glow from top of the banner (repurposed ::before) */
.banner-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,
            rgba(0, 120, 189, 0.05) 0%,
            rgba(0, 120, 189, 0.03) 20%,
            transparent 80%);
    /* Very subtle blue tint from center */
    z-index: 0;
    /* Behind content */
    pointer-events: none;
}

/* NEW: Spotlight / Stage Light Effect */
.banner-header::after {
    content: "";
    position: absolute;
    top: 50%;
    /* Center vertically */
    left: 50%;
    /* Center horizontally */
    width: 120%;
    /* Wider than screen */
    height: 120%;
    /* Taller than screen */
    background: radial-gradient(circle at center,
            rgba(0, 120, 189, 0.15) 0%,
            rgba(0, 120, 189, 0.1) 15%,
            rgba(0, 120, 189, 0.05) 30%,
            transparent 70%);
    /* Stronger, more focused light effect */
    transform: translate(-50%, -50%);
    /* Precisely center */
    opacity: 0.8;
    /* Subtle visibility */
    z-index: 1;
    /* Above base background, below content */
    pointer-events: none;
    animation: spotlightGlow 5s infinite alternate ease-in-out;
    /* Add a subtle glow animation */
}

@keyframes spotlightGlow {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.02);
    }

    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
}

.banner-header .header-content {
    position: relative;
    z-index: 2;
    /* Ensure text is above all effects */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner-header .header-content p {
    font-family: "Poppins", sans-serif;
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 0;
    color: var(--text-light);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
    /* Stronger text shadow */
    line-height: 1.3;
}

.banner-header .header-content .kalanilayam-highlight {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 4.5rem;
    /* Matched homepage h1 size for KALANILAYAM */
    font-weight: 300;
    letter-spacing: 4px;
    /* Matched homepage h1 spacing */
    color: var(--text-light);
    /* Base for glowing text */
    text-shadow:
        -1px -1px 0 var(--dark-theme),
        1px -1px 0 var(--dark-theme),
        -1px 1px 0 var(--dark-theme),
        1px 1px 0 var(--dark-theme);
    animation: pulseGlow 3s infinite alternate ease-in-out;
    /* Applying 2.0 glow */
    display: inline-block;
    /* Essential for text-shadow on individual words */
}

/* Original .content-section-title styling */
.content-section-title {
    font-family: "Poppins", sans-serif;
    color: var(--primary-blue);
    margin-bottom: 30px;
    /* Space between title and new highlight section */
    text-align: center;
    font-size: 2.8rem;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    display: block;
    /* Ensure it behaves as a block for the underline */
}

.content-section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 5px;
}

.about-content-section {
    background-color: var(--history-bg);
    /* Apply history background here */
    padding-top: 60px;
    /* Added top padding */
    padding-bottom: 60px;
    /* Added bottom padding to contain the founders section */
}

/* Styles for the excellence highlight section to be a primary blue glass label */
.story-item {
    margin-bottom: 60px;
    display: flex;
    /* Use flexbox for layout */
    align-items: center;
    /* Vertically align image and content */
    gap: 40px;
    /* Space between image and card */
    position: relative;
    z-index: 1;
}

/* Image container for the new design */
.story-item .story-image-outer {
    flex: 0 0 40%;
    /* 40% width for image */
    max-width: 40%;
    position: relative;
    z-index: 1;
    border-radius: 15px;
    /* Added border-radius */
    overflow: hidden;
    /* Ensure image corners are rounded */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Subtle shadow for depth */
    transition: transform 0.3s ease-out;
    /* Reduced transition time for responsiveness */
    will-change: transform;
    /* Hint browser for animation optimization */
}

.story-item .story-image-outer:hover {
    transform: translateY(-8px) scale(1.01);
    /* Reduced lift and zoom */
}

.story-item .story-image-outer img {
    width: 100%;
    height: auto;
    display: block;
    /* Remove extra space below image */
    object-fit: cover;
    /* Cover the container, crop if necessary */
}

/* Content card for the new design */
.story-item .story-content-card {
    flex: 0 0 60%;
    /* 60% width for content */
    max-width: 60%;
    background-color: rgba(255, 255, 255, 0.2);
    /* Semi-transparent white */
    backdrop-filter: blur(10px);
    /* Stronger blur for prominent glass */
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    /* More rounded corners */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(0, 120, 189, 0.1);
    /* Subtle blue glow */
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Lighter border */
    transition:
        transform 0.3s ease-out,
        box-shadow 0.3s ease-out,
        background-color 0.3s ease-out;
    /* Reduced transition time */
    padding: 30px;
    /* More padding inside the card */
    position: relative;
    z-index: 1;
    display: flex;
    /* Make content card a flex container */
    flex-direction: column;
    /* Stack content vertically */
    justify-content: space-between;
    /* Distribute space vertically */
    will-change: transform, box-shadow;
    /* Hint browser for animation optimization */
}

/* Hover effects for the content card */
.story-item .story-content-card:hover {
    transform: translateY(-4px);
    /* Reduced lift on hover */
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18),
        0 0 32px rgba(0, 120, 189, 0.15);
    /* Slightly less intense shadow */
    background-color: rgba(255,
            255,
            255,
            0.25);
    /* Slightly less opaque to reduce redraw cost */
}

/* Alternating Layout for image and content */
.story-item:nth-child(even) {
    flex-direction: row-reverse;
    /* Image on right, content on left */
}

.story-item:nth-child(even) .story-content-card {
    text-align: right;
    /* Align text right when image is left */
}

/* Special alignment for elements within right-aligned card */
.story-item:nth-child(even) .story-content-card h3,
.story-item:nth-child(even) .story-content-card .role,
.story-item:nth-child(even) .story-content-card .excellence-seal {
    align-self: flex-end;
    /* Align these items to the end (right) */
    margin-left: auto;
    /* For auto margin on right aligned flex items */
    margin-right: 0;
    /* Ensure no default left margin interferes */
}

.story-item:nth-child(odd) .story-content-card {
    text-align: left;
    /* Keep text left for odd items */
}

.story-item:nth-child(odd) .story-content-card .excellence-seal {
    align-self: flex-start;
    /* Ensure left alignment for odd items */
    margin-right: auto;
    /* For auto margin on left aligned flex items */
    margin-left: 0;
}

.story-item h3 {
    font-family: "Poppins", sans-serif;
    color: var(--dark-theme);
    margin-bottom: 10px;
    font-size: 2rem;
}

.story-item .role {
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: block;
}

.story-item p {
    line-height: 1.8;
    font-family: "Poppins", sans-serif;
    font-size: 1.05rem;
    margin-bottom: 15px;
    /* Keep consistent margin for content paragraphs */
    color: var(--text-dark);
}

/* Ensure the last paragraph before the badge has some bottom margin */
.story-content-card p:last-of-type:not(:only-child) {
    margin-bottom: 25px;
    /* Add space before the badge */
}

/*
      ** UPDATED STYLING FOR HIGHLIGHTED FOUNDER SECTIONS (No separate section needed, background now on parent)
      */
.about-content-section .story-item {
    margin-bottom: 40px;
    /* Slightly less margin between these two items */
}

.about-content-section .story-item:first-of-type {
    padding-top: 0;
}

.about-content-section .story-item:last-of-type {
    margin-bottom: 0;
    /* No bottom margin for the last item in the history part */
}

.about-content-section .story-image-outer {
    /* Slightly more prominent shadow for founders */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-out;
    /* Apply smoother transition here as well */
    will-change: transform;
}

.about-content-section .story-image-outer:hover {
    transform: translateY(-8px) scale(1.01);
    /* Keep this consistent */
}

.about-content-section .story-content-card {
    background-color: rgba(255, 255, 255, 0.4);
    /* Slightly more opaque glass */
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18),
        0 0 35px rgba(0, 120, 189, 0.15);
    /* Slightly stronger glow */
    transition:
        transform 0.3s ease-out,
        box-shadow 0.3s ease-out,
        background-color 0.3s ease-out;
    /* Apply smoother transition here as well */
    will-change: transform, box-shadow;
}

.about-content-section .story-content-card:hover {
    background-color: rgba(255, 255, 255, 0.45);
    /* Even more opaque on hover */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.22),
        0 0 40px rgba(0, 120, 189, 0.2);
    /* Adjusted shadow for hover */
}

/* Remaining story items go back to default styling */
.remaining-story-section {
    background-color: var(--text-light);
    /* Revert to default light background */
    padding-top: 60px;
    /* Consistent top padding */
    padding-bottom: 60px;
    /* Add bottom padding */
}

.remaining-story-section .story-item {
    margin-bottom: 60px;
    /* Restore standard margin */
}

/* First Time in Theatre Production Section (Reverted to full-width) */
.first-time-section {
    padding: 80px 0;
    background-color: var(--text-light);
    /* Matches body/content section */
    border-bottom: 1px solid var(--gray-light);
    text-align: center;
    /* Center content within section */
}

.first-time-main-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}

.first-time-main-img:hover {
    transform: translateY(-5px);
}

.sub-features-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    /* Space between items (reverted to original size) */
    margin-top: 30px;
}

/* UPDATED: sub-feature-item to be a tight circle */
.sub-feature-item {
    /* Fixed width and height for a perfect circle */
    width: 150px;
    /* Adjust as needed */
    height: 150px;
    /* Must match width */
    border-radius: 50%;
    /* Makes it a circle */
    overflow: hidden;
    /* Ensures content doesn't spill out */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
    align-items: center;
    /* Center content horizontally */
    text-align: center;
    background-color: rgba(255, 255, 255, 0.4);
    /* Lighter glass */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px;
    /* Minimal padding for content */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
    /* Smooth transition for hover */
    flex-shrink: 0;
    /* Prevent shrinking when space is tight */
}

.sub-feature-item:hover {
    transform: translateY(-8px) scale(1.05);
    /* Slight lift and scale on hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15),
        0 0 15px rgba(0, 120, 189, 0.1);
    background-color: rgba(255,
            255,
            255,
            0.5);
    /* Slightly more opaque glass on hover */
}

.sub-feature-item img {
    width: 60px;
    /* Reduced icon size to fit circle better */
    height: 60px;
    object-fit: contain;
    margin-bottom: 5px;
    /* Reduced margin below image even further */
    filter: drop_shadow(0 0 5px rgba(0, 120, 189, 0.3));
    /* Subtle blue glow */
}

.sub-feature-item p {
    font-family: "Poppins", sans-serif;
    font-size: 0.85rem;
    /* Smaller text size for compact circle */
    font-weight: 500;
    color: var(--primary-blue);
    /* Primary blue text */
    line-height: 1.2;
    /* Tighter line height for multi-line text */
    text-transform: uppercase;
    margin-bottom: 0;
    /* Ensure no extra margin */
    padding: 0 5px;
    /* Small horizontal padding to prevent text from touching edges */
}

/* Career Section */
.career-section {
    background-color: var(--dark-theme);
    /* Dark background for strong CTA */
    color: var(--text-light);
    /* UPDATED: Reduced padding for a more compact section */
    padding: 50px 0;
    /* Reduced vertical padding */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.career-section .container {
    /* Use flexbox to align content horizontally on larger screens */
    display: flex;
    flex-direction: column;
    /* Default to column for small screens */
    align-items: center;
    /* Center content */
    justify-content: center;
    /* Center content */
    gap: 20px;
    /* Space between title and button */
}

.career-section h2 {
    font-family: "Poppins", sans-serif;
    /* UPDATED: Smaller font size for a more compact look */
    font-size: 2.2rem;
    /* Reduced font size */
    font-weight: 700;
    /* Removed margin-bottom here, using gap in flex container */
    margin-bottom: 0;
    color: var(--text-light);
    /* Light text */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    line-height: 1.2;
    /* Ensure lines are close if it wraps */
    /* Ensure text does not break onto multiple lines unless necessary for small screens */
    white-space: nowrap;
}

.career-section .btn-career {
    background-color: var(--primary-blue);
    color: var(--text-light) !important;
    border: 2px solid var(--primary-blue);
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    animation: buttonGlow 3s infinite alternate ease-in-out;
    /* Match global button glow */
    flex-shrink: 0;
    /* Prevent button from shrinking */
}

.career-section .btn-career:hover {
    background-color: var(--text-light);
    color: var(--primary-blue) !important;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 120, 189, 0.4);
    border-color: var(--text-light);
}

/* Gallery Grid Section */
.gallery-section {
    padding: 60px 0;
    background-color: var(--text-light);
}

/* .gallery-item is now the <a> tag */
.gallery-item {
    display: block;
    /* Make it a block-level link */
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    /* Remove default link underline */
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
    /* Add background-color to transition */
    cursor: pointer;
    /* Ensure pointer cursor on hover */
}

/* Primary color tint as background when hovering */
.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(0, 120, 189, 0.3);
    /* Add subtle primary glow */
    background-color: rgba(0,
            120,
            189,
            0.1);
    /* Light primary tint on hover */
}

/* Image inside the item, always visible */
.gallery-item img {
    width: 100%;
    /* REMOVED fixed height; using min-height for flexibility */
    min-height: 280px;
    /* Increased minimum height for more impact */
    max-height: 400px;
    /* Optional: set a max height if images are too tall */
    object-fit: cover;
    /* Cover the area, crop if necessary */
    border-radius: 10px;
    /* Apply border radius here as well */
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    /* Slight zoom on image hover */
}

/* Overlay for title and description on hover */
.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.4) 70%,
            rgba(0, 0, 0, 0) 100%);
    /* Stronger gradient */
    color: var(--text-light);
    padding: 15px;
    transform: translateY(100%);
    /* Start hidden below the image */
    opacity: 0;
    /* Also start with opacity 0 */
    transition:
        transform 0.4s ease-out,
        opacity 0.4s ease-out;
    /* Smooth transition */
    border-bottom-left-radius: 10px;
    /* Match item radius */
    border-bottom-right-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Push content to bottom */
    height: 100%;
    /* Make overlay cover entire image height */
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
    /* Slide up to full visibility */
    opacity: 1;
    /* Fade in */
}

.gallery-item-overlay h5 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    /* Slightly bolder */
    text-shadow: 0 0 5px rgba(0, 120, 189, 0.5);
    /* Subtle glow on text */
}

.gallery-item-overlay p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.9;
    /* Keep description slightly hidden, reveal on full hover */
    transform: translateY(10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay p {
    transform: translateY(0);
    opacity: 1;
}

/* FancyBox Customizations */
/* Style the Fancybox caption/toolbar if needed */
.fancybox__caption {
    font-family: "Poppins", sans-serif;
    text-align: center;
    padding: 15px 25px;
    color: var(--text-light);
    background: var(--dark-theme);
    /* Dark background for caption */
    border-radius: 8px;
    /* Slightly rounded corners */
}

.fancybox__caption h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.fancybox__caption p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 0;
}

.fancybox__nav .fancybox__button {
    color: var(--primary-blue);
    /* Navigation arrows */
    font-size: 2.5rem;
    /* Larger arrows */
}

.fancybox__button--close {
    color: var(--primary-blue);
    /* Close button */
    font-size: 2rem;
}


/* Blog Listing Page */
.blog-listing-section {
    padding: 60px 0;
}

.blog-card {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(0, 120, 189, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        background-color 0.4s ease;
    padding: 25px;
    /* Slightly less padding than story cards */
    display: flex;
    flex-direction: column;
    /* Stack image and text vertically */
    height: 100%;
    /* Ensure cards in a row have same height */
}

.blog-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(0, 120, 189, 0.3);
    background-color: rgba(255, 255, 255, 0.3);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    /* Fixed height for consistent image display */
    object-fit: cover;
    /* Cover the area, cropping if necessary */
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.03);
    /* Slight zoom on image on hover */
}

.blog-card h3 {
    font-family: "Poppins", sans-serif;
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
    flex-grow: 1;
    /* Allows title to take up available space */
}

.blog-card p.blog-excerpt {
    font-family: "Poppins", sans-serif;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card .btn-read-more {
    background-color: var(--primary-blue);
    color: var(--text-light) !important;
    border: 2px solid var(--primary-blue);
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    align-self: flex-start;
    /* Align button to the left */
    font-family: "Poppins", sans-serif;
}

.blog-card .btn-read-more:hover {
    background-color: var(--text-light);
    color: var(--primary-blue) !important;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 120, 189, 0.2);
    border-color: var(--text-light);
}

/* Original .content-section-title styling */
.content-section-title {
    font-family: "Poppins", sans-serif;
    color: var(--primary-blue);
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.8rem;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    display: block;
}

.content-section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 5px;
}

/* Contact Map Section */
.contact-map-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--gray-light);
    /* Light background for contrast */
}

.google-map {
    width: 100%;
    height: 450px;
    /* Fixed height for the map */
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(0, 120, 189, 0.3);
    /* Subtle blue border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.google-map:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(0, 120, 189, 0.2);
    /* Enhanced shadow on hover */
}

/* Contact Form Section */
.contact-form-section {
    padding: 60px 0;
}

/* APPLY GLASSMORPHISM TO BOTH CONTACT CARDS */

.contact-form-card .content-section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.contact-form-card,
.contact-details-card {
    background-color: rgba(255, 255, 255, 0.2);
    /* Semi-transparent white */
    backdrop-filter: blur(10px);
    /* Stronger blur for prominent glass */
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    /* More rounded corners */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(0, 120, 189, 0.1);
    /* Subtle blue glow */
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Lighter border */
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        background-color 0.4s ease;
    /* Smooth transitions */
    padding: 40px;
}

/* Hover for both cards */
.contact-form-card:hover,
.contact-details-card:hover {
    transform: translateY(-5px) scale(1.005);
    /* Slight lift and scale */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2),
        0 0 35px rgba(0, 120, 189, 0.2);
    /* Enhanced shadow and glow */
    background-color: rgba(255, 255, 255, 0.3);
    /* Slightly less transparent */
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    background-color: rgba(255, 255, 255, 0.7);
    /* Lighter input background */
    border: 1px solid rgba(0, 120, 189, 0.3);
    /* Subtle blue border */
    border-radius: 8px;
    color: var(--text-dark);
    font-family: "Poppins", sans-serif;
    padding: 12px 15px;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 120, 189, 0.25);
    /* Primary blue focus ring */
    background-color: var(--text-light);
    /* More solid on focus */
}

.contact-form-card .form-control::placeholder {
    color: var(--gray-medium);
    /* Placeholder color */
    opacity: 0.8;
}

.contact-form-card .btn-submit {
    background-color: var(--primary-blue);
    color: var(--text-light) !important;
    border: 2px solid var(--primary-blue);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-family: "Poppins", sans-serif;
    animation: buttonGlow 3s infinite alternate ease-in-out;
    /* Match global button glow */
}

.contact-form-card .btn-submit:hover {
    background-color: var(--text-light);
    color: var(--primary-blue) !important;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 120, 189, 0.4);
    border-color: var(--text-light);
}

/* Contact Details Section Adjustments */
/* Removed height: 100% from here */
.contact-details-card {
    display: flex;
    /* Use flexbox for internal vertical alignment */
    flex-direction: column;
    /* Stack children vertically */
    justify-content: flex-start;
    /* Align content to the start (top) within the card */
    align-items: flex-start;
    /* Align content to the start (left) */
    padding: 40px;
    /* Initial padding */
    /* min-height can be added if a very minimum height is required, otherwise let content define */
}

/* Parent column for vertical centering of the contact details card */
.contact-form-section .col-lg-5 {
    display: flex;
    /* Make the column a flex container */
    align-items: center;
    /* Vertically center its content (the card) */
    margin-bottom: 40px;
    /* Kept for smaller screens where it stacks */
}

.contact-details-card h4 {
    color: var(--primary-blue);
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    margin-bottom: 25px;
    /* Adjust margin */
    font-size: 1.8rem;
    width: 100%;
    /* Ensure title takes full width for alignment */
    text-align: left;
    /* Explicitly left-align */
}

.contact-details-card .detail-item {
    display: flex;
    align-items: flex-start;
    /* Align items to the top if text wraps */
    margin-bottom: 20px;
    /* Reduced spacing between detail items */
    line-height: 1.6;
    width: 100%;
    /* Ensure item takes full width for alignment */
}

.contact-details-card .detail-item i {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-right: 20px;
    width: 30px;
    /* Fixed width for icon alignment */
    text-align: center;
    flex-shrink: 0;
    /* Prevent icon from shrinking */
}

.contact-details-card .detail-item p,
.contact-details-card .detail-item a {
    margin: 0;
    color: var(--text-dark);
    /* Changed to text-dark for better contrast on transparent background */
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details-card .detail-item a:hover {
    color: var(--primary-blue);
}

.contact-details-card .detail-item p span {
    display: block;
    /* Ensure each line of address/detail is on its own line */
}

.blog-content-section {
    padding: 60px 0;
}

.blog-post-card {
    background-color: rgba(255, 255, 255, 0.2);
    /* Glassmorphism effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(0, 120, 189, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    /* Generous padding for readability */
    margin-bottom: 40px;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        background-color 0.4s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px) scale(1.005);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2),
        0 0 35px rgba(0, 120, 189, 0.2);
    background-color: rgba(255, 255, 255, 0.3);
}

.blog-post-card .post-thumbnail {
    width: 100%;
    max-height: 500px;
    /* Max height for featured image */
    object-fit: cover;
    /* Cover the area, cropping if necessary */
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-thumbnail {
    transform: scale(1.01);
}

.blog-post-card .post-title {
    font-family: "Poppins", sans-serif;
    color: var(--primary-blue);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.blog-post-card .post-meta {
    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;
    color: var(--gray-medium);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.blog-post-card .post-meta i {
    margin-right: 8px;
    color: var(--primary-blue);
}

.blog-post-card .post-content h2,
.blog-post-card .post-content h3,
.blog-post-card .post-content h4 {
    font-family: "Poppins", sans-serif;
    color: var(--dark-theme);
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-post-card .post-content h2 {
    font-size: 2rem;
}

.blog-post-card .post-content h3 {
    font-size: 1.6rem;
}

.blog-post-card .post-content h4 {
    font-size: 1.3rem;
}

.blog-post-card .post-content p {
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.blog-post-card .post-content ul,
.blog-post-card .post-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.blog-post-card .post-content ul li,
.blog-post-card .post-content ol li {
    font-family: "Poppins", sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.terms-content-section {
    padding: 60px 0;
    line-height: 1.8;
    /* Improved readability for paragraphs */
}

.terms-content-section h2 {
    font-family: "Poppins", sans-serif;
    color: var(--primary-blue);
    margin-bottom: 25px;
    text-align: left;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--gray-light);
    /* Subtle line below main headings */
}

.terms-content-section h3 {
    font-family: "Poppins", sans-serif;
    color: var(--dark-theme);
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 600;
}

.terms-content-section p,
.terms-content-section li {
    font-family: "Poppins", sans-serif;
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.terms-content-section ul {
    list-style-type: disc;
    padding-left: 25px;
}

.terms-content-section ol {
    list-style-type: decimal;
    padding-left: 25px;
}

.terms-content-section a {
    color: var(--primary-blue);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.terms-content-section a:hover {
    color: var(--dark-theme);
}

/** Career page **/
.application-form-section {
    background-color: var(--gray-light);
    /* Lighter background for this section */
    padding: 80px 0;
    /* Generous padding */
    text-align: center;
    /* Center the form itself */
}

.application-form-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center content within the container */
}

.application-form-section h2 {
    font-family: "Poppins", sans-serif;
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-size: 2.8rem;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    display: block;
}

.application-form-section h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 5px;
}

.application-form-section p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
}

/* Styling for the Form Container (Glassmorphism) */
.application-form-container {
    background-color: rgba(255, 255, 255, 0.3);
    /* Lighter transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1),
        0 0 25px rgba(0, 120, 189, 0.15);
    /* Slightly stronger blue glow */
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 40px;
    /* Increased padding */
    width: 100%;
    max-width: 700px;
    /* Max width for the form itself */
    text-align: left;
    /* Align form elements to the left */
}

/* Custom styles for Bootstrap form elements */
.form-label {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    color: var(--dark-theme);
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-control,
.form-select,
.form-text-area {
    background-color: rgba(255, 255, 255, 0.7);
    /* More opaque for typing */
    border: 1px solid rgba(0, 120, 189, 0.4);
    /* Subtle blue border */
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text-dark);
    font-size: 1rem;
    transition:
        all 0.3s ease,
        border-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-control:focus,
.form-select:focus,
.form-text-area:focus {
    background-color: var(--text-light);
    /* Lighter on focus */
    border-color: var(--primary-blue);
    /* Primary blue border on focus */
    box-shadow:
        0 0 0 0.25rem rgba(0, 120, 189, 0.25),
        0 0 10px rgba(0, 120, 189, 0.3);
    /* Subtle blue glow on focus */
    outline: none;
}

.form-text-area {
    min-height: 150px;
    /* Larger textarea */
    resize: vertical;
    /* Allow vertical resizing */
}

/* File Input specific styling */
.form-control[type="file"] {
    padding-top: 10px;
    /* Adjust padding for file input text */
    padding-bottom: 10px;
    color: var(--text-dark);
    /* Ensure text color is readable */
}

.form-control[type="file"]::file-selector-button {
    background-color: var(--primary-blue);
    color: var(--text-light);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-control[type="file"]::file-selector-button:hover {
    background-color: darken(var(--primary-blue), 10%);
    opacity: 0.9;
}

.btn-submit-form {
    background-color: var(--primary-blue);
    color: var(--text-light) !important;
    border: 2px solid var(--primary-blue);
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    animation: buttonGlow 3s infinite alternate ease-in-out;
    margin-top: 30px;
    /* Space above button */
    width: 100%;
    /* Make button full width of form */
}

.btn-submit-form:hover {
    background-color: var(--text-light);
    color: var(--primary-blue) !important;
    transform: scale(1.02);
    /* Slight scale on hover for form button */
    box-shadow: 0 10px 25px rgba(0, 120, 189, 0.5);
    border-color: var(--text-light);
}


/* PAGE LOADER STYLES */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18,
            18,
            18,
            0.9);
    /* Semi-transparent dark overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Ensure it's on top */
    opacity: 0;
    /* Start hidden */
    visibility: hidden;
    /* Start hidden */
    transition:
        opacity 0.3s ease-in-out,
        visibility 0.3s ease-in-out;
}

#page-loader.show {
    opacity: 1;
    visibility: visible;
}

#page-loader .spinner-border {
    width: 4rem;
    /* Larger spinner */
    height: 4rem;
    /* Larger spinner */
    border-width: 0.4em;
    /* Thicker spinner border */
    color: var(--primary-blue);
    /* Spinner color matching brand */
}

#page-loader p {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-top: 20px;
    font-weight: 500;
    animation: pulseGlow 2s infinite alternate ease-in-out;
    /* Subtle glow for text */
}


/* Modal Specific Styles (Image-only Popup) */
#imageModal .modal-content {
    background-color: rgba(255, 255, 255, 0.2);
    /* Semi-transparent white */
    backdrop-filter: blur(15px);
    /* Strong blur for glass effect */
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    /* More rounded corners */
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(0, 120, 189, 0.3); */
    /* Stronger shadow and glow */
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* Lighter border */
    overflow: hidden;
    /* Important for image to fit borderRadius */
    position: relative;
    /* For close button positioning */
}

#imageModal .modal-body {
    padding: 0;
    /* Remove padding to make image fill the content */
}

#imageModal .modal-body img {
    width: 100%;
    height: auto;
    display: block;
    /* Remove extra space below image */
    border-radius: 20px;
    /* Match modal border radius */
}

#imageModal .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    /* Ensure it's above the image */
    font-size: 1.5rem;
    /* Larger close icon */
    color: var(--primary-blue);
    /* Blue close icon */
    opacity: 0.8;
    background-color: rgba(255,
            255,
            255,
            0.6);
    /* Semi-transparent white background for button */
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0;
    /* Remove default padding for btn-close */
}

#imageModal .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
    background-color: var(--primary-blue);
    /* Solid blue on hover */
    color: var(--text-light);
    /* White X on hover */
}

/* Adjust modal dialog for sizing (make it larger, more prominent) */
#imageModal .modal-dialog {
    margin: 1.75rem auto;
    /* Center vertically */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .blog-post-card {
        padding: 25px;
    }

    .blog-post-card .post-thumbnail {
        max-height: 250px;
    }

    .blog-post-card .post-title {
        font-size: 1.8rem;
    }

    .blog-post-card .post-meta {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .blog-post-card .post-meta i {
        font-size: 1.1rem;
        margin-right: 5px;
    }

    .blog-post-card .post-content p {
        font-size: 0.95rem;
    }

    .blog-post-card .post-content ul li,
    .blog-post-card .post-content ol li {
        font-size: 0.95rem;
    }

    .terms-conditions-header {
        min-height: 200px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .terms-conditions-header h1 {
        font-size: 2rem;
        /* Adjusted for mobile tagline */
    }

    .terms-content-section {
        padding: 40px 0;
    }

    .terms-content-section h2 {
        font-size: 1.5rem;
    }

    .terms-content-section h3 {
        font-size: 1.2rem;
    }

    .terms-content-section p,
    .terms-content-section li {
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) {

    /* Apply horizontal alignment for career section on larger screens */
    .career-section .container {
        flex-direction: row;
        /* Align horizontally */
        justify-content: center;
        /* Center content horizontally */
        align-items: center;
        /* Vertically center content */
    }

    .career-section h2 {
        /* Prevent wrapping if possible on desktop, but allow fluid size */
        white-space: nowrap;
        font-size: 2.5rem;
        /* Slightly larger on desktop */
    }

}

@media (max-width: 992px) {
    .banner h1 {
        font-size: 4rem;
    }

    .banner p {
        font-size: 1.5rem;
    }

    .footer-logo {
        max-width: 80px;
    }

    .story-bg-circles .circle-top-left,
    .story-bg-circles .circle-bottom-right {
        width: 25%;
        height: 25%;
    }

    .visionaries-side-shapes .left-shape-v,
    .visionaries-side-shapes .right-shape-v {
        width: 10%;
        /* Smaller on medium screens */
    }

    .banner-header .header-content p {
        font-size: 2rem;
    }

    .banner-header .header-content .kalanilayam-highlight {
        font-size: 3.5rem;
        letter-spacing: 2px;
    }

    /* Fixed glow adjustment */
    .banner-header::before {
        opacity: 0.08;
        /* Slightly less opaque for mobile if needed */
    }

    /* Wave adjustment */
    .banner-header::after {
        background-size: 15px 15px;
        /* Smaller waves on mobile */
        opacity: 0.6;
        /* Adjust wave opacity on mobile */
    }

    /* First time section (full-width on mobile) */
    .first-time-main-img {
        margin-bottom: 30px;
    }

    .sub-features-grid {
        flex-direction: row;
        /* Keep them in a row for better fit in a single line if possible */
        justify-content: center;
        gap: 15px;
        /* Reduced gap */
    }

    .sub-feature-item {
        width: 120px;
        /* Smaller circles on tablet */
        height: 120px;
        padding: 8px;
        /* Less padding */
    }

    .sub-feature-item img {
        width: 50px;
        /* Smaller icon on tablet */
        height: 50px;
        margin-bottom: 3px;
    }

    .sub-feature-item p {
        font-size: 0.8rem;
        /* Smaller text on tablet */
        line-height: 1.1;
    }

    .career-section h2 {
        font-size: 2.5rem;
    }

    .career-section .btn-career {
        padding: 10px 25px;
        font-size: 1rem;
    }

    .story-item {
        flex-direction: column;
        /* Stack image and card vertically */
        gap: 30px;
        /* Space between stacked items */
    }

    .story-item .story-image-outer,
    .story-item .story-content-card {
        flex: 0 0 100%;
        /* Full width for both */
        max-width: 100%;
    }

    .story-item:nth-child(even) {
        flex-direction: column;
        /* Ensure stacking for even items too */
    }

    .story-item .story-content-card {
        text-align: left !important;
        /* Force text to left on mobile */
    }

    .story-item h3 {
        text-align: left !important;
    }

    .story-item .role {
        text-align: left !important;
    }

    .footer-logo {
        max-width: 180px;
    }

    /* Responsive adjustments for .content-section-title and .excellence-section */
    .content-section-title {
        font-size: 2rem;
        /* Adjust title size */
        margin-bottom: 20px;
        /* Adjusted margin */
    }

    .excellence-section {
        max-width: fit-content;
        /* Adjust width for mobile, still fit content */
        padding: 6px 15px;
        /* Adjust padding for a smaller label */
        font-size: 1rem;
        /* Smaller highlight on mobile */
        margin-top: -10px;
        /* Adjust top margin for mobile */
        margin-bottom: 30px;
        /* Adjust bottom margin for mobile */
    }

    .excellence-section p {
        font-size: 0.9rem;
        /* Even smaller font on mobile for label */
    }

    .content-section h2 {
        font-size: 30px;
    }

    .career-section h2 {
        font-size: 1.9rem;
    }

    .blog-header .header-content h1 {
        font-size: 3rem;
    }

    /* Fixed glow adjustment */
    .blog-header::before {
        opacity: 0.08;
    }

    /* Wave adjustment */
    .blog-header::after {
        background-size: 15px 15px;
        opacity: 0.6;
    }

    /* Blog cards responsive */
    .blog-card {
        padding: 20px;
    }

    .blog-card-image {
        height: 180px;
        /* Adjust height for smaller screens */
    }

    .blog-card h3 {
        font-size: 1.5rem;
    }

    .blog-card p.blog-excerpt {
        font-size: 0.95rem;
    }

    .contact-form-section .col-lg-5 {
        margin-bottom: 0;
        /* Remove bottom margin on desktop if it's side-by-side */
    }

    .contact-form-card,
    .contact-details-card {
        padding: 30px;
        /* Reduced padding on smaller screens */
        margin-bottom: 30px;
        /* Adjust spacing between columns */
    }

    /* Ensure column is not flex on smaller screens to avoid spacing issues when stacked */
    .contact-form-section .col-lg-5 {
        display: block;
        align-items: unset;
    }

    .contact-details-card h4 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .contact-details-card .detail-item {
        margin-bottom: 20px;
    }

    .contact-details-card .detail-item i {
        font-size: 1.5rem;
        margin-right: 15px;
    }

    .contact-details-card .detail-item p,
    .contact-details-card .detail-item a {
        font-size: 0.95rem;
    }

    .blog-detail-header .header-content h1 {
        font-size: 3rem;
    }

    .blog-post-card .post-title {
        font-size: 2.2rem;
    }

    .blog-post-card .post-content p {
        font-size: 1rem;
    }

    /* Fixed glow adjustment */
    .blog-detail-header::before {
        opacity: 0.08;
    }

    /* Wave adjustment */
    .blog-detail-header::after {
        background-size: 15px 15px;
        opacity: 0.6;
    }

    .blog-post-card {
        padding: 30px;
    }

    .blog-post-card .post-thumbnail {
        max-height: 350px;
    }

    .blog-post-card .post-content h2 {
        font-size: 1.8rem;
    }

    .blog-post-card .post-content h3 {
        font-size: 1.4rem;
    }

    .blog-post-card .post-content h4 {
        font-size: 1.2rem;
    }

    .terms-conditions-header h1 {
        font-size: 2.8rem;
    }

    .terms-content-section h2 {
        font-size: 1.8rem;
    }

    .terms-content-section h3 {
        font-size: 1.4rem;
    }

    .terms-content-section p,
    .terms-content-section li {
        font-size: 0.95rem;
    }

    .application-form-section h2 {
        font-size: 2rem;
        /* Adjust title size for mobile */
    }

    .application-form-section p {
        font-size: 1rem;
    }

    .application-form-container {
        padding: 30px;
        /* Less padding on smaller screens */
        max-width: 95%;
        /* Allow it to take more width on tablets */
    }

    .form-control,
    .form-select,
    .form-text-area {
        padding: 10px 12px;
        /* Smaller padding for inputs */
        font-size: 0.95rem;
    }

    .btn-submit-form {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .navbar {
        height: 70px;
    }

    .navbar-brand img {
        max-height: 28px;
        /* Adjusted logo size for mobile responsiveness */
    }

    .navbar .btn-book-now {
        padding: 6px 15px;
        font-size: 0.9rem;
        margin-left: 10px;
        /* Adjust glow size for mobile */
        animation: buttonGlowMobile 3s infinite alternate ease-in-out;
    }

    @keyframes buttonGlowMobile {
        0% {
            box-shadow: 0 0 3px var(--primary-blue), 0 0 5px rgba(0, 120, 189, 0.5);
        }

        50% {
            box-shadow: 0 0 8px var(--primary-blue), 0 0 15px rgba(0, 120, 189, 0.8),
                0 0 20px rgba(0, 120, 189, 0.5);
        }

        100% {
            box-shadow: 0 0 3px var(--primary-blue), 0 0 5px rgba(0, 120, 189, 0.5);
        }
    }

    /* Mobile menu specific background */
    .navbar-collapse {
        background-color: var(--dark-theme);
        /* Solid background for mobile menu */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
        margin-top: 1rem;
        /* Adjust space below toggler */
        border-radius: 5px;
        padding-bottom: 10px;
    }

    .navbar-nav {
        width: 100%;
        /* Ensure menu takes full width */
    }

    .navbar-nav .nav-item {
        margin: 0;
        /* Remove horizontal margin */
        padding: 8px 15px;
        /* Add vertical padding for touch */
        text-align: center;
        /* Center menu items */
    }

    .navbar-nav .btn-book-now {
        margin: 10px auto 5px;
        /* Center button and add vertical margin */
        display: block;
        /* Make it a block element to center with margin:auto */
        width: fit-content;
        /* Shrink to content width */
    }

    .banner {
        min-height: 400px;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .banner h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .banner p {
        font-size: 0.9rem;
        text-underline-offset: 4px;
    }

    .banner-header {
        min-height: 200px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .banner-header .header-content p {
        font-size: 1.2rem;
        /* Adjusted for mobile tagline */
    }

    .banner-header .header-content .kalanilayam-highlight {
        font-size: 2.5rem;
        /* Matched homepage mobile h1 */
        letter-spacing: 1px;
        /* Matched homepage mobile h1 */
    }

    /* No specific .story-card padding as it's now .story-content-card */
    .story-content-card {
        padding: 20px;
    }

    .story-image-outer img {
        max-height: 280px;
        /* Smaller max height for mobile */
        object-fit: contain;
        /* Ensure image fits well within the new design on mobile */
    }

    .story-item h3 {
        font-size: 1.5rem;
    }

    .story-item .role {
        font-size: 1rem;
    }

    .story-item p {
        font-size: 0.95rem;
    }

    .blog-header {
        min-height: 180px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .blog-header .header-content h1 {
        font-size: 2.2rem;
    }

    .blog-card-image {
        height: 160px;
    }

    .blog-card h3 {
        font-size: 1.3rem;
    }

    .blog-card p.blog-excerpt {
        font-size: 0.9rem;
    }

    .blog-card .btn-read-more {
        padding: 6px 15px;
        font-size: 0.9rem;
    }

    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .floating-buttons .btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .footer-links li {
        text-align: center;
    }

    .social-icons {
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .social-icons a {
        font-size: 1.5rem;
        margin: 0 8px;
    }

    .footer-logo {
        max-width: 300px;
    }

    .footer-content .col-md-4,
    .footer-content .col-md-2,
    .footer-content .col-md-3 {
        text-align: center;
    }

    .footer-content .col-md-4 p {
        text-align: center;
        /* Adjust text alignment for mobile in footer about */
    }

    /* Hide side shapes on small screens for better content focus */
    .story-bg-circles,
    .visionaries-side-shapes {
        display: none;
    }

    .application-form-container {
        padding: 20px;
        /* Smaller padding for mobile */
    }

    .btn-submit-form {
        padding: 10px 25px;
        font-size: 0.95rem;
    }

    #imageModal .modal-dialog {
        max-width: 90%;
        /* On mobile, make it wider */
    }

    #imageModal .btn-close {
        top: 10px;
        right: 10px;
        font-size: 1.2rem;
        width: 30px;
        height: 30px;
    }
}
