/* =====================================================
   FILE PATH: public/css/Home.css
   PURPOSE  : Homepage styles — redesigned cards
===================================================== */

/* ── HERO SECTION ─────────────────────────────────── */
.hero-section {
    background-color: var(--peach);
    padding: 0;
    overflow: hidden;
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: stretch;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23C8520A' stroke-opacity='0.07' stroke-width='0.8'%3E%3Ccircle cx='50' cy='50' r='38'/%3E%3Ccircle cx='50' cy='50' r='26'/%3E%3Ccircle cx='50' cy='50' r='14'/%3E%3Cline x1='50' y1='12' x2='50' y2='88'/%3E%3Cline x1='12' y1='50' x2='88' y2='50'/%3E%3Cline x1='23' y1='23' x2='77' y2='77'/%3E%3Cline x1='77' y1='23' x2='23' y2='77'/%3E%3Cline x1='12' y1='35' x2='88' y2='65'/%3E%3Cline x1='35' y1='12' x2='65' y2='88'/%3E%3Cline x1='12' y1='65' x2='88' y2='35'/%3E%3Cline x1='65' y1='12' x2='35' y2='88'/%3E%3C/g%3E%3Cg fill='%23E8961A' fill-opacity='0.08'%3E%3Cpolygon points='50,14 53,22 50,20 47,22'/%3E%3Cpolygon points='50,86 53,78 50,80 47,78'/%3E%3Cpolygon points='14,50 22,47 20,50 22,53'/%3E%3Cpolygon points='86,50 78,47 80,50 78,53'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 70px 70px;
    background-repeat: repeat;
    z-index: 0;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    right: -60px; top: -60px;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,150,26,0.12) 0%, transparent 65%);
    z-index: 0;
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: center;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 48px;
    position: relative;
    z-index: 1;
}

.hero-watermark {
    position: absolute;
    left: -30px; top: 50%;
    transform: translateY(-50%);
    opacity: 0.055;
    z-index: 0;
    pointer-events: none;
    width: 320px; height: 320px;
}

/* Hero pill */
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--light-gold);
    border: 1.5px solid var(--gold);
    color: var(--saffron);
    font-size: 10.5px; font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
    font-family: var(--font-marathi);
    letter-spacing: .04em;
}
.hero-pill-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.hero-heading {
    font-family: var(--font-display);
    font-size: 42px; font-weight: 800;
    color: var(--maroon);
    line-height: 1.18;
    margin-bottom: 14px;
}
.hero-highlight { color: var(--saffron); }

.hero-vachana {
    font-family: var(--font-marathi);
    font-size: 14.5px;
    color: var(--text-mid);
    margin-bottom: 10px;
    line-height: 1.8;
    font-style: italic;
    padding-left: 14px;
    border-left: 3px solid var(--gold);
}
.hero-sub {
    font-family: var(--font-marathi);
    font-size: 12.5px; color: var(--text-soft);
    margin-bottom: 26px; line-height: 1.9;
}
.hero-actions {
    display: flex; gap: 12px;
    flex-wrap: wrap; margin-bottom: 28px;
}
.hero-trust { display: flex; align-items: center; gap: 10px; margin-bottom: 0; }
.trust-avatars { display: flex; }
.trust-av {
    width: 34px; height: 34px; border-radius: 50%;
    border: 2.5px solid var(--white);
    margin-right: -10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
    font-family: var(--font-marathi);
}
.av-1{background:#FFD8B0;color:#7A3A10}
.av-2{background:#FFD0E0;color:#7A1040}
.av-3{background:#D8EEFF;color:#103A7A}
.av-4{background:#D0FFE0;color:#107A30}
.trust-text { margin-left: 14px; font-size: 11.5px; color: var(--text-soft); font-family: var(--font-marathi); }
.trust-text strong { display: block; font-size: 12.5px; color: var(--maroon); }

/* Founder Card */
.hero-right { position: relative; }
.hero-right::before {
    content: '';
    position: absolute; inset: -24px;
    border-radius: 32px;
    background: radial-gradient(circle, rgba(232,150,26,0.13) 0%, transparent 70%);
    z-index: 0; pointer-events: none;
}
.founder-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 22px;
    padding: 20px 20px;
    text-align: center;
    position: relative; z-index: 1;
    box-shadow: 0 12px 50px rgba(122,31,31,0.12);
}
.founder-card::before {
    content: '';
    position: absolute; top: 0; left: 20px; right: 20px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 2px;
}
.founder-avatar {
    width: 100px; height: 100px;
    border-radius: 50%; overflow: hidden;
    border: 3px solid var(--gold);
    margin: 0 auto 16px;
    background: var(--light-gold);
    box-shadow: 0 0 0 8px rgba(232,150,26,0.13);
}
.founder-img { width: 100%; height: 100%; object-fit: cover; }
.founder-name {
    font-family: var(--font-marathi);
    font-size: 22px; font-weight: 700;
    color: var(--maroon); line-height: 1.4; margin-bottom: 8px;
}
.founder-role {
    font-family: var(--font-marathi);
    font-size: 14px; color: var(--text-soft);
    line-height: 1.8; margin-bottom: 14px;
}
.founder-quote {
    background: var(--light-gold);
    border-left: 3px solid var(--gold);
    border-radius: 0 12px 12px 0;
    padding: 11px 14px;
    font-family: var(--font-marathi);
    font-size: 12.5px; color: var(--text-mid);
    line-height: 1.75; font-style: italic;
    text-align: left; margin-bottom: 14px;
}
.founder-badges { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; }
.fbadge {
    background: var(--light-orange); color: var(--saffron);
    font-size: 15px; font-weight: 800;
    padding: 10px 10px; border-radius: 10px;
    font-family: var(--font-body);
}

/* ── GHOSHVAKYA STRIP ─────────────────────────────── */
.ghoshvakya-strip {
    background: var(--light-gold);
    border-top: 1.5px solid var(--border);
    border-bottom: 1.5px solid var(--border);
    padding: 14px 24px; text-align: center;
}
.ghosh-main {
    font-family: var(--font-marathi);
    font-size: 16px; font-weight: 700;
    color: var(--maroon); margin-bottom: 3px;
    letter-spacing: .02em;
}
.ghosh-sub {
    font-family: var(--font-marathi);
    font-size: 11.5px; color: var(--text-soft); margin: 0;
}





/* ── SHARED SECTION UTIL ──────────────────────────── */
.py-section { padding: 36px 0; }
.bg-white   { background: var(--white); }
.bg-peach   { background: var(--peach); }
.bg-events  { background: #FEF9F5; }

/* ══════════════════════════════════════════════════════
   DHYEY CARDS — Completely Redesigned
   6 cards, each with unique gradient bg + icon color
══════════════════════════════════════════════════════ */
.section-dhyey { background: var(--white); }

.dhyey-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* Base card */
.dhyey-card {
    border-radius: 18px;
    padding: 24px 20px 20px;
    position: relative;
    overflow: hidden;
    cursor: default;
    border: 1.5px solid transparent;
    /* Entry animation state — JS will trigger */
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity      0.5s ease,
        transform    0.5s ease,
        box-shadow   0.3s ease,
        border-color 0.3s ease;
}
.dhyey-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.dhyey-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(122,31,31,0.13);
    border-color: var(--gold);
}

/* Unique background per card — alternating warm palettes */
.dhyey-card:nth-child(1) { background: linear-gradient(135deg, #FFF8EE 0%, #FFE8CC 100%); }
.dhyey-card:nth-child(2) { background: linear-gradient(135deg, #FFF0F5 0%, #FFD8E8 100%); }
.dhyey-card:nth-child(3) { background: linear-gradient(135deg, #FFFBEC 0%, #FFF0B0 100%); }
.dhyey-card:nth-child(4) { background: linear-gradient(135deg, #F0FFF4 0%, #C8EED8 100%); }
.dhyey-card:nth-child(5) { background: linear-gradient(135deg, #EEF5FF 0%, #C8DEFF 100%); }
.dhyey-card:nth-child(6) { background: linear-gradient(135deg, #FFF4EE 0%, #FFCAB0 100%); }

/* Decorative circle watermark inside each card */
.dhyey-card::before {
    content: '';
    position: absolute;
    bottom: -24px; right: -24px;
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    pointer-events: none;
    transition: transform 0.4s ease;
}
.dhyey-card:hover::before {
    transform: scale(1.4);
}

/* Icon box */
.dhyey-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    font-size: 22px;
    transition: transform 0.3s ease;
}
.dhyey-card:hover .dhyey-icon { transform: scale(1.1) rotate(-3deg); }

.dhyey-card:nth-child(1) .dhyey-icon { background: rgba(200,82,10,0.12); color: var(--saffron); }
.dhyey-card:nth-child(2) .dhyey-icon { background: rgba(122,31,31,0.10); color: var(--maroon); }
.dhyey-card:nth-child(3) .dhyey-icon { background: rgba(180,140,0,0.12); color: #8A6A00; }
.dhyey-card:nth-child(4) .dhyey-icon { background: rgba(20,120,60,0.12); color: #0A7040; }
.dhyey-card:nth-child(5) .dhyey-icon { background: rgba(30,80,180,0.10); color: #1A4AAA; }
.dhyey-card:nth-child(6) .dhyey-icon { background: rgba(200,82,10,0.12); color: var(--saffron); }

.dhyey-title {
    font-family: var(--font-marathi);
    font-size: 13.5px; font-weight: 700;
    color: var(--maroon);
    margin-bottom: 8px; line-height: 1.5;
}
.dhyey-desc {
    font-family: var(--font-marathi);
    font-size: 11.5px; color: var(--text-soft);
    line-height: 1.85; margin-bottom: 0;
}
.dhyey-badge {
    display: inline-block;
    font-size: 9.5px; font-weight: 800;
    padding: 3px 10px; border-radius: 10px;
    margin-top: 12px;
    background: rgba(255,255,255,0.65);
    color: var(--saffron);
    border: 1px solid rgba(200,82,10,0.20);
}

/* ══════════════════════════════════════════════════════
   EVENT CARDS — Redesigned with hover transitions
══════════════════════════════════════════════════════ */
.section-events { background: #FEF9F5; }

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 8px;
}

.event-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    background: var(--white);
    /* Entry animation state */
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity      0.45s ease,
        transform    0.45s ease,
        box-shadow   0.3s ease,
        border-color 0.3s ease;
}
.event-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(122,31,31,0.12);
    border-color: var(--gold);
}

/* Colored top with gradient */
.event-card-top {
    padding: 18px 16px 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* Subtle radial glow inside top */
.event-card-top::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(255,255,255,0.5) 0%, transparent 70%);
    pointer-events: none;
}
.event-top-0 { background: linear-gradient(135deg, #FFD8B0, #FFB870); }
.event-top-1 { background: linear-gradient(135deg, #FFD0E4, #FFB0CC); }
.event-top-2 { background: linear-gradient(135deg, #FFF0A0, #FFD840); }

.event-month {
    font-size: 10px; font-weight: 800;
    color: var(--maroon);
    letter-spacing: .12em; text-transform: uppercase;
    font-family: var(--font-marathi);
    position: relative; z-index: 1;
}
.event-day {
    font-family: var(--font-display);
    font-size: 34px; font-weight: 800;
    color: var(--maroon); line-height: 1;
    position: relative; z-index: 1;
}

.event-card-body { padding: 14px 16px 16px; }

.event-category {
    display: inline-block;
    background: var(--light-gold);
    color: var(--saffron);
    font-size: 9.5px; font-weight: 800;
    padding: 2px 9px; border-radius: 8px;
    margin-bottom: 7px;
}
.event-title {
    font-family: var(--font-marathi);
    font-size: 13px; font-weight: 700;
    color: var(--maroon); line-height: 1.55;
    margin-bottom: 7px;
}
.event-location {
    font-size: 11px; color: var(--text-soft);
    display: flex; align-items: center; gap: 4px;
    font-family: var(--font-marathi);
    margin-bottom: 10px;
}
.event-register-btn {
    display: block; text-align: center;
    background: var(--maroon); color: var(--white);
    font-size: 11.5px; font-weight: 800;
    padding: 8px 12px; border-radius: 9px;
    text-decoration: none;
    font-family: var(--font-marathi);
    transition: background 0.2s, transform 0.15s;
}
.event-register-btn:hover {
    background: var(--maroon-dark);
    color: var(--white);
    transform: scale(1.02);
}

.no-events-msg {
    text-align: center; padding: 40px;
    color: var(--text-soft);
    font-family: var(--font-marathi);
}
.no-events-msg i { font-size: 40px; display: block; margin-bottom: 10px; }

/* ── MEMBERSHIP SECTION ───────────────────────────── */
.section-membership { background: var(--maroon); padding: 40px 0; }
.membership-inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 32px; align-items: center;
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
}
.mem-steps { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.mem-step  { display: flex; gap: 14px; align-items: flex-start; }
.mem-step-num {
    min-width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 16px; font-weight: 800; color: var(--light-gold); flex-shrink: 0;
}
.mem-step-text strong { display: block; font-size: 12.5px; color: var(--white); margin-bottom: 2px; }
.mem-step-text span {
    font-family: var(--font-marathi); font-size: 11.5px;
    color: rgba(255,255,255,.6); line-height: 1.65;
}
.mem-card {
    background: rgba(255,255,255,.07);
    border: 1.5px solid rgba(255,255,255,.15);
    border-radius: 20px; padding: 28px 24px; text-align: center;
}
.mem-card-icons { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; }
.mem-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--light-gold);
}
.mem-card-title { font-family: var(--font-marathi); font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.mem-card-sub   { font-family: var(--font-marathi); font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.75; margin-bottom: 18px; }
.mem-card-url   { font-size: 10px; color: rgba(255,255,255,.35); margin-top: 8px; margin-bottom: 0; }

/* ── GALLERY PREVIEW ──────────────────────────────── */
.gallery-preview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 150px 150px;
    gap: 10px; margin-bottom: 8px;
}
.gallery-preview-item:first-child { grid-row: span 2; }
.gallery-preview-item { border-radius: 14px; overflow: hidden; position: relative; }
.gallery-preview-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; display: block; }
.gallery-preview-item:hover .gallery-preview-img { transform: scale(1.06); }
.gallery-preview-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.5));
    color: white; font-family: var(--font-marathi);
    font-size: 11px; padding: 16px 10px 8px;
}
.gallery-placeholder { background: var(--light-orange); }
.gallery-ph-inner {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: rgba(122,31,31,.3); font-family: var(--font-marathi); font-size: 12px; gap: 4px;
}
.gallery-ph-inner i { font-size: 24px; }

/* ── loader ───────────────────────────────────── */

/*#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}*/

/* ── JOIN CTA ─────────────────────────────────────── */
.section-join-cta { background: var(--light-gold); padding: 36px 0; }
.join-note {
    font-family: var(--font-marathi); font-size: 11px;
    color: var(--text-soft); margin-top: 14px; margin-bottom: 0;
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-heading { font-size: 34px; }
    .hero-inner   { padding: 48px 32px; }
    .dhyey-grid   { grid-template-columns: repeat(2, 1fr); }
    .events-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero-section  { min-height: auto; }
    .hero-inner    { grid-template-columns: 1fr; padding: 36px 20px 40px; gap: 28px; }
    .hero-right    { order: -1; }
    .hero-heading  { font-size: 28px; }
    .membership-inner { grid-template-columns: 1fr; }
    .gallery-preview-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .gallery-preview-item:first-child { grid-row: span 1; }
}
@media (max-width: 576px) {
    .dhyey-grid   { grid-template-columns: 1fr; }
    .events-grid  { grid-template-columns: 1fr; }
    .hero-heading { font-size: 24px; }
    .hero-inner   { padding: 28px 16px 32px; }
    .gallery-preview-grid { grid-template-columns: 1fr 1fr; }
}