/* Custom styles and overrides for Sri Bodhiraja Foundation */

:root {
    --color-maroon: #791415;      /* sbf.lk primary */
    --color-amber-gold: #fdc92d;  /* sbf.lk gold */

    /* ============================================================
       GLOBAL UX TYPOGRAPHY CONTROLS (Fixed sizes - no screen scaling)
       ============================================================ */
    /* Sizes matched to sbf.lk */
    --font-size-heading: 1.75rem;            /* 28px - Page & Banner Main Headings (.ux-heading) */
    --font-size-section-heading: 1.5rem;     /* 24px - Section Titles (.ux-section-heading) */
    --font-size-caption: 1.125rem;           /* 18px - Card & Article Captions (.ux-caption) */
    --font-size-lead-quote: 1.25rem;         /* 20px - Highlighted Quotes (.ux-quote) */
    --font-size-paragraph: 1.125rem;         /* 18px - All Body Paragraphs (.ux-paragraph) */
    --line-height-paragraph: 1.75;           /* 1.75 - Paragraph line spacing */
    --font-size-tab: 1rem;                   /* 16px - Navigation Tabs & Buttons (.ux-tab) */
    --font-size-small: 0.875rem;             /* 14px - Excerpts, Badges & Subtitles (.ux-small) */
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", "Nirmala UI", Roboto, sans-serif;
    font-size: var(--font-size-paragraph);
    line-height: var(--line-height-paragraph);
}

/* Dedicated Typography Classes (Fixed across all screen sizes) */
.ux-paragraph,
.ux-paragraph p,
.content-paragraph,
.welfare-list li,
.welfare-list a,
.welfare-list span {
    font-size: var(--font-size-paragraph) !important;
    /* line-height: var(--line-height-paragraph) !important; */
}

.ux-heading {
    font-size: var(--font-size-heading) !important;
    line-height: 1.3 !important;
}

.ux-section-heading {
    font-size: var(--font-size-section-heading) !important;
    line-height: 1.35 !important;
}

.ux-caption {
    font-size: var(--font-size-caption) !important;
    line-height: 1.45 !important;
}

.ux-quote {
    font-size: var(--font-size-lead-quote) !important;
    line-height: 1.45 !important;
}

.ux-tab {
    font-size: var(--font-size-tab) !important;
}

.ux-small {
    font-size: var(--font-size-small) !important;
    line-height: 1.6 !important;
}

/* Rich text content from the admin editor (welfare details etc.) */
.rich-content > * + * { margin-top: 1.25rem; }
.rich-content h2 { font-size: var(--font-size-section-heading); line-height: 1.35; font-weight: 700; color: var(--color-maroon); text-align: left; }
.rich-content h3 { font-size: var(--font-size-caption); line-height: 1.45; font-weight: 700; color: #2e1e13; text-align: left; }
.rich-content ul { list-style: disc; padding-left: 1.5rem; text-align: left; }
.rich-content ol { list-style: decimal; padding-left: 1.5rem; text-align: left; }
.rich-content li + li { margin-top: 0.4rem; }
.rich-content a { color: var(--color-maroon); text-decoration: underline; }
.rich-content strong, .rich-content b { font-weight: 700; color: #2e1e13; }
.rich-content blockquote { border-left: 4px solid var(--color-maroon); background: #fafafa; padding: 1rem 1.25rem; color: #5e0f16; font-weight: 600; }
.rich-content .ql-align-center { text-align: center; }
.rich-content .ql-align-right { text-align: right; }
.rich-content .ql-align-justify { text-align: justify; }
.rich-content .ql-indent-1 { padding-left: 2rem; }
.rich-content .ql-indent-2 { padding-left: 4rem; }
.rich-content .ql-indent-3 { padding-left: 6rem; }

.font-heading {
    /* font-family: 'Merriweather', Georgia, serif; */
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Card hover animation */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Tab & Navigation Bar Typography */
.font-sinhala-menu-font > a,
.font-sinhala-menu-font > div > button {
    font-size: var(--font-size-tab);
}

/* Hide default Google Translate banner and iframe elements */
.goog-te-banner-frame.skiptranslate,
body > .skiptranslate {
    display: none !important;
}
body {
    top: 0px !important;
}
.goog-tooltip {
    display: none !important;
}
.goog-tooltip:hover {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Custom Footer Styling */
.footer-heading {
    position: relative;
    padding-bottom: 8px;
    font-weight: 700;
}
.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    background-color: #000;
}

.footer-social-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 13px !important;
    border-radius: 2px;
    transition: opacity 0.2s ease, transform 0.1s ease;
}
.footer-social-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.footer-social-fb { background-color: #3b5998; }
.footer-social-ig { background-color: #8a3ab9; }
.footer-social-yt { background-color: #cc181e; }
.footer-social-sc { background-color: #ff5500; }

/* Buddhist Flag Colors Strip (Blue, Yellow, Red, White, Orange) */
.buddhist-flag-strip {
    display: flex;
    width: 100%;
    height: 4px;
    overflow: hidden;
}
.buddhist-flag-strip > div {
    flex: 1;
    height: 100%;
}
.buddhist-flag-strip .bf-blue { background-color: #003399; }     /* Blue (Nila) */
.buddhist-flag-strip .bf-yellow { background-color: #f7d117; }   /* Yellow (Pitha) */
.buddhist-flag-strip .bf-red { background-color: #d80000; }      /* Red (Lohitha) */
.buddhist-flag-strip .bf-white { background-color: #ffffff; }    /* White (Odhatha) */
.buddhist-flag-strip .bf-orange { background-color: #ff6600; }   /* Orange (Manjestha) */

