/*
 Theme Name: Astra Child
 Template: astra
 Version: 1.0.0
*/

/* ============================================================
   REMOVE ASTRA BRANDING & PAGE TITLES
   ============================================================ */
.ast-footer-copyright,
.site-footer .ast-footer-copyright,
footer .ast-footer-copyright { display: none !important; }

.home .entry-title,
.home .ast-page-title,
.page-id-6 .entry-title,
.page-id-7 .entry-title,
.page-id-8 .entry-title,
.page-id-9 .entry-title,
.page-id-10 .entry-title,
.ast-page-title-bar { display: none !important; }

/* Remove white gap above hero */
.entry-content { padding-top: 0 !important; margin-top: 0 !important; }
.ast-article-single { padding-top: 0 !important; }
.single-page-content { padding-top: 0 !important; }
.ast-container { padding-top: 0 !important; }
.site-content { padding-top: 0 !important; }
.page .entry-content { padding-top: 0 !important; }
.ast-page-builder-template .entry-content { padding: 0 !important; }
.page-template-default .entry-content { padding-top: 0 !important; }
.ast-separate-container .ast-article-single { padding: 0 !important; }
.content-area { padding-top: 0 !important; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header,
.ast-primary-header-bar,
.main-header-bar,
#masthead { background: #0f172a !important; }

.main-header-menu .menu-item a,
.ast-builder-menu-1 .menu-item a,
#site-navigation .menu-item a { color: #e2e8f0 !important; font-size: 0.9rem !important; font-weight: 500 !important; }

.main-header-menu .menu-item a:hover,
.ast-builder-menu-1 .menu-item a:hover { color: #3b82f6 !important; }

/* Logo sizing */
.custom-logo { max-height: 50px !important; width: auto !important; }
.ast-logo-container img { max-height: 50px !important; }

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.page-hero, .home-hero, .courses-hero, .universities-hero, .contact-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    color: #fff;
    padding: 100px 40px 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(59,130,246,0.2);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid rgba(59,130,246,0.3);
    margin-bottom: 24px;
}

.page-hero h1, .home-hero h1, .courses-hero h1, .universities-hero h1, .contact-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 800 !important;
    color: #fff !important;
    max-width: 900px;
    line-height: 1.2 !important;
    margin: 0 0 20px !important;
}

.page-hero h1 span, .home-hero h1 span { color: #3b82f6 !important; }

.page-hero p, .home-hero p, .courses-hero p, .universities-hero p, .contact-hero p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 650px;
    line-height: 1.7;
    margin: 0 0 32px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.3s;
}
.btn-primary:hover { background: linear-gradient(135deg, #2563eb, #1e40af); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(59,130,246,0.4); }

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; transform: translateY(-2px); }

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section { background: #1e293b; padding: 48px 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; text-align: center; }
.stat-item { padding: 16px; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: #3b82f6; line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.85rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================================
   SECTION BADGE
   ============================================================ */
.section-badge {
    display: inline-block;
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* ============================================================
   PROGRAMS PREVIEW (HOME PAGE)
   ============================================================ */
.programs-preview-section { padding: 80px 40px; background: #fff; text-align: center; }
.programs-preview-section h2 { font-size: 2rem !important; font-weight: 700 !important; color: #0f172a !important; margin: 12px 0 16px !important; }
.programs-preview-section > p { color: #64748b; max-width: 600px; margin: 0 auto 48px; font-size: 1rem; line-height: 1.7; }
.programs-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; text-align: left; }
.preview-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 28px 24px; transition: all 0.2s; }
.preview-card:hover { border-color: #3b82f6; box-shadow: 0 4px 20px rgba(59,130,246,0.15); transform: translateY(-2px); }
.preview-card-highlight { border-color: #3b82f6; background: linear-gradient(135deg, #eff6ff, #f0f9ff); }
.preview-icon { font-size: 2rem; margin-bottom: 12px; }
.preview-card h3 { font-size: 1rem !important; font-weight: 700 !important; color: #0f172a !important; margin: 0 0 8px !important; padding: 0 !important; line-height: 1.4 !important; }
.preview-card p { font-size: 0.85rem; color: #64748b; margin: 0 !important; }
.showcase-tag { display: inline-block; background: #3b82f6; color: #fff; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; padding: 3px 10px; border-radius: 4px; margin-top: 10px; text-transform: uppercase; }

/* ============================================================
   MARKETS SECTION
   ============================================================ */
.markets-section { padding: 80px 40px; background: #f8fafc; text-align: center; }
.markets-section h2 { font-size: 2rem !important; font-weight: 700 !important; color: #0f172a !important; margin: 12px 0 16px !important; }
.markets-section > p { color: #64748b; max-width: 600px; margin: 0 auto 48px; font-size: 1rem; line-height: 1.7; }
.markets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.market-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px 16px; text-align: center; transition: all 0.2s; }
.market-card:hover { border-color: #3b82f6; box-shadow: 0 4px 16px rgba(59,130,246,0.1); transform: translateY(-2px); }
.market-flag { font-size: 2rem; margin-bottom: 8px; }
.market-name { font-size: 0.85rem; font-weight: 600; color: #374151; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%); color: #fff; padding: 80px 40px; text-align: center; }
.cta-section h2 { font-size: 2rem !important; font-weight: 700 !important; color: #fff !important; margin: 0 auto 16px !important; max-width: 700px; }
.cta-section p { color: #cbd5e1; max-width: 600px; margin: 0 auto 32px; font-size: 1rem; line-height: 1.7; }

/* ============================================================
   COURSES PAGE ACCORDION
   ============================================================ */
.courses-section { padding: 60px 40px; background: #f8fafc; }
.courses-section-inner { max-width: 900px; margin: 0 auto; }
.course-accordion { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.course-accordion:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.course-header { padding: 20px 24px; display: flex; align-items: center; gap: 16px; }
.course-number { background: #3b82f6; color: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.course-title-area { flex: 1; }
.course-name { font-size: 1rem !important; font-weight: 700 !important; color: #0f172a !important; margin: 0 0 4px !important; padding: 0 !important; }
.course-subtitle { font-size: 0.8rem; color: #64748b; margin: 0 !important; }
.course-body { padding: 0 24px 24px; border-top: 1px solid #f1f5f9; }
.course-body p { color: #374151; font-size: 0.9rem; line-height: 1.7; margin: 16px 0 12px; }
.course-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.course-tag { background: #eff6ff; color: #1d4ed8; font-size: 0.75rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; border: 1px solid #bfdbfe; }
.course-tag-highlight { background: #3b82f6; color: #fff; border-color: #3b82f6; }

/* ============================================================
   BENEFITS / UNIVERSITIES PAGES
   ============================================================ */
.benefits-section { padding: 60px 40px; background: #fff; }
.benefits-section-inner { max-width: 1100px; margin: 0 auto; }
.benefits-section h2 { font-size: 1.8rem !important; font-weight: 700 !important; color: #0f172a !important; margin: 0 0 32px !important; text-align: center; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.benefit-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 28px 24px; }
.benefit-icon { font-size: 2rem; margin-bottom: 12px; }
.benefit-card h3 { font-size: 1rem !important; font-weight: 700 !important; color: #0f172a !important; margin: 0 0 8px !important; }
.benefit-card p { font-size: 0.9rem; color: #64748b; line-height: 1.6; margin: 0 !important; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { padding: 60px 40px; background: #f8fafc; }
.contact-section-inner { max-width: 800px; margin: 0 auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer, #colophon { background: #0f172a !important; color: #94a3b8 !important; padding: 24px 40px !important; text-align: center !important; font-size: 0.85rem !important; }
.site-footer a { color: #64748b !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .page-hero, .home-hero, .courses-hero, .universities-hero, .contact-hero { padding: 60px 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .programs-preview-grid { grid-template-columns: 1fr; }
    .markets-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-buttons { flex-direction: column; align-items: center; }
    .benefits-grid { grid-template-columns: 1fr; }
    .courses-section, .benefits-section, .contact-section { padding: 40px 20px; }
}


/* ============================================================
   GAP & FOOTER FIXES
   ============================================================ */

/* Remove ALL possible sources of white gap above hero */
body.page .site-content,
body.page #primary,
body.page #main,
body.page .ast-article-single,
body.page .entry-content,
body.page .post-content,
body.page .single-page-content,
body.page .ast-container,
body.home .site-content,
body.home #primary,
body.home #main,
body.home .ast-article-single,
body.home .entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Astra specific padding removal */
.ast-separate-container .ast-article-single,
.ast-page-builder-template .entry-content,
.ast-no-sidebar .site-content .ast-container,
#content.ast-container,
.ast-container > #primary {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove any breadcrumb area */
.ast-breadcrumbs-wrapper,
.ast-breadcrumbs { display: none !important; }

/* Fix footer - remove white area */
#colophon,
.site-footer {
    background: #0f172a !important;
    padding: 20px 40px !important;
    text-align: center !important;
    color: #64748b !important;
    font-size: 0.85rem !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
}

/* Remove footer widget area white space */
.footer-widget-area,
.ast-footer-widget-area {
    background: #0f172a !important;
    padding: 0 !important;
}

/* Ensure no white space between content and footer */
.site-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Logo max height in header */
.custom-logo,
.ast-logo-container img,
.site-logo img,
header .custom-logo-link img {
    max-height: 48px !important;
    width: auto !important;
}

/* Header height consistency */
.main-header-bar {
    padding: 12px 0 !important;
}


/* ============================================================
   FIX: Remove entry-header gap (page title container)
   ============================================================ */

/* Hide the entry-header container that creates white gap */
.entry-header,
header.entry-header,
.ast-article-single .entry-header,
.ast-no-thumbnail.ast-no-title .entry-header,
.ast-header-without-markup,
.page .entry-header,
.page header.entry-header {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Also target the specific Astra class combination found */
header.entry-header.ast-no-thumbnail.ast-no-title {
    display: none !important;
}


/* ============================================================
   TARGETED FIX: entry-header with ast-header-without-markup
   This is an empty Astra container that creates a white gap
   ============================================================ */
header.entry-header.ast-header-without-markup,
header.entry-header.ast-no-title.ast-no-thumbnail,
.entry-header.ast-header-without-markup,
.entry-header.ast-no-title,
.page .entry-header.ast-header-without-markup,
.page .entry-header.ast-no-title {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
    visibility: hidden !important;
    position: absolute !important;
    clip: rect(0,0,0,0) !important;
}

/* Also remove the margin-bottom from .page .entry-header */
.page .entry-header {
    margin-bottom: 0 !important;
    padding: 0 !important;
}
