/* --- 1. Global Setup & Viewport --- */
body {
    margin: 0;
    padding: 0;
    background-color: #f4faff !important;
    font-family: arial, "Times New Roman", serif;
}

.container {
    width: 85%;
    margin: auto;
}

/* --- 2. Typography --- */
h1 { color: #0294f9; font-size: 30px; margin-bottom: 15px; display: block; } 
h2 { color: green; font-size: 18px !important; font-weight: bold; line-height: 1.6; }
h3 { color: blue; font-size: 120%; font-weight: normal; }
h4 { color: #006400; }
h5 { color: red; }

p {
    font-weight: lighter;
    font-size: 110%; 
    line-height: 1.6;
}

/* --- 3. Logo & Special Fonts --- */
#punjabilogo { text-align: left; font: 125% GurbaniAkhar; color: blue; }
#englishlogo { text-align: left; font-size: 180%; color: darkblue; }
#punjab, #punjabauthor, #sidebarpunjab { color: black; font: 120% GurbaniAkhar; }
#english { font: 120% "Times New Roman", serif; color: darkblue; }

/* --- 4. Main Section Layout --- */
.section {
    background: #F4FAFF;
    width: 100%;
    margin-top: 20px;
    padding: 25px;
    border: solid #0072C6;
    box-sizing: border-box;
    display: block;
}

.section.intro {
    display: table !important;
    width: 100% !important;
}

.left {
    display: table-cell !important;
    vertical-align: top !important;
    padding-right: 30px;
    box-sizing: border-box;
}

.right {
    display: table-cell !important;
    vertical-align: top !important;
    width: 180px !important;
    min-width: 180px !important;
    text-align: right;
    box-sizing: border-box;
}

/* --- 5. Navigation & Links (UPDATED COLOR SCHEME) --- */
a:link, a:visited {
    color: blue;
    text-decoration: none;
    transition: 0.3s;
}

/* Specific rule to turn list-links GREEN */
ul.list li a, .list li a, .full li a {
    color: green !important; /* The 'Link' itself is green */
    text-decoration: none !important;
}

/* NEW RULE: Turn the letters/text inside the list-links BLUE */
ul.list li a span, .list li a span, .full li a span {
    color: blue !important;
}

a.sidelist {
    display: inline-block;
    padding: 2px 0;
    font-size: 110%;
    color: green !important;
}

/* --- 6. Alphabet Navigation --- */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #0072C6;
    justify-content: center;
}

.alphabet-nav a {
    min-width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    border: 1px solid #0294f9;
    color: #006400 !important;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
}

/* --- 7. Lists Setup (CLEANED) --- */
ul.list, .list, .full {
    width: 100% !important;
    display: block !important;
    margin: 20px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

ul.list li, .list li, .full li {
    display: block !important;
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 0 12px 0 !important;
    font-size: 18px;
    line-height: 34px;
}

/* --- 8. Mobile Responsive Adjustments --- */
@media only screen and (max-width: 768px) {
    .container { width: 92%; }
    .section.intro { display: block !important; }
    .left, .right { display: block !important; width: 100% !important; padding-right: 0 !important; }
    .right { text-align: center; margin-bottom: 20px !important; }
    h1 { font-size: 24px; }
}

/* --- 9. Poetry Custom Wrap Elements --- */
pre {
    white-space: pre-wrap;       
    word-wrap: break-word;       
    font-family: inherit;        
    font-size: 100%;
    line-height: 1.6;
}