:root {
    --primary-color: #1a7f37;
    --primary-hover: #044289;
    --dark-bg: #0d1117;
    --dark-card: #161b22;
    --text-main: #24292f;
    --text-muted: #57606a;
    --light-bg: #f6f8fa;
    --border-color: #d0d7de;
    --accent-orange: #bf8700;
    --accent-orange-bg: #fff8c5;
}

main#about-page {
    line-height: 1.6;
    color: var(--text-main);
    box-sizing: border-box;
}

.about-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 0px 20px 0px;
    text-align: center;
    flex: 1;
}


.about-section {
    text-align: center;
    padding-bottom: 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-lead {
    font-size: 1.15rem;
    color: #0d1117;
    margin-bottom: 0;
}

section#main-container {
    max-width: 1050px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* History Card */
.history-card h2 {
    font-size: 1.75rem;
    color: #1f2328;
    margin-bottom: 1rem;
}

.lead-text {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.history-card p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 0.98rem;
}

.motto-banner {
    background-color: #f6f8fa;
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1.5rem;
}

.motto-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.motto-quote {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0969da !important;
    margin: 0.25rem 0 0.5rem 0;
}

.motto-sub {
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 0 !important;
}

/* Motto Card */
.motto-card {
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
    border-top: 4px solid var(--primary-color);
}

.motto-badge,
.card-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.motto-card h2 {
    font-size: 2.2rem;
    color: #0969da;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.motto-card .translation {
    font-style: italic;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.motto-card .description {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Heritage & Values Card */
.heritage-card h2 {
    font-size: 1.6rem;
    color: #1f2328;
    margin-bottom: 1.5rem;
}

.heritage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    margin-bottom: 1.75rem;
}

.heritage-item {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.heritage-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.heritage-item h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.heritage-item p {
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.65;
}

/* Emblem Quote Box */
.emblem-box {
    background-color: #ddf4ff;
    border: 1px solid #54aef5;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.emblem-symbol {
    font-size: 2rem;
}

.emblem-quote {
    font-size: 1rem;
    color: #0969da;
    font-style: italic;
    margin-bottom: 0;
}

/* Grid Layout */
.grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.card h2 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: #1f2328;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1a7f37;
}

/* Notice Banner */
.notice-banner {
    background-color: var(--accent-orange-bg);
    border: 1px solid #d4a72c;
    border-radius: 6px;
    padding: 1rem;
    margin: 1.25rem 0;
}

.notice-tag {
    display: inline-block;
    background-color: var(--accent-orange);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.notice-banner p {
    color: #4d3800;
    margin-bottom: 0;
    font-size: 0.85rem;
}

.card-action {
    margin-top: 1.25rem;
}
        
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .grid-two-col,
    .heritage-grid {
        grid-template-columns: 1fr;
    }

    .emblem-box {
        flex-direction: column;
        text-align: center;
    }
}
/* ==========================================================
   Tamil touches (About page)
   Colours come from the theme: --t-silk, --t-leaf, --t-marigold,
   --t-palm and --t-palm-ink are set in every file in css/themes/.
   ========================================================== */

/* ---------- Thoranam: mango-leaf and marigold garland ---------- */
#about-page .about-section {
    position: relative;
}

#about-page .thoranam {
    display: block;
    width: 100%;
    height: 70px;
    margin: -8px 0 6px;
    overflow: visible;
}

.thoranam-cord {
    fill: none;
    stroke: var(--t-accent-dark);
    stroke-width: 2;
}

.thoranam .leaf {
    fill: var(--t-leaf);
    stroke: color-mix(in srgb, var(--t-leaf) 60%, #000);
    stroke-width: 1;
    transform-box: fill-box;
    transform-origin: 50% 0;
    animation: leaf-sway 4.6s ease-in-out infinite alternate;
}

.thoranam .leaf:nth-of-type(3n) { animation-duration: 5.4s; animation-delay: -1.2s; }
.thoranam .leaf:nth-of-type(3n + 1) { animation-duration: 4.1s; animation-delay: -2.4s; }

@keyframes leaf-sway {
    from { transform: rotate(-4deg); }
    to { transform: rotate(4deg); }
}

.thoranam .marigold circle { fill: var(--t-marigold); }
.thoranam .marigold .marigold-in { fill: color-mix(in srgb, var(--t-marigold) 70%, var(--t-silk)); }

/* ---------- Kolam watermark behind the heading ---------- */
#about-page .about-header {
    position: relative;
    isolation: isolate;
}

.kolam-line,
.kolam-ring {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kolam-dot { fill: currentColor; }

.kolam--hero {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(220px, 34vw, 340px);
    height: auto;
    translate: -50% -46%;
    z-index: -1;
    color: var(--t-accent);
    opacity: 0.16;
}

.about-vanakkam {
    margin: 0 0 4px;
    font-family: 'Noto Sans Tamil', sans-serif;
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    color: var(--t-silk);
    letter-spacing: 0.02em;
}

/* ---------- Zari border: the gold temple-tower border of a Kanchipuram silk saree ---------- */
#about-page .card {
    position: relative;
    overflow: hidden;
    padding-top: calc(2rem + 16px);
    border-top-width: 1px !important;
}

#about-page .card::before,
#about-page .card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    pointer-events: none;
}

/* maroon silk band with thin gold edges */
#about-page .card::before {
    height: 16px;
    background:
        linear-gradient(var(--t-gold) 0 1.5px, transparent 1.5px calc(100% - 1.5px), var(--t-gold) calc(100% - 1.5px)),
        var(--t-silk);
}

/* gold temple towers woven into it */
#about-page .card::after {
    top: 3px;
    height: 10px;
    background: var(--t-gold);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 10'%3E%3Cpath d='M4 10V8.5h2.5V7H9V5.3h2.5V2.5h1.4V1h2.2v1.5h1.4v2.8H19V7h2.5v1.5H24V10z'/%3E%3Cpath d='M0 6.5 1.6 5 3.2 6.5 1.6 8zM28 6.5 26.4 5 24.8 6.5 26.4 8z'/%3E%3C/svg%3E") 0 0 / 28px 10px repeat-x;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 10'%3E%3Cpath d='M4 10V8.5h2.5V7H9V5.3h2.5V2.5h1.4V1h2.2v1.5h1.4v2.8H19V7h2.5v1.5H24V10z'/%3E%3Cpath d='M0 6.5 1.6 5 3.2 6.5 1.6 8zM28 6.5 26.4 5 24.8 6.5 26.4 8z'/%3E%3C/svg%3E") 0 0 / 28px 10px repeat-x;
}

/* ---------- Brass icons ---------- */
.about-icon {
    width: 40px;
    height: 40px;
    display: block;
}

.icon-brass { fill: var(--t-accent-dark); }
.icon-silk { fill: var(--t-silk); }
.icon-flame { fill: var(--t-marigold); }
.icon-foam { fill: var(--t-card); stroke: var(--t-accent-dark); stroke-width: 1.2; }

.icon-brass-line,
.icon-kolam-line {
    fill: none;
    stroke: var(--t-gold);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-brass-line { stroke: var(--t-card); }
.icon-kolam-dot { fill: var(--t-gold); }

/* each icon sits on a round brass plate, like a puja thali */
#about-page .heritage-icon,
#about-page .card-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 0.9rem;
    border-radius: 50%;
    line-height: 0;
    background: radial-gradient(circle at 35% 30%, var(--t-card) 0%, var(--t-soft) 70%);
    box-shadow: inset 0 0 0 2px var(--t-gold), inset 0 0 0 5px var(--t-card), inset 0 0 0 6px color-mix(in srgb, var(--t-gold) 55%, transparent);
}

/* Kolam dots as list bullets instead of tick marks */
#about-page .feature-list li::before {
    content: "";
    top: 0.45em;
    width: 9px;
    height: 9px;
    border: 2px solid var(--t-accent);
    border-radius: 2px;
    rotate: 45deg;
    background: radial-gradient(circle, var(--t-accent) 0 1.6px, transparent 2px);
}

/* ---------- Olai chuvadi: palm-leaf manuscript ---------- */
.olai-section {
    margin: 0 0 2rem;
    text-align: center;
}

.olai {
    position: relative;
    margin: 0.5rem auto 0.9rem;
    max-width: 860px;
    padding: clamp(22px, 3.4vw, 34px) clamp(46px, 9vw, 110px);
    border-radius: 999px / 46%;
    color: var(--t-palm-ink);
    background:
        /* the two holes the binding cord passes through */
        radial-gradient(circle at 9% 50%, var(--t-palm-ink) 0 5px, color-mix(in srgb, var(--t-palm-ink) 35%, transparent) 6px, transparent 8px),
        radial-gradient(circle at 91% 50%, var(--t-palm-ink) 0 5px, color-mix(in srgb, var(--t-palm-ink) 35%, transparent) 6px, transparent 8px),
        /* fine fibres running along the leaf */
        repeating-linear-gradient(180deg, transparent 0 5px, color-mix(in srgb, var(--t-palm-ink) 7%, transparent) 5px 6px),
        /* darker, sun-aged edges */
        radial-gradient(120% 140% at 50% 50%, var(--t-palm) 55%, color-mix(in srgb, var(--t-palm) 75%, var(--t-palm-ink)) 100%);
    box-shadow: 0 10px 26px var(--t-shadow-color), inset 0 0 0 1px color-mix(in srgb, var(--t-palm-ink) 18%, transparent);
}

.olai blockquote {
    margin: 0;
}

.olai-tamil {
    margin: 0;
    font-family: 'Noto Sans Tamil', sans-serif;
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.45;
    /* letters scratched into the leaf with a stylus, then inked */
    text-shadow: 0 1px 0 color-mix(in srgb, var(--t-palm) 60%, #fff);
}

.olai-english {
    margin: 6px 0 0;
    font-size: clamp(15px, 1.7vw, 18px);
    font-style: italic;
    font-weight: 600;
}

.olai figcaption {
    margin-top: 10px;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    opacity: 0.8;
}

#about-page .olai-note {
    margin: 0 auto;
    max-width: 560px;
    color: var(--t-muted);
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .olai {
        border-radius: 46px;
        padding: 26px 22px 22px;
        background-position: 0 0;
    }
    /* on narrow screens the holes sit at the top instead of the sides */
    .olai {
        background:
            radial-gradient(circle at 22% 12px, var(--t-palm-ink) 0 4px, transparent 6px),
            radial-gradient(circle at 78% 12px, var(--t-palm-ink) 0 4px, transparent 6px),
            repeating-linear-gradient(180deg, transparent 0 5px, color-mix(in srgb, var(--t-palm-ink) 7%, transparent) 5px 6px),
            radial-gradient(120% 140% at 50% 50%, var(--t-palm) 55%, color-mix(in srgb, var(--t-palm) 75%, var(--t-palm-ink)) 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .thoranam .leaf { animation: none; }
}

/* ---------- Our roots in India ---------- */
.about-roots {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--t-accent-dark);
}

/* a thin saffron-white-green rule either side, like the Indian tricolour */
.about-roots::before,
.about-roots::after {
    content: "";
    width: 28px;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(#FF9933 0 33.3%, #FFFFFF 33.3% 66.6%, #138808 66.6%);
    box-shadow: 0 0 0 1px var(--t-line);
}

.india-card {
    text-align: left;
}

.india-flags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 14px;
}

.india-flags .flag {
    width: 66px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 0 0 1px var(--t-line), 0 4px 10px var(--t-shadow-color);
}

/* a small gold knot of friendship between the two flags */
.india-knot {
    width: 18px;
    height: 10px;
    border: 2px solid var(--t-gold);
    border-radius: 50%;
}

#about-page .india-card h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.india-facts {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    background: var(--t-soft-2);
    border: 1px solid var(--t-line);
    display: grid;
    gap: 0.6rem;
}

.india-facts li {
    position: relative;
    padding-left: 1.6rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--t-text);
}

/* each fact marked with a tiny Ashoka chakra-like wheel */
.india-facts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid var(--t-accent-dark);
    background: repeating-conic-gradient(var(--t-accent-dark) 0deg 2deg, transparent 2deg 15deg);
}

/* ---------- Thank you, Botkyrka ---------- */
.botkyrka-banner {
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    border-left: 4px solid var(--t-silk);
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--t-gold) 18%, transparent), transparent 55%),
        var(--t-soft-2);
}

#about-page .botkyrka-banner .motto-label { color: var(--t-silk); }

.botkyrka-quote {
    margin: 0.25rem 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--t-heading);
}

#about-page .botkyrka-sub {
    margin: 0;
    font-size: 0.95rem;
    color: var(--t-text);
}
