/* =========================================
   1. PAGE BACKGROUND & LAYOUT (White Paper Look)
   ========================================= */
/* Pure page ka background Light Grey */
html {
    background-color: #f3f4f6; 
}

/* Body ab ek "Card" ya "Paper" jaisa dikhega */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff; /* Paper color White */
    max-width: 850px;          /* Content ki choudai fix */
    margin: 40px auto;         /* Screen ke beech mein */
    padding: 50px;             /* Andar ka space */
    border: 1px solid #e5e7eb;
    border-radius: 12px;       /* Gol kone */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Soft Shadow */
    color: #374151;
    line-height: 1.8;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   2. TYPOGRAPHY (Headings & Text)
   ========================================= */
h1, h2, h3 {
    color: #111827; /* Jet Black Headings */
    margin-bottom: 15px;
    font-weight: 700;
}

h1 { font-size: 28px; letter-spacing: -0.5px; }
h2 { font-size: 22px; margin-top: 30px; border-bottom: none; }
h3 { font-size: 18px; color: #4b5563; }

p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #4b5563; /* Soft Grey Text */
}

a {
    color: #2563eb; /* Modern Blue Link */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* =========================================
   3. CODE BLOCK (Black Theme - App Style)
   ========================================= */
pre {
    background: #000000; /* Jet Black */
    color: #ffffff;      /* White Text */
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
    border: 1px solid #333;
}

code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
}

/* =========================================
   4. DEFINITION BOX (Formerly Note)
   ========================================= */
note {
    display: block;
    background: #f9fafb; /* Very Light Grey */
    border-left: 4px solid #9ca3af; /* Grey Bar (Yellow nahi) */
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 4px;
    color: #1f2937;
}

note strong {
    color: #000;
    display: block;
    margin-bottom: 5px;
}

/* =========================================
   5. HEADER & NAV
   ========================================= */
header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
}

nav {
    text-align: center;
    margin-bottom: 20px;
}

nav a {
    display: inline-block;
    margin: 5px;
    padding: 8px 16px;
    background: #eff6ff; /* Light Blue Background */
    color: #2563eb;
    border-radius: 50px; /* Pill Shape */
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

nav a:hover {
    background: #2563eb;
    color: #fff;
    text-decoration: none;
}

/* =========================================
   6. SECTIONS & CARDS (Links)
   ========================================= */
section {
    margin-bottom: 40px;
}

section div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* Topic Links styling */
section div a {
    display: block;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

section div a:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #2563eb;
}

/* =========================================
   7. BUTTONS
   ========================================= */
button {
    margin: 10px 5px;
    padding: 10px 20px;
    background: #fbbf24; /* KodNest Yellow */
    color: #111;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    background: #f59e0b;
    transform: translateY(-1px);
}

/* =========================================
   8. LISTS & TABLES & HR (Elements you asked about)
   ========================================= */
ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 8px;
}

hr {
    border: 0;
    height: 1px;
    background: #e5e7eb;
    margin: 30px 0;
}

/* Table Design */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
}

th, td {
    border: 1px solid #e5e7eb;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #111;
}

tr:hover {
    background-color: #f9fafb;
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 14px;
    color: #9ca3af;
}

footer ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

footer ul li {
    display: inline;
    margin: 0;
}

footer a {
    background: none;
    padding: 0;
    color: #6b7280;
    font-size: 14px;
}

footer a:hover {
    color: #2563eb;
    background: none;
}

/* =========================================
   10. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 600px) {
    body {
        margin: 10px;
        padding: 20px; /* Kam padding mobile par */
    }
    
    h1 { font-size: 24px; }
    
    nav a, button {
        width: 100%; /* Buttons full width on mobile */
        display: block;
        margin: 10px 0;
        text-align: center;
    }

    footer ul {
        flex-direction: column;
        gap: 10px;
    }
}