<?php declare(strict_types=1);
/**
 * College2U — Top Nursing Colleges in Bangalore
 * public_html/nursing/top-nursing-colleges.php · v5.0.0 · May 2026
 *
 * SEO intent: "top nursing colleges in Bangalore 2026"
 * Schema: ItemList + FAQPage + BreadcrumbList
 */

require_once dirname(__DIR__) . '/includes/bootstrap.php';

$current_year = (int) date('Y');

// College data — ranked by reputation, NAAC, INC/KSNC status, RGUHS affiliation
$colleges = [
    ['name' => 'Vydehi Institute of Nursing Sciences',        'slug' => 'vydehi-institute-nursing-sciences',      'type' => 'Private', 'est' => 2002, 'naac' => 'A+',  'aff' => 'RGUHS', 'approved_by' => 'INC / KSNC', 'fee' => '₹1.1 lakh/yr', 'seats' => 100],
    ['name' => 'Dayananda Sagar College of Nursing',          'slug' => 'dayananda-sagar-college-nursing',        'type' => 'Private', 'est' => 1991, 'naac' => 'A+',  'aff' => 'RGUHS', 'approved_by' => 'INC / KSNC', 'fee' => '₹95,000/yr',   'seats' => 100],
    ['name' => 'RV College of Nursing',                       'slug' => 'rv-college-of-nursing',                  'type' => 'Private', 'est' => 2003, 'naac' => 'A',   'aff' => 'RGUHS', 'approved_by' => 'INC / KSNC', 'fee' => '₹90,000/yr',   'seats' => 60],
    ['name' => 'Oxford College of Nursing',                   'slug' => 'oxford-college-of-nursing',              'type' => 'Private', 'est' => 1998, 'naac' => 'A',   'aff' => 'RGUHS', 'approved_by' => 'INC / KSNC', 'fee' => '₹85,000/yr',   'seats' => 60],
    ['name' => 'Krupanidhi College of Nursing',               'slug' => 'krupanidhi-college-nursing',             'type' => 'Private', 'est' => 1996, 'naac' => 'A',   'aff' => 'RGUHS', 'approved_by' => 'INC / KSNC', 'fee' => '₹1.0 lakh/yr', 'seats' => 60],
    ['name' => 'East Point College of Nursing',               'slug' => 'east-point-college-nursing',             'type' => 'Private', 'est' => 1998, 'naac' => 'A',   'aff' => 'RGUHS', 'approved_by' => 'INC / KSNC', 'fee' => '₹80,000/yr',   'seats' => 60],
    ['name' => 'RajaRajeswari College of Nursing',            'slug' => 'rajarajeswari-college-nursing',          'type' => 'Private', 'est' => 2004, 'naac' => 'B++', 'aff' => 'RGUHS', 'approved_by' => 'INC / KSNC', 'fee' => '₹85,000/yr',   'seats' => 100],
    ['name' => 'Kempegowda Institute of Nursing Sciences',    'slug' => 'kempegowda-institute-nursing-sciences',  'type' => 'Aided',   'est' => 2006, 'naac' => 'B++', 'aff' => 'RGUHS', 'approved_by' => 'INC / KSNC', 'fee' => '₹60,000/yr',   'seats' => 60],
    ['name' => 'MVJ College of Nursing',                      'slug' => 'mvj-college-of-nursing',                 'type' => 'Private', 'est' => 2004, 'naac' => 'B+',  'aff' => 'RGUHS', 'approved_by' => 'INC / KSNC', 'fee' => '₹90,000/yr',   'seats' => 60],
    ['name' => 'T John College of Nursing',                   'slug' => 't-john-college-of-nursing',              'type' => 'Private', 'est' => 1992, 'naac' => 'B+',  'aff' => 'RGUHS', 'approved_by' => 'INC / KSNC', 'fee' => '₹75,000/yr',   'seats' => 60],
];

$faqs = [
    ['q' => 'Which is the best nursing college in Bangalore ' . $current_year . '?',
     'a' => 'Vydehi Institute of Nursing Sciences and Dayananda Sagar College of Nursing are the top-ranked nursing colleges in Bangalore for ' . $current_year . ', both holding NAAC A+ accreditation and full INC and KSNC approval. Both are affiliated with Rajiv Gandhi University of Health Sciences (RGUHS) and attached to large multi-specialty teaching hospitals, which is mandatory for clinical training.'],
    ['q' => 'Are all nursing colleges in Bangalore approved by INC?',
     'a' => 'All B.Sc Nursing colleges in Bangalore must be approved by the Indian Nursing Council (INC) and the Karnataka State Nursing Council (KSNC) to offer recognized degrees. Before applying, verify INC approval on the official INC website. The colleges listed here are INC- and KSNC-approved as of ' . $current_year . '.'],
    ['q' => 'What is RGUHS affiliation and why does it matter for nursing?',
     'a' => 'RGUHS (Rajiv Gandhi University of Health Sciences) is Karnataka\'s apex health sciences university and affiliates all nursing, medical, pharmacy, and allied health colleges in the state. An RGUHS-affiliated B.Sc Nursing degree is recognized by the Indian Nursing Council, enabling graduates to register as nurses and work across India and apply for international licensing (NCLEX, OET, etc.).'],
    ['q' => 'What is the annual fee for B.Sc Nursing in Bangalore?',
     'a' => 'Annual fees for B.Sc Nursing in Bangalore range from ₹60,000 for government-aided institutions like Kempegowda Institute of Nursing Sciences to ₹1.1 lakh at private colleges like Vydehi. The Karnataka government regulates fee structures for all KCET-allotted seats; management-quota seats may cost up to ₹2.5 lakh per year.'],
    ['q' => 'Can I get B.Sc Nursing admission without KCET?',
     'a' => 'Yes, B.Sc Nursing admission without KCET is possible through the management-quota route. Colleges directly admit students who meet the minimum eligibility: 10+2 with Physics, Chemistry, and Biology (PCB) with at least 45% aggregate and English, age 17+. KCET is required only for government-allotted seats at participating colleges. Contact College2U for management-quota availability.'],
];

// ── SEO ──────────────────────────────────────────────────────────────────────
$page_title       = 'Top Nursing Colleges Bangalore ' . $current_year . ' — Fees, NAAC &amp; INC Status | College2U';
$meta_description = 'Ranked list of top nursing colleges in Bangalore ' . $current_year . ': RGUHS-affiliated, INC/KSNC-approved, with annual fees, NAAC grades, and seat count. Free shortlist from College2U.';
$canonical_path   = 'nursing/top-nursing-colleges';
$page_canonical   = c2u_canonical($canonical_path); // FIX-C1: wire orphaned canonical_path into authoritative self-referencing canonical
$body_class       = 'c2u-page c2u-page--college-list c2u-page--nursing-list';
$og_image         = c2u_asset('images/og/top-nursing-colleges-og.webp');

$breadcrumbs = [
    ['name' => 'Nursing', 'url' => c2u_url('nursing')],
    ['name' => 'Top Nursing Colleges ' . $current_year, 'url' => c2u_url('nursing/top-nursing-colleges')],
];

// ItemList schema
$item_list_schema = [
    '@context'        => 'https://schema.org',
    '@type'           => 'ItemList',
    'name'            => 'Top Nursing Colleges in Bangalore ' . $current_year,
    'numberOfItems'   => count($colleges),
    'itemListElement' => array_map(fn($c, $i) => [
        '@type'    => 'ListItem',
        'position' => $i + 1,
        'name'     => $c['name'],
        'url'      => c2u_url('college/' . $c['slug']),
    ], $colleges, array_keys($colleges)),
];

$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),
];

$breadcrumb_schema = c2u_schema_breadcrumb($breadcrumbs);

// ── Extra CSS ─────────────────────────────────────────────────────────────────
$extra_head = '<style nonce="' . c2u_e(C2U_CSP_NONCE) . '">' . <<<HTML
:root{
  --acc:#14b8a6;--acc-dk:#0f766e;--acc-lt:#f0fdfa;--acc-mid:#99f6e4;
  --hero-from:#031a18;--hero-to:#063d37;
}
.hero-nursing{background:linear-gradient(135deg,var(--hero-from),var(--hero-to));color:#fff;padding:56px 0 48px;text-align:center}
.hero-nursing h1{font-size:clamp(1.65rem,4vw,2.6rem);font-weight:800;line-height:1.2;margin:0 0 14px}
.hero-nursing p{font-size:1.05rem;opacity:.88;max-width:640px;margin:0 auto 28px}
.hero-badge{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:6px 16px;font-size:.82rem;margin:0 4px 8px}
.hero-badge svg{width:15px;height:15px;fill:var(--acc-mid)}
.filter-bar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 28px;padding:20px 0 0}
.filter-btn{padding:7px 18px;border-radius:999px;border:1.5px solid #d1d5db;background:#fff;font-size:.85rem;cursor:pointer;transition:all .18s}
.filter-btn.active,.filter-btn:hover{background:var(--acc);border-color:var(--acc);color:#fff}
.college-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:12px;box-shadow:0 2px 12px rgba(0,0,0,.07)}
table.college-tbl{width:100%;border-collapse:collapse;font-size:.88rem;table-layout:fixed}
table.college-tbl th{background:var(--acc);color:#fff;padding:12px 14px;text-align:left;white-space:nowrap}
table.college-tbl th:nth-child(1){width:36%}
table.college-tbl th:nth-child(2),th:nth-child(3){width:10%}
table.college-tbl th:nth-child(4),th:nth-child(5),th:nth-child(6){width:12%}
table.college-tbl th:nth-child(7){width:8%}
table.college-tbl td{padding:11px 14px;border-bottom:1px solid #e5e7eb;vertical-align:top}
table.college-tbl tr:last-child td{border-bottom:none}
table.college-tbl tr:hover td{background:var(--acc-lt)}
table.college-tbl .rank-badge{display:inline-block;width:26px;height:26px;border-radius:50%;background:var(--acc);color:#fff;font-weight:700;font-size:.78rem;text-align:center;line-height:26px}
.naac-chip{display:inline-block;padding:2px 10px;border-radius:999px;font-size:.78rem;font-weight:600;background:var(--acc-lt);color:var(--acc-dk)}
.type-chip{display:inline-block;padding:2px 10px;border-radius:999px;font-size:.78rem;background:#f3f4f6;color:#374151}
.inc-badge{display:inline-flex;align-items:center;gap:4px;font-size:.78rem;color:var(--acc-dk);font-weight:600}
.inc-badge::before{content:"✓";font-weight:800}
.cta-card{background:linear-gradient(135deg,var(--acc),var(--acc-dk));border-radius:16px;padding:40px 32px;color:#fff;text-align:center;margin:48px 0}
.cta-card h2{font-size:1.5rem;margin:0 0 10px}
.cta-card p{opacity:.9;margin:0 0 24px}
.btn-cta-white{display:inline-block;background:#fff;color:var(--acc-dk);font-weight:700;padding:13px 32px;border-radius:8px;text-decoration:none;transition:transform .15s}
.btn-cta-white:hover{transform:translateY(-2px)}
.faq-item{border:1px solid #e5e7eb;border-radius:10px;margin-bottom:10px;overflow:hidden}
.faq-q{width:100%;background:#fff;border:none;text-align:left;padding:16px 20px;font-size:.95rem;font-weight:600;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px}
.faq-q .icon{flex-shrink:0;width:20px;height:20px;border-radius:50%;background:var(--acc-lt);color:var(--acc-dk);display:grid;place-items:center;font-size:.9rem;transition:transform .2s}
.faq-q[aria-expanded="true"] .icon{transform:rotate(45deg);background:var(--acc);color:#fff}
.faq-a{display:none;padding:0 20px 16px;font-size:.92rem;line-height:1.65;color:#374151}
.faq-a.open{display:block}
.sidebar-card{background:#fff;border-radius:12px;box-shadow:0 2px 12px rgba(0,0,0,.07);padding:22px;margin-bottom:20px}
.sidebar-card h3{font-size:.95rem;font-weight:700;margin:0 0 14px;color:var(--acc-dk)}
.sidebar-link{display:block;padding:8px 0;font-size:.88rem;color:#2563eb;text-decoration:none;border-bottom:1px solid #f3f4f6}
.sidebar-link:last-child{border-bottom:none}
.sidebar-link:hover{color:var(--acc-dk)}
.fee-note{font-size:.78rem;color:#6b7280;margin-top:8px}
@media(max-width:768px){
  table.college-tbl th:nth-child(4),table.college-tbl td:nth-child(4),
  table.college-tbl th:nth-child(6),table.college-tbl td:nth-child(6){display:none}
  .two-col{display:block}
}
.two-col{display:grid;grid-template-columns:1fr 300px;gap:28px;align-items:start}
</style>
HTML;

// ── Schemas ───────────────────────────────────────────────────────────────────
$page_schemas = [
    json_encode($breadcrumb_schema, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE),
    json_encode($item_list_schema,  JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE),
    json_encode($faq_schema,        JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE),
];

// ── Page JS ────────────────────────────────────────────────────────────────────


require_once C2U_INCLUDES . '/header.php';
?>

<section class="hero-nursing">
  <div class="container">
    <nav aria-label="Breadcrumb" class="breadcrumb-nav c2u-style-30ddac60">
      <a href="<?= c2u_url() ?>">Home</a>
      <span aria-hidden="true">›</span>
      <a href="<?= c2u_url('nursing') ?>">Nursing</a>
      <span aria-hidden="true">›</span>
      <span aria-current="page">Top Nursing Colleges <?= $current_year ?></span>
    </nav>
    <h1 data-aeo-speakable>Top Nursing Colleges in Bangalore <?= $current_year ?></h1>
    <p>Ranked by NAAC grade, INC recognition, teaching hospital quality, and placement record</p>
    <div>
      <span class="hero-badge"><svg viewBox="0 0 20 20"><path d="M10 2a8 8 0 100 16A8 8 0 0010 2zm1 11H9v-2h2v2zm0-4H9V7h2v2z"/></svg>10 <abbr title="Indian Nursing Council">INC</abbr>-Approved Colleges</span>
      <span class="hero-badge"><svg viewBox="0 0 20 20"><path d="M10 2a8 8 0 100 16A8 8 0 0010 2zm1 11H9v-2h2v2zm0-4H9V7h2v2z"/></svg>All <abbr title="Rajiv Gandhi University of Health Sciences">RGUHS</abbr> Affiliated</span>
      <span class="hero-badge"><svg viewBox="0 0 20 20"><path d="M10 2a8 8 0 100 16A8 8 0 0010 2zm1 11H9v-2h2v2zm0-4H9V7h2v2z"/></svg>Fees From ₹60K/yr</span>
    </div>
  </div>
</section>

<div class="container c2u-style-40f3e1e8">
  <div class="two-col">
    <main>

      <div class="filter-bar" role="group" aria-label="Filter by college type">
        <button class="filter-btn active" data-filter="all">All Colleges</button>
        <button class="filter-btn" data-filter="private">Private</button>
        <button class="filter-btn" data-filter="aided">Government Aided</button>
      </div>

      <div class="college-table-wrap" data-animate="stagger">
        <table class="college-tbl" aria-label="Top nursing colleges Bangalore <?= $current_year ?>">
          <thead>
            <tr>
              <th scope="col">#  College</th>
              <th scope="col">Est.</th>
              <th scope="col">Type</th>
              <th scope="col"><abbr title="National Assessment and Accreditation Council">NAAC</abbr></th>
              <th scope="col">Approved By</th>
              <th scope="col">Annual Fee</th>
              <th scope="col">Seats</th>
            </tr>
          </thead>
          <tbody>
            <?php foreach ($colleges as $i => $c): ?>
            <tr class="college-row" data-type="<?= strtolower($c['type']) ?>">
              <td>
                <span class="rank-badge"><?= $i + 1 ?></span>
                <a href="<?= c2u_url('college/' . $c['slug']) ?>" data-c2u-style="e7461aae2ad3a813">
                  <?= c2u_e($c['name']) ?>
                </a>
              </td>
              <td><?= $c['est'] ?></td>
              <td><span class="type-chip"><?= c2u_e($c['type']) ?></span></td>
              <td><span class="naac-chip"><?= c2u_e($c['naac']) ?></span></td>
              <td><span class="inc-badge"><?= c2u_e($c['approved_by']) ?></span></td>
              <td><?= c2u_e($c['fee']) ?></td>
              <td><?= $c['seats'] ?></td>
            </tr>
            <?php endforeach; ?>
          </tbody>
        </table>
      </div>
      <p class="fee-note">* Annual fees shown are for KCET-allotted government seats. Management-quota fees vary; contact College2U for current figures. Source: RGUHS / KEA fee fixation committee <?= $current_year ?>.</p>

      <div class="cta-card">
        <h2>Get Your Personalised Nursing College Shortlist</h2>
        <p>Tell us your KCET rank, preferred specialisation, and fee range — we match you to <abbr title="Indian Nursing Council">INC</abbr>-approved colleges with confirmed seats.</p>
        <a href="<?= c2u_url('nursing/bsc-nursing-admission#lead') ?>" class="btn-cta-white">Apply for Free Counselling →</a>
      </div>

      <!-- FAQ -->
      <section class="c2u-section" aria-labelledby="faq-heading">
        <h2 id="faq-heading" class="c2u-section-heading" data-aeo-speakable>Frequently Asked Questions — Nursing Colleges in Bangalore</h2>
        <div class="faq-list" role="list">
          <?php foreach ($faqs as $i => $faq): ?>
          <div class="faq-item" role="listitem">
            <button class="faq-q" aria-expanded="false" aria-controls="faq-a-<?= $i ?>">
              <?= c2u_e($faq['q']) ?>
              <span class="icon" aria-hidden="true">+</span>
            </button>
            <div class="faq-a" id="faq-a-<?= $i ?>" data-aeo-speakable>
              <?= c2u_e($faq['a']) ?>
            </div>
          </div>
          <?php endforeach; ?>
        </div>
      </section>

    </main>

    <!-- Sidebar -->
    <aside>
      <div class="sidebar-card">
        <h3>Nursing Guides</h3>
        <a href="<?= c2u_url('nursing') ?>" class="sidebar-link">← Nursing Stream Overview</a>
        <a href="<?= c2u_url('nursing/bsc-nursing-admission') ?>" class="sidebar-link">B.Sc Nursing Admission <?= $current_year ?></a>
        <a href="<?= c2u_url('nursing/top-nursing-colleges') ?>" class="sidebar-link" aria-current="page">Top Nursing Colleges</a>
      </div>
      <div class="sidebar-card">
        <h3>Quick Facts</h3>
        <p class="c2u-style-c651753e">
          <strong>Regulator:</strong> <abbr title="Indian Nursing Council">INC</abbr> + <abbr title="Karnataka State Nursing Council">KSNC</abbr><br>
          <strong>University:</strong> <abbr title="Rajiv Gandhi University of Health Sciences">RGUHS</abbr>, Bangalore<br>
          <strong>Admission:</strong> KCET / Management Quota<br>
          <strong>Duration:</strong> 4 years + 6-month internship<br>
          <strong>Eligibility:</strong> PCB 45% in 10+2, age 17+
        </p>
      </div>
      <div class="sidebar-card">
        <h3>Other Streams</h3>
        <a href="<?= c2u_url('medical/top-mbbs-colleges') ?>" class="sidebar-link">Top MBBS Colleges</a>
        <a href="<?= c2u_url('pharmacy/top-pharmacy-colleges') ?>" class="sidebar-link">Top Pharmacy Colleges</a>
        <a href="<?= c2u_url('engineering/top-engineering-colleges') ?>" class="sidebar-link">Top Engineering Colleges</a>
      </div>
    </aside>
  </div>
</div>

<?php require_once C2U_INCLUDES . '/footer.php'; ?>
