/* ==========================================================================
   Antigravity Premium Template System - Full-Page & Reflective Architecture
   Udayarkunnu Bhagavathy Temple Official Portal
   ========================================================================== */

/* 1. Global Full-Page Canvas & Temple Silk Background */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #faf5ec !important;
    background-image:
        radial-gradient(ellipse at 50% 0%, #fffdf8 0%, #faf3e6 45%, #f1e2c6 100%),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c8963e' fill-opacity='0.038' fill-rule='evenodd'%3E%3Cpath d='M40 0l40 40-40 40L0 40 40 0zm0 10L10 40l30 30 30-30-30-30z'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E") !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    color: #443c33;
    overflow-x: hidden;
    position: relative;
}

/* Atmospheric Ambient Silk Finish */
body {
    background-color: #faf5ec !important;
    background-image:
        radial-gradient(ellipse at 50% 0%, #fffdf8 0%, #faf3e6 45%, #f1e2c6 100%),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c8963e' fill-opacity='0.038' fill-rule='evenodd'%3E%3Cpath d='M40 0l40 40-40 40L0 40 40 0zm0 10L10 40l30 30 30-30-30-30z'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E") !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    color: #443c33;
    overflow-x: hidden;
    position: relative;
}

/* 2. Unconstrain Main & Outer to Full Viewport Width */
main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: left;
    position: relative;
    z-index: 2;
}

.outer {
    width: 100% !important;
    float: left;
    background: transparent !important;
    background-image: none !important;
}

/* 3. Full-Bleed Grand Header with Centered Content */
header {
    width: 100% !important;
    float: left;
    background: #ffffff !important;
    background: linear-gradient(180deg, #ffffff 0%, #fffdf8 70%, #fbf5e8 100%) !important;
    border-bottom: 2px solid #ca9515 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(169, 90, 11, 0.1) !important;
    padding: 16px 0 !important;
    margin: 0 !important;
    position: relative;
    z-index: 110;
}

/* Centered positioning on widescreen */
header>.logo {
    float: left;
    margin-left: max(25px, calc((100% - 1380px) / 2));
    transition: transform 0.3s ease;
}

header>.logo:hover {
    transform: scale(1.02);
}

header>.top {
    float: right;
    margin-right: max(25px, calc((100% - 1380px) / 2));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.top-info {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
}

.top-info span {
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
    color: #634327;
}

.top-info i {
    color: #b56c07 !important;
    margin-right: 8px !important;
    font-size: 17px !important;
}

.top-info a {
    color: #7a3a00 !important;
    font-weight: 600;
    transition: color 0.25s ease;
}

.top-info a:hover {
    color: #c96500 !important;
    text-decoration: none;
}

social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px 0;
}

social audio {
    height: 32px;
    max-width: 200px;
    border-radius: 20px;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    vertical-align: middle;
}

social a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #a95a0b 0%, #d47e1b 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(169, 90, 11, 0.35);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

social a:hover {
    transform: translateY(-3px) scale(1.08) !important;
    box-shadow: 0 6px 15px rgba(169, 90, 11, 0.55) !important;
    color: #ffe400 !important;
}

social a.social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    box-shadow: 0 3px 8px rgba(220, 39, 67, 0.35) !important;
}

social a.social-instagram:hover {
    box-shadow: 0 6px 16px rgba(220, 39, 67, 0.6) !important;
    color: #ffffff !important;
}

/* 4. Full-Bleed Reflective Gold Menu Bar */
.menu-bar {
    width: 100% !important;
    float: left;
    position: relative;
    background: linear-gradient(180deg, #e4b136 0%, #ca9515 45%, #b27f08 50%, #c49014 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -1px 2px rgba(0, 0, 0, 0.25), 0 5px 20px rgba(169, 90, 11, 0.25) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-bottom: 2px solid #845a03 !important;
    padding: 0 !important;
    z-index: 100;
}

.menu-bar:before,
.menu-bar:after {
    display: none !important;
}

.menu-bar .mm_menu {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
}

.menu-bar .mm_menu nav {
    width: 100% !important;
    float: none !important;
}

.menu-bar .mm_menu nav ul {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 2px 10px !important;
    float: none !important;
}

.mm_menu nav ul li {
    display: inline-block;
}

.mm_menu a {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    padding: 15px 14px !important;
    display: inline-block;
    border-radius: 5px;
    margin: 3px 2px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Reflective Specular Pill on Hover & Selected */
.mm_menu a:hover,
.mm_menu li.selected a {
    color: #ffffff !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.12) 100%) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 3px 10px rgba(0, 0, 0, 0.22) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    transform: translateY(-1px);
}

/* 5. Full-Bleed Grand Hero Banner Stage (100% Edge-to-Edge, Zero Blank Space) */
.slide-wrap.hero-slide-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
    position: relative !important;
    background: transparent !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    border: none !important;
    border-top: 1px solid rgba(202, 149, 21, 0.45) !important;
    border-bottom: 2px solid #ca9515 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

#transition-timer-carousel {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    aspect-ratio: 2480 / 440 !important;
    max-height: 480px !important;
    height: auto !important;
    background: transparent !important;
    overflow: hidden !important;
}

#transition-timer-carousel .carousel-inner {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    aspect-ratio: 2480 / 440 !important;
    max-height: 480px !important;
    height: auto !important;
    overflow: hidden !important;
}

#transition-timer-carousel .carousel-inner>.item {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: 2480 / 440 !important;
    max-height: 480px !important;
    height: auto !important;
    overflow: hidden !important;
}

.hero-banner-item {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: 2480 / 440 !important;
    max-height: 480px !important;
    height: auto !important;
    overflow: hidden !important;
    background: transparent !important;
    display: block !important;
    text-align: center !important;
}

.hero-banner-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    display: block !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* 6. Hero Feature Cards Section: Perfectly Aligned 3 Cards Across Screen */
.hero-feature-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 35px 0 !important;
    padding: 0 30px !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: both !important;
}

.hero-feature-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.hero-feature-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

.hero-feature-col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

@media screen and (max-width: 991px) {
    .hero-feature-section {
        padding: 0 15px !important;
    }

    .hero-feature-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media screen and (max-width: 640px) {
    .hero-feature-section {
        padding: 0 12px !important;
    }

    .hero-feature-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* High-Gloss Reflective Light Sweep on Feature Cards */
.hero-feature-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
    border: 1.5px solid #dfc79b !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(169, 90, 11, 0.08) !important;
    transition: all 0.35s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.hero-feature-img-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    background: #fbf7ee !important;
    overflow: hidden !important;
}

.hero-feature-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: transform 0.4s ease !important;
}

.hero-feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.45) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    transition: all 0.8s ease;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
}

.hero-feature-card:hover::before {
    left: 135%;
    opacity: 1;
}

.hero-feature-card:hover {
    transform: translateY(-6px) !important;
    border-color: #a95a0b !important;
    box-shadow: 0 14px 35px rgba(169, 90, 11, 0.32), 0 3px 10px rgba(0, 0, 0, 0.12) !important;
}

/* 7. Inner Sanctuary Content Card (Full-Width Framed Container) */
.inner-wrap {
    width: calc(100% - 60px) !important;
    max-width: 100% !important;
    margin: 0 30px 50px 30px !important;
    padding: 45px 50px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1.5px solid rgba(223, 199, 155, 0.5) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(169, 90, 11, 0.05) !important;
    position: relative !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: both !important;
}

@media screen and (max-width: 991px) {
    .inner-wrap {
        width: calc(100% - 30px) !important;
        margin: 0 15px 35px 15px !important;
        padding: 30px 25px !important;
    }
}

@media screen and (max-width: 640px) {
    .inner-wrap {
        width: calc(100% - 24px) !important;
        margin: 0 12px 25px 12px !important;
        padding: 20px 15px !important;
    }
}

/* 8. Full-Bleed Grand Temple Footer */
footer {
    width: 100% !important;
    float: left;
    background: linear-gradient(180deg, #7c1901 0%, #560f00 60%, #380800 100%) !important;
    border-top: 3px solid #dfa929 !important;
    box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.5), 0 -6px 25px rgba(169, 90, 11, 0.2) !important;
    padding: 40px 20px !important;
    color: #fcebd9 !important;
    position: relative;
    clear: both;
    font-size: 13.5px !important;
    text-align: center;
}

footer p {
    max-width: 1200px;
    margin: 0 auto 15px auto !important;
    line-height: 2;
}

footer a {
    color: #ffd880 !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0 4px;
}

footer a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 216, 128, 0.9);
}

/* 9. Refined Polish on Sections Inside Inner-Wrap */
h1.vector.heading {
    font-size: 32px;
    color: #7a1705;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

h1.vector.heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ca9515, #881c00, #ca9515, transparent);
    border-radius: 2px;
}

.img-style {
    border-radius: 8px;
    border: 1.5px solid #dfc79b;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.img-style:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(169, 90, 11, 0.25);
}

.link a {
    background: linear-gradient(135deg, #a95a0b 0%, #c97116 100%) !important;
    color: #ffffff !important;
    padding: 8px 22px !important;
    border-radius: 20px !important;
    display: inline-block;
    box-shadow: 0 4px 14px rgba(169, 90, 11, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    font-weight: 600;
    text-decoration: none !important;
}

.link a:hover {
    background: linear-gradient(135deg, #c97116 0%, #a95a0b 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(169, 90, 11, 0.5) !important;
    color: #ffffff !important;
}

/* Festival Date Cards Polish */
.topimg {
    background: linear-gradient(135deg, #881c00 0%, #a95a0b 100%) !important;
    color: #fff !important;
    font-weight: bold;
    border-radius: 6px 6px 0 0;
    padding: 10px 15px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.listprog {
    background: #ffffff;
    border: 1px solid #ebd9b8;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.listprog:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(169, 90, 11, 0.2);
}

/* News Box Polish */
.gray-box {
    background: #fdfaf3 !important;
    border: 1px solid #ebd9b8 !important;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    padding: 20px !important;
}

/* Two-Column Intro Layout Inside Inner-Wrap */
.two-col {
    width: 48% !important;
    float: left !important;
    margin-right: 4% !important;
    box-sizing: border-box !important;
}

.two-col.last {
    margin-right: 0 !important;
}

@media screen and (max-width: 820px) {
    .two-col {
        width: 100% !important;
        margin-right: 0 !important;
        float: none !important;
    }
}

/* Responsive Fluid Adjustments */
@media screen and (max-width: 1240px) {
    header>.logo {
        margin-left: 15px;
    }

    header>.top {
        margin-right: 15px;
    }
}

@media screen and (max-width: 768px) {
    header>.logo {
        float: none;
        text-align: center;
        margin: 0 auto 15px auto;
    }

    header>.top {
        float: none;
        align-items: center;
        margin: 0 auto;
    }

    .inner-wrap {
        width: calc(100% - 20px) !important;
        margin: 0 10px 25px 10px !important;
        padding: 20px 15px !important;
        border-radius: 8px !important;
        border: 1px solid rgba(223, 199, 155, 0.4) !important;
    }
}

/* Mobile MeanMenu Temple Polish */
.mean-container .mean-bar {
    background: linear-gradient(180deg, #ca9515 0%, #b27f08 100%) !important;
    border-bottom: 2px solid #845a03;
}

.mean-container .mean-nav {
    background: linear-gradient(180deg, #912204 0%, #681100 100%) !important;
    border-top: 1px solid rgba(255, 215, 0, 0.4);
}

.mean-container .mean-nav ul li a {
    color: #fff9ea !important;
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.mean-container .mean-nav ul li a:hover {
    background-color: rgba(255, 215, 0, 0.18) !important;
    color: #ffd880 !important;
}

/* ==========================================================================
   History Page: Mannarkkad Pooram Article Styling
   ========================================================================== */
.history-article {
    max-width: 1040px;
    margin: 0 auto;
    padding: 10px 15px 30px 15px;
    font-family: ManjariRegular, Arial, sans-serif;
    color: #3d352e;
    line-height: 1.9;
    font-size: 16px;
}

.history-hero-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.35);
    position: relative;
}

.history-hero-header::after {
    content: '❖';
    position: absolute;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    padding: 0 14px;
    color: #ca9515;
    font-size: 16px;
}

.history-main-title {
    font-size: 34px !important;
    font-weight: 700;
    color: #7a1705 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.3 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.history-main-subtitle {
    font-size: 19px;
    font-weight: 600;
    color: #a95a0b;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.history-temple-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fbf5e8;
    color: #6d4218;
    font-size: 13.5px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid #ebd9b8;
}

.history-lead {
    font-size: 17.5px;
    line-height: 1.95;
    color: #442a15;
    background: #fdfaf4;
    border-left: 4px solid #ca9515;
    padding: 16px 22px;
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
}

.history-section {
    margin: 35px 0;
}

.history-section h2 {
    font-size: 21px;
    font-weight: 700;
    color: #7a1705;
    margin: 32px 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 1.5px solid rgba(202, 149, 21, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.history-section h2 i {
    color: #ca9515;
    font-size: 17px;
}

.history-section p {
    margin: 0 0 16px 0;
    text-align: justify;
    text-justify: inter-word;
    font-size: 15.5px;
    line-height: 1.95;
    color: #3d352e;
}

.history-highlight-card {
    background: linear-gradient(135deg, #fffdf8 0%, #fbf3e4 100%);
    border: 1.5px solid #dfc79b;
    border-radius: 10px;
    padding: 24px 28px;
    margin: 32px 0;
    box-shadow: 0 6px 20px rgba(169, 90, 11, 0.08);
}

.history-highlight-card h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    color: #881c00;
    font-weight: 700;
}

.history-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0 18px 0;
    font-size: 14px;
    font-weight: 600;
    color: #634327;
}

.history-event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 16px;
    border: 1px solid #ebd9b8;
}

.history-quote-box {
    background: linear-gradient(135deg, #7c1901 0%, #560f00 100%);
    color: #fff9ea;
    border-radius: 10px;
    padding: 25px 30px;
    margin: 35px 0 20px 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(124, 25, 1, 0.25);
    border: 1.5px solid #dfa929;
}

.history-quote-box p {
    color: #fff9ea !important;
    font-size: 17px;
    line-height: 1.8;
    margin: 0;
    font-weight: 600;
    text-align: center !important;
}

@media screen and (max-width: 768px) {
    .history-main-title {
        font-size: 26px !important;
    }

    .history-main-subtitle {
        font-size: 16px;
    }

    .history-section h2 {
        font-size: 18px;
    }

    .history-article {
        padding: 5px 5px 20px 5px;
    }

    .history-section p {
        text-align: left;
    }
}