/* =========================================================
   TEMPLE HISTORY - PREMIUM
========================================================= */

:root {
    --cream:#fff4e3;
    --cream-light:#fffaf1;
    --cream-dark:#f4dfc4;

    --maroon:#7a1f2b;
    --maroon-dark:#430b16;
    --maroon-deep:#350811;

    --orange:#d96b27;
    --gold:#e5a72a;

    --brown:#3b2520;
    --muted:#78665d;

    --border:rgba(122,31,43,.13);

    --shadow:
        0 25px 70px
        rgba(59,37,32,.08);
}


.temple-history-page,
.temple-history-page * {
    box-sizing:border-box;
}


.temple-history-page {
    width:100%;
    color:var(--brown);
    font-family:
        "Noto Sans Tamil",
        "Nirmala UI",
        sans-serif;
    background:var(--cream);
}


/* =========================================================
   HERO
========================================================= */

.history-hero {
    position:relative;
    min-height:465px;

    display:flex;
    align-items:center;
    justify-content:center;

    overflow:hidden;

    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(190,67,56,.28),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            var(--maroon-dark),
            #5b0e1a 45%,
            var(--maroon)
        );
}


.history-pattern {
    position:absolute;
    inset:0;
    opacity:.20;

    background-image:
        repeating-linear-gradient(
            135deg,
            transparent 0,
            transparent 25px,
            rgba(255,255,255,.035) 26px,
            transparent 27px
        );
}


.history-glow {
    position:absolute;

    width:600px;
    height:600px;

    left:50%;
    top:50%;

    transform:
        translate(-50%,-50%);

    border-radius:50%;

    background:
        radial-gradient(
            circle,
            rgba(229,167,42,.10),
            transparent 68%
        );
}


.history-hero-content {
    position:relative;
    z-index:2;

    width:min(900px,92%);

    padding:70px 20px;

    text-align:center;
}


.history-symbol {
    width:58px;
    height:58px;

    margin:0 auto 17px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:
        1px solid
        rgba(229,167,42,.55);

    border-radius:50%;

    color:var(--gold);

    font-size:21px;
}


.history-kicker {
    margin-bottom:15px;

    color:var(--gold);

    font-family:Georgia,serif;

    font-size:11px;
    font-weight:700;

    letter-spacing:6px;
}


.history-hero h1 {
    margin:0;

    color:#fff;

    font-family:
        "Noto Serif Tamil",
        "Noto Sans Tamil",
        serif;

    font-size:
        clamp(55px,8vw,92px);

    font-weight:600;

    line-height:1.15;
}


.history-divider {
    display:flex;
    align-items:center;
    justify-content:center;

    gap:14px;

    margin:
        14px auto 12px;
}


.history-divider span {
    width:60px;
    height:1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold)
        );
}


.history-divider span:last-child {
    background:
        linear-gradient(
            90deg,
            var(--gold),
            transparent
        );
}


.history-divider b {
    color:var(--gold);
}


.history-english {
    color:
        rgba(255,255,255,.70);

    font-family:Georgia,serif;

    font-size:17px;

    letter-spacing:4px;
}


.history-hero p {
    max-width:720px;

    margin:30px auto 0;

    color:
        rgba(255,255,255,.68);

    font-size:14px;

    line-height:2;
}


/* =========================================================
   SECTION
========================================================= */

.history-section {
    position:relative;

    padding:
        95px 0 120px;

    background:
        radial-gradient(
            circle at 50% 0,
            rgba(229,167,42,.08),
            transparent 35%
        ),
        var(--cream);
}


.history-container {
    width:min(1040px,92%);
    margin:auto;
}


/* =========================================================
   BACK
========================================================= */

.history-back {
    margin-bottom:35px;
}


.history-back-btn {
    display:inline-flex;
    align-items:center;

    gap:10px;

    padding:
        11px 20px;

    color:var(--maroon);

    background:
        rgba(255,250,241,.80);

    border:
        1px solid
        var(--border);

    text-decoration:none;

    font-size:12px;

    transition:.3s;
}


.history-back-btn span {
    color:var(--orange);
    font-size:18px;
}


.history-back-btn:hover {
    color:#fff;

    background:
        var(--maroon);

    border-color:
        var(--maroon);

    transform:
        translateX(-4px);
}


/* =========================================================
   LANGUAGE BOX
========================================================= */

.history-language-box {
    display:flex;

    align-items:center;
    justify-content:space-between;

    gap:25px;

    margin-bottom:55px;

    padding:
        16px 18px;

    background:
        rgba(255,250,241,.96);

    border:
        1px solid
        rgba(122,31,43,.14);

    border-radius:14px;

    box-shadow:
        0 15px 40px
        rgba(59,37,32,.06);
}


.language-title {
    display:flex;
    align-items:center;

    gap:12px;
}


.language-icon {
    width:38px;
    height:38px;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#fff;

    background:
        linear-gradient(
            135deg,
            var(--maroon),
            var(--orange)
        );

    border-radius:10px;

    font-size:15px;
}


.language-title div {
    display:flex;
    flex-direction:column;
}


.language-title small {
    color:var(--orange);

    font-family:Georgia,serif;

    font-size:8px;
    font-weight:700;

    letter-spacing:2px;
}


.language-title strong {
    margin-top:3px;

    color:var(--maroon);

    font-size:12px;
}


.language-buttons {
    display:flex;
    align-items:center;

    gap:6px;
}


.language-btn {
    min-width:78px;

    padding:
        10px 15px;

    color:#604a42;

    background:#fffaf1;

    border:
        1px solid
        rgba(122,31,43,.15);

    border-radius:8px;

    font-family:inherit;

    font-size:11px;
    font-weight:600;

    cursor:pointer;

    transition:
        .25s ease;
}


.language-btn:hover {
    color:var(--maroon);

    border-color:
        var(--maroon);

    transform:
        translateY(-1px);
}


.language-btn.active {
    color:#fff;

    background:
        linear-gradient(
            135deg,
            #651522,
            #982a31
        );

    border-color:
        var(--maroon);

    box-shadow:
        0 7px 18px
        rgba(122,31,43,.18);
}


/* =========================================================
   GOOGLE TRANSLATE - HIDDEN
========================================================= */

.google-translate-hidden {
    position:absolute;

    width:1px;
    height:1px;

    overflow:hidden;

    opacity:0;

    pointer-events:none;
}


/*
 * Google toolbar முழுமையாக மறைக்கப்படுகிறது.
 */

.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
.goog-te-balloon-frame {
    display:none !important;
}


body {
    top:0 !important;
}


.goog-te-gadget {
    font-size:0 !important;
}


.goog-te-gadget-icon {
    display:none !important;
}


.goog-te-menu-value {
    display:none !important;
}


#google_translate_element {
    height:0 !important;
    overflow:hidden !important;
}


/* =========================================================
   INTRO
========================================================= */

.history-intro {
    margin:
        0 auto 55px;

    text-align:center;
}


.history-intro > span {
    display:block;

    margin-bottom:10px;

    color:var(--orange);

    font-family:Georgia,serif;

    font-size:10px;
    font-weight:700;

    letter-spacing:5px;
}


.history-intro h2 {
    margin:0;

    color:var(--maroon);

    font-family:
        "Noto Serif Tamil",
        serif;

    font-size:
        clamp(25px,4vw,38px);

    line-height:1.6;
}


.intro-line {
    display:flex;
    justify-content:center;

    margin-top:15px;
}


.intro-line i {
    display:block;

    width:75px;
    height:2px;

    background:
        linear-gradient(
            90deg,
            var(--maroon),
            var(--gold)
        );
}


/* =========================================================
   DOCUMENT
========================================================= */

.history-document {
    position:relative;

    padding:
        65px 75px;

    background:
        rgba(255,250,241,.80);

    border:
        1px solid
        var(--border);

    box-shadow:
        var(--shadow);
}


.history-document::before {
    content:"";

    position:absolute;

    top:0;
    left:8%;
    right:8%;

    height:2px;

    background:
        linear-gradient(
            90deg,
            var(--maroon),
            var(--orange),
            var(--gold)
        );
}


/* =========================================================
   PART TITLE
========================================================= */

.history-part-title {
    position:relative;

    margin:
        10px 0 48px;

    padding-bottom:20px;

    color:var(--maroon);

    font-family:
        "Noto Serif Tamil",
        serif;

    font-size:
        clamp(24px,4vw,34px);

    font-weight:600;

    line-height:1.7;

    text-align:center;
}


.history-part-title::after {
    content:"";

    position:absolute;

    left:50%;
    bottom:0;

    width:70px;
    height:2px;

    transform:
        translateX(-50%);

    background:
        linear-gradient(
            90deg,
            var(--orange),
            var(--gold)
        );
}


/* =========================================================
   TEXT
========================================================= */

.history-document p {
    margin:
        0 0 27px;

    color:#4e3c36;

    font-size:15px;

    line-height:2.35;

    text-align:justify;
}


.history-document strong {
    color:var(--maroon);
}


/* =========================================================
   HIGHLIGHT
========================================================= */

.history-highlight {
    position:relative;

    margin:
        40px 0;

    padding:
        25px 30px 25px 32px;

    color:
        var(--maroon) !important;

    background:
        linear-gradient(
            135deg,
            rgba(229,167,42,.08),
            rgba(217,107,39,.05)
        );

    border-left:
        3px solid
        var(--gold);

    font-family:
        "Noto Serif Tamil",
        serif;
}


/* =========================================================
   SUB TITLE
========================================================= */

.history-sub-title {
    margin:
        70px 0 28px;

    color:var(--maroon);

    font-family:
        "Noto Serif Tamil",
        serif;

    font-size:
        clamp(21px,3vw,29px);

    line-height:1.6;
}


/* =========================================================
   IMAGE
========================================================= */

.history-image {
    position:relative;

    width:100%;

    margin:
        50px 0;

    overflow:hidden;

    text-align:center;
}


.history-image::before {
    content:"";

    position:absolute;

    inset:10px;

    border:
        1px solid
        rgba(229,167,42,.45);

    pointer-events:none;

    z-index:2;
}


.history-image img {
    display:block;

    width:100%;
    height:410px;

    object-fit:cover;

    border-radius:3px;

    opacity:0;

    transform:
        scale(1.025);

    transition:
        opacity .7s ease,
        transform .8s ease;

    box-shadow:
        0 20px 50px
        rgba(59,37,32,.13);
}


.history-image img.loaded {
    opacity:1;

    transform:
        scale(1);
}


.history-image-medium img {
    width:82%;
    height:360px;

    margin:auto;
}


.history-image-large img {
    height:470px;
}


/* =========================================================
   SPEAKING / TRANSLATION SAFE
========================================================= */

.history-document font {
    color:inherit;
}


.history-document .speaking-paragraph {
    background:
        rgba(229,167,42,.07);

    border-left:
        3px solid
        var(--gold);

    padding-left:18px;
}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:768px) {

    .history-hero {
        min-height:420px;
    }

    .history-hero-content {
        padding:60px 15px;
    }

    .history-symbol {
        width:48px;
        height:48px;
    }

    .history-kicker {
        font-size:8px;
        letter-spacing:4px;
    }

    .history-hero h1 {
        font-size:52px;
    }

    .history-english {
        font-size:14px;
        letter-spacing:3px;
    }

    .history-hero p {
        font-size:11px;
        line-height:1.9;
    }

    .history-section {
        padding:
            75px 0 80px;
    }

    .history-container {
        width:94%;
    }

    .history-language-box {
        flex-direction:column;
        align-items:stretch;

        gap:15px;

        padding:14px;
    }

    .language-title {
        justify-content:center;
    }

    .language-buttons {
        width:100%;
    }

    .language-btn {
        flex:1;
        min-width:0;
    }

    .history-document {
        padding:
            40px 22px;
    }

    .history-intro h2 {
        font-size:24px;
    }

    .history-document p {
        font-size:12px;
        line-height:2.15;
        text-align:left;
    }

    .history-part-title {
        font-size:22px;
        margin-bottom:40px;
    }

    .history-sub-title {
        font-size:21px;
        margin-top:55px;
    }

    .history-highlight {
        padding:20px;
        font-size:12px !important;
    }

    .history-image {
        margin:
            35px 0 40px;
    }

    .history-image img,
    .history-image-large img {
        height:260px;
    }

    .history-image-medium img {
        width:100%;
        height:260px;
    }

    .history-image::before {
        inset:7px;
    }

}


@media(max-width:420px) {

    .history-hero {
        min-height:390px;
    }

    .history-hero h1 {
        font-size:43px;
    }

    .history-document {
        padding:
            32px 17px;
    }

    .history-document p {
        font-size:11.5px;
        line-height:2.05;
    }

    .history-part-title {
        font-size:20px;
    }

    .history-intro h2 {
        font-size:21px;
    }

}