/* ============================================
   Agathiyar Gnana Thabovanam - Stylesheet
   Mobile-First Responsive Design
   Reference: navapashanam.co.in UI Style
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #DB2A24;
    --primary-dark: #B8231E;
    --secondary-color: #FBBF29;
    --secondary-dark: #E5AC20;
    --accent-color: #DB2A24;
    --dark-bg: #1a1a1a;
    --dark-section: #2c2c2c;
    --light-bg: #f8f6f0;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    --gold-light: #f4e4bc;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
    --primary-glow: rgba(219, 42, 36, 0.3);
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: #ffffff;
    overflow-x: hidden;
    min-width: 100%;
}

/* Ensure all text on light backgrounds is visible */
section:not(.dark-section):not(.hero):not(.page-header):not(.cta-section) p,
section:not(.dark-section):not(.hero):not(.page-header):not(.cta-section) h2,
section:not(.dark-section):not(.hero):not(.page-header):not(.cta-section) h3 {
    color: var(--text-dark);
    text-align: justify;
}

section:not(.dark-section):not(.hero):not(.page-header):not(.cta-section) .section-subtitle {
    color: var(--text-dark);
    opacity: 0.85;
}

h1, h2, h3, h4, h5, h6 {
    /* font-family: 'Lora', serif; */
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent horizontal overflow */
* {
    max-width: 100%;
}

/* Allow specific elements to exceed if needed */
img, video, iframe, embed, object {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Inner content container for readability - optional, can be used for specific sections */
.content-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ============================================
   Top Bar
   ============================================ */

.top-bar {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-left {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-item .icon {
    font-size: 1rem;
    /* background: #ffff00; */
    border-radius: 2px;
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar-donate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1.15rem;
    background: #ffffff;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ffffff;
    transition: background 0.25s ease, color 0.25s ease;
}

.top-bar-donate-btn:hover,
.top-bar-donate-btn:focus-visible {
    background: transparent;
    color: #ffffff;
}

/* ============================================
   Donate Page
   ============================================ */

.donate-intro {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
    line-height: 1.75;
    color: #444;
}

.donate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.donate-card {
    background: linear-gradient(135deg, #fff9f5 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.donate-card h2 {
    color: var(--secondary-color);
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
}

.donate-card > p {
    margin: 0 0 1.25rem;
    color: #555;
    line-height: 1.6;
}

.donate-qr-wrap {
    margin: 0 auto 1.25rem;
    max-width: 320px;
}

.donate-qr-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.donate-upi-id {
    text-align: center;
    font-size: 1rem;
    margin: 0 0 1.25rem !important;
    word-break: break-all;
}

.donate-upi-id a,
.donate-bank-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.donate-upi-id a:hover,
.donate-bank-value a:hover {
    text-decoration: underline;
}

.donate-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.donate-actions .btn {
    width: 100%;
    text-align: center;
}

.donate-bank-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.donate-bank-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.donate-bank-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.donate-bank-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
}

.donate-bank-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e1e1e;
    word-break: break-all;
}

.donate-note {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0 !important;
}

.donate-note a {
    color: var(--primary-color);
}

/* ============================================
   Header Styles
   ============================================ */

.main-header {
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.35rem 0;
    border-bottom: 2px solid var(--primary-color);
    transition: padding 0.25s ease, box-shadow 0.25s ease;
}

.main-header.is-compact {
    padding: 0.15rem 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.16);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-link:active {
    opacity: 0.9;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    display: block;
    height: 125px;
    width: auto;
    /* max-width: min(380px, 42vw); */
    object-fit: contain;
    transition: height 0.25s ease, max-width 0.25s ease;
}

.main-header.is-compact .logo-img {
    height: 48px;
    max-width: min(300px, 38vw);
}

.logo-icon {
    font-size: 2rem;
}

/* ============================================
   Site Preloader
   ============================================ */

.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.site-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-preloader-inner {
    width: min(92vw, 920px);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-preloader-logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    animation: preloaderPulse 1.6s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}

.main-nav {
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu li a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-color);
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* Hide close menu button on desktop */
.mobile-menu-close {
    display: none;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0a0a0a 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent);
    background-size: 200% 200%;
    animation: stars 20s linear infinite;
    opacity: 0.5;
}

@keyframes stars {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(219, 42, 36, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-style: italic;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: #f5f5f5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(219, 42, 36, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219, 42, 36, 0.6);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ============================================
   Section Styles
   ============================================ */

section {
    width: 100%;
    padding: 2rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-style: italic;
    margin-top: 0.5rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Dark Section */
.dark-section {
    background: var(--dark-section);
    color: var(--white);
}

.dark-section h2,
.dark-section h3 {
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.dark-section p {
    color: #f0f0f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dark-section .section-subtitle {
    color: var(--secondary-color);
    opacity: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Section Content Grid */
.section-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.section-image {
    position: relative;
}

.glowing-figure {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff8f5 0%, #ffece5 50%, #fff8f5 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(219, 42, 36, 0.12);
}

.figure-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(219, 42, 36, 0.4) 0%, rgba(219, 42, 36, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    animation: glow 3s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes glow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.figure-icon {
    max-width: 280px;
    max-height: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 25px rgba(219, 42, 36, 0.5));
}

.floating-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #DB2A24;
    border-radius: 50%;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(219, 42, 36, 0.6);
}

.orb-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.orb-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-20px) translateX(10px); }
    66% { transform: translateY(10px) translateX(-10px); }
}

.section-text {
    color: var(--text-dark);
}

.section-text h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-text p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* About Section */
.about-section {
    background: #ffffff;
    position: relative;
}

.about-section.dark-section {
    background: linear-gradient(135deg, #fff8f5 0%, #ffece5 50%, #fff8f5 100%);
    color: var(--text-dark);
}

.about-section.dark-section .section-text {
    color: var(--text-dark);
}

.about-section.dark-section .section-text h2 {
    color: var(--secondary-color);
}

.about-section.dark-section .section-text p {
    color: var(--text-dark);
}

.about-section.dark-section .section-text .section-subtitle {
    color: var(--secondary-color);
    opacity: 0.9;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(0,0,0,0.02)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.about-content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.features-section {
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
    border: 1px solid rgba(219, 42, 36, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Siddhamma Preview */
.siddhamma-preview {
    background: linear-gradient(135deg, #fff8f5 0%, #ffece5 50%, #fff8f5 100%);
    position: relative;
}

.preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.preview-text h2 {
    color: var(--text-dark);
    font-weight: 600;
}

.preview-text .subtitle {
    color: var(--text-dark);
    opacity: 0.85;
    font-weight: 500;
}

.preview-text p {
    color: var(--text-dark);
    font-weight: 400;
}

.preview-image {
    text-align: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #fff8f5 0%, #ffece5 50%, #fff8f5 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(219, 42, 36, 0.12);
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Meditation Preview */
.meditation-preview {
    background: #ffffff;
    position: relative;
}

.meditation-preview.dark-section {
    background: #ffffff;
    color: var(--text-dark);
}

.meditation-preview.dark-section h2,
.meditation-preview.dark-section .section-subtitle,
.meditation-preview.dark-section p {
    color: var(--text-dark);
}

.meditation-content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.meditation-content p {
    color: var(--text-dark);
    font-weight: 400;
}

/* Arul Kural Preview */
.arul-kural-preview {
    background: #ffffff;
    position: relative;
}

.arul-content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.arul-content p {
    color: var(--text-dark);
    font-weight: 400;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-section) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    color: #f5f5f5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    width: 100%;
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--secondary-color) 0%, #e8871f 45%, var(--primary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-style: italic;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
    width: 100%;
    padding: 3rem 0;
    background: #ffffff;
    position: relative;
}

.content-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* .content-section {
    margin-bottom: 3rem;
} */

.page-intro-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
     /* height: 860px;   */
}

.page-intro-image img {
    width: 100%;
    height: auto;
    
    object-fit: cover;
    display: block;
}

.intro-box {
    background: linear-gradient(135deg, #fff9f5 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    /* margin-bottom: 2rem; */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 500;
}

.intro-box .lead-text {
    color: #1a1a1a;
}

.highlight-section {
    background: linear-gradient(135deg, #fef5e7 0%, #f4e4bc 50%, #fef5e7 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.highlight-section h2,
.highlight-section h3 {
    color: #2c2c2c;
}

.highlight-section p {
    color: #1a1a1a;
}

/* ============================================
   Page content blocks (Siddhamma, etc.)
   ============================================ */

.main-content.page-siddhamma {
    padding: 3rem 0 4rem;
}

.page-content-blocks {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.page-content-block {
    padding: 0;
    margin: 0;
}

.page-content-block-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.page-content-block p {
    color: var(--text-dark);
    line-height: 1.75;
    margin-bottom: 1rem;
     text-align: justify;
}

.page-content-block p:last-child {
    margin-bottom: 0;
    text-align: justify;
}

.page-content-block-highlight {
    background: linear-gradient(135deg, rgba(219, 42, 36, 0.06) 0%, rgba(251, 191, 41, 0.08) 100%);
    padding: 2rem 2.25rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(219, 42, 36, 0.08);
}

.page-content-block-highlight .page-content-block-title {
    color: var(--primary-color);
}

.page-siddhamma-intro,
.page-temple-intro {
    padding-top: 3rem;
}

.temple-intro-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.temple-intro-media {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.temple-intro-media img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 420px;
    max-height: min(70vh, 640px);
    object-fit: cover;
    object-position: center;
}

.temple-intro-body {
    max-width: none;
    margin: 0;
    text-align: left;
}

.temple-intro-body p {
    color: var(--text-dark);
    line-height: 1.75;
    margin-bottom: 1rem;
    text-align: left;
}

.temple-intro-body .home-section-label,
.temple-intro-body .home-section-title,
.temple-intro-body .home-section-subtitle {
    text-align: left;
}

@media (max-width: 900px) {
    .temple-intro-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .temple-intro-media img {
        min-height: 280px;
        max-height: 50vh;
    }

    .temple-intro-body,
    .temple-intro-body p,
    .temple-intro-body .home-section-label,
    .temple-intro-body .home-section-title,
    .temple-intro-body .home-section-subtitle {
        text-align: center;
    }
}

.page-temple-natarajar {
    padding: 1rem 0 2.5rem;
}

.temple-highlights-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.page-temple-highlights .highlight-card--with-media {
    display: grid;
    grid-template-columns: 3.6fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 36px 32px;
}

.page-temple-highlights .highlight-card-body {
    position: relative;
    z-index: 1;
}

.page-temple-highlights .highlight-card-body h3 {
    margin-top: 0;
    margin-bottom: 14px;
}

.page-temple-highlights .highlight-card-body p {
    margin-bottom: 1rem;
}

.page-temple-highlights .highlight-card-body p:last-child {
    margin-bottom: 0;
}

.page-temple-highlights .temple-natarajar-wrap {
    position: relative;
    z-index: 1;
    max-width: none;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    aspect-ratio: auto;
    height: 400px;
    background: #f7f3ef;
}

.temple-natarajar-wrap img {
    display: block;
    /* width: 100%; */
    height: 400px;
    max-height: 400px;
    object-fit: cover;
    object-position: center top;
}

.page-temple-highlights .highlight-card--full {
    width: 100%;
    max-width: none;
}

@media (max-width: 900px) {
    .page-temple-highlights .highlight-card--with-media {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 28px 22px;
    }

    .page-temple-highlights .temple-natarajar-wrap {
        max-width: 280px;
        margin: 0 auto;
        order: -1;
        height: 250px;
        aspect-ratio: auto;
    }
}

.page-divine-intro {
    padding-top: 1rem;
}

.divine-intro-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.divine-intro-media {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.divine-intro-media img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 440px;
    max-height: min(75vh, 680px);
    object-fit: cover;
    object-position: center;
}

.divine-intro-body h2 {
    margin-top: 0;
    color: var(--secondary-color);
}

.divine-intro-body p {
    color: var(--text-dark);
    line-height: 1.75;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .divine-intro-layout {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .divine-intro-media img {
        min-height: 280px;
        max-height: 55vh;
    }

    .divine-intro-body {
        text-align: center;
    }
}

.temple-project-section {
    padding: 2.5rem 0 4rem;
}

.temple-project-intro {
    max-width: 720px;
    margin: 0 auto 1.75rem;
    color: #555;
    line-height: 1.7;
}

.temple-flipbook-wrap {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16 / 10;
    min-height: 520px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    background: #f5f5f5;
}

.temple-flipbook-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.temple-flipbook-link {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .temple-flipbook-wrap {
        aspect-ratio: 3 / 4;
        min-height: 420px;
        border-radius: 12px;
    }
}

.comparison-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-item {
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    padding: 2rem;
    border-radius: 12px;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(219, 42, 36, 0.1);
}

.comparison-item h3 {
    color: var(--text-dark);
    font-weight: 600;
}

.comparison-item p {
    color: var(--text-dark);
    font-weight: 400;
}

.emphasis-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--secondary-color);
    text-align: center;
    margin-top: 1.5rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.info-box {
    background: linear-gradient(135deg, #fff9f5 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-box h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-box p {
    color: var(--text-dark);
    font-weight: 400;
}

.cta-box {
    background: linear-gradient(135deg, #fff9f5 0%, #ffffff 100%);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(219, 42, 36, 0.1);
}

.cta-box h2 {
    color: var(--text-dark);
    font-weight: 600;
}

.cta-box p {
    color: var(--text-dark);
    font-weight: 400;
}

/* Mission Grid */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.mission-card {
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border-top: 3px solid var(--primary-color);
    border: 1px solid rgba(219, 42, 36, 0.1);
}

.mission-card:hover {
    transform: translateY(-5px);
}

.mission-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mission-note {
    margin-top: 2rem;
    font-style: italic;
    text-align: center;
    color: var(--text-dark);
    opacity: 0.9;
    font-weight: 400;
}

/* Blog Features */
.blog-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.blog-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff9f5 0%, #ffffff 100%);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.invitation-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--secondary-color);
    text-align: center;
    margin: 2rem 0;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.blessing-text {
    font-size: 1.1rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.blog-posts {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.blog-post-card {
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
    border: 1px solid rgba(219, 42, 36, 0.1);
}

.post-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   Contact Page
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-form {
    background: linear-gradient(135deg, #fff9f5 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(219, 42, 36, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ============================================
   Footer
   ============================================ */

.main-footer {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.footer-section:first-child {
    min-width: 300px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #fff;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #fff;
    font-size: 0.9rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ============================================
   Home Page - Modern Sections
   ============================================ */

.home-hero {
    position: relative;
    width: 100%;
    min-height: min(68vh, 580px);
    display: flex;
    align-items: stretch;
    color: var(--text-dark);
    overflow: hidden;
    background: #ffffff;
    padding: 0;
}

.home-hero-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(360px, 1.28fr);
    width: 100%;
    min-height: inherit;
}

.home-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: clamp(2rem, 4vw, 3.25rem) clamp(1.25rem, 3vw, 2.75rem);
    background:
        linear-gradient(160deg, #fffdfb 0%, #fff7f4 55%, #ffefea 100%);
}

.home-hero-copy::before {
    content: '';
    position: absolute;
    left: clamp(1.1rem, 2.5vw, 2rem);
    top: 22%;
    bottom: 22%;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    opacity: 1;
}

.home-hero-media {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    margin-left: -2.5rem;
}

.home-hero-media::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 18%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 247, 244, 0.85) 0%, transparent 100%);
}

.hero-slider .hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slider .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background: #2a1816;
}

.hero-slider .hero-slide-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-slider .hero-slide.active {
    opacity: 1;
    z-index: 0;
}

.hero-contents {
    position: relative;
    width: 100%;
    max-width: 440px;
    min-height: 240px;
    margin-left: 1rem;
}

.hero-slide-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
    margin-left: 0 !important;
}

.hero-slide-content.active {
    opacity: 1;
    pointer-events: auto;
}

.home-hero-eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.home-hero-title {
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #1f1a18;
    letter-spacing: -0.02em;
    line-height: 1.18;
    text-shadow: none;
}

.home-hero-subtitle {
    font-size: clamp(0.98rem, 1.4vw, 1.12rem);
    color: #5c534e !important;
    margin: 0 0 1.4rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.55;
    max-width: 30ch;
    text-shadow: none;
}

.hero-slide-content .btn {
    box-shadow: 0 8px 22px rgba(219, 42, 36, 0.28);
    padding: 12px 28px;
}

.home-hero-desc {
    max-width: 680px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.98);
}

.hero-slider-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.65rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-slider-prev,
.hero-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
    background: rgba(219, 42, 36, 0.85);
    border-color: transparent;
}

.hero-slider-prev {
    left: 0.85rem;
}

.hero-slider-next {
    right: 0.85rem;
}


.home-section {
    padding: 4.5rem 0;
}

.home-section:nth-child(even) {
    background: #fafafa;
}

.home-section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.home-section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.home-section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 1.25rem;
    opacity: 0.95;
}

.home-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;            
    gap: 3rem;
    align-items: center;
}

.home-section-grid-reverse .home-section-media {
    order: 2;
}

.home-section-grid-reverse .home-section-body {
    order: 1;
}

.home-section-body p {
    color: var(--text-dark);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.home-card-img {
    border-radius: 16px;
    overflow: hidden;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12); */
    width: 100%;
    aspect-ratio: 4/3;
    max-height: 450px;
}

.home-card-img img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
    display: block;
}

.home-section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.home-section-head .home-section-label {
    margin-bottom: 0.5rem;
}

.home-section-head .home-section-subtitle {
    margin-bottom: 0;
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.home-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.home-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(219, 42, 36, 0.15);
}

.home-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f5f5f5;
}

.home-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    transition: transform 0.4s ease;
}

.home-card:hover .home-card-image img {
    transform: scale(1.05);
}

.home-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.home-card-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.home-card-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.5;
}

.home-cta {
    color: var(--text-dark);
    padding: 0;
    text-align: center;
}

.home-cta-inner h2,
.home-dual-cta-card h2 {
    color: var(--text-dark);
}

.home-cta-inner p {
    max-width: 420px;
    margin: 0 auto 1.5rem;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

/* Home sections - responsive */
@media (max-width: 1024px) {
    .home-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-hero {
        min-height: 0;
        aspect-ratio: auto;
        max-height: none;
    }

    .home-hero-layout {
        grid-template-columns: 1fr;
    }

    .home-hero-copy {
        padding: 2.25rem 1.35rem 1.75rem;
        order: 2;
    }

    .home-hero-copy::before {
        display: none;
    }

    .home-hero-media {
        order: 1;
        min-height: 48vw;
        max-height: 360px;
        aspect-ratio: 16 / 10;
        margin-left: 0;
    }

    .home-hero-media::before {
        display: none;
    }

    .hero-contents {
        margin-left: 0;
        min-height: 220px;
        max-width: none;
    }

    .hero-slide-content {
        position: relative;
        top: auto;
        transform: none;
        align-items: center;
        text-align: center;
    }

    .hero-slide-content:not(.active) {
        display: none;
    }

    .home-hero-title {
        font-size: 1.75rem;
    }

    .home-hero-subtitle {
        max-width: none;
    }

    .hero-slider-prev,
    .hero-slider-next {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .hero-slider-prev {
        left: 0.6rem;
    }

    .hero-slider-next {
        right: 0.6rem;
    }

    .hero-slider-dots {
        bottom: 0.85rem;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }

    .home-section-grid,
    .home-section-grid-reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-section-grid-reverse .home-section-media,
    .home-section-grid-reverse .home-section-body {
        order: unset;
    }

    .home-section-media {
        order: 1;
    }

    .home-section-body {
        order: 2;
    }

    .home-cards {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .home-section {
        padding: 3rem 0;
    }

    .home-cta {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .home-hero-title {
        font-size: 1.75rem;
    }

    .home-hero-subtitle {
        font-size: 1rem;
    }

    .home-card-content {
        padding: 1.25rem;
    }
}

/* ============================================
   Floating Contact Widget
   ============================================ */

.floating-contact-widget {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.contact-btn .btn-icon {
    font-size: 1.8rem;
    display: block;
}

.contact-btn .btn-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.contact-btn .btn-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid var(--white);
}

.contact-btn:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

.whatsapp-btn {
    background: #25D366;
    color: var(--white);
}

.whatsapp-btn:hover {
    background: #20BA5A;
}

.phone-btn {
    background: #25D366;
    color: var(--white);
}

.phone-btn:hover {
    background: #20BA5A;
}

.contact-us-btn {
    background: var(--primary-color);
    color: var(--white);
}

.contact-us-btn:hover {
    background: var(--primary-dark);
}

/* ============================================
   Floating side widgets (bottom right)
   ============================================ */

.floating-side-widgets {
    position: fixed;
    right: 0;
    bottom: 24px;
    z-index: 1003;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 8px;
}

.social-slide-widget {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.social-slide-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 48px;
    max-width: 48px;
    height: 48px;
    flex: 0 0 auto;
    align-self: flex-end;
    overflow: hidden;
    border-radius: 10px 0 0 10px;
    color: #ffffff;
    text-decoration: none;
    transition: max-width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.social-slide-btn:hover,
.social-slide-btn:focus,
.social-slide-btn:focus-visible,
.social-slide-btn:visited {
    color: #ffffff;
    text-decoration: none;
}

.social-slide-label {
    flex: 0 1 auto;
    padding: 0 14px 0 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transform: translateX(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, max-width 0.35s ease;
    pointer-events: none;
}

.social-slide-btn:hover {
    width: auto;
    max-width: 180px;
    z-index: 3;
    box-shadow: -4px 4px 18px rgba(0, 0, 0, 0.22);
}

.social-slide-btn:hover .social-slide-label {
    opacity: 1;
    max-width: 130px;
    transform: translateX(0);
    color: #ffffff;
}

.social-slide-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
}

.social-slide-icon i {
    color: #ffffff;
}

.social-slide-phone {
    background: #1b7a3d;
}

.social-slide-phone:hover {
    background: #166532;
}

.social-slide-whatsapp {
    background: #25d366;
}

.social-slide-whatsapp:hover {
    background: #20ba5a;
}

.social-slide-facebook {
    background: #1877f2;
}

.social-slide-facebook:hover {
    background: #1464d0;
}

.social-slide-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-slide-instagram:hover {
    background: linear-gradient(45deg, #e8852a, #d95a30, #c91f38, #b81a5c, #a9157a);
}

.social-slide-youtube {
    background: #ff0000;
}

.social-slide-youtube:hover {
    background: #cc0000;
}

/* ============================================
   Donation Slide Widget (UPI QR)
   ============================================ */

.donation-slide-widget {
    position: relative;
    flex-shrink: 0;
    z-index: 2;
}

.mobile-social-fab {
    display: none;
}

.donation-slide-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 52px;
    min-height: 52px;
    padding: 10px 6px;
    border: none;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(180deg, #DB2A24 0%, #b8221d 100%);
    color: #ffffff;
    cursor: pointer;
    box-shadow: -3px 3px 16px rgba(219, 42, 36, 0.35);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.donation-slide-trigger:hover,
.donation-slide-trigger:focus-visible {
    color: #ffffff;
    box-shadow: -5px 5px 22px rgba(219, 42, 36, 0.45);
    transform: translateX(-2px);
}

.donation-slide-trigger-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.1;
    color: #ffffff;
}

.donation-slide-trigger-icon {
    font-size: 1.2rem;
    color: #ffffff;
}

.donation-slide-trigger-icon i {
    color: #ffffff;
}

.donation-slide-panel {
    position: fixed;
    right: 52px;
    bottom: 24px;
    width: 0;
    max-width: calc(100vw - 70px);
    max-height: calc(100dvh - 48px);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    background: #ffffff;
    border-radius: 14px 0 0 14px;
    box-shadow: -6px 6px 28px rgba(0, 0, 0, 0.16);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.35s ease, visibility 0.35s ease, padding 0.4s ease;
    padding: 0;
    text-align: center;
    z-index: 1005;
    pointer-events: none;
}

.donation-slide-panel.is-open {
    width: 400px;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    padding: 36px 12px 12px;
    pointer-events: auto;
}

.donation-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1004;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.donation-panel-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.donation-panel-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donation-panel-close:hover {
    background: #DB2A24;
    color: #fff;
}

.donation-panel-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #DB2A24;
    margin: 0 0 6px;
}

.donation-panel-desc {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 14px;
    line-height: 1.5;
}

.donation-qr-wrap {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    display: block;
    width: 100%;
}

.donation-qr-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 100px);
    object-fit: contain;
    margin: 0 auto;
}

.donation-upi-id {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0 0 14px;
    word-break: break-all;
}

.donation-panel-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.donation-copy-btn,
.donation-upi-app-btn {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.donation-copy-btn {
    background: #DB2A24;
    color: #ffffff;
    border: none;
}

.donation-copy-btn:hover {
    background: #b8221d;
    color: #ffffff;
}

.donation-upi-app-btn {
    background: #f5f5f5;
    color: #DB2A24;
    border: 1px solid rgba(219, 42, 36, 0.25);
}

.donation-upi-app-btn:hover {
    background: #fff5f4;
    color: #b8221d;
}

.donation-copy-btn.copied {
    background: #1b7a3d;
}

/* Mobile bottom navigation */
.mobile-bottom-nav {
    display: none;
}

/* Home dual CTA (Donate + Meditation) */
.home-dual-cta {
    background: linear-gradient(180deg, #fff9f7 0%, #ffffff 100%);
}

.home-dual-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: stretch;
}

.home-dual-cta-card {
    background: #ffffff;
    border: 1px solid rgba(219, 42, 36, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    padding: 2.25rem 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.home-dual-cta-card .home-section-title {
    font-size: clamp(1.45rem, 2.2vw, 1.85rem);
}

.home-dual-cta-card .home-donation-text {
    max-width: 420px;
    margin: 0 auto 1.5rem;
    line-height: 1.75;
    color: var(--text-dark);
    flex: 1;
}

.home-dual-cta-card .btn-lg {
    margin-top: auto;
}

@media (max-width: 768px) {
    .home-dual-cta-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .home-dual-cta-card {
        padding: 1.75rem 1.35rem;
    }
}

/* Home donation section (legacy helpers) */
.home-donation {
    background: linear-gradient(180deg, #fff9f7 0%, #ffffff 100%);
    text-align: center;
}

.home-donation-inner {
    max-width: none;
    margin: 0;
}

.home-donation-text {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.75;
    color: var(--text-dark);
}

.home-donation .btn-lg {
    margin-top: 0.5rem;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    /* Floating Contact Widget - Mobile */
    .floating-contact-widget {
        right: 15px;
        bottom: 20px;
        top: auto;
        transform: none;
    }

    .contact-btn {
        width: 55px;
        height: 55px;
    }

    .contact-btn .btn-icon {
        font-size: 1.6rem;
    }

    .contact-btn .btn-tooltip {
        display: none;
    }

    .floating-side-widgets,
    .mobile-social-fab,
    .donation-slide-widget {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1010;
        background: #ffffff;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.1);
        padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        min-height: 56px;
        padding: 0.35rem 0.25rem;
        text-decoration: none;
        color: #666;
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        border-radius: 10px;
        transition: color 0.2s ease, background 0.2s ease;
    }

    .mobile-bottom-nav-item i {
        font-size: 1.15rem;
        line-height: 1;
    }

    .mobile-bottom-nav-item.is-active,
    .mobile-bottom-nav-item:hover,
    .mobile-bottom-nav-item:focus-visible {
        color: var(--primary-color);
        background: rgba(219, 42, 36, 0.06);
        text-decoration: none;
    }

    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .donation-slide-panel {
        bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .social-slide-label {
        font-size: 0.82rem;
        padding: 0 10px 0 4px;
    }

    .donation-slide-trigger {
        width: 48px;
        min-height: 48px;
        padding: 8px 5px;
    }

    .donation-slide-trigger-label {
        font-size: 0.58rem;
    }

    /* Top Bar - hidden on mobile */
    .top-bar {
        display: none;
    }

    .header-content {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0 15px;
    }

    .logo-link {
        flex: 1;
        min-width: 0;
    }

    .main-nav {
        flex-shrink: 0;
        margin-left: 0;
    }

    .container {
        padding: 0 15px;
    }

    .content-wrapper {
        padding: 0 15px;
    }

    /* Header */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-section) 100%);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
        display: flex;
        gap: 0;
        margin: 0;
        transition: left 0.3s ease;
        z-index: 1002;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 80px;
        background: var(--primary-color);
        z-index: -1;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-close {
        display: flex;
        justify-content: flex-end;
        padding: 1rem 1.5rem;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 1rem;
    }

    .close-menu-btn {
        background: var(--primary-color);
        color: var(--white);
        border: none;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        font-size: 1.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .close-menu-btn:hover {
        background: var(--primary-dark);
        transform: scale(1.1);
    }

    .nav-menu li:first-child {
        margin-top: 0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu li a {
        display: block;
        padding: 1.2rem 1.5rem;
        color: var(--white);
        font-weight: 500;
        font-size: 1rem;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .nav-menu li a:hover,
    .nav-menu li a.active {
        color: var(--secondary-color);
        background: rgba(219, 42, 36, 0.15);
        border-left-color: var(--primary-color);
        padding-left: 2rem;
        text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
    }

    /* Overlay when menu is open */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        backdrop-filter: blur(2px);
    }

    .nav-overlay.active {
        display: block;
    }

    .logo {
        flex: 1;
        min-width: 0;
    }

    .logo-img {
        height: 48px;
        max-width: min(240px, 55vw);
    }

    .main-header.is-compact .logo-img {
        height: 40px;
        max-width: min(200px, 50vw);
    }

    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 1rem;
    }

    .donation-slide-panel {
        right: 48px;
        bottom: 16px;
    }

    .donation-slide-panel.is-open {
        width: min(360px, calc(100vw - 56px));
        padding: 34px 8px 8px;
    }

    .donation-qr-image {
        width: 100%;
        height: auto;
        max-height: calc(100dvh - 90px);
    }

    /* Hero */
    .hero {
        min-height: 500px;
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Sections */
    section {
        width: 100%;
        padding: 2rem 0;
    }

    .hero {
        width: 100%;
        padding: 2rem 1rem;
    }

    .page-header {
        width: 100%;
        padding: 3rem 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    /* Grids */
    .section-content-grid {
        grid-template-columns: 1fr;
    }

    .glowing-figure {
        height: 300px;
    }

    .figure-icon {
        max-width: 200px;
        max-height: 200px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .preview-content {
        grid-template-columns: 1fr;
    }

    .comparison-box {
        grid-template-columns: 1fr;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .blog-features {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .donate-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .footer-section:first-child {
        min-width: auto;
    }

    .section-content-grid {
        width: 100%;
    }

    .preview-content {
        width: 100%;
    }

    .features-grid {
        width: 100%;
    }

    .mission-grid {
        width: 100%;
    }

    /* Buttons */
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    /* Floating Contact Widget - Small Mobile */
    .floating-contact-widget {
        right: 10px;
        bottom: 15px;
        gap: 12px;
    }

    .contact-buttons {
        gap: 12px;
    }

    .contact-btn {
        width: 50px;
        height: 50px;
    }

    .contact-btn .btn-icon {
        font-size: 1.4rem;
    }

    .container {
        padding: 0 15px;
        width: 100%;
    }

    .top-bar {
        display: none;
    }

    .main-header {
        padding: 0.3rem 0;
        border-bottom-width: 2px;
    }

    .main-header.is-compact {
        padding: 0.15rem 0;
    }

    .header-content {
        padding: 0 10px;
        gap: 0.75rem;
    }

    .logo-img {
        height: 46px;
        max-width: min(220px, 62vw);
        width: auto;
    }

    .mobile-menu-toggle {
        padding: 6px;
    }

    .mobile-menu-toggle span {
        width: 22px;
        height: 2.5px;
    }

    .nav-menu {
        width: 260px;
    }

    .content-wrapper {
        padding: 0 10px;
    }

    .footer-content {
        padding: 0 15px;
    }

    .footer-bottom {
        padding-left: 15px;
        padding-right: 15px;
    }

    section {
        width: 100%;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .intro-box,
    .highlight-section,
    .cta-box {
        padding: 1.5rem;
    }

    .page-content-blocks {
        gap: 2rem;
    }

    .page-content-block-title {
        font-size: 1.35rem;
    }

    .page-content-block-highlight {
        padding: 1.5rem 1.25rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .logo-img {
        height: 44px;
        max-width: min(200px, 60vw);
        width: auto;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeIn 0.6s ease-out;
}
.top-bar-item .icon {
    color: #ffffff !important;
    margin-right: 6px;
    font-size: 18px;
}

/* Social icon circle */
.social-icon {
    color: #ffffff !important;
    font-size: 16px;
    margin-right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15); /* subtle circle */
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Hover effect */
.social-icon:hover {
    background: #f5c46b;
    color: #000 !important;
    transform: translateY(-2px);
}
