/* ============================================================
   UMAIR PRO ACADEMY — Homepage (Extreme Premium Redesign)
   Namespaced with .home- prefix to avoid clashing with any
   global class names in style.css (lesson learned from earlier
   .note-box collision bug).
============================================================= */
main {
    --bg-dark: #05070a;
    --card-bg: #0d0e11;
    --border-color: rgba(255, 255, 255, 0.08);
    --gold-start: #F5A623;
    --gold-end: #d4891a;
    --gold-glow: rgba(245, 166, 35, 0.35);
    --wa-green: #25D366;
    --text-main: #ffffff;
    --text-muted: #9CA3AF;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    background: var(--bg-dark);
    font-family: 'Poppins', -apple-system, sans-serif;
    color: var(--text-main);
    display: block;
    overflow-x: hidden;
}

main * { box-sizing: border-box; }

/* ---------- Hero ---------- */
.home-hero {
    padding: 64px 16px 56px;
    background: radial-gradient(ellipse at 50% 0%, rgba(245, 166, 35, 0.08) 0%, transparent 60%), var(--bg-dark);
    text-align: center;
}

.home-hero-inner { max-width: 720px; margin: 0 auto; }

.home-eyebrow {
    display: inline-block;
    color: var(--gold-start);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 7px 18px;
    border: 1px solid rgba(245, 166, 35, 0.35);
    border-radius: 30px;
    margin-bottom: 20px;
}

.home-hero h1 {
    font-size: clamp(26px, 7vw, 44px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin: 0 0 16px;
}

.home-hero-sub {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.75;
    max-width: 560px;
    margin: 0 auto 28px;
}

.home-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 340px;
    margin: 0 auto 36px;
}

@media (min-width: 480px) {
    .home-hero-actions { flex-direction: row; max-width: none; justify-content: center; }
}

.home-btn-primary, .home-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 26px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.3s var(--ease), filter 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.home-btn-primary {
    background: linear-gradient(135deg, var(--gold-start) 0%, var(--gold-end) 100%);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(245, 166, 35, 0.3);
}
.home-btn-primary:hover { transform: translateY(-3px); filter: brightness(1.08); }

.home-btn-secondary {
    background: rgba(37, 211, 102, 0.08);
    color: var(--wa-green);
    border: 1px solid rgba(37, 211, 102, 0.35);
}
.home-btn-secondary:hover { transform: translateY(-3px); background: rgba(37, 211, 102, 0.15); }

.home-hero-stats {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.home-stat { display: flex; flex-direction: column; align-items: center; }
.home-stat-number { font-size: 22px; font-weight: 800; color: var(--gold-start); }
.home-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }

/* ---------- Section header (shared) ---------- */
.home-section-header {
    max-width: 640px;
    margin: 0 auto 36px;
    text-align: center;
}

.home-section-header h2 {
    font-size: clamp(22px, 5.5vw, 32px);
    font-weight: 800;
    margin: 0 0 12px;
}

.home-section-header > p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* ---------- Why Choose Us ---------- */
.home-features {
    padding: 56px 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.home-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 640px) {
    .home-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .home-features-grid { grid-template-columns: repeat(4, 1fr); }
}

.home-feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.home-feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 166, 35, 0.35);
    box-shadow: 0 18px 40px -18px var(--gold-glow);
}

.home-feature-icon { font-size: 30px; margin-bottom: 12px; }
.home-feature-card h3 { font-size: 15.5px; margin: 0 0 8px; }
.home-feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ---------- Courses section ---------- */
.home-courses {
    padding: 56px 16px 64px;
    max-width: 1200px;
    margin: 0 auto;
}

.home-note {
    display: inline-block;
    text-align: left;
    background: rgba(245, 166, 35, 0.06);
    border-left: 3px solid var(--gold-start);
    padding: 13px 18px;
    border-radius: 0 10px 10px 0;
    max-width: 520px;
    margin-top: 20px;
}

.home-note p { color: #CBD5E1; font-size: 13px; line-height: 1.6; margin: 0; }
.home-note span { color: var(--gold-start); font-weight: 700; }

.home-empty { text-align: center; color: var(--text-muted); padding: 40px 0; }

/* ---------- Course cards: mobile-first grid ---------- */
.home-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

@media (min-width: 640px) {
    .home-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .home-cards-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.home-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: home-card-in 0.6s var(--ease) both;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

@keyframes home-card-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.home-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 166, 35, 0.4);
    box-shadow: 0 24px 50px -20px var(--gold-glow);
}

.home-card-img-link { display: block; }

/* --- Image integrity: never cropped, always fully visible --- */
.home-card-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

.home-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s var(--ease);
}

.home-card:hover .home-card-img-wrapper img {
    transform: scale(1.05);
}

.home-card-no-img {
    font-size: 32px;
    opacity: 0.4;
}

.home-card-content {
    padding: 18px 16px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.home-card-category {
    display: inline-block;
    color: var(--gold-start);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.home-card-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.35;

    /* FIX: bohot lamba title bhi 2 lines tak mehdood rahe */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.35em * 2);
}
.home-card-content p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 18px;
    flex-grow: 1;

    /* FIX: text ko hamesha 3 lines tak mehdood rakhein, taake
       har card ki height barabar rahe chahe description kitni
       bhi lambi ho */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.6em * 3); /* 3 lines ki jagah reserve, chhoti description par bhi height barabar rahe */
}

.home-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.home-price-block { display: flex; flex-direction: column; }
.home-price-old { text-decoration: line-through; color: #6b7280; font-size: 12px; }
.home-price { color: var(--gold-start); font-size: 19px; font-weight: 800; }

.home-btn-card {
    background: linear-gradient(135deg, var(--gold-start) 0%, var(--gold-end) 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

.home-btn-card:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* ---------- WhatsApp CTA block ---------- */
.home-what-container {
    max-width: 640px;
    margin: 0 auto 64px;
    padding: 0 16px;
    text-align: center;
}

.home-what-header h2 {
    font-size: clamp(19px, 5vw, 24px);
    font-weight: 800;
    margin: 0 0 8px;
}

.home-what-header p {
    color: var(--text-muted);
    font-size: 13.5px;
    margin: 0 0 22px;
}

.home-wa-btn {
    width: 100%;
    background: transparent;
    color: var(--wa-green);
    padding: 15px 22px;
    border: 1px solid rgba(37, 211, 102, 0.5);
    border-radius: 30px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
}

@media (min-width: 480px) {
    .home-wa-btn { width: auto; padding: 15px 32px; }
}

.home-wa-btn:hover {
    background: var(--wa-green);
    color: #052e16;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.35);
    transform: translateY(-2px);
}

/* ---------- WA Modal ---------- */
.home-wa-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.home-wa-modal-content {
    background: #0f1117;
    margin: 18vh auto;
    padding: 30px 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    position: relative;
    text-align: left;
}

@media (max-width: 480px) {
    .home-wa-modal-content {
        margin: auto;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        width: 100%;
        max-width: none;
        border-radius: 20px 20px 0 0;
    }
}

.home-wa-close-icon {
    position: absolute;
    top: 14px; right: 18px;
    font-size: 26px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.home-wa-close-icon:hover { color: var(--gold-start); transform: rotate(90deg); }

.home-wa-heading { margin: 0 0 6px; color: var(--text-main); font-size: 20px; font-weight: 700; }
.home-wa-text { color: var(--text-muted); margin: 0 0 18px; font-size: 13.5px; }

.home-wa-select-box {
    width: 100%;
    padding: 13px 14px;
    margin-bottom: 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-dark);
    color: var(--text-main);
    cursor: pointer;
}
.home-wa-select-box:focus { outline: none; border-color: var(--gold-start); }

.home-wa-submit-btn {
    width: 100%;
    background: var(--wa-green);
    color: #ffffff;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}
.home-wa-submit-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
    main * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}