/* =====================================================
   Samarth Vidyapeeth – Shared Stylesheet
   Professional & Print-Ready
   ===================================================== */

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Base ── */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    background-color: #ffffff;
    color: #111111;
    line-height: 1.8;
    min-height: 100vh;
}

/* ── Navigation ── */
.site-nav {
    background-color: #ffffff;
    border-bottom: 2px solid #111111;
    padding: 16px 0;
}

.site-nav .nav-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-nav .nav-brand {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: #111111;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.site-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.site-nav .nav-links a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.875rem;
    color: #111111;
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.2s;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a[aria-current="page"] {
    border-bottom-color: #111111;
}

/* ── Page Header ── */
.page-header {
    border-bottom: 1px solid #cccccc;
    padding: 56px 24px 40px;
    max-width: 860px;
    margin: 0 auto;
}

.page-header .doc-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555555;
    margin-bottom: 12px;
}

.page-header h1 {
    font-family: 'Georgia', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    color: #111111;
    line-height: 1.2;
    margin-bottom: 24px;
}

.page-header .meta-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.page-header .meta-list li {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.875rem;
    color: #444444;
}

.page-header .meta-list li span {
    font-weight: bold;
    color: #111111;
}

/* ── Main Layout ── */
.page-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

/* ── Section ── */
.doc-section {
    margin-bottom: 52px;
    padding-bottom: 52px;
    border-bottom: 1px solid #e0e0e0;
}

.doc-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ── Headings ── */
.doc-section h2 {
    font-family: 'Georgia', serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: bold;
    color: #111111;
    margin-bottom: 18px;
    line-height: 1.3;
}

.doc-section h3 {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: #111111;
    margin-top: 28px;
    margin-bottom: 10px;
}

/* ── Paragraphs ── */
.doc-section p {
    font-size: 1rem;
    color: #111111;
    margin-bottom: 16px;
    text-align: justify;
}

.doc-section p:last-child {
    margin-bottom: 0;
}

/* ── Bullet Lists ── */
.doc-section ul {
    margin: 16px 0;
    padding-left: 0;
    list-style: none;
}

.doc-section ul li {
    font-size: 1rem;
    color: #111111;
    padding: 10px 0 10px 24px;
    position: relative;
    border-top: 1px solid #eeeeee;
    line-height: 1.8;
}

.doc-section ul li:last-child {
    border-bottom: 1px solid #eeeeee;
}

.doc-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 6px;
    height: 6px;
    background-color: #111111;
    border-radius: 50%;
}

/* ── Ordered Lists ── */
.doc-section ol {
    margin: 16px 0;
    padding-left: 20px;
}

.doc-section ol li {
    font-size: 1rem;
    color: #111111;
    padding: 8px 0 8px 8px;
    line-height: 1.8;
    border-top: 1px solid #eeeeee;
}

.doc-section ol li:last-child {
    border-bottom: 1px solid #eeeeee;
}

/* ── Info Table (key–value pairs) ── */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 0.975rem;
}

.info-table th,
.info-table td {
    text-align: left;
    padding: 12px 16px;
    border: 1px solid #cccccc;
    line-height: 1.7;
    vertical-align: top;
}

.info-table th {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    background-color: #f4f4f4;
    color: #111111;
    width: 30%;
}

.info-table td {
    color: #111111;
}

/* ── Note Box ── */
.note-box {
    border: 1px solid #cccccc;
    border-left: 4px solid #111111;
    padding: 16px 20px;
    margin-top: 20px;
    font-size: 0.95rem;
    color: #111111;
    background-color: #f9f9f9;
}

/* ── Contact Block ── */
.contact-block {
    margin-top: 16px;
}

.contact-block dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0;
}

.contact-block dt {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 0.875rem;
    color: #111111;
    padding: 12px 16px;
    border: 1px solid #cccccc;
    border-bottom: none;
    background-color: #f4f4f4;
}

.contact-block dd {
    font-size: 0.975rem;
    color: #111111;
    padding: 12px 16px;
    border: 1px solid #cccccc;
    border-bottom: none;
    border-left: none;
}

.contact-block dt:last-of-type,
.contact-block dd:last-of-type {
    border-bottom: 1px solid #cccccc;
}

.contact-block a {
    color: #111111;
    text-decoration: underline;
}

/* ── Footer ── */
.site-footer {
    border-top: 2px solid #111111;
    padding: 28px 24px;
}

.site-footer .footer-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.site-footer .footer-org {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    font-weight: bold;
    color: #111111;
    margin-bottom: 4px;
}

.site-footer p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    color: #444444;
    line-height: 1.6;
}

.site-footer a {
    color: #111111;
    text-decoration: underline;
}

.site-footer a:hover {
    text-decoration: none;
}

/* ── Print ── */
@media print {
    .site-nav { display: none; }
    .site-footer { display: none; }
    body { font-size: 12pt; }
    .page-header, .page-body { padding: 0; }
    .doc-section { page-break-inside: avoid; }
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .site-nav .nav-links { gap: 16px; }
    .site-nav .nav-links a { font-size: 0.78rem; }

    .page-header .meta-list { flex-direction: column; gap: 8px; }

    .contact-block dl {
        grid-template-columns: 1fr;
    }

    .contact-block dt {
        border-bottom: none;
        padding-bottom: 4px;
    }

    .contact-block dd {
        border-left: 1px solid #cccccc;
        border-bottom: none;
        padding-top: 4px;
    }

    .contact-block dd:last-of-type {
        border-bottom: 1px solid #cccccc;
    }

    .info-table th { width: auto; }

    .info-table,
    .info-table tbody,
    .info-table tr,
    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
    }

    .info-table th {
        border-bottom: none;
    }
}
