/* ==========================================================================
   Thrissur Zoological Park - High Contrast Organic Theme Stylesheet
   ========================================================================== */

:root {
    --primary-dark: #071F0C;       /* Deep Malabar Jungle Shadow */
    --primary-mid: #0D4715;        /* Vibrant Canopy Green */
    --accent-gold: #FF9F1C;        /* Great Hornbill Yellow-Gold */
    --accent-neon: #2ECC71;        /* Bright Bio Green */
    --accent-orange: #E67E22;      /* Bengal Tiger Orange */
    --header-bg: #EAEFD9;          /* Pale Moss Yellow-Green Backdrop */
    --btn-green: #6AA84F;          /* Natural Grass Button Base Color */
    --btn-hover: #45722E;          /* Muted Dark Forest Focus Tone */
    --bg-light: #F4F7F2;           /* Light Moss Cream Page Background */
    --card-white: #FFFFFF;
    --text-main: #1C2321;          /* Dark Charcoal Core Typography */
    --text-light: #F4F7F2;
    --border-color: #D2DBCE;
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Portrait-friendly video container */
.kunju-intro-video-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 280px;  /* Vertical orientation width */
    height: 480px; /* Vertical orientation height */
    z-index: 25000;
    display: none; 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    background: #000;
}

.kunju-intro-video-container.active {
    display: block;
}

.kunju-intro-video-container video {
    width: 100%;
    height: 100%;
    /* 'contain' ensures the full portrait frame is seen without cropping */
    object-fit: contain; 
    background-color: #000;
}

/* ==========================================================================
   Inner Page Fixed Floating Chat Modifications
   ========================================================================== */
.inner-page-chat-trigger {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 8px 15px;
    box-shadow: 0 6px 20px rgba(4, 18, 7, 0.15);
    border: 1px solid var(--border-color);
    z-index: 9998; /* Sits cleanly beneath the open chat module */
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto !important; /* Overrides fixed slider constraints */
}

/* Slowly hides the floating icon badge when the main console opens over it */
.kunju-chat-window.open ~ .inner-page-chat-trigger {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
    transition: all 0.3s ease;
}
/* ==========================================================================
   Kunju Virtual Assistant Live FAQ Chat System
   ========================================================================== */

/* Make the trigger badge look visibly interactive */
.nav-links, .banner-slider-container { z-index: 100; }
#kunju-chat-trigger {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#kunju-chat-trigger:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,159,28,0.3);
}

/* Base Float App Canvas Container Frame */
.kunju-chat-window {
    position: fixed;
    bottom: -500px; /* Hidden out of frame initially */
    right: 25px;
    width: 360px;
    height: 480px;
    background: #FFFFFF;
    border-radius: 12px 12px 6px 6px;
    box-shadow: 0 12px 35px rgba(4, 18, 7, 0.25);
    border: 2px solid var(--primary-mid);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999; /* Always floats over header modules and body grids */
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.kunju-chat-window.open {
    bottom: 25px; /* Slides up beautifully on activation */
}

/* Chat Header Zone Layout */
.chat-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--accent-gold);
    color: #FFFFFF;
}
.chat-header-profile { display: flex; align-items: center; gap: 10px; }
.chat-header-avatar { height: 35px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.chat-header-profile h4 { font-size: 15px; font-weight: 700; }
.chat-status-indicator { font-size: 11px; color: var(--accent-neon); display: block; font-weight: 600; }
.chat-close-trigger { font-size: 28px; cursor: pointer; color: #A2B6A6; transition: color 0.2s; }
.chat-close-trigger:hover { color: var(--accent-orange); }

/* Chat Message Log Windows */
.chat-body {
    flex: 1;
    padding: 15px;
    background-color: #F8FAF6;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-msg {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    max-width: 85%;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.bubble-kunju {
    background-color: #EAEFD9;
    color: var(--primary-dark);
    align-self: flex-start;
    border-left: 3px solid var(--btn-green);
    border-top-left-radius: 2px;
}
.bubble-user {
    background-color: var(--primary-mid);
    color: #FFFFFF;
    align-self: flex-end;
    border-top-right-radius: 2px;
}

/* Interaction Controls Console footer */
.chat-footer {
    background: #FFFFFF;
    padding: 12px;
    border-top: 1px solid var(--border-color);
}
.faq-options-tray {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 140px;
    overflow-y: auto;
}
.faq-btn {
    background: #F4F7F2;
    color: var(--primary-mid);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.faq-btn:hover {
    background: var(--btn-green);
    color: white;
    border-color: var(--btn-green);
}

/* Mobile responsive optimization styling override context rules */
@media (max-width: 400px) {
    .kunju-chat-window {
        right: 10px;
        left: 10px;
        width: auto;
    }
}
/* ==========================================================================
   Tab Content Pane Visibility Engine & Animations
   ========================================================================== */
.tab-content-container {
    width: 100%;
    position: relative;
}

/* Hide all panes by default */
.tab-pane {
    display: none;
    width: 100%;
}

/* Display the active pane with a smooth transition fade effect */
.tab-pane.active {
    display: block;
    animation: tabFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tabFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(8px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
/* Base Document Reset Routines */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Smooth Scrolling Marquee Banner (NZP Feature Replication) */
.marquee-container {
    background: var(--accent-orange);
    color: var(--text-light);
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 40px;
    box-shadow: inset 0 -2px 5px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1010;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: nzpMarquee 30s linear infinite;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.marquee-content span {
    padding-right: 80px;
}

@keyframes nzpMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ==========================================================================
   Header Component (Matches Screenshot Structure & Color Layout)
   ========================================================================== */
.site-header {
    background-color: var(--header-bg);
    position: relative;
    padding-bottom: 35px; /* Leaves clear viewport clearance space for wavy overlay layer */
    z-index: 1000;
}

.nav-container {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    position: relative;
    z-index: 20;
}

/* Logo Sizing Rules (Extends smoothly across layout borders) */
.logo-block {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-block img {
    height: 95px;
    width: auto;
    filter: drop-shadow(0px 3px 5px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}

.logo-block:hover img {
    transform: scale(1.03);
}

/* Main Menu Horizontal Navigation Elements */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
}

/* Redesigned Button Links Array matching reference styling */
.nav-btn {
    display: inline-block;
    color: #FFFFFF;
    background-color: var(--btn-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 24px;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), inset 0 1px 1px rgba(255,255,255,0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    border: 1px solid rgba(0,0,0,0.1);
    transition: var(--transition-fast);
}

.nav-btn:hover, .nav-btn.active {
    background-color: var(--btn-hover);
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    transform: translateY(-1px);
}

/* Wavy Header Divider Graphic System Mapping */
.header-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.header-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 38px;
}

.header-wave .shape-fill-dark {
    fill: var(--primary-mid);
}

.header-wave .shape-fill-light {
    fill: var(--btn-green);
}

/* ==========================================================================
   Full Width Banner Slider Container With Organic HUD Overlays
   ========================================================================== */
.banner-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Strictly preserves the image canvas proportions without stretching */
    overflow: hidden;
    background-color: var(--primary-dark);
}

.banner-slider, .slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Smooth 1-second crossfade sequence */
    z-index: 1;
}
/* ==========================================================================
   Tab Content Pane Visibility Engine & Animations
   ========================================================================== */
.tab-content-container {
    width: 100%;
    position: relative;
}

/* Hide all panes by default */
.tab-pane {
    display: none;
    width: 100%;
}

/* Display the active pane with a smooth transition fade effect */
.tab-pane.active {
    display: block;
    animation: tabFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tabFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(8px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Custom Base-Layer Wavy Silhouette Mask Layer */
.slider-bottom-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}

.slider-bottom-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.slider-bottom-wave .shape-fill-bg {
    fill: var(--bg-light);
}

.slider-bottom-wave .shape-fill-accent {
    fill: var(--btn-green);
}

/* ==========================================================================
   HUD Layout Placement Rules Mapping
   ========================================================================== */
.slider-hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none; /* Allows canvas space transparent area selection to clear clicks */
}

/* Forces specific isolated clickable points on graphic links */
.hud-floating-card {
    position: absolute;
    pointer-events: auto;
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hud-asset {
    display: block;
    width: 100%;
    height: auto;
}

/* Top-Right Ticketing Form Badge Placement Mapping */
.hud-top-right {
    top: 4%;
    right: 3%;
    width: clamp(120px, 14vw, 210px);
}

/* Mid-Left Float Window Configuration mapping */
.hud-mid-left {
    top: 45%;
    left: 2%;
    width: clamp(110px, 13vw, 195px);
    transform: translateY(-50%);
}

/* Mid-Right Live Cam Interface Frame Mapping */
.hud-mid-right {
    top: 45%;
    right: 2%;
    width: clamp(120px, 14vw, 210px);
    transform: translateY(-50%);
}

/* Corrective Reset for transforms on combined utility interactions */
.hud-mid-left:hover { transform: translateY(-55%) scale(1.05); }
.hud-mid-right:hover { transform: translateY(-55%) scale(1.05); }

/* Center Base Component Cluster */
.hud-center-bottom {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
}

/* Video Trigger Link Callouts Section */
.video-trigger-group {
    display: block;
}

.video-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #D35400 100%);
    color: #FFFFFF;
    text-decoration: none;
    font-size: clamp(11px, 1.1vw, 14px);
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition-fast);
}

.video-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

/* Mascot Display Anchored Frame Profile styling layout */
.kunju-assistant-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 6px 14px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.kunju-character {
    height: clamp(65px, 7.5vw, 105px);
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.kunju-bubble-tag h4 {
    color: var(--accent-gold);
    font-size: clamp(13px, 1.3vw, 17px);
    font-weight: 800;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.kunju-bubble-tag p {
    color: #FFFFFF;
    font-size: clamp(10px, 0.9vw, 12px);
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Micro Interaction Keyframe Scripts for Floating Components */
.pulse-interaction {
    animation: badgePulse 2.5s infinite ease-in-out;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }
    50% { transform: scale(1.03); filter: drop-shadow(0 6px 14px rgba(255,159,28,0.4)); }
}

.bounce-hover:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.45));
}

/* Responsive Scaling Overrides for Smaller Mobile Interfaces */
@media (max-width: 768px) {
    .site-header { padding-bottom: 20px; }
    .nav-container { flex-direction: column; gap: 12px; }
    .nav-links { gap: 8px; }
    .nav-btn { font-size: 11px; padding: 6px 12px; }
    .header-wave svg { height: 20px; }
    .slider-bottom-wave svg { height: 25px; }
    .hud-center-bottom { bottom: 6%; gap: 4px; }
    .kunju-assistant-badge { padding: 2px 6px; }
}

/* ==========================================================================
   Main Core Content Display Grid Layout Framework
   ========================================================================== */
.main-container {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 32px;
    color: var(--primary-dark);
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
    border-left: 6px solid var(--accent-orange);
    text-transform: uppercase;
}

/* Interactive Standard Grid Layout Component */
.feature-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
    margin-bottom: 50px; 
}

.info-card { 
    background: var(--card-white); 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.06); 
    border: 1px solid var(--border-color); 
    transition: var(--transition-fast); 
}

.info-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.12); 
}

.card-img { 
    height: 200px; 
    background-size: cover; 
    background-position: center; 
}

.card-body { 
    padding: 25px; 
}

.card-body h3 { 
    font-size: 20px; 
    color: var(--primary-mid); 
    margin-bottom: 12px; 
}

/* Tab Panel Element Framework Components styling layout */
.tab-row { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 25px; 
    border-bottom: 3px solid var(--border-color); 
    padding-bottom: 2px; 
}

.tab-btn { 
    padding: 10px 20px; 
    background: none; 
    border: none; 
    font-weight: 700; 
    color: #556251; 
    cursor: pointer; 
    border-radius: 4px 4px 0 0; 
    transition: var(--transition-fast); 
}

.tab-btn.active, .tab-btn:hover { 
    color: #FFFFFF; 
    background: var(--primary-mid); 
}

/* Layout Presentation Parameters Tables styling layout grid */
.tariff-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: var(--card-white); 
    border-radius: 6px; 
    overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    margin-bottom: 50px;
}

.tariff-table th { 
    background: var(--primary-mid); 
    color: #FFFFFF; 
    padding: 14px; 
    text-align: left; 
    font-weight: 600; 
}

.tariff-table td { 
    padding: 12px 14px; 
    border-bottom: 1px solid var(--border-color); 
    font-size: 14px; 
}

.tariff-table tr:nth-child(even) { 
    background: #F8FAF6; 
}

/* ==========================================================================
   Structural Base Footer Block Component Matrix
   ========================================================================== */
footer { 
    background: #041207; 
    color: #A2B6A6; 
    padding: 50px 20px 25px 20px; 
    border-top: 5px solid var(--accent-gold); 
}

.footer-columns { 
    max-width: 1300px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px; 
    border-bottom: 1px solid #112B16; 
    padding-bottom: 30px; 
}

.footer-col h4 { 
    color: #FFFFFF; 
    margin-bottom: 20px; 
    font-size: 16px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    border-bottom: 2px solid var(--accent-orange); 
    display: inline-block; 
    padding-bottom: 4px; 
}

.footer-col ul { 
    list-style: none; 
}

.footer-col ul li { 
    margin-bottom: 12px; 
}

.footer-col ul li a { 
    color: #A2B6A6; 
    text-decoration: none; 
    transition: var(--transition-fast); 
}

.footer-col ul li a:hover { 
    color: var(--accent-gold); 
    padding-left: 4px; 
}

.footer-bottom { 
    text-align: center; 
    padding-top: 25px; 
    font-size: 12px; 
    color: #69826E; 
}