/*
Theme Name: Ankaj Infotech Educational Trust
Theme URI: https://example.com/ankaj-infotech-educational-trust
Author: Ankaj Infotech Educational Trust
Author URI: https://example.com
Description: Official Custom WordPress Theme for ANKAJ INFOTECH EDUCATIONAL TRUST & ANKAJ INFOTECH EDUCATIONAL PVT. LTD. (CIN NO.-U85220BR2024PTC068153). Features a dedicated top banner logo area with a full-width navigation menu bar below, built-in Custom Post Types for Courses, Student Certificates (with live online Roll No. / Certificate verification), Batch Timings, and Online Admission / Inquiry management inside WP Admin.
Version: 2.3.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ankaj-infotech
Tags: education, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #eff6ff;
    --secondary: #f97316;
    --secondary-hover: #ea580c;
    --accent: #0ea5e9;
    --brand-green: #16a34a;
    --success: #16a34a;
    --danger: #dc2626;
    --dark: #0f172a;
    --slate: #334155;
    --muted: #64748b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 35px -10px rgba(30, 64, 175, 0.15);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--slate);
    background-color: var(--light);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.topbar {
    background: var(--dark);
    color: #cbd5e1;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar a {
    color: #e2e8f0;
}

.topbar a:hover {
    color: var(--secondary);
}

.iso-badge {
    background: rgba(249, 115, 22, 0.18);
    color: #fdba74;
    border: 1px solid rgba(249, 115, 22, 0.4);
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
}

/* ==========================================================================
   TWO-TIER HEADER:
   1. Upper Tier (.header-logo-bar) -> Logo Banner Centered on Top
   2. Lower Tier (.header-menu-bar) -> Full-Width Navigation Menu Below
   ========================================================================== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 999;
}

/* 1. Upper Logo Banner Bar */
.header-logo-bar {
    background: var(--white);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.header-logo-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Custom Logo (Wide Banner Support) */
.custom-logo-link {
    display: inline-block;
    max-width: 100%;
}

.custom-logo-link img.custom-logo {
    max-height: 115px;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

/* Fallback Banner when no image logo is uploaded */
.fallback-banner-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 4px 10px;
}

.brand-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 15px rgba(30, 64, 175, 0.25);
    flex-shrink: 0;
}

.brand-text-wrap {
    text-align: center;
}

.site-title {
    font-size: clamp(20px, 2.8vw, 28px);
    font-weight: 800;
    color: #16a34a;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    line-height: 1.2;
}

.site-title a {
    color: inherit;
}

.site-subtitle-pvt {
    font-size: clamp(16px, 2.2vw, 22px);
    font-weight: 800;
    color: #16a34a;
    text-transform: uppercase;
    line-height: 1.25;
}

.site-description {
    font-size: 12.5px;
    color: var(--dark);
    font-weight: 600;
    margin-top: 3px;
}

/* 2. Lower Navigation Bar (Sticky) */
.header-menu-bar {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.header-menu-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 56px;
    gap: 16px;
}

.main-navigation {
    flex: 1;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--white);
    font-weight: 600;
    font-size: 14.5px;
    padding: 10px 16px;
    border-radius: 6px;
    display: inline-block;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    background: rgba(255, 255, 255, 0.15);
    color: #fde047;
}

/* Dropdown Sub-Menu Support */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    z-index: 1000;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.main-navigation ul li:hover > ul {
    display: flex;
}

.main-navigation ul ul a {
    color: var(--dark);
    padding: 10px 18px;
    border-radius: 0;
    font-size: 14px;
}

.main-navigation ul ul a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-nav-cta {
    background: var(--secondary);
    color: var(--white) !important;
    padding: 9px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(249, 115, 22, 0.35);
}

.btn-nav-cta:hover {
    background: var(--secondary-hover);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    gap: 6px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.btn-light {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-light:hover {
    background: var(--primary);
    color: var(--white);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1e40af 100%);
    color: var(--white);
    padding: 72px 0 84px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #93c5fd;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-trust-name {
    color: #fb923c;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-title {
    color: var(--white);
    font-size: clamp(30px, 4.2vw, 46px);
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    color: #cbd5e1;
    font-size: 17px;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.14);
    padding-top: 24px;
}

.hero-stat h4 {
    color: var(--white);
    font-size: 26px;
    font-weight: 800;
}

.hero-stat p {
    color: #94a3b8;
    font-size: 13.5px;
}

/* Quick Inquiry Card in Hero */
.hero-card {
    background: var(--white);
    color: var(--slate);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.hero-card h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.hero-card p.sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-family: inherit;
    color: var(--dark);
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

/* Section Utilities */
.section {
    padding: 80px 0;
}

.section-white {
    background: var(--white);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(26px, 3.2vw, 36px);
    margin-bottom: 12px;
}

.section-desc {
    color: var(--muted);
    font-size: 16px;
}

/* Filter Tabs */
.course-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--slate);
    padding: 9px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Course Cards Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.course-card-top {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: var(--white);
    padding: 22px 24px;
    position: relative;
}

.course-code-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.course-card-top h3 {
    color: var(--white);
    font-size: 20px;
}

.course-card-top h3 a {
    color: inherit;
}

.course-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-meta-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: var(--light);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
}

.course-meta-item span {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
}

.course-meta-item strong {
    color: var(--dark);
    font-weight: 700;
}

.course-excerpt {
    font-size: 14.5px;
    color: var(--slate);
    margin-bottom: 18px;
    flex: 1;
}

.course-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.course-fee {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.course-fee small {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

/* Certificate Verification Box */
.verify-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

.verify-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.verify-form-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.verify-form-row input {
    flex: 1;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid #475569;
    background: rgba(255,255,255,0.95);
    font-size: 15px;
    color: var(--dark);
}

.verify-result-box {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 24px;
    min-height: 180px;
}

.cert-verified-card {
    background: var(--white);
    color: var(--dark);
    border-radius: var(--radius-sm);
    padding: 20px;
    border-left: 5px solid var(--success);
}

.cert-verified-card h4 {
    color: var(--success);
    margin-bottom: 10px;
    font-size: 17px;
}

.cert-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cert-table td {
    padding: 6px 4px;
    border-bottom: 1px solid var(--border);
}

.cert-table td:first-child {
    color: var(--muted);
    font-weight: 600;
    width: 40%;
}

/* Features / Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

/* Batch Schedule Table */
.batch-table-wrap {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.batch-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.batch-table th {
    background: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    font-size: 14.5px;
    font-weight: 600;
}

.batch-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14.5px;
}

.batch-table tr:hover td {
    background: #f8fafc;
}

.status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    background: #dcfce7;
    color: #15803d;
}

/* FAQ Accordion */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 22px;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 22px 18px;
    color: var(--slate);
    display: none;
    font-size: 15px;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #cbd5e1;
}

.footer-col a:hover {
    color: var(--secondary);
}

.footer-bottom {
    padding: 22px 0;
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
}

/* Floating WhatsApp CTA */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25d366;
    color: var(--white);
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14.5px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-float:hover {
    background: #1ebe5d;
    color: var(--white);
    transform: translateY(-2px);
}

/* Page Banner & Single Layouts */
.page-banner {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    color: var(--white);
    padding: 56px 0;
    text-align: center;
}

.page-banner h1 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 8px;
}

.content-sidebar-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 36px;
    padding: 60px 0;
}

.card-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-grid,
    .verify-grid,
    .content-sidebar-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .menu-toggle {
        display: inline-flex;
    }
    .header-menu-inner {
        position: relative;
    }
    .main-navigation {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        padding: 16px 20px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
    .main-navigation.toggled {
        display: block;
    }
    .main-navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .main-navigation a {
        display: block;
        padding: 10px 14px;
    }
    .main-navigation ul ul {
        position: static;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: none;
        padding-left: 16px;
    }
    .main-navigation ul ul a {
        color: var(--white);
    }
}

@media (max-width: 640px) {
    .hero-highlights {
        grid-template-columns: 1fr;
    }
    .verify-form-row {
        flex-direction: column;
    }
    .courses-grid {
        grid-template-columns: 1fr;
    }
    .verify-section {
        padding: 28px 20px;
    }
    .custom-logo-link img.custom-logo {
        max-height: 85px;
    }
}
