<?php declare(strict_types=1);
/**
 * College2U — Law Admission Bangalore 2026
 * public_html/law/law-admission.php · v1.0.0 · May 2026
 *
 * SEO intent : "law admission Bangalore 2026", "LLB admission Karnataka"
 * Schema     : HowTo + FAQPage + EducationalOccupationalProgram + BreadcrumbList
 * Lead form  : CSRF protected, rate-limited, inserts via c2u_submit_lead()
 */

// ── 1. Bootstrap ─────────────────────────────────────────────────────────────
require_once dirname(__DIR__) . '/includes/bootstrap.php';

// ── 2. Lead form handler ──────────────────────────────────────────────────────
$form_success = false;
$form_error   = '';

if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['c2u_law_lead'])) {
    if (!c2u_rate_limit('law_lead_' . ($_SERVER['REMOTE_ADDR'] ?? 'x'), 3, 60)) {
        $form_error = 'Too many requests. Please try again in a minute.';
    } elseif (!c2u_csrf_valid()) {
        $form_error = 'Session expired. Please refresh the page and try again.';
    } else {
        $name    = trim($_POST['name']    ?? '');
        $phone   = trim($_POST['phone']   ?? '');
        $email   = trim($_POST['email']   ?? '');
        $program = trim($_POST['program'] ?? 'BA LLB');
        $clat    = trim($_POST['clat_score'] ?? '');

        if ($name === '' || $phone === '') {
            $form_error = 'Please enter your name and mobile number.';
        } elseif (!c2u_valid_phone($phone)) {
            $form_error = 'Please enter a valid 10-digit Indian mobile number.';
        } else {
            $lead_id = c2u_submit_lead([
                'name'        => $name,
                'email'       => $email,
                'contact'     => $phone,
                'course'      => $program,
                'location'    => 'Bangalore',
                'message'     => "Program: {$program} | CLAT/KLEE score: {$clat}",
                'source_page' => 'law/law-admission',
                'aria_heat'   => 40,
                'aria_intent' => 'HOT',
            ]);
            $form_success = ($lead_id > 0);
            if (!$form_success) {
                $form_error = 'Submission failed. Please call us at ' . C2U_PHONE . '.';
            }
        }
    }
}

// ── 3. Page data ──────────────────────────────────────────────────────────────
$current_year = (int) date('Y');

$eligibility_points = [
    [
        'title'  => '10+2 for Integrated LLB',
        'detail' => 'BA LLB and BBA LLB (5-year): Passed 10+2 in any stream with minimum 45% aggregate (40% for SC/ST). Age ≤ 22 years (27 for SC/ST/OBC) on 1 July ' . $current_year . '.',
        'icon'   => 'M12 20h9M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z',
    ],
    [
        'title'  => 'Graduation for 3-Year LLB',
        'detail' => "LLB (3-year): Graduation in any discipline with minimum 45% aggregate from a UGC-recognised university. No age cap after Bar Council of India's 2017 ruling was revised.",
        'icon'   => 'M12 14l9-5-9-5-9 5 9 5zM12 14l6.16-3.422a12.083 12.083 0 0 1 .665 6.479A11.952 11.952 0 0 0 12 20.055a11.952 11.952 0 0 0-6.824-2.998 12.078 12.078 0 0 1 .665-6.479L12 14z',
    ],
    [
        'title'  => 'CLAT / KLEE / LSAT',
        'detail' => 'CLAT score for NLU Bangalore and top private colleges. KLEE (Karnataka Law Entrance Exam) for Karnataka state university-affiliated colleges. LSAT India accepted by some private law schools.',
        'icon'   => 'M9 11l3 3L22 4M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 0 1 1h3',
    ],
    [
        'title'  => 'Bar Council of India (BCI)',
        'detail' => 'The college must be approved by the Bar Council of India for the degree to be valid for legal practice. NLU Bangalore and all listed colleges below are BCI-approved.',
        'icon'   => 'M3 6l3 1m0 0l-3 9a5.002 5.002 0 0 0 6.001 0M6 7l3 9M6 7l6-2m6 2l3-1m-3 1l-3 9a5.002 5.002 0 0 0 6.001 0M18 7l3 9m-3-9l-6-2m0-2v2m0 16V5m0 16H9m3 0h3',
    ],
];

$howto_steps = [
    [1, 'Appear in CLAT or KLEE',
     'Register and sit for CLAT ' . $current_year . ' (Common Law Admission Test — national, for NLUs and participating private colleges) or KLEE ' . $current_year . ' (Karnataka Law Entrance Exam — for state colleges). CLAT is held in December for the following academic year.',
     'https://consortiumofnlus.ac.in', 'CLAT official portal'],
    [2, 'Download rank / scorecard',
     'Collect your CLAT rank card or KLEE score. Also download your 10+2 or graduation marks card as applicable. Category certificate (SC/ST/OBC) must be ready if claiming reservation.',
     '', ''],
    [3, 'Shortlist colleges by rank and fee',
     'Use College2U\'s law college shortlist tool or contact our counsellors. NLU Bangalore (NLSIU) requires a top-150 CLAT rank. Top private colleges like Christ University and Symbiosis accept CLAT ranks up to 5,000.',
     c2u_url('law'), 'View law colleges in Bangalore'],
    [4, 'Apply directly to private colleges',
     'Most private law colleges in Bangalore (Christ, REVA, CMR, Jain) have their own application portals in addition to CLAT. Apply directly to maximise your chances. Deadlines are typically February–May.',
     '', ''],
    [5, 'Document verification and admission',
     'Carry originals for verification: 10+2 / degree marks cards, CLAT/KLEE rank card, Aadhaar, category certificate, transfer certificate, migration certificate, and 4 passport-sized photos.',
     c2u_url('contact'), 'Get document checklist from College2U'],
];

$fee_table = [
    ['quota' => 'NLSIU Bangalore (CLAT / State)',    'annual_fee' => '₹1.05 lakh',           'seats_pct' => '25% Karnataka state',   'process' => 'CLAT rank · NLSIU portal'],
    ['quota' => 'KLEE Government College',            'annual_fee' => '₹25,000 – ₹60,000',    'seats_pct' => 'Karnataka domicile',    'process' => 'KLEE score · KEA counselling'],
    ['quota' => 'Private CLAT College',               'annual_fee' => '₹1.5 lakh – ₹3 lakh',  'seats_pct' => 'All-India open',        'process' => 'CLAT rank · direct application'],
    ['quota' => 'Management Quota (Private)',          'annual_fee' => '₹2 lakh – ₹5 lakh',    'seats_pct' => '15% of intake',         'process' => 'Direct · college contact'],
    ['quota' => 'NRI / Foreign National Quota',       'annual_fee' => '$3,000 – $8,000/yr',    'seats_pct' => '15% NRI seats',         'process' => 'Direct application · NRI certificate'],
];

$colleges = [
    ['name' => 'NLSIU Bangalore',                       'slug' => 'nlsiu-bangalore',            'clat_rank' => 'Top 150 (All-India)',   'program' => 'BA LLB / LLM', 'approved' => 'BCI · NAAC A++'],
    ['name' => 'Christ University School of Law',       'slug' => 'christ-university-law',      'clat_rank' => 'Up to 3,000',          'program' => 'BA LLB / BBA LLB / LLB', 'approved' => 'BCI · NAAC A+'],
    ['name' => 'Symbiosis Law School Bangalore',        'slug' => 'symbiosis-law-bangalore',    'clat_rank' => 'Up to 5,000',          'program' => 'BA LLB / BBA LLB', 'approved' => 'BCI · SIU'],
    ['name' => 'REVA University School of Law',         'slug' => 'reva-university-law',        'clat_rank' => 'Management / LSAT',    'program' => 'BA LLB / LLB', 'approved' => 'BCI · UGC'],
    ['name' => 'CMR University School of Legal Studies','slug' => 'cmr-university-law',         'clat_rank' => 'Direct / KLEE',        'program' => 'BA LLB / BBA LLB', 'approved' => 'BCI · UGC'],
    ['name' => 'Jain University School of Law',         'slug' => 'jain-university-law',        'clat_rank' => 'Direct / CLAT',        'program' => 'BA LLB / LLB', 'approved' => 'BCI · NAAC A+'],
];

$faqs = [
    ['q' => 'What CLAT rank is needed for NLSIU Bangalore ' . $current_year . '?',
     'a' => 'NLSIU Bangalore (National Law School of India University) typically admits students with CLAT All-India ranks within the top 100–150 for general category through the all-India quota. The Karnataka state quota (25% seats) closes at a higher rank — around 400–600. For ' . $current_year . ', expect similar cut-offs depending on total registrations.'],
    ['q' => 'Can I do LLB in Bangalore without CLAT?',
     'a' => 'Yes. KLEE (Karnataka Law Entrance Exam) is the alternative for Karnataka-affiliated law colleges. Several private colleges including REVA University, CMR, and Jain University also conduct their own entrance tests or accept direct applications based on 10+2 or graduation marks. Management quota seats are also available without CLAT.'],
    ['q' => 'What is the fee for law colleges in Bangalore ' . $current_year . '?',
     'a' => 'Government college fees via KLEE are ₹25,000–₹60,000 per year in ' . $current_year . '. NLSIU Bangalore charges approximately ₹1.05 lakh per year. Private BCI-approved colleges range from ₹1.5–₹3 lakh per year. Management quota at top private colleges can be ₹2–₹5 lakh per year.'],
    ['q' => 'Which is better — 5-year integrated LLB or 3-year LLB?',
     'a' => 'The 5-year BA LLB or BBA LLB is ideal if you decide on law immediately after 10+2 — you save a year and get an integrated legal education. The 3-year LLB is better if you already hold a graduation degree and want to pivot to law. For top NLUs and elite firms, the 5-year programme from an NLU is preferred.'],
    ['q' => 'Is a law degree from Bangalore valid for practice across India?',
     'a' => 'Yes. Any LLB from a Bar Council of India (BCI)-approved college is valid for enrolment in any state bar council and for practice across India. After LLB, enroll with the Karnataka State Bar Council (KSBC) if practising in Karnataka, or with the relevant state bar council otherwise.'],
    ['q' => 'What is the scope after LLB in Bangalore?',
     'a' => 'LLB graduates from Bangalore colleges can practise in the Karnataka High Court, specialise in corporate law, join law firms on MG Road and Lavelle Road, pursue LLM (at NLSIU or abroad), or join judicial services via KJSE (Karnataka Judicial Service Exam). Average starting salary at top Bangalore law firms: ₹6–₹12 lakh per year in ' . $current_year . '.'],
];

// ── 4. SEO ────────────────────────────────────────────────────────────────────
$page_title       = 'Law Admission Bangalore ' . $current_year . ' — CLAT, KLEE, LLB Guide | College2U';
$meta_description = 'Complete guide to LLB and BA LLB admission in Bangalore ' . $current_year . ': CLAT vs KLEE, BCI-approved colleges, fees, and free counselling. NLSIU · Christ · Symbiosis.';
$canonical_path   = 'law/law-admission';
$page_canonical   = c2u_canonical($canonical_path); // FIX-C1: wire orphaned canonical_path into authoritative self-referencing canonical
$body_class       = 'c2u-page c2u-page--admission c2u-page--law-admission';
$og_image         = c2u_asset('images/og/law-admission-og.webp');

$breadcrumbs = [
    ['name' => 'Law',              'url' => c2u_url('law')],
    ['name' => 'LLB Admission ' . $current_year, 'url' => c2u_url('law/law-admission')],
];

// ── 5. Schemas ────────────────────────────────────────────────────────────────
$howto_schema = [
    '@context'    => 'https://schema.org',
    '@type'       => 'HowTo',
    'name'        => 'How to Get Law Admission in Bangalore ' . $current_year,
    'description' => 'Step-by-step guide to LLB and BA LLB admission in Bangalore ' . $current_year . ' through CLAT or KLEE.',
    'totalTime'   => 'P6M',
    'step'        => array_map(fn($s) => [
        '@type'    => 'HowToStep',
        'position' => $s[0],
        'name'     => $s[1],
        'text'     => $s[2],
    ], $howto_steps),
];

$faq_schema = [
    '@context'   => 'https://schema.org',
    '@type'      => 'FAQPage',
    'mainEntity' => array_map(fn($f) => [
        '@type'          => 'Question',
        'name'           => $f['q'],
        'acceptedAnswer' => ['@type' => 'Answer', 'text' => $f['a']],
    ], $faqs),
];

$program_schema = [
    '@context'             => 'https://schema.org',
    '@type'                => 'EducationalOccupationalProgram',
    'name'                 => 'LLB / BA LLB (Bachelor of Laws)',
    'description'          => '3-year LLB and 5-year integrated BA LLB / BBA LLB programmes at BCI-approved law colleges in Bangalore including NLSIU, Christ University, and Symbiosis.',
    'timeToComplete'       => 'P5Y',
    'programPrerequisites' => '10+2 (for 5-year) or graduation (for 3-year) · CLAT or KLEE score',
    'offers'               => [
        '@type'         => 'Offer',
        'priceCurrency' => 'INR',
        'price'         => '200000',
        'description'   => 'Approximate annual fee at top private law colleges in Bangalore ' . $current_year,
    ],
    'provider' => [
        '@type'   => 'CollegeOrUniversity',
        'name'    => 'BCI-Approved Law Colleges in Bangalore',
        'address' => [
            '@type'          => 'PostalAddress',
            'addressLocality'=> 'Bangalore',
            'addressRegion'  => 'Karnataka',
            'addressCountry' => 'IN',
        ],
    ],
];

$extra_schemas = [
    c2u_schema_breadcrumb($breadcrumbs),
    $howto_schema,
    $faq_schema,
    $program_schema,
];

// ── 6. CSS & page JS ──────────────────────────────────────────────────────────
$hero_img   = c2u_asset('images/banners/law-admission-hero.webp');
$extra_head = '<link rel="preload" as="image" href="' . c2u_e($hero_img) . '" fetchpriority="high">
<style nonce="' . c2u_e(C2U_CSP_NONCE) . '">
:root{--law:#7c3aed;--law-d:#5b21b6;--law-l:#f5f3ff;--law-m:#ede9fe;--surface:#f8fafc;--border:#e2e8f0;--text:#0f172a;--muted:#64748b;--radius:1rem;--shadow:0 4px 24px rgba(0,0,0,.09);}
.adm-hero{background:linear-gradient(145deg,#12052a 0%,#1e0a48 100%);min-height:min(55vh,480px);display:flex;align-items:center;overflow:hidden;position:relative;isolation:isolate;}
.adm-hero__bg{position:absolute;inset:0;background-image:url("' . c2u_e($hero_img) . '");background-size:cover;background-position:center 30%;opacity:.15;z-index:-1;}
.adm-hero__inner{width:100%;max-width:1200px;margin:0 auto;padding:3.5rem 1.5rem;display:grid;grid-template-columns:1fr min(400px,40%);gap:2.5rem;align-items:center;}
@media(max-width:840px){.adm-hero__inner{grid-template-columns:1fr;}}
.adm-eyebrow{display:inline-flex;align-items:center;gap:.5rem;background:rgba(124,58,237,.25);border:1px solid rgba(124,58,237,.4);color:#c4b5fd;border-radius:2rem;padding:.375rem .875rem;font-size:.8rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;margin-bottom:1rem;}
.adm-h1{font-size:clamp(1.75rem,4vw,2.75rem);font-weight:800;color:#fff;letter-spacing:-.025em;margin:0 0 .5rem;line-height:1.15;}
.adm-h1 em{color:#c4b5fd;font-style:normal;}
.adm-sub-tags{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0 1.5rem;}
.adm-tag{background:rgba(255,255,255,.12);color:rgba(255,255,255,.8);border-radius:2rem;padding:.3rem .75rem;font-size:.8rem;font-weight:500;}
.adm-ctas{display:flex;flex-wrap:wrap;gap:.75rem;}
.btn-primary{background:var(--law);color:#fff;font-weight:700;font-size:.9375rem;padding:.75rem 1.75rem;border-radius:.5rem;border:none;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:.5rem;transition:background .2s,transform .15s;}
.btn-primary:hover{background:var(--law-d);transform:translateY(-1px);}
.btn-secondary{background:rgba(255,255,255,.1);color:#fff;font-weight:600;font-size:.9375rem;padding:.75rem 1.75rem;border-radius:.5rem;border:1px solid rgba(255,255,255,.25);text-decoration:none;transition:background .2s;}
.btn-secondary:hover{background:rgba(255,255,255,.18);}
.adm-form-card{background:#fff;border-radius:var(--radius);padding:1.75rem;box-shadow:0 8px 40px rgba(0,0,0,.2);}
.adm-form-card h2{font-size:1.0625rem;font-weight:700;color:var(--text);margin:0 0 .25rem;}
.adm-form-card p{font-size:.8125rem;color:var(--muted);margin:0 0 1.25rem;}
.fg{margin-bottom:.875rem;}
.fg label{display:block;font-size:.8125rem;font-weight:600;color:var(--text);margin-bottom:.35rem;}
.fg input,.fg select{width:100%;padding:.625rem .875rem;border:1.5px solid var(--border);border-radius:.5rem;font-size:.9rem;color:var(--text);background:#fff;transition:border-color .2s,box-shadow .2s;box-sizing:border-box;}
.fg input:focus,.fg select:focus{outline:none;border-color:var(--law);box-shadow:0 0 0 3px rgba(124,58,237,.15);}
.fg select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'12\' height=\'8\' viewBox=\'0 0 12 8\'%3E%3Cpath d=\'M1 1l5 5 5-5\' stroke=\'%2364748b\' stroke-width=\'1.5\' fill=\'none\' stroke-linecap=\'round\'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .875rem center;}
.btn-form-submit{width:100%;background:var(--law);color:#fff;font-weight:700;font-size:.9375rem;padding:.75rem;border-radius:.5rem;border:none;cursor:pointer;transition:background .2s,transform .15s;margin-top:.25rem;}
.btn-form-submit:hover{background:var(--law-d);transform:translateY(-1px);}
.form-success{background:#f0fdf4;border:1px solid #a7f3d0;border-radius:.5rem;padding:1rem;color:#065f46;font-weight:600;text-align:center;}
.form-error{background:var(--law-l);border:1px solid #c4b5fd;border-radius:.5rem;padding:.625rem 1rem;color:var(--law-d);font-size:.875rem;margin-bottom:.75rem;}
.c2u-section{padding:4rem 1.5rem;}
.c2u-section--alt{background:var(--surface);}
.c2u-section-inner{max-width:1200px;margin:0 auto;}
.c2u-section-heading{font-size:clamp(1.375rem,3vw,2rem);font-weight:800;color:var(--text);letter-spacing:-.025em;margin:0 0 .5rem;}
.c2u-section-heading em{color:var(--law-d);font-style:normal;}
.c2u-section-sub{font-size:.9375rem;color:var(--muted);margin:0 0 2.5rem;line-height:1.6;max-width:600px;}
.highlight-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1.25rem;}
.highlight-box{background:#fff;border:1.5px solid var(--border);border-radius:var(--radius);padding:1.5rem;position:relative;overflow:hidden;}
.highlight-box::before{content:\'\';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--law),var(--law-d));}
.hb-icon{width:44px;height:44px;background:var(--law-l);border-radius:.625rem;display:flex;align-items:center;justify-content:center;color:var(--law-d);margin-bottom:1rem;}
.hb-title{font-size:.9375rem;font-weight:700;color:var(--text);margin:0 0 .375rem;}
.hb-detail{font-size:.875rem;color:var(--muted);line-height:1.55;margin:0;}
.howto-list{display:flex;flex-direction:column;gap:0;max-width:840px;}
.timeline-item{display:grid;grid-template-columns:48px 1fr;gap:1.25rem;padding:1.5rem 0;border-bottom:1px solid var(--border);}
.timeline-item:last-child{border-bottom:none;}
.tl-num{width:40px;height:40px;border-radius:50%;background:var(--law);color:#fff;font-weight:800;font-size:.9375rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.tl-title{font-size:1rem;font-weight:700;color:var(--text);margin:0 0 .5rem;}
.tl-desc{font-size:.9rem;color:var(--muted);line-height:1.6;margin:0 0 .75rem;}
.tl-link{font-size:.8125rem;font-weight:600;color:var(--law-d);text-decoration:none;}
.tl-link:hover{text-decoration:underline;}
.fee-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin-top:1.5rem;}
.fee-table{width:100%;border-collapse:collapse;font-size:.9rem;table-layout:fixed;}
.fee-table th{text-align:left;padding:.75rem 1rem;font-size:.8rem;font-weight:700;color:var(--muted);letter-spacing:.04em;text-transform:uppercase;border-bottom:2px solid var(--border);background:var(--surface);}
.fee-table th:first-child,.fee-table td:first-child{width:38%;}
.fee-table td{padding:.875rem 1rem;border-bottom:1px solid var(--border);color:var(--text);}
.fee-table tr:last-child td{border-bottom:none;}
.fee-highlight{font-weight:700;color:var(--law-d);}
.college-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1.125rem;}
.college-card{background:#fff;border:1.5px solid var(--border);border-radius:var(--radius);padding:1.25rem;display:flex;align-items:flex-start;gap:.875rem;transition:border-color .2s,box-shadow .2s;}
.college-card:hover{border-color:var(--law);box-shadow:var(--shadow);}
.college-meta{flex:1;min-width:0;}
.college-name{font-size:.9375rem;font-weight:700;color:var(--text);margin:0 0 .375rem;line-height:1.3;}
.college-cutoff{font-size:.8125rem;color:var(--muted);margin:0 0 .25rem;}
.college-cutoff strong{color:var(--law-d);}
.naac-tag{display:inline-block;background:var(--law-l);color:var(--law-d);border-radius:.375rem;padding:.2rem .5rem;font-size:.75rem;font-weight:600;}
.faq-list{max-width:800px;}
.faq-item{border-bottom:1px solid var(--border);}
.faq-q{width:100%;display:flex;justify-content:space-between;align-items:center;background:none;border:none;cursor:pointer;padding:1.125rem 0;font-size:.9375rem;font-weight:600;color:var(--text);text-align:left;gap:1rem;}
.faq-q__icon{flex-shrink:0;transition:transform .25s;color:var(--muted);}
.faq-q[aria-expanded="true"] .faq-q__icon{transform:rotate(180deg);}
.faq-a{padding:0 0 1.125rem;font-size:.9375rem;line-height:1.65;color:var(--muted);}
.faq-a[hidden]{display:none;}
.cta-banner{background:linear-gradient(135deg,var(--law-l),var(--law-m));border:1.5px solid #c4b5fd;border-radius:var(--radius);padding:2.5rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1.5rem;margin-top:3rem;}
.cta-banner h2{font-size:1.25rem;font-weight:800;color:var(--law-d);margin:0;}
.cta-banner p{font-size:.9375rem;color:var(--law-d);margin:.25rem 0 0;}
.btn-cta{background:var(--law);color:#fff;font-weight:700;font-size:.9375rem;padding:.75rem 1.75rem;border-radius:.5rem;text-decoration:none;white-space:nowrap;transition:background .2s;flex-shrink:0;}
.btn-cta:hover{background:var(--law-d);}
.sidebar-card{background:#fff;border:1.5px solid var(--border);border-radius:var(--radius);padding:1.5rem;position:sticky;top:80px;}
.sidebar-card h3{font-size:.9375rem;font-weight:700;color:var(--text);margin:0 0 1rem;}
.sidebar-links{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem;}
.sidebar-links a{font-size:.875rem;color:var(--law-d);text-decoration:none;display:flex;align-items:center;gap:.5rem;font-weight:500;}
.sidebar-links a:hover{text-decoration:underline;}
.content-with-sidebar{display:grid;grid-template-columns:1fr 300px;gap:2.5rem;align-items:start;}
@media(max-width:900px){.content-with-sidebar{grid-template-columns:1fr;}}
@media(max-width:600px){.highlight-row{grid-template-columns:1fr;}.college-grid{grid-template-columns:1fr;}}
</style>';



// ── 7. Header ─────────────────────────────────────────────────────────────────
require_once C2U_INCLUDES . '/header.php';
?>

<!-- ════════════════════════════════════════════════════════════════════════════
     LAW ADMISSION HERO  H1: LLB / BA LLB Admission in Bangalore 2026
════════════════════════════════════════════════════════════════════════════════ -->
<section class="adm-hero" aria-labelledby="adm-h1">
  <div class="adm-hero__bg" role="presentation" aria-hidden="true"></div>
  <div class="adm-hero__inner">

    <!-- Left -->
    <div class="adm-hero__left">
      <nav aria-label="Breadcrumb" class="c2u-style-09cbfd89">
        <ol class="c2u-style-1d1b306a">
          <li><a href="<?= c2u_e(c2u_url('')) ?>" data-c2u-style="c70435ba907be102">Home</a></li>
          <li aria-hidden="true" class="c2u-style-07e748e1">/</li>
          <li><a href="<?= c2u_e(c2u_url('law')) ?>" data-c2u-style="c70435ba907be102">Law</a></li>
          <li aria-hidden="true" class="c2u-style-07e748e1">/</li>
          <li aria-current="page" class="c2u-style-9784abb5">LLB Admission <?= $current_year ?></li>
        </ol>
      </nav>

      <p class="adm-eyebrow">
        <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M3 6l3 1m0 0l-3 9a5.002 5.002 0 0 0 6.001 0M6 7l3 9M6 7l6-2m6 2l3-1m-3 1l-3 9a5.002 5.002 0 0 0 6.001 0M18 7l3 9m-3-9l-6-2m0-2v2m0 16V5m0 16H9m3 0h3"/></svg>
        CLAT · KLEE · LSAT India · <?= $current_year ?>
      </p>

      <h1 class="adm-h1" id="adm-h1">
        Law Admission in <em>Bangalore</em> <?= $current_year ?>
      </h1>

      <div class="adm-sub-tags" role="list" aria-label="Law admission pathways">
        <?php foreach (['5-Year BA LLB', 'BBA LLB', '3-Year LLB', 'CLAT Counselling', 'KLEE Karnataka', 'Management Quota'] as $tag): ?>
        <span class="adm-tag" role="listitem"><?= $tag ?></span>
        <?php endforeach; ?>
      </div>

      <div class="adm-ctas">
        <a href="#howto" class="btn-primary">
          <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true" focusable="false"><polyline points="9 18 15 12 9 6"/></svg>
          Admission process →
        </a>
        <a href="<?= c2u_e(c2u_url('counselor-booking')) ?>" class="btn-secondary">
          Book free counselling
        </a>
      </div>
    </div>

    <!-- Right: lead form -->
    <aside class="adm-hero__right" aria-label="Law admission enquiry form">
      <div class="adm-form-card">
        <h2>Get a free law college shortlist</h2>
        <p>Based on your CLAT rank or KLEE score. Counsellors call back within 2 hours.</p>

        <?php if ($form_success): ?>
          <div class="form-success" role="alert">
            <strong>We'll call you soon!</strong><br>
            Your law admission counsellor will reach you within 2 hours.
          </div>
        <?php else: ?>
          <?php if ($form_error): ?>
            <p class="form-error" role="alert"><?= c2u_e($form_error) ?></p>
          <?php endif; ?>
          <form method="POST"
                action="<?= c2u_e(c2u_url('law/law-admission')) ?>#adm-form"
                id="adm-form" novalidate>
            <?= c2u_csrf_field() ?>
            <input type="hidden" name="c2u_law_lead" value="1">

            <div class="fg">
              <label for="law-name">Full name <span aria-hidden="true">*</span></label>
              <input type="text" id="law-name" name="name" placeholder="e.g. Ravi Shankar"
                     value="<?= c2u_e($_POST['name'] ?? '') ?>" autocomplete="name" required aria-required="true">
            </div>
            <div class="fg">
              <label for="law-phone">Mobile number <span aria-hidden="true">*</span></label>
              <input type="tel" id="law-phone" name="phone" placeholder="10-digit number"
                     value="<?= c2u_e($_POST['phone'] ?? '') ?>" autocomplete="tel" required aria-required="true" maxlength="13">
            </div>
            <div class="fg">
              <label for="law-program">Programme interested in</label>
              <select id="law-program" name="program">
                <?php foreach (['BA LLB (5 years)', 'BBA LLB (5 years)', 'LLB (3 years)', 'Management Quota'] as $pg): ?>
                <option value="<?= c2u_e($pg) ?>"<?= (($_POST['program'] ?? '') === $pg) ? ' selected' : '' ?>><?= c2u_e($pg) ?></option>
                <?php endforeach; ?>
              </select>
            </div>
            <div class="fg">
              <label for="law-clat">CLAT rank / KLEE score (approximate)</label>
              <input type="text" id="law-clat" name="clat_score" placeholder="e.g. 2500 or 180/200"
                     value="<?= c2u_e($_POST['clat_score'] ?? '') ?>" inputmode="numeric">
            </div>
            <button type="submit" class="btn-form-submit">Get free law college shortlist →</button>
          </form>
        <?php endif; ?>
        <p class="c2u-style-8cd04981">Free service. No referral fees. No spam.</p>
      </div>
    </aside>
  </div>
</section>

<!-- ════════════════════════════════════════════════════════════════════════════
     ELIGIBILITY  H2: Law admission eligibility in Bangalore 2026
════════════════════════════════════════════════════════════════════════════════ -->
<section class="c2u-section" id="eligibility" aria-labelledby="elig-h2">
  <div class="c2u-section-inner">
    <header class="c2u-style-ecf535ca">
      <h2 class="c2u-section-heading" id="elig-h2">
        Law admission eligibility in Bangalore <?= $current_year ?>
      </h2>
      <p class="c2u-section-sub">
        Eligibility differs between the integrated 5-year LLB and the post-graduation 3-year LLB. Check all four criteria before applying.
      </p>
    </header>
    <div class="highlight-row" data-animate="stagger" role="list">
      <?php foreach ($eligibility_points as $ep): ?>
      <div class="highlight-box" role="listitem">
        <div class="hb-icon" aria-hidden="true">
          <svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
            <path d="<?= c2u_e($ep['icon']) ?>"/>
          </svg>
        </div>
        <h3 class="hb-title"><?= c2u_e($ep['title']) ?></h3>
        <p class="hb-detail"><?= c2u_e($ep['detail']) ?></p>
      </div>
      <?php endforeach; ?>
    </div>
  </div>
</section>

<!-- ════════════════════════════════════════════════════════════════════════════
     HOW-TO  H2: How does CLAT and KLEE counselling work in 2026?
════════════════════════════════════════════════════════════════════════════════ -->
<section class="c2u-section c2u-section--alt" id="howto" aria-labelledby="howto-h2">
  <div class="c2u-section-inner content-with-sidebar">
    <div>
      <header class="c2u-style-c713cb5f">
        <h2 class="c2u-section-heading" id="howto-h2" data-aeo-speakable>
          How does <abbr title="Common Law Admission Test">CLAT</abbr> and <abbr title="Karnataka Law Entrance Exam">KLEE</abbr> counselling work in <?= $current_year ?>?
        </h2>
        <p class="c2u-section-sub">
          Five steps from entrance exam to your first day in the law classroom.
        </p>
      </header>

      <ol class="howto-list" aria-label="Law admission steps <?= $current_year ?>">
        <?php foreach ($howto_steps as [$num, $title, $desc, $href, $linkLabel]): ?>
        <li class="timeline-item">
          <div class="tl-num" aria-label="Step <?= $num ?>"><?= $num ?></div>
          <div>
            <h3 class="tl-title"><?= c2u_e($title) ?></h3>
            <p class="tl-desc"><?= c2u_e($desc) ?></p>
            <?php if ($href): ?>
            <a href="<?= c2u_e($href) ?>" class="tl-link"
               <?= str_starts_with($href, 'http') ? 'rel="noopener noreferrer" target="_blank"' : '' ?>>
              <?= c2u_e($linkLabel) ?> →
            </a>
            <?php endif; ?>
          </div>
        </li>
        <?php endforeach; ?>
      </ol>
    </div>

    <aside aria-label="Quick links — law admission">
      <div class="sidebar-card">
        <h3>Quick links</h3>
        <ul class="sidebar-links">
          <li><a href="<?= c2u_e(c2u_url('law')) ?>">← Back to Law hub</a></li>
          <li><a href="https://consortiumofnlus.ac.in" rel="noopener noreferrer" target="_blank">CLAT official portal</a></li>
          <li><a href="<?= c2u_e(c2u_url('engineering/engineering-admission')) ?>">Engineering admission guide</a></li>
          <li><a href="<?= c2u_e(c2u_url('medical/mbbs-admission')) ?>">MBBS admission guide</a></li>
          <li><a href="<?= c2u_e(c2u_url('counselor-booking')) ?>">Book free counselling</a></li>
        </ul>
      </div>
    </aside>
  </div>
</section>

<!-- ════════════════════════════════════════════════════════════════════════════
     FEE TABLE  H2: Law college fee comparison Bangalore 2026
════════════════════════════════════════════════════════════════════════════════ -->
<section class="c2u-section" id="fees" aria-labelledby="fees-h2">
  <div class="c2u-section-inner c2u-style-6bb8b4f0">
    <header class="c2u-style-2da5d661">
      <h2 class="c2u-section-heading" id="fees-h2">
        Law college fee comparison — Bangalore <?= $current_year ?>
      </h2>
      <p class="c2u-section-sub">
        Fees vary widely by quota, college type, and programme. All <abbr title="Bar Council of India">BCI</abbr>-approved colleges listed below.
      </p>
    </header>
    <div class="fee-table-wrap">
      <table class="fee-table" aria-label="Law college fee comparison Bangalore <?= $current_year ?>">
        <thead>
          <tr>
            <th scope="col">Quota / College type</th>
            <th scope="col">Annual fee (<?= $current_year ?>)</th>
            <th scope="col">Eligibility</th>
            <th scope="col">Process</th>
          </tr>
        </thead>
        <tbody>
          <?php foreach ($fee_table as $row): ?>
          <tr>
            <td class="c2u-style-a5d2baa1"><?= c2u_e($row['quota']) ?></td>
            <td class="fee-highlight"><?= c2u_e($row['annual_fee']) ?></td>
            <td><?= c2u_e($row['seats_pct']) ?></td>
            <td class="c2u-style-77a7a2ed"><?= c2u_e($row['process']) ?></td>
          </tr>
          <?php endforeach; ?>
        </tbody>
      </table>
    </div>
    <p class="c2u-style-fae21887">
      * Fees are sourced from BCI disclosures, college websites, and Karnataka state fee fixation orders for <?= $current_year ?>. Verify directly with the institution before payment.
    </p>
  </div>
</section>

<!-- ════════════════════════════════════════════════════════════════════════════
     COLLEGES  H2: Top BCI-approved law colleges in Bangalore 2026
════════════════════════════════════════════════════════════════════════════════ -->
<section class="c2u-section c2u-section--alt" id="colleges" aria-labelledby="coll-h2">
  <div class="c2u-section-inner">
    <header class="c2u-style-c713cb5f">
      <h2 class="c2u-section-heading" id="coll-h2">
        Top <abbr title="Bar Council of India">BCI</abbr>-approved law colleges in Bangalore <?= $current_year ?>
      </h2>
      <p class="c2u-section-sub">
        Ranked by CLAT acceptance, NAAC grade, and placement record. All colleges listed here are BCI-approved.
      </p>
    </header>
    <div class="college-grid" role="list">
      <?php foreach ($colleges as $col): 
        $row = [
            'slug' => $col['slug'],
            'name' => $col['name'],
            'stream_name' => 'Law',
            'location_name' => 'Bangalore',
            'affiliation_name' => 'BCI Approved',
            'logo_path' => $col['slug'] . '.webp'
        ];
        $c2u_card_attrs = 'role="listitem"';
        
        require C2U_INCLUDES . '/components/college-schema.php';
        require C2U_INCLUDES . '/components/college-card.php';
      endforeach; ?>
    </div>
    <p class="c2u-style-5ea5f2d6">
      CLAT ranks shown are approximate closing ranks from <?= $current_year - 1 ?> allotment for general category. Source: Consortium of NLUs and respective college admission data.
    </p>
  </div>
</section>

<!-- ════════════════════════════════════════════════════════════════════════════
     FAQ  H2: Frequently Asked Questions — Law Admission Bangalore 2026
════════════════════════════════════════════════════════════════════════════════ -->
<section class="c2u-section" id="faq" aria-labelledby="faq-h2">
  <div class="c2u-section-inner">
    <header class="c2u-style-ecf535ca">
      <h2 class="c2u-section-heading" id="faq-h2">
        Frequently Asked Questions — Law Admission Bangalore <?= $current_year ?>
      </h2>
      <p class="c2u-section-sub">Answers sourced from BCI, Consortium of NLUs, and Karnataka Education Department publications.</p>
    </header>

    <div class="faq-list" role="list">
      <?php foreach ($faqs as $i => $faq): ?>
      <div class="faq-item" role="listitem">
        <button class="faq-q" id="lawfaq-btn-<?= $i ?>" type="button"
                aria-expanded="false" aria-controls="lawfaq-a-<?= $i ?>">
          <span><?= c2u_e($faq['q']) ?></span>
          <span class="faq-q__icon" aria-hidden="true">
            <svg width="18" height="18" viewBox="0 0 18 18" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><path d="M4 6l5 5 5-5"/></svg>
          </span>
        </button>
        <div class="faq-a" id="lawfaq-a-<?= $i ?>"
             role="region" aria-labelledby="lawfaq-btn-<?= $i ?>"
             data-aeo-speakable hidden>
          <p><?= c2u_e($faq['a']) ?></p>
        </div>
      </div>
      <?php endforeach; ?>
    </div>

    <div class="cta-banner" role="complementary" aria-label="Get personalised law admission guidance">
      <div>
        <h2>Get a free law college shortlist for <?= $current_year ?></h2>
        <p>Based on your CLAT rank or KLEE score — from College2U law admission counsellors.</p>
      </div>
      <a href="<?= c2u_e(c2u_url('counselor-booking')) ?>" class="btn-cta">Book free counselling →</a>
    </div>

    <nav aria-label="Related law guides" class="c2u-style-3a103cb0">
      <h3 class="c2u-style-65368e92">You might also need</h3>
      <ul class="c2u-style-ab14e189">
        <?php
        $related = [
            ['Top Law Colleges Bangalore',               c2u_url('law')],
            ['Engineering Admission ' . $current_year,  c2u_url('engineering/engineering-admission')],
            ['MBA Admission Bangalore ' . $current_year, c2u_url('management/mba-admission')],
            ['MBBS Admission Karnataka ' . $current_year, c2u_url('medical/mbbs-admission')],
            ['NRI Quota Admission Guide',                c2u_url('nri-quota')],
            ['College Shortlisting Tool',                c2u_url('shortlist')],
        ];
        foreach ($related as [$label, $href]): ?>
        <li>
          <a href="<?= c2u_e($href) ?>"
             data-c2u-style="befd1b710a4583fc">
            <?= c2u_e($label) ?>
          </a>
        </li>
        <?php endforeach; ?>
      </ul>
    </nav>
  </div>
</section>

<?php require_once C2U_INCLUDES . '/footer.php'; ?>
