/**
 * DotIAM Baby Names — Single English Letter Page (a.php ... z.php)
 * single-english.css — total redesign, home.css jaisi design language.
 * "se-" prefix classes. Modal/table/load-more ki functional class names
 * (JS-dependent: name-cell, name-english, name-hindi, meaning-cell,
 * gender-badge, detail-*, modal, modal-overlay, modal-content, modal-close,
 * modal-body, modal-loader, spinner, btn-text, btn-loader) waisi hi rakhi
 * gayi hain taaki JavaScript na tootey — bas unhe bhi yahin restyle kiya h.
 */

:root {
    --se-ink:          #262231;
    --se-ink-soft:     #625C71;
    --se-bg:           #FFFFFF;

    --se-rose:         #E15C79;
    --se-rose-deep:    #B93555;
    --se-rose-tint:    #FCE9EE;
    --se-peach:        #F3945F;
    --se-peach-deep:   #C15A2E;
    --se-peach-tint:   #FDEEE3;
    --se-lavender:     #8873B8;
    --se-lavender-deep:#5F4990;
    --se-lavender-tint:#EEE8F8;
    --se-sage:         #5C9678;
    --se-sage-deep:    #386B4E;
    --se-sage-tint:    #E4F1EA;
    --se-gold:         #CC9A35;
    --se-gold-deep:    #96701F;
    --se-gold-tint:    #FAF0DA;

    --se-radius-md: 20px;
    --se-radius-lg: 28px;
    --se-ease: cubic-bezier(0.22, 1, 0.36, 1);

    --se-font-display: 'Quicksand', 'Poppins', sans-serif;
    --se-font-body:    'Poppins', sans-serif;
}

body { background: var(--se-bg); color: var(--se-ink); }
.se-page, .se-page h1, .se-page h2, .se-page h3, .se-page p { overflow-wrap: break-word; word-break: break-word; }
.se-page * {font-size: max(16px, 1em);}
.se-page h1, .se-page h2, .se-page h3, .se-page strong { font-size: revert; }

.se-container { max-width: 1400px; margin: 0 auto; padding: 0 28px; }

/* ================================================
   रंगीन cycle (related letters के लिए)
================================================ */
.se-cyc-1 { color: var(--se-rose-deep) !important; }
.se-cyc-2 { color: var(--se-peach-deep) !important; }
.se-cyc-3 { color: var(--se-lavender-deep) !important; }
.se-cyc-4 { color: var(--se-sage-deep) !important; }
.se-cyc-5 { color: var(--se-gold-deep) !important; }

/* ================================================
   1. हीरो — gradient band
================================================ */
.se-hero {
    position: relative; overflow: hidden; text-align: center;
    background: linear-gradient(135deg, var(--se-rose) 0%, var(--se-lavender) 100%);
    padding: 90px 0 70px;
}
.se-hero::before, .se-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.08); }
.se-hero::before { width: 420px; height: 420px; top: -160px; left: -120px; }
.se-hero::after  { width: 300px; height: 300px; bottom: -140px; right: -90px; background: rgba(255,255,255,0.1); }
.se-hero .se-container { position: relative; z-index: 2; }

.se-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--se-font-body); font-weight: 600; font-size: 15px;
    background: rgba(255,255,255,0.18); color: #fff;
    padding: 8px 18px; border-radius: 50px; margin-bottom: 20px;
}
.se-hero h1 {
    font-family: var(--se-font-display); font-weight: 700; color: #fff;
    font-size: clamp(28px, 2.4vw + 14px, 42px); line-height: 1.2; margin-bottom: 14px;
}
.se-hero-sub {
    font-family: var(--se-font-body); font-size: 17px; color: rgba(255,255,255,0.92);
    max-width: 640px; margin: 0 auto 34px; line-height: 1.7;
}

.se-hero-stats { display: flex; gap: 0; justify-content: center; flex-wrap: wrap; max-width: 600px; margin: 0 auto; }
.se-hero-stat { flex: 1; min-width: 110px; padding: 0 20px; border-left: 1px solid rgba(255,255,255,0.25); }
.se-hero-stat:first-child { border-left: none; }
.se-hero-stat strong { display: block; font-family: var(--se-font-display); font-weight: 700; font-size: 24px; color: #fff; }
.se-hero-stat span { font-family: var(--se-font-body); font-size: 12.5px; color: rgba(255,255,255,0.85); line-height: 1.4; }

/* ================================================
   2. Breadcrumb — flat
================================================ */
.se-breadcrumb { padding: 16px 0; border-bottom: 1px solid #F0E6E2; background: #fff; }
.se-breadcrumb-row { font-family: var(--se-font-body); font-size: 14.5px; color: var(--se-ink-soft); }
.se-breadcrumb-row a { color: var(--se-ink-soft); text-decoration: none; }
.se-breadcrumb-row a:hover { color: var(--se-rose-deep); }
.se-breadcrumb-row .se-sep { margin: 0 8px; opacity: .5; }
.se-breadcrumb-row .se-current { color: var(--se-rose-deep); font-weight: 600; }

/* ================================================
   3. Names section wrapper
================================================ */
.se-names-section { padding: 70px 0; background: #fff; }
.se-section-head {text-align: center;max-width: 1000px;margin: 0 auto 50px;}
.se-section-head h2 { font-family: var(--se-font-display); font-weight: 700; font-size: clamp(24px, 1.6vw + 16px, 32px); color: var(--se-ink); margin-bottom: 14px; }
.se-section-head p { font-family: var(--se-font-body); font-size: 16.5px; color: var(--se-ink-soft); line-height: 1.75; }

/* ================================================
   4. Gender sections — कोई box नहीं
================================================ */
.se-gender-section { margin-bottom: 60px; }
.se-gender-header { margin-bottom: 24px; }
.se-gender-title { display: flex; align-items: center; gap: 16px; }
.se-gender-icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; background: var(--se-rose-tint); }
.se-gender-icon.se-girl { background: var(--se-lavender-tint); }
.se-gender-title h2 { font-family: var(--se-font-display); font-weight: 700; font-size: 22px; color: var(--se-ink); margin-bottom: 3px; }
.se-gender-count { font-family: var(--se-font-body); font-size: 14px; color: var(--se-ink-soft); }

/* ================================================
   5. Table — flat, divider-based, कोई shadow नहीं
================================================ */
.se-table-wrap { overflow-x: auto; }
.se-table { width: 100%; border-collapse: collapse; font-family: var(--se-font-body); }
.se-table thead th {
    text-align: left; font-family: var(--se-font-display); font-weight: 700; font-size: 13.5px;
    text-transform: uppercase; letter-spacing: .03em; color: var(--se-rose-deep);
    padding: 14px 16px; border-bottom: 2px solid var(--se-rose-tint);
}
.se-table tbody tr { border-bottom: 1px solid #F0E6E2; cursor: pointer; transition: background .2s var(--se-ease); }
.se-table tbody tr:hover { background: var(--se-rose-tint); }
.se-table td { padding: 14px 16px; vertical-align: top; font-size: 15px; color: var(--se-ink-soft); }

/* JS-dependent classes — waisi hi rakhi hain, sirf styled */
.name-cell { display: flex; flex-direction: column; gap: 2px; }
.name-english { font-family: var(--se-font-display); font-weight: 700; font-size: 16.5px; color: var(--se-ink); }
.name-hindi { font-family: var(--se-font-body); font-size: 13px; color: var(--se-lavender-deep); }
.meaning-cell strong { color: var(--se-ink); }

/* ================================================
   6. Load more
================================================ */
.se-load-more-wrap { text-align: center; margin-top: 28px; }
.se-load-more-btn {
    font-family: var(--se-font-display); font-weight: 700; font-size: 15.5px;
    background: var(--se-rose); color: #fff; border: none;
    padding: 13px 30px; border-radius: 50px; cursor: pointer;
    transition: transform .2s var(--se-ease);
}
.se-load-more-btn:hover { transform: translateY(-3px); }
.se-load-more-btn:disabled { opacity: .6; cursor: default; transform: none; }
.se-no-more { text-align: center; margin-top: 22px; font-family: var(--se-font-body); font-size: 14.5px; color: var(--se-sage-deep); }

/* ================================================
   7. SEO Content (per-letter — content यहाँ बदलेगा, design fixed)
================================================ */
.se-seo-content { margin-top: 70px; }
.se-seo-content h2 { font-family: var(--se-font-display); font-weight: 700; font-size: clamp(22px, 1.4vw + 16px, 28px); color: var(--se-ink); text-align: center; margin-bottom: 30px; }
.se-seo-content h3 { font-family: var(--se-font-display); font-weight: 700; font-size: 19px; color: var(--se-ink); margin: 28px 0 12px; }
.se-seo-content p { font-family: var(--se-font-body); font-size: 16px; line-height: 1.8; color: var(--se-ink-soft); margin-bottom: 14px; }
.se-seo-content strong { color: var(--se-ink); }
.se-seo-content .se-list { list-style: none; padding: 0; margin: 0 0 18px; }
.se-seo-content .se-list li { padding-left: 22px; position: relative; margin-bottom: 10px; font-family: var(--se-font-body); font-size: 15px; color: var(--se-ink-soft); line-height: 1.6; }
.se-seo-content .se-list li::before { content: "✓"; position: absolute; left: 0; color: var(--se-sage-deep); font-weight: 700; }

/* ================================================
   8. Related letters — typography-driven, कोई box नहीं
================================================ */
.se-related { padding: 70px 0; background: var(--se-lavender-tint); }
.se-alpha-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 32px; margin-top: 10px; }
.se-alpha-row a {
    display: inline-flex; align-items: baseline; gap: 4px;
    text-decoration: none; padding-bottom: 4px;
    border-bottom: 3px solid transparent;
    transition: transform .25s var(--se-ease), border-color .25s var(--se-ease);
}
.se-alpha-row a:hover { transform: scale(1.18); border-bottom-color: currentColor; }
.se-az-main { font-family: var(--se-font-display); font-weight: 700; font-size: 28px; line-height: 1; }
.se-az-sub  { font-family: var(--se-font-body); font-weight: 600; font-size: 13px; color: var(--se-ink-soft); }

/* ================================================
   9. CTA — gradient
================================================ */
.se-cta {
    background: linear-gradient(135deg, var(--se-rose) 0%, var(--se-lavender) 100%);
    padding: 100px 0; text-align: center; position: relative; overflow: hidden;
}
.se-cta::before, .se-cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.se-cta::before { width: 420px; height: 420px; top: -160px; left: -110px; }
.se-cta::after  { width: 300px; height: 300px; bottom: -140px; right: -80px; background: rgba(255,255,255,.1); }
.se-cta .se-container { position: relative; z-index: 2; }
.se-cta h2 { font-family: var(--se-font-display); font-weight: 700; color: #fff; font-size: clamp(26px, 2vw + 16px, 38px); margin-bottom: 12px; }
.se-cta p { font-family: var(--se-font-body); font-size: 16.5px; color: rgba(255,255,255,.92); margin-bottom: 28px; }
.se-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.se-cta-btn { font-family: var(--se-font-display); font-weight: 700; font-size: 15.5px; padding: 13px 28px; border-radius: 50px; text-decoration: none; transition: transform .2s var(--se-ease); display: inline-block; }
.se-cta-btn.se-primary { background: #fff; color: var(--se-rose-deep); }
.se-cta-btn.se-primary:hover { transform: translateY(-3px); }
.se-cta-btn.se-secondary { background: transparent; border: 2px solid rgba(255,255,255,.6); color: #fff; }
.se-cta-btn.se-secondary:hover { background: rgba(255,255,255,.15); }

/* ================================================
   10. Modal — JS-dependent classes, waisi hi rakhi + styled
================================================ */
.modal { position: fixed; inset: 0; z-index: 999; display: none; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(38,34,49,.55); }
.modal-content { position: relative; z-index: 2; background: #fff; border-radius: var(--se-radius-lg); max-width: 560px; width: 92%; max-height: 85vh; overflow-y: auto; padding: 36px; border: 1px solid #F0E6E2; }
.modal-close { position: absolute; top: 16px; right: 18px; background: transparent; border: none; font-size: 26px; color: var(--se-ink-soft); cursor: pointer; }
.modal-close:hover { color: var(--se-rose-deep); }
.modal-loader { text-align: center; padding: 40px 0; font-family: var(--se-font-body); color: var(--se-ink-soft); }
.spinner { width: 36px; height: 36px; border: 3px solid var(--se-rose-tint); border-top-color: var(--se-rose); border-radius: 50%; margin: 0 auto 14px; animation: seSpin .8s linear infinite; }
@keyframes seSpin { to { transform: rotate(360deg); } }

.name-detail-header { text-align: center; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid #F0E6E2; }
.detail-name { font-family: var(--se-font-display); font-weight: 700; font-size: 28px; color: var(--se-ink); margin-bottom: 4px; }
.detail-name-hindi { font-family: var(--se-font-body); font-size: 16px; color: var(--se-lavender-deep); margin-bottom: 10px; }
.gender-badge { display: inline-block; font-family: var(--se-font-body); font-weight: 600; font-size: 12.5px; padding: 5px 14px; border-radius: 50px; background: var(--se-rose-tint); color: var(--se-rose-deep); text-transform: capitalize; }
.gender-badge.girl { background: var(--se-lavender-tint); color: var(--se-lavender-deep); }
.detail-section { margin-bottom: 20px; }
.detail-section h3 { font-family: var(--se-font-display); font-weight: 700; font-size: 16px; color: var(--se-ink); margin-bottom: 8px; }
.detail-text { font-family: var(--se-font-body); font-size: 15px; color: var(--se-ink-soft); line-height: 1.7; }
.detail-text-hindi { font-family: var(--se-font-body); font-size: 14px; color: var(--se-lavender-deep); line-height: 1.7; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.detail-item { font-family: var(--se-font-body); font-size: 14px; color: var(--se-ink-soft); display: flex; flex-direction: column; gap: 3px; padding-top: 10px; border-top: 1px solid #F0E6E2; }
.detail-item strong { color: var(--se-ink); font-size: 13px; }
.detail-item .hindi { color: var(--se-lavender-deep); font-size: 13px; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--se-rose); outline-offset: 2px; }

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 1023px) and (min-width: 768px) {
    .se-hero-stats { max-width: 500px; }
}

@media (max-width: 767px) {
    .se-container { padding: 0 16px; }
    .se-hero { padding: 48px 0 40px; }
    .se-hero h1 { font-size: 22px; }
    .se-hero-sub { font-size: 14.5px; margin-bottom: 26px; }
    .se-hero-stats { justify-content: space-between; }
    .se-hero-stat {min-width: 25%;border-left: none;padding: 8px 0;}
    .se-hero-stat strong { font-size: 20px; }

    .se-names-section { padding: 42px 0; }
    .se-section-head { margin-bottom: 32px; }
    .se-section-head h2 { font-size: 21px; }
    .se-section-head p { font-size: 14.5px; }

    .se-gender-section { margin-bottom: 40px; }
    .se-gender-title { align-items: flex-start; gap: 12px; }
    .se-gender-icon { width: 42px; height: 42px; font-size: 19px; }
    .se-gender-title h2 { font-size: 18px; }

    /* Table -> stacked cards, data-label prefixes दिखाई देंगे */
    .se-table-wrap { overflow-x: visible; }
    .se-table thead { display: none; }
    .se-table, .se-table tbody, .se-table tr { display: block; width: 100%; }
    .se-table tr {
        padding: 14px 4px;
        cursor: pointer;
        transition: background .2s var(--se-ease);
        box-shadow: none !important;
        background: #f7f7f7 !important;
        float: left;
        border-radius: 10px;
        margin-bottom: 10px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .se-table td {
        /* display: block; */
        /* width: 50%; */
        /* padding: 5px 0 !important; */
        /* border: none !important; */
        /* font-size: 14px; */
        padding: 5px 15px 5px 15px;
        vertical-align: middle;
        width: 25%;
        float: left;
        height: 100%;
    }
    td.meaning-cell {
		width: 25%;
	}
	table.se-table div, table.se-table td, table.se-table span {
		font-size: 14px;
	}
    .se-table td::before {
        content: attr(data-label);
        display: block; font-family: var(--se-font-display); font-weight: 700;
        font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em;
        color: var(--se-rose-deep); margin-bottom: 2px;
    }
    .se-table td[data-label="Name"]::before { display: none; }
    .se-table td[data-label="Name"] .name-english { font-size: 17px; }

    .se-load-more-btn { width: 100%; padding: 13px 0; font-size: 14.5px; }

    .se-seo-content { margin-top: 44px; }
    .se-seo-content h2 { font-size: 19px; margin-bottom: 20px; }
    .se-seo-content h3 { font-size: 16.5px; margin: 20px 0 8px; }
    .se-seo-content p, .se-seo-content .se-list li { font-size: 14.5px; }

    .se-related { padding: 42px 0; }
    .se-alpha-row { gap: 12px 18px; }
    .se-az-main { font-size: 22px; }
    .se-az-sub { font-size: 11px; }

    .se-cta { padding: 60px 0; }
    .se-cta h2 { font-size: 22px; }
    .se-cta p { font-size: 14.5px; }
    .se-cta-buttons { flex-direction: column; align-items: stretch; }
    .se-cta-btn { text-align: center; }

    /* Modal — mobile पर padding/columns fix */
    .modal { padding: 16px; }
    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 80vh;
        padding: 50px 18px 22px;
        border-radius: var(--se-radius-md);
    }
    .modal-body {
    padding: 0px;
}
    .modal-close { top: 10px; right: 10px; font-size: 22px; }
    .name-detail-header { margin-bottom: 16px; padding-bottom: 14px; }
    .detail-name { font-size: 22px; }
    .detail-name-hindi { font-size: 14px; }
    .detail-section { margin-bottom: 16px; }
    .detail-section h3 { font-size: 14.5px; }
    .detail-text, .detail-text-hindi { font-size: 14px; }
    .detail-grid { grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 6px; }
    .detail-item { font-size: 13px; padding-top: 8px; }
}

@media (max-width: 420px) {
    .detail-grid {grid-template-columns: 1fr 1fr;}
    .se-hero-stat { min-width: 100%; padding: 6px 0; border-top: 1px solid rgba(255,255,255,0.2); border-left: none; }
    .se-hero-stat:first-child { border-top: none; }
}
/* ================================================================
   POPULAR STARTING LETTERS BAND — a.php me index.php wala section
   copy kiya gaya hai (en- prefix classes). Yahan unki matching CSS
   di gayi hai taaki yeh section bhi single-letter page pe sahi dikhe.
   (index.php/english-new.css me diya gaya design hi yahan reuse kiya)
================================================================ */
.en-container { max-width: 1400px; margin: 0 auto; padding: 0 28px; }
.en-section { padding: 80px 0; background: #fff; }

.en-eyebrow-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--se-font-body); font-weight: 600; font-size: 16px;
    padding: 7px 18px; border-radius: 50px; margin-bottom: 16px;
    background: var(--se-rose-tint); color: var(--se-rose-deep);
}
.en-heading { font-family: var(--se-font-display); font-weight: 700; font-size: clamp(26px, 1.8vw + 18px, 38px); color: var(--se-ink); margin-bottom: 20px; line-height: 1.2; }
.en-desc { font-family: var(--se-font-body); font-size: 17px; line-height: 1.75; color: var(--se-ink-soft); }

.en-popular-band {
    background: linear-gradient(135deg, var(--se-peach) 0%, var(--se-gold) 100%);
    text-align: center;
}
.en-popular-band .en-heading { color: #fff; }
.en-popular-band .en-desc { color: rgba(255,255,255,0.92); max-width: 600px; margin: 0 auto; }

.en-popular-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    margin-top: 50px; max-width: 1100px; margin-left: auto; margin-right: auto;
}
.en-popular-item {
    padding: 0 26px; border-left: 1px solid rgba(255,255,255,0.3);
    text-decoration: none; display: flex; flex-direction: column; align-items: center;
    transition: transform 0.25s var(--se-ease);
}
.en-popular-item:first-child { border-left: none; }
.en-popular-item:hover { transform: translateY(-6px); }
.en-popular-letter { font-family: var(--se-font-display); font-weight: 700; font-size: 46px; color: #fff; line-height: 1; }
.en-popular-count { font-family: var(--se-font-body); font-weight: 600; font-size: 15px; color: #fff; margin-top: 8px; }
.en-popular-sub { font-family: var(--se-font-body); font-size: 12.5px; color: rgba(255,255,255,0.8); margin-bottom: 10px; }
.en-popular-text { font-family: var(--se-font-body); font-size: 13.5px; color: rgba(255,255,255,0.88); line-height: 1.6; margin-bottom: 14px; min-height: 58px; }
.en-popular-link { font-family: var(--se-font-display); font-weight: 700; font-size: 14px; color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* --- Responsive (Popular band) --- */
@media (max-width: 1023px) and (min-width: 768px) {
    .en-popular-row { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
    .en-popular-item:nth-child(3) { border-left: none; }
}

@media (max-width: 767px) {
    .en-container { padding: 0 16px; }
    .en-section { padding: 42px 0; }
    .en-popular-row { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
    .en-popular-item { border-left: none; padding: 0 10px; }
    .en-popular-letter { font-size: 38px; }
}



@media (max-width: 580px) {
	.se-hero-stat {
        min-width: 25%;
        border-left: none;
        padding: 8px 0;
    }
	.se-table td{
		width: 50%;	
	}
	td.meaning-celll {
		width: 100%;
	}
	
}

@media (max-width: 420px) {
	.se-hero-stat {
        min-width: 50%;
        padding: 8px 0;
        border: none !important;
    }
}