@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
    --primary: #1e3a8a;
    --secondary: #f59e0b;
    --dark: #111827;
    --light: #f8fafc;
    --border: #e5e7eb;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--dark);
    background: var(--light);
    line-height: 1.7;
}

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */
.container {
    max-width: 1100px;
    margin-inline: auto;
    padding-inline: 16px;
}

.center {
    text-align: center;
}

.page-content {
    padding-block: 24px 48px;
}

/* =========================================================
   HEADER / NAVBAR
   ========================================================= */
header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.navbar a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.navbar a:hover {
    color: var(--primary);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    background: linear-gradient(
        rgba(30, 58, 138, 0.85),
        rgba(30, 58, 138, 0.85)
    );
    color: #ffffff;
    text-align: center;
    padding: 5px 5px;
}

.hero h1 {
    font-size: 2rem;
    margin: 0 0 8px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* =========================================================
   MAIN - SECTIONS
   ========================================================= */
.section {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 15px 5px;
}

.section h1,
.section h2 {
    color: var(--primary);
    margin-bottom: 12px;
}

.section h1 {
    font-size: 2rem;
}

.section h2 {
    font-size: 1.8rem;
}

.section p {
    max-width: 1100px;
    text-align: left;
}

.section-header {
    max-width: 1100px;
    margin-bottom: 24px;
}

.section-header h1 {
    line-height: 1.2;
}

.section-intro {
    font-size: 1.05rem;
    color: #475569;
}

.justify-alignment {
	text-align: justify;
}
/* ==============================
   SECTION BASE
================================ */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    /*padding: 3.5rem 1.5rem;*/
}

.section-header {
    max-width: 1200px;
    margin-bottom: 3rem;
}

.section-header h1 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    /**color: var(--text-muted);*/
    font-size: 1.05rem;
}


/* =========================================================
   CARD SYSTEM (Unified)
   ========================================================= */
.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.card h2,
.card h3 {
    margin-top: 0;
    color: var(--primary);
}

.card p {
    margin-bottom: 12px;
}

.card a {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

/* Card Variants */
.highlight-card {
    border-left: 5px solid var(--secondary);
    background: linear-gradient(90deg, #fff7ed, #ffffff);
}

.warning {
    border-left: 5px solid #ef4444;
    background: #fff5f5;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

/* =========================================================
   PROFILE (Contact Page)
   ========================================================= */
.profile {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}

.profile img {
    width: 100%;
    border-radius: 12px;
}

/* =========================================================
   STUDY PLAN — LAYOUTS
   ========================================================= */
.two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.schedule-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.schedule-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 1.25rem;
}

/* Timeline */
.timeline {
    list-style: none;
    padding-left: 0;
}

.timeline li {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.95rem;
}

.timeline li:last-child {
    border-bottom: none;
}

.timeline span {
    min-width: 110px;
    font-weight: 600;
    color: #0f172a;
}

/* =========================================================
   LIST STYLES
   ========================================================= */
.check-list,
.cross-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.check-list li,
.cross-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
}

.check-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
}

.cross-list li::before {
    content: "✖";
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: 700;
}

/* =========================================================
   STUDY RULES
   ========================================================= */
.study-rules {
    margin-top: 16px;
    padding: 14px;
    border-radius: 10px;
    background: #0f172a;
    color: #e5e7eb;
}

.study-rules h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.study-rules ul {
    margin: 0;
    padding-left: 18px;
}

.study-rules li {
    margin-bottom: 6px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: #0f172a;
    color: #cbd5f5;
    text-align: center;
    padding: 20px;
}

.site-footer a {
    color: #cbd5f5;
    text-decoration: none;
    margin: 0 8px;
}

.site-footer a:hover {
    color: #f59e0b;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .navbar nav {
        width: 100%;
        justify-content: space-between;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section {
        padding: 24px 14px;
    }

    .section h1 {
        font-size: 1.6rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .profile {
        grid-template-columns: 1fr;
    }

    .two-column,
    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .timeline span {
        min-width: 90px;
        font-size: 0.85rem;
    }

    .card {
        padding: 18px;
    }

    footer a,
    .site-footer a {
        display: inline-block;
        margin: 6px 10px;
    }
    
    .card {
        padding: 1rem;
    }

/*
    .styled-table {
        font-size: 0.9rem;
    }


    .styled-table thead {
        display: none;
    }

    .styled-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 0.75rem;
        background-color: #ffffff;
    }

    .styled-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: none;
    }

    .styled-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
    }*/
}

/* ==============================
   CSS RESET & VARIABLES
================================ */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --text-main: #111827;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --border-light: #e5e7eb;
    --radius: 14px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
    --max-width: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* ==============================
   HEADER / NAVBAR
================================ */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links a {
    margin-left: 1.25rem;
    text-decoration: none;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}


/* ==============================
   RESOURCE GRID
================================ */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
    /**margin-bottom: 3.5rem;*/
}

.resource-grid--wide {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ==============================
   RESOURCE CARD
================================ */
.resource-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.resource-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    color: var(--primary-dark);
}

/* Links inside cards */
.resource-card a {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--primary);
    position: relative;
}

.resource-card a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.2s ease;
}

.resource-card a:hover::after {
    width: 100%;
}

/* =========================================================
   TABLE STYLING
   ========================================================= */
.table-wrapper {
    overflow-x: auto;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.syllabus-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.syllabus-table th,
.syllabus-table td {
    padding: 0.9rem;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
    text-align: center;
    vertical-align: middle;
}

/* Left-align ONLY the 2nd column (Chapter) 
.syllabus-table th:nth-child(2),
.syllabus-table td:nth-child(2),
.syllabus-table td:nth-child(3)  {
    text-align: left;
}
*/

.syllabus-table .alignment-left  {
    text-align: left;
}

.syllabus-table .alignment-center {
    text-align: center;
}

.syllabus-table .width-alignment {
    width: 10%;
}

/* Hover effect */
.syllabus-table tbody tr:hover {
    background-color: #FFFFDD;
}

/* Bold the TOTAL row */
.syllabus-table .table-total td {
    font-weight: 700;
}

/* Optional: subtle emphasis for TOTAL row */
.syllabus-table .table-total {
    background-color: #f1f5f9;
}

.syllabus-table thead th {
    background-color: #f1f5f9;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
}

/**
.syllabus-table th:last-child,
.syllabus-table td:last-child {
    text-align: center;
    white-space: nowrap;
}*/

.unit-row td {
    background-color: #eef2ff;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
}

.syllabus-table ul {
    margin: 0.5rem 0 0 1rem;
    padding: 0;
}

.syllabus-table li {
    margin-bottom: 0.4rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius);
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #162d6a;
    text-decoration: none;
}

/* ===============================
   CARD CONTAINER
   =============================== */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow-x: auto;
}

/* ===============================
   ACCESSIBLE TABLE
   =============================== 
.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.5;
}
*/
   
/* Table Header 
.styled-table thead th {
    background-color: #f8fafc;
    color: #1f2937;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

/* Table Body Cells  
.styled-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    vertical-align: middle;
}

/* Zebra striping  
.styled-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Hover effect  
.styled-table tbody tr:hover {
    background-color: #FFFFAF;
}

/* First column (Sl. No.)  
.styled-table tbody td:first-child {
    width: 48px;
    text-align: center;
    font-weight: 500;
    color: #111827;
}
*/
/* ===============================
   SCREEN READER ONLY
   =============================== 
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
*/

/* =========================================================
   DATA TABLE
   ========================================================= */

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

/* Header */
.data-table thead {
    background: #2563eb;
    color: #ffffff;
}

.data-table th {
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #1e40af;
}

/* Body cells */
.data-table td {
    padding: 10px 14px;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

/* Zebra rows */
.data-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

/* Hover effect */
.data-table tbody tr:hover {
    background: #FFFFDD;
    transition: 0.2s ease;
}

/* Images inside table */
.data-table img {
    height: 28px;
    cursor: pointer;
    transition: transform 0.2s;
}

.data-table img:hover {
    transform: scale(1.1);
}

/* Links */
.data-table a {
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
}

.data-table a:hover {
    text-decoration: underline;
}

/* =========================================================
   OPTIONAL: STICKY HEADER
   ========================================================= */

.data-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

/* =========================================================
   MOBILE RESPONSIVE
   ========================================================= */

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* Small screens */
@media (max-width: 768px) {

    .data-table th,
    .data-table td {
        padding: 8px;
        font-size: 13px;
    }

    .data-table img {
        height: 24px;
    }
}
