:root {
    --primary-green: #1a6b4a;
    --dark-green: #0d4a32;
    --accent-orange: #e8772e;
    --accent-red: #c0392b;
    --light-bg: #f5f0eb;
    --text-dark: #2c3e50;
    --gold: #c8a84e;
    --gold-light: #e8d48b;
    --deep-maroon: #6b1c23;
    --parchment: #f8f3e8;
    --parchment-dark: #ede4d0;
    --mural-red: #b84233;
    --mural-green: #2e7d5b;
    --mural-yellow: #d4a843;
    --mural-blue: #2c5f7c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", sans-serif;
    overflow-x: hidden;
    background: var(--parchment);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Cinzel", "Playfair Display", serif;
}

/* Kerala ornamental divider */
.kerala-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
}

.kerala-divider .line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.kerala-divider .ornament {
    color: var(--gold);
    font-size: 1.2rem;
}

/* Section title with Kerala mural style */
.section-title-kerala {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title-kerala h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.section-title-kerala h2::before,
.section-title-kerala h2::after {
    content: "✦";
    color: var(--gold);
    font-size: 0.8rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.section-title-kerala h2::before {
    left: -30px;
}
.section-title-kerala h2::after {
    right: -30px;
}

.section-title-kerala .subtitle {
    color: var(--primary-green);
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 8px;
    font-family: "Open Sans", sans-serif;
}

.section-title-kerala .mural-border {
    width: 120px;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--mural-red),
        var(--gold),
        var(--mural-green),
        var(--gold),
        var(--mural-red)
    );
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, var(--dark-green), #082a1c);
    color: white;
    padding: 8px 0;
    font-size: 0.82rem;
    border-bottom: 2px solid var(--gold);
}

.top-bar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--gold);
}
.top-bar i {
    margin-right: 6px;
    color: var(--gold-light);
}

/* Navbar Brand Layout */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-family: "Cinzel", serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.brand-subtitle {
    font-family: "Cinzel", serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* Existing Navbar Styles (kept intact) */
.navbar {
    background: rgba(248, 243, 232, 0.97);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(200, 168, 78, 0.2);
}

.navbar.scrolled {
    padding: 5px 0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
    background: rgba(248, 243, 232, 0.98);
}

.navbar-brand img {
    height: 60px;
    transition: all 0.3s ease;
}

/* Scale down logo AND text on scroll */
.navbar.scrolled .navbar-brand img {
    height: 45px;
}

.navbar.scrolled .brand-name {
    font-size: 1rem;
}

.navbar.scrolled .brand-subtitle {
    font-size: 0.7rem;
}

/* Existing Nav Link Styles */
.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 12px !important;
    position: relative;
    transition: color 0.3s;
    font-family: "Cinzel", serif;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-green) !important;
}

/* Mobile Responsive Adjustment */
@media (max-width: 991px) {
    .brand-name {
        font-size: 1rem;
    }
    .brand-subtitle {
        font-size: 0.7rem;
    }
}
/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: calc(100vh - 130px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-carousel #heroCarousel {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 100%;
}

.hero-carousel .carousel-item {
    background-size: cover;
    background-position: center;
    position: relative;
    /* animation: kenBurns 20s ease-in-out infinite alternate; */
}
/* Apply the animation ONLY to the currently active slide */
.hero-carousel .carousel-item.active {
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        background-size: 100%;
        background-position: center;
    }
    100% {
        background-size: 115%;
        background-position: 40% 40%;
    }
}

.hero-carousel .carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(13, 74, 50, 0.3) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

/* Kerala mural ornamental frame on hero */
.hero-carousel::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--gold) 0%,
        var(--mural-red) 25%,
        var(--gold) 50%,
        var(--mural-green) 75%,
        var(--gold) 100%
    );
    z-index: 25;
}

.hero-carousel .carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-align: left;
    left: 8%;
    right: auto;
}

.hero-carousel .carousel-caption .hero-label {
    display: inline-block;
    background: rgba(200, 168, 78, 0.9);
    color: var(--dark-green);
    font-family: "Cinzel", serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 6px 18px;
    margin-bottom: 15px;
}

.hero-carousel .carousel-caption h2 {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.6);
    animation: slideInLeft 1s ease;
    line-height: 1.1;
}

.hero-carousel .carousel-caption p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin-top: 12px;
    line-height: 1.7;
    font-weight: 300;
}

/* ==========================================
         FORCE Carousel Controls Visibility & Centering
         ========================================== */
.carousel-control-prev,
.carousel-control-next {
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: 55px !important;
    height: 55px !important;
    background: rgba(
        13,
        74,
        50,
        0.7
    ) !important; /* Dark green semi-transparent */
    border: 2px solid var(--gold) !important;
    border-radius: 50% !important;
    z-index: 50 !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    padding: 0 !important;
}

.carousel-control-prev {
    left: 20px !important;
}

.carousel-control-next {
    right: 20px !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--gold) !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(200, 168, 78, 0.5) !important;
}

.carousel-control-prev:hover i,
.carousel-control-next:hover i {
    color: var(--dark-green) !important;
}

/* Hide default bootstrap SVG icons to prevent any ghosting or conflicts */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none !important;
}
/* ========================================== */

/* ==========================================
         CAROUSEL INDICATORS - Small Full Round Dots
         ========================================== */
.carousel-indicators {
    bottom: 20px !important;
    margin-bottom: 0 !important;
    z-index: 15 !important;
}

.carousel-indicators [data-bs-target] {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.45) !important;
    border: 1.5px solid var(--gold) !important;
    opacity: 1 !important;
    margin: 0 5px !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3) !important;
}

.carousel-indicators [data-bs-target]:hover {
    background-color: rgba(200, 168, 78, 0.6) !important;
    transform: scale(1.2);
}

.carousel-indicators .active {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
    width: 10px !important;
    height: 10px !important;
    box-shadow: 0 0 12px rgba(200, 168, 78, 0.7) !important;
}
/* ========================================== */

/*============ Title Image for sub pages ============*/
/* Page Top Image (40% of screen height) */
.page-top-image {
    position: relative;
    width: 100%;
    height: 40vh;
    overflow: hidden;
}

.page-top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.page-top-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--gold) 0%,
        var(--mural-red) 25%,
        var(--gold) 50%,
        var(--mural-green) 75%,
        var(--gold) 100%
    );
    z-index: 5;
}

@media (max-width: 768px) {
    .page-top-image {
        height: 40vh;
    }
}

/*============ End of Title Image for sub pages ============*/

/* Feature Cards */
.feature-cards {
    padding: 0;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.feature-cards-row {
    display: flex;
    width: 100%;
}

.feature-card {
    flex: 1;
    height: 240px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition:
        transform 0.4s,
        box-shadow 0.4s;
    background-size: cover;
    background-position: center;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(13, 74, 50, 0.2) 0%,
        rgba(13, 74, 50, 0.75) 100%
    );
    transition: background 0.4s;
}

.feature-card:hover::before {
    background: linear-gradient(
        180deg,
        rgba(13, 74, 50, 0.1) 0%,
        rgba(13, 74, 50, 0.55) 100%
    );
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.feature-card-1 {
    background-image: url("../images/landing_page/feature-card-1.png");
}
.feature-card-2 {
    background-image: url("../images/landing_page/feature-card-2.png");
}
.feature-card-3 {
    background-image: url("../images/landing_page/feature-card-3.png");
}

.feature-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 30px 20px 25px;
}

.feature-card .card-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.feature-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--gold);
}

.feature-card .card-ornament {
    width: 50px;
    height: 2px;
    background: var(--gold);
    margin: 10px auto 0;
}

/* News & Events Section */
.news-section {
    padding: 80px 0;
    background: var(--parchment);
    position: relative;
}

.news-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="80" fill="none" stroke="rgba(200,168,78,0.04)" stroke-width="1"/><circle cx="100" cy="100" r="60" fill="none" stroke="rgba(200,168,78,0.03)" stroke-width="1"/></svg>');
    background-size: 250px;
    opacity: 0.6;
}

.news-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s;
    margin-bottom: 20px;
    border: 1px solid rgba(200, 168, 78, 0.15);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: var(--gold);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-card .card-body {
    padding: 18px;
}

.news-card .card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: 8px;
    font-family: "Cinzel", serif;
}

.news-card .card-meta {
    font-size: 0.72rem;
    color: var(--accent-orange);
    font-weight: 600;
}

/* Sidebar Tabs */
.sidebar-tabs .nav-tabs {
    border: none;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--parchment-dark);
}

.sidebar-tabs .nav-link {
    border: none;
    color: #999;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    padding: 8px 15px;
    border-bottom: 2px solid transparent;
    font-family: "Cinzel", serif;
}

.sidebar-tabs .nav-link.active {
    color: var(--primary-green);
    border-bottom-color: var(--gold);
    background: transparent;
}

.sidebar-news-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(200, 168, 78, 0.1);
    transition: all 0.3s;
}

.sidebar-news-item:hover {
    padding-left: 10px;
}

.sidebar-news-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(200, 168, 78, 0.2);
}

.sidebar-news-item .news-info h6 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 5px;
}

.sidebar-news-item .news-info span {
    font-size: 0.7rem;
    color: #999;
}

.featured-video {
    margin-top: 30px;
}

.featured-video h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    margin-bottom: 15px;
    font-family: "Cinzel", serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    border: 2px solid rgba(200, 168, 78, 0.2);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Conference Banner */
.conference-banner {
    background:
        linear-gradient(135deg, rgba(13, 74, 50, 0.93), rgba(8, 42, 28, 0.95)),
        url("https://images.unsplash.com/photo-1602216056096-3b40cc0c9944?w=1920")
            center/cover;
    padding: 100px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.conference-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--gold),
        var(--mural-red),
        var(--gold),
        var(--mural-green),
        var(--gold)
    );
}

.conference-banner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--gold),
        var(--mural-red),
        var(--gold),
        var(--mural-green),
        var(--gold)
    );
}

.conference-banner h2 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
    position: relative;
}

.conference-banner .subtitle {
    font-family: "Cinzel", serif;
    font-size: 0.85rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 30px;
    position: relative;
    color: var(--gold-light);
}

.conference-banner p {
    font-size: 1.05rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.9;
    opacity: 0.9;
    position: relative;
}

.conference-banner .kerala-divider .line {
    background: linear-gradient(
        90deg,
        transparent,
        var(--gold-light),
        transparent
    );
}

.conference-banner .kerala-divider .ornament {
    color: var(--gold-light);
}

/* Mission & Vision */
.mission-vision {
    padding: 80px 0;
    background: white;
    border-top: 3px solid var(--parchment-dark);
}

.mv-card {
    background: var(--parchment);
    border-radius: 4px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.4s;
    border-left: 4px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.mv-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(
        circle at top right,
        rgba(200, 168, 78, 0.08),
        transparent 70%
    );
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.mv-card .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--primary-green),
        var(--dark-green)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 3px solid var(--gold);
}

.mv-card .icon-circle i {
    font-size: 2rem;
    color: white;
}

.mv-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.mv-card p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.mv-card ul {
    list-style: none;
    padding: 0;
}

.mv-card ul li {
    padding: 6px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.mv-card ul li::before {
    content: "❧";
    color: var(--gold);
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

.values-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.values-list span {
    background: linear-gradient(
        135deg,
        var(--primary-green),
        var(--dark-green)
    );
    padding: 5px 18px;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
    font-family: "Cinzel", serif;
}

/* Facebook Widget */
.fb-widget {
    background: var(--parchment);
    border-radius: 4px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(200, 168, 78, 0.15);
}

.fb-widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.fb-widget-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.fb-widget-header h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.fb-widget-header span {
    font-size: 0.78rem;
    color: #999;
}

.fb-follow-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.85rem;
    width: 100%;
    margin-bottom: 15px;
    transition: background 0.3s;
    font-family: "Cinzel", serif;
    letter-spacing: 1px;
}

.fb-follow-btn:hover {
    background: var(--dark-green);
}

.fb-post {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 168, 78, 0.25);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fb-post .fb-page {
    max-width: 100%;
}

/* Loading state before FB SDK loads */
.fb-post::before {
    content: "Loading Facebook Page...";
    display: block;
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-family: "Open Sans", sans-serif;
    font-size: 0.9rem;
}

.fb-post.loaded::before {
    display: none;
}

/* Heritage Gallery Section */
.heritage-section {
    padding: 80px 0;
    background: var(--dark-green);
    color: white;
    position: relative;
    overflow: hidden;
}

.heritage-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(200,168,78,0.05)" stroke-width="1"/><circle cx="50" cy="50" r="25" fill="none" stroke="rgba(200,168,78,0.03)" stroke-width="1"/></svg>');
    background-size: 200px;
}

.heritage-section .section-title-kerala h2 {
    color: white;
}
.heritage-section .section-title-kerala .subtitle {
    color: var(--gold-light);
}

.heritage-card {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s;
    border: 2px solid rgba(200, 168, 78, 0.3);
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.3);
}

.heritage-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
}

.heritage-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

.heritage-card:hover img {
    transform: scale(1.08);
}

.heritage-card .heritage-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.heritage-card .heritage-overlay h5 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.heritage-card .heritage-overlay span {
    font-size: 0.75rem;
    color: var(--gold-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0a0f1a, #121a2e);
    color: white;
    padding: 60px 0 20px;
    border-top: 3px solid var(--gold);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(200, 168, 78, 0.1);
    border: 1px solid rgba(200, 168, 78, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--dark-green);
    transform: translateY(-3px);
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
    font-family: "Cinzel", serif;
}

.footer-nav a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(200, 168, 78, 0.15);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    position: relative;
    padding-right: 60px;
}

/*################ Marquee news starts ################*/
/* Hero Marquee */
.hero-marquee {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    background: rgba(13, 74, 50, 0.94);
    backdrop-filter: blur(8px);
    z-index: 20;
    overflow: hidden;
    border-top: 2px solid var(--gold);
}

.hero-carousel .carousel-inner {
    z-index: 1;
}

.marquee-label {
    background: var(--gold);
    color: var(--dark-green);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: "Cinzel", serif;
}

.marquee-track {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: flex;
    animation: marqueeScroll 60s linear infinite;
    white-space: nowrap;
    color: var(--gold);
}

/* Pause on hover */
.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-content a {
    color: rgba(255, 255, 255, 1);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.marquee-content a:hover {
    color: var(--gold);
    transform: scale(1.05);
}

.marquee-content a i {
    color: var(--gold);
    font-size: 0.4rem;
    transition: all 0.3s ease;
}

.marquee-content a:hover i {
    color: var(--gold-light);
    transform: scale(1.3);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}
/*################ Marquee news ends ################*/

/* Scroll to top button */
.scroll-top {
    width: 42px;
    height: 42px;
    background: linear-gradient(
        135deg,
        var(--primary-green),
        var(--dark-green)
    );
    color: white;
    border: 2px solid var(--gold);
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow:
        0 4px 15px rgba(26, 107, 74, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.scroll-top:hover {
    background: linear-gradient(135deg, var(--gold), #b8963e);
    color: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200, 168, 78, 0.5);
}

.footer-scroll-top {
    position: absolute;
    right: 30px;
    bottom: 30px;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}
.floating {
    animation: pulse 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-carousel {
        height: calc(100vh - 130px);
    }
    .hero-carousel .carousel-caption h2 {
        font-size: 2.5rem;
    }
    .conference-banner h2 {
        font-size: 2rem;
    }
    .feature-cards-row {
        flex-wrap: wrap;
    }
    .feature-card {
        flex: 1 1 calc(50% - 1px);
        height: 200px;
    }
    .section-title-kerala h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 0.72rem;
        text-align: center;
    }
    .hero-carousel {
        height: calc(100vh - 120px);
    }
    .hero-carousel .carousel-caption h2 {
        font-size: 1.8rem;
    }
    .hero-carousel .carousel-caption {
        left: 5%;
    }
    .feature-card {
        flex: 1 1 100%;
        height: 170px;
    }
    .feature-card .card-content h3 {
        font-size: 1rem;
    }
    .conference-banner {
        padding: 60px 0;
    }
    .conference-banner h2 {
        font-size: 1.5rem;
    }
    .mv-card {
        padding: 25px;
    }
    .navbar-collapse {
        background: var(--parchment);
        padding: 15px;
        border-radius: 4px;
        margin-top: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(200, 168, 78, 0.2);
    }
}

@media (max-width: 576px) {
    .hero-carousel .carousel-caption h2 {
        font-size: 1.4rem;
    }
    .feature-card .card-content h3 {
        font-size: 0.9rem;
    }
    .feature-card .card-icon {
        font-size: 2rem;
    }
    .marquee-label {
        font-size: 0.65rem;
        padding: 8px 12px;
    }
    .marquee-content a {
        font-size: 0.72rem;
        padding: 0 20px;
    }
    .section-title-kerala h2 {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--parchment);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--parchment-dark);
    border-top-color: var(--gold);
    border-right-color: var(--gold-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow:
        0 0 20px rgba(200, 168, 78, 0.3),
        inset 0 0 15px rgba(200, 168, 78, 0.1);
}

.loader-text {
    margin-top: 20px;
    font-family: "Cinzel", serif;
    font-size: 0.85rem;
    color: var(--primary-green);
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: loaderPulse 2s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%,
    100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(26, 107, 74, 0.3);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========== GLOSSY & ANIMATION ENHANCEMENTS =========== */

/* Logo glow pulse */
.navbar-brand img {
    animation: logoGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 0px transparent);
}

@keyframes logoGlow {
    0%,
    100% {
        filter: drop-shadow(0 0 4px rgba(200, 168, 78, 0.2));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(200, 168, 78, 0.6))
            drop-shadow(0 0 30px rgba(200, 168, 78, 0.2));
    }
}

/* Navbar glossy glass */
.navbar {
    background: rgba(248, 243, 232, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.navbar.scrolled {
    background: rgba(248, 243, 232, 0.92) !important;
    backdrop-filter: blur(25px) saturate(200%);
}

/* Gold shimmer on headings */
.section-title-kerala h2,
.hero-carousel .carousel-caption h2,
.conference-banner h2 {
    background: linear-gradient(
        110deg,
        var(--text-dark) 0%,
        var(--text-dark) 40%,
        var(--gold) 50%,
        var(--text-dark) 60%,
        var(--text-dark) 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: goldShimmer 4s ease-in-out infinite;
}

.hero-carousel .carousel-caption h2,
.conference-banner h2 {
    background: linear-gradient(
        110deg,
        white 0%,
        white 40%,
        var(--gold-light) 50%,
        white 60%,
        white 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: goldShimmer 4s ease-in-out infinite;
}

@keyframes goldShimmer {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: -100% 50%;
    }
}

/* Glossy card surfaces */
.news-card,
.mv-card,
.fb-widget,
.heritage-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.news-card::after,
.mv-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.news-card:hover::after,
.mv-card:hover::after {
    left: 100%;
}

/* Enhanced card hover glow */
.news-card:hover {
    box-shadow:
        0 15px 40px rgba(200, 168, 78, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--gold);
}

.mv-card:hover {
    box-shadow:
        0 15px 50px rgba(200, 168, 78, 0.12),
        0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Feature card icon bounce animation */
.feature-card:hover .card-icon {
    animation: iconBounce 0.6s ease;
    color: white;
    text-shadow: 0 0 20px rgba(200, 168, 78, 0.8);
}

@keyframes iconBounce {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.3) rotate(-5deg);
    }
    50% {
        transform: scale(0.9) rotate(5deg);
    }
    70% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* Heritage card icon rotate on hover */
.heritage-card:hover .heritage-overlay h5 {
    text-shadow: 0 0 15px rgba(200, 168, 78, 0.5);
}

.heritage-card .heritage-overlay span {
    transition:
        letter-spacing 0.4s,
        color 0.3s;
}

.heritage-card:hover .heritage-overlay span {
    letter-spacing: 4px;
    color: white;
}

/* Mission/Vision icon pulse on hover */
.mv-card:hover .icon-circle {
    animation: iconPulse 0.8s ease;
    box-shadow: 0 0 25px rgba(200, 168, 78, 0.4);
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(200, 168, 78, 0);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(200, 168, 78, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 25px rgba(200, 168, 78, 0.4);
    }
}

/* Glossy button effects */
.fb-follow-btn,
.carousel-control-prev,
.carousel-control-next {
    position: relative;
    overflow: hidden;
}

.fb-follow-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.fb-follow-btn:hover::after {
    left: 100%;
}

.fb-follow-btn:hover {
    box-shadow: 0 5px 20px rgba(26, 107, 74, 0.4);
}

/* Footer social icon animations */
.footer-social a {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.footer-social a:hover {
    transform: translateY(-5px) scale(1.15);
    box-shadow: 0 8px 25px rgba(200, 168, 78, 0.3);
}

.footer-social a:nth-child(1):hover {
    color: #e4405f;
    border-color: #e4405f;
    background: rgba(228, 64, 95, 0.15);
}
.footer-social a:nth-child(2):hover {
    color: #1877f2;
    border-color: #1877f2;
    background: rgba(24, 119, 242, 0.15);
}
.footer-social a:nth-child(3):hover {
    color: #1da1f2;
    border-color: #1da1f2;
    background: rgba(29, 161, 242, 0.15);
}

/* Top bar social icon spin on hover */
.top-bar a:hover i {
    animation: socialSpin 0.5s ease;
}

@keyframes socialSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Floating particles container */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(1);
    }
}

/* Mural border animated gradient */
.section-title-kerala .mural-border {
    animation: muralGlow 3s ease-in-out infinite;
}

@keyframes muralGlow {
    0%,
    100% {
        opacity: 0.8;
        box-shadow: 0 0 5px rgba(200, 168, 78, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(200, 168, 78, 0.5);
    }
}

/* Hero caption text glow */
.hero-carousel .carousel-caption p {
    animation: fadeInUp 1.2s ease 0.3s both;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-carousel .carousel-caption .hero-label {
    animation: fadeInUp 0.8s ease 0.1s both;
    box-shadow: 0 4px 15px rgba(200, 168, 78, 0.3);
}

/* Feature card glossy shine overlay */
.feature-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.12) 0%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Hero label golden glow */
.hero-label {
    box-shadow: 0 4px 20px rgba(200, 168, 78, 0.35);
    text-shadow: none;
}

/* Nav link glow on hover */
.navbar-nav .nav-link:hover {
    text-shadow: 0 0 10px rgba(26, 107, 74, 0.2);
}

/* Conference banner text glow */
.conference-banner h2 {
    text-shadow: 0 0 30px rgba(200, 168, 78, 0.3);
}

/* Values badge glossy */
.values-list span {
    background: linear-gradient(
        135deg,
        var(--primary-green),
        var(--dark-green)
    );
    box-shadow:
        0 3px 10px rgba(13, 74, 50, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
}

.values-list span:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(13, 74, 50, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Top bar glossy effect */
.top-bar {
    background: linear-gradient(135deg, var(--dark-green), #082a1c);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid;
    border-image: linear-gradient(
            90deg,
            transparent,
            var(--gold),
            var(--gold-light),
            var(--gold),
            transparent
        )
        1;
}
