/* ==========================================================================
   inner-pages.css  -  ONE shared stylesheet for every page except index.php
   Design = the Nursing Board Exam page (page-title banner, content-grid,
   section-box, features-list, quote sidebar), plus the extra pieces that the
   older per-page files had (menu links, card grids, popup modal).

   Loaded AFTER base.css + subpages.css + responsive.css (see includes/head.php),
   so the shared banner / card polish from subpages.css still applies on top.
   ========================================================================== */

/* ---- Base layout (from exam-subjects.css - nursing page) ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8fafc;
    color: #333333;
    line-height: 1.6;
}
header {
    background-color: #0B192C;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    text-decoration: none;
}
.logo span { color: #FFD700; }
.back-home {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}
.page-title { text-align: center; margin-bottom: 40px; }
.page-title h1 {
    font-size: 36px;
    font-weight: 900;
    color: #0B192C;
    margin-bottom: 10px;
}
.page-title p {
    font-size: 15px;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}
.section-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 25px;
}
.section-box h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0B192C;
    margin-bottom: 15px;
    border-bottom: 2px solid #FFD700;
    display: inline-block;
    padding-bottom: 4px;
}
.section-box p {
    font-size: 14px;
    color: #475569;
    margin-bottom: 15px;
}
.features-list { list-style: none; margin-top: 15px; }
.features-list li {
    font-size: 14px;
    color: #333333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.features-list li::before {
    content: "✔";
    color: #059669;
    font-weight: bold;
}
.quote-sidebar {
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: sticky;
    top: 30px;
}
.quote-sidebar h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0B192C;
    margin-bottom: 20px;
    text-align: center;
}
.form-group { margin-bottom: 15px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}
.submit-btn {
    background-color: #0B192C;
    color: #FFD700;
    border: none;
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}
.submit-btn:hover { background-color: #1E3E62; }
#form-status {
    display: none;
    background-color: #d1fae5;
    color: #065f46;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    margin-top: 15px;
}

/* ---- Header menu links (used by headers that show page links) ---- */
.menu {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.menu a {
    color: #ffffff;
    text-decoration: none;
    padding: 6px 12px;
    background: #1E3E62;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: 0.3s;
}
.menu a.active, .menu a:hover {
    background: #FFD700;
    color: #0B192C;
    font-weight: 700;
}

/* ---- Card grids (exam services / all subjects / features pages) ---- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.info-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: all 0.3s ease;
}
.info-card:hover {
    transform: translateY(-5px);
    border-color: #0B192C;
    box-shadow: 0 10px 25px rgba(11,25,44,0.1);
}
.info-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0B192C;
    margin-bottom: 6px;
}
.info-card p { font-size: 12px; color: #64748b; }
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.subject-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: all 0.3s ease;
}
.subject-card:hover {
    transform: translateY(-5px);
    border-color: #0B192C;
    box-shadow: 0 10px 25px rgba(11,25,44,0.1);
}
.subject-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0B192C;
}
.subject-card p { font-size: 12px; color: #64748b; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.feature-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: #0B192C;
    box-shadow: 0 10px 25px rgba(11,25,44,0.1);
}
.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0B192C;
    margin-bottom: 6px;
}
.feature-card p { font-size: 12px; color: #64748b; }

/* ---- Popup modal ---- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease;
}
.modal-content h2 {
    color: #0B192C;
    margin-bottom: 10px;
    font-size: 24px;
}
.modal-content p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
}
.close-btn {
    background: #0B192C;
    color: #FFD700;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ---- Fallback for pages still using the OLD markup (.page-header / .content-container) ----
   Safe to delete once chemistry / class-services pages are converted to the nursing layout. */
.page-header {
    background: linear-gradient(135deg, #0B192C 0%, #1E3E62 100%);
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}
.page-header h1 {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 15px;
}
.page-header h1 span { color: #FFD700; }
.page-header p {
    font-size: 16px;
    color: #cbd5e0;
    max-width: 700px;
    margin: 0 auto;
}
.content-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
}
.content-container h2 {
    font-size: 26px;
    color: #0B192C;
    margin-bottom: 20px;
    font-weight: 700;
}
.content-container p {
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.8;
}
.cta-box {
    background: #f8fafc;
    border: 2px dashed #CBD5E0;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 40px;
}
.cta-btn {
    display: inline-block;
    background-color: #FFD700;
    color: #0B192C;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ---- Extras used by the converted class pages ---- */
.page-title h1 span { color: #FFD700; }
.section-box h2:not(:first-child) { margin-top: 20px; }
.content-grid .cta-box { margin-top: 0; }

/* ---- Quote card (homepage-style form in the sidebar) ---- */
.quote-card { position: sticky; top: 30px; width: 100%; max-width: 480px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .content-grid { grid-template-columns: 1fr; }
    header { flex-direction: column; gap: 15px; text-align: center; }
    .quote-card { position: static; margin: 0 auto; }
}