/*------------------------------------*\
#VARIABLES
\*------------------------------------*/
:root {
--primary-color: #7e57c2; /* Soft Lavender/Purple */
--primary-color-darker: #5e35b1; /* Darker Lavender */
--secondary-color: #42a5f5; /* Sky Blue */
--secondary-color-darker: #1e88e5; /* Deeper Blue */
--accent-color-pink: #f48fb1; /* Soft Pink */
--accent-color-pink-darker: #ec407a; /* Brighter Pink */
--accent-color-light-blue: #81d4fa; /* Lighter Sky Blue */
--accent-color-light-purple: #b39ddb; /* Lighter Lavender */
--anime-bg-start: #2c3e50;
--anime-bg-end: #3d348b;
--anime-text-light: #e1e5f2;
--anime-text-light: #ffffff; --anime-text-dark: #2c3e50; --anime-accent-pink: #ff69b4; --anime-accent-purple: #9b59b6;
--anime-text-dark: #f8f9fa;
--anime-link-hover-bg: #e91e63;
--anime-link-active-bg: #00bcd4;
--anime-search-bg: rgba(0, 0, 0, 0.2);
--anime-search-text: #e1e5f2;
--white-color: #ffffff; --light-bg-color: #f8f9fa; --border-color: #dee2e6; --secondary-color: #6c757d;
--anime-search-button-bg: var(--anime-accent-purple);
--anime-search-button-hover-bg: #b17acc;
--anime-border: rgba(255, 255, 255, 0.1);
--anime-mobile-menu-bg: rgba(30, 30, 40, 0.98);
--anime-mobile-link-color: #bdc3c7;
--anime-mobile-link-hover-bg: #34495e;
--brand-icon-color: #f1c40f;
--placeholder-bg: #e9ecef;
--dark-text-color: #343a40;
--section-bg-light: #f8f9fa;
--tag-bg: #e2e3e5;
--tag-color: #495057;
--progress-bar-color: var(--secondary-color);
--container-bg: #ffffff;
--border-radius: 8px;
--box-shadow: 0 2px 10px rgba(0,0,0,0.08);
--accent-color-light-purple: #e1d4f7;
--border-color: #dee2e6;
--warning-bg-color: #fff3cd; --warning-border-color: #ffeeba; --warning-text-color: #856404;
--info-bg-color: #d1ecf1; --info-border-color: #bee5eb; --info-text-color: #0c5460;


/* Backgrounds & Text */
--background-gradient: linear-gradient(145deg, #e3f2fd 0%, #fce4ec 100%); /* Blue -> Pinkish */
--container-bg: #ffffff;
--text-color: #424242; /* Dark Grey */
--text-color-light: #757575; /* Medium Grey */
--heading-color: var(--primary-color); /* Lavender for main headings */
--subheading-color: var(--secondary-color);

/* Components & Highlights */
--highlight-bg: #ede7f6; /* Very Light Lavender */
--highlight-border: var(--primary-color);
--toc-bg: #e3f2fd; /* Light Blue */
--toc-border: var(--accent-color-light-blue);
--progress-bar-gradient: linear-gradient(90deg, var(--secondary-color), var(--accent-color-pink));
--nav-bg: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
--nav-link-color: var(--secondary-color-darker);
--nav-link-hover-color: var(--accent-color-pink);
--nav-link-active-bg: #e3f2fd; /* Light Blue */
--footer-bg: #f5f5f5; /* Light Grey */
--footer-text-color: #757575;
--example-bg: #e3f2fd; /* Light Blue */
--example-border: #90caf9;
--exercise-bg: #fffde7; /* Light Yellow */
--exercise-border: #fff59d;
--answer-bg: #e8f5e9;   /* Light Green */
--answer-border: #a5d6a7;

/* UI Elements */
--border-radius: 12px; /* Softer corners */
--box-shadow: 0 3px 8px rgba(126, 87, 194, 0.1); /* Softer, lavender-tinted shadow */
--box-shadow-hover: 0 6px 12px rgba(126, 87, 194, 0.15);
--transition-speed: 0.3s;
}

/*------------------------------------*\
#BASE & RESET
\*------------------------------------*/
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}

html {
scroll-behavior: smooth;
font-size: 100%; /* Base font size */
}

body {
font-family: 'Pyidaungsu";
line-height: 1.7; 
color: var(--text-color);
background: var(--background-gradient);
margin: 0;
padding: 0;
font-size: 16px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow-x: hidden;
}
.responsive-image {
width: 100%;
height: auto;
max-width: 150px;
display: block;
margin: auto;
}

body.has-progress-bar {
padding-top: 5px;
}
/* Base styling for all item badges */
.item-badge {
display: inline-block;
padding: 3px 8px;
font-size: 0.75em;
font-weight: bold;
font-family: 'Pyidaungsu";
line-height: 1;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: 0.25rem;
margin-left: 5px;
color: #fff;
background-color: #6c757d;
}
.item-badge.item-lang-badge {
background-color: #007bff;   /* Blue background for language */
color: #fff;                 /* White text */
}

.item-badge.item-type-badge {
background-color: #28a745;   /* Green background for type */
color: #fff;                 /* White text */
border-radius: 10rem;
}
.item-badge:hover {
opacity: 0.85;
cursor: default;
}
a .item-badge:hover {
opacity: 1;
}
.item-tag {
display: inline-block;
padding: 4px 10px;
margin: 3px 5px 3px 0;
background-color: #691ec6;
color: #ffffff;
font-family: 'Pyidaungsu";
font-size: 0.85em;
border-radius: 12px;
text-decoration: none;
border: 1px solid #ccc;
white-space: nowrap;
transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.item-tag:hover {
background-color: #007bff; /* Blue background on hover */
color: #fff; /* White text on hover */
border-color: #0056b3; /* Darker blue border on hover */
}
#articleContent li {
    font-family: Pyidaungsu;
}
a.item-tag {
cursor: pointer; /* Show pointer cursor for links */
}

.item-tag i {
margin-right: 4px;
vertical-align: middle; 
}

.item-tag.featured {
background-color: #ffc107; /* Yellow for featured */
color: #333;
border-color: #e0a800;
}

.item-tag.new {
background-color: #28a745; /* Green for new */
color: #fff;
border-color: #1e7e34;
}

.item-tag.important {
background-color: #dc3545; /* Red for important */
color: #fff;
border-color: #b02a37;
}

.item-meta-date {
display: inline-block;
color: #6c757d;
font-size: 0.85em;
font-family: 'Pyidaungsu";
margin-right: 10px;
vertical-align: middle;
}

.item-meta-author {
display: inline-block;
color: #5a6268;
font-family: 'Pyidaungsu";
font-size: 0.85em;
font-style: italic;
vertical-align: middle;
}

.item-meta-date::before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content: "\f073";
margin-right: 5px;
color: #6c757d;
}
.item-meta-author::before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content: "\f007";
margin-right: 5px;
color: #5a6268;
}
.item-meta-container {
margin-top: 5px;
margin-bottom: 10px;
}

.item-meta-date + .item-meta-author::before {
content: "|";
content: "\00a0•\00a0";
margin-left: 10px;
margin-right: 10px;
color: #adb5bd;
font-style: normal;
font-weight: normal;
}
/*------------------------------------*\
#LAYOUT
\*------------------------------------*/
.container {
width: 95%;
max-width: 1140px;
margin: 25px auto;
padding: 20px;
background-color: var(--container-bg);
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
border: 1px solid var(--border-color);
box-sizing: border-box;
}

.articles-grid-container {
display: grid;
grid-template-columns: 1fr;
gap: 25px;
margin-bottom: 35px;
}

#explore-topics .topic-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 15px;
text-align: center;
margin-bottom: 30px;
}

@media (min-width: 576px) {
.container {
padding: 30px;
}

#explore-topics .topic-grid {
grid-template-columns: repeat(3, 1fr);
}
}

@media (min-width: 768px) {
.articles-grid-container {
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

#explore-topics .topic-grid {
grid-template-columns: repeat(4, 1fr);
}
}

@media (min-width: 992px) {
#explore-topics .topic-grid {
grid-template-columns: repeat(5, 1fr);
}
}

@media (min-width: 1200px) {
.container {
max-width: 1140px;
}

#explore-topics .topic-grid {
grid-template-columns: repeat(6, 1fr);
}
}
/* --- Featured Articles Section --- */
#featured-articles-section { margin-bottom: 35px; padding: 20px; background-color: var(--section-bg-light); border-radius: 6px; border: 1px solid var(--border-color); }
#featured-articles-section h2 { margin-top: 0; border-bottom: none; }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.featured-item { background-color: var(--white-color); border-radius: 6px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; }
.featured-item:hover { transform: translateY(-3px); box-shadow: 0 3px 8px rgba(0,0,0,0.1); }
.featured-item img { width: 100%; height: 150px; object-fit: cover; background-color: var(--placeholder-bg); }
.featured-item-content { padding: 15px; flex-grow: 1; }
.featured-item h3 { font-size: 1.1em; margin-top: 0; margin-bottom: 8px; }
.featured-item h3 a { text-decoration: none; color: var(--primary-hover-color); }
.featured-item h3 a:hover { text-decoration: underline; }
.featured-item p { font-size: 0.9em; font-family: "Pyidaungsu"; color: var(--secondary-color); margin-bottom: 0; }

/* --- Filter Form Section --- */
#filter-form-section { background-color: #f1f3f5; padding: 20px; border-radius: 6px; margin-bottom: 30px; border: 1px solid var(--border-color); }
#filter-form-section h2 { margin-top: 0; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; align-items: end; }
.filter-group label { display: block; font-weight: bold; margin-bottom: 8px; font-size: 0.9em; color: #495057; }
.filter-group input[type="text"], .filter-group input[type="date"], .filter-group select { width: 100%; padding: 9px 12px; border: 1px solid #ced4da; border-radius: 4px; font-size: 0.95em; box-sizing: border-box; background-color: var(--white-color); }
.filter-group .category-checkbox-group { max-height: 110px; overflow-y: auto; border: 1px solid #ced4da; padding: 10px; background-color: var(--white-color); border-radius: 4px; }
.filter-group .category-checkbox-group label { display: flex; align-items: center; font-weight: normal; margin-bottom: 6px; font-size: 0.9em; cursor: pointer; }
.filter-group .category-checkbox-group input[type="checkbox"] { margin-right: 8px; cursor: pointer; }
.filter-buttons { grid-column: 1 / -1; display: flex; gap: 10px; margin-top: 15px; justify-content: flex-start; }
.filter-buttons button { padding: 10px 20px; border: none; border-radius: 4px; font-size: 1em; cursor: pointer; transition: background-color 0.2s ease; font-weight: bold; }
.filter-buttons button[type="submit"] { background-color: var(--primary-color); color: var(--white-color); }
.filter-buttons button[type="submit"]:hover { background-color: var(--primary-hover-color); }
.filter-buttons button[type="reset"] { background-color: var(--secondary-color); color: var(--white-color); }
.filter-buttons button[type="reset"]:hover { background-color: #5a6268; }

/* --- Popular Tags Section --- */
#popular-tags-section { margin-bottom: 30px; padding: 15px 20px; background-color: var(--section-bg-light); border: 1px solid var(--border-color); border-radius: 6px; }
#popular-tags-section h3 { margin-top: 0; margin-bottom: 10px; font-size: 1.1em; }
.popular-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.popular-tags-list .tag-item { display: inline-block; background-color: var(--tag-bg); color: var(--tag-color); padding: 4px 10px; border-radius: 15px; font-size: 0.85em; text-decoration: none; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; border: 1px solid transparent; }
.popular-tags-list .tag-item:hover { background-color: var(--anime-accent-purple); color: var(--anime-text-light); border-color: var(--anime-search-button-hover-bg); }
.content-offering-section { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px dashed #ccc;}
.content-offering-section:last-of-type { border-bottom: none; }
#commercial-services { margin-top: 40px; padding-top: 20px; border-top: 2px solid #007bff; }
.commercial-service-item { border: 1px solid #dee2e6; border-radius: 6px; padding: 20px; margin-bottom: 25px; background-color: #fdfdfd; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.commercial-service-item h3 { margin-top: 0; margin-bottom: 10px; color: #0056b3; font-size: 1.3em; }
.commercial-service-item .service-description { font-size: 1em; color: #343a40; margin-bottom: 15px; }
.commercial-service-item .service-pricing { font-weight: bold; color: #28a745; font-size: 1.1em; margin-bottom: 15px; border-top: 1px dashed #ccc; padding-top: 15px; }
.commercial-service-item .service-pricing span { color: #6c757d; font-weight: normal; font-size: 0.9em; }
.commercial-service-item .price-note { font-size: 0.85em; color: #6c757d; font-style: italic; display: block; margin-top: -10px; margin-bottom: 10px; }
.commercial-service-item .service-actions { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; } /* Container for buttons */
.commercial-service-item .service-cta a { display: inline-block; background-color: #007bff; color: #fff; padding: 8px 15px; text-decoration: none; border-radius: 4px; font-weight: bold; font-size: 0.95em; transition: background-color 0.2s ease; text-align: center;}
.commercial-service-item .service-cta a:hover { background-color: #0056b3; }
.commercial-service-item .view-details { color: #007bff; text-decoration: none; font-size: 0.9em; cursor: pointer; }
.commercial-service-item .view-details:hover { text-decoration: underline; }
.service-disclaimer { background-color: #fff3cd; border: 1px solid #ffeeba; color: #856404; padding: 15px; margin-bottom: 30px; border-radius: 4px; font-size: 0.95em; }
.service-disclaimer strong { display: block; margin-bottom: 5px; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); display: none; justify-content: center; align-items: center; z-index: 1000; padding: 20px; overflow-y: auto; }
.modal { background-color: #fff; padding: 30px 40px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); max-width: 700px; width: 90%; position: relative; z-index: 1001; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 10px; right: 15px; font-size: 2.2em; font-weight: bold; color: #aaa; cursor: pointer; line-height: 1; }
.modal-close:hover { color: #333; }
.modal h4 { margin-top: 0; margin-bottom: 20px; color: #0056b3; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.modal p { margin-bottom: 1em; font-family: "Pyidaungsu"; font-size: 0.95em; line-height: 1.6; }
.modal strong { color: #343a40; }
.modal ul { margin-bottom: 1em; padding-left: 20px; }
.modal .modal-pricing { font-weight: bold; color: #28a745; margin-top: 20px; padding-top: 15px; border-top: 1px dashed #ccc; font-size: 1.05em; }
.modal .modal-pricing span { color: #6c757d; font-weight: normal; font-size: 0.9em; }
.modal .modal-cta { margin-top: 25px; text-align: right; }
.modal .modal-cta a { display: inline-block; background-color: #007bff; color: #fff; padding: 10px 20px; text-decoration: none; border-radius: 4px; font-weight: bold; transition: background-color 0.2s ease; }
.modal .modal-cta a:hover { background-color: #0056b3; }
.modal-overlay.active { display: flex; }
#explore-topics {
margin-bottom: 30px;
padding: 15px 20px;
background-color: var(--white-color);
border: 1px solid var(--border-color);
border-radius: 6px;
}
#explore-topics .section-title { margin-top: 0; }
#explore-topics .topic-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 15px;
margin-top: 15px;
}
#explore-topics .topic-box {
border: 1px solid var(--border-color);
padding: 15px;
text-align: center;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
#explore-topics .topic-box:hover {
background-color: #e9ecef;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
#explore-topics .topic-box i {
font-size: 1.8em; /* Adjust icon size */
color: var(--primary-color);
display: block;
margin-bottom: 8px;
}
#explore-topics .topic-box .topic-name {
display: block;
font-weight: bold;
font-family: 'Pyidaungsu";
margin-bottom: 5px;
}
#explore-topics .topic-box .topic-count {
    font-family: 'Pyidaungsu";
font-size: 0.9em;
color: var(--secondary-color);
background-color: var(--tag-bg);
padding: 2px 6px;
border-radius: 4px;
display: inline-block;
min-width: 15px;
}


/* --- View/Sort Controls Section --- */
#view-controls-section { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); flex-wrap: wrap; gap: 15px; }
#view-controls-section .sort-control { display: flex; align-items: center; gap: 8px; }
#view-controls-section .sort-control label { font-weight: bold; font-size: 0.9em; margin-bottom: 0;}
#view-controls-section .sort-control select { padding: 6px 10px; font-size: 0.9em; border-radius: 4px; border: 1px solid #ced4da; }
#view-controls-section .view-switcher { display: flex; gap: 5px; }
#view-controls-section .view-switcher button { background-color: var(--white-color); border: 1px solid var(--border-color); color: var(--secondary-color); padding: 6px 10px; border-radius: 4px; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; font-size: 1em; line-height: 1; }
#view-controls-section .view-switcher button:hover { background-color: #e9ecef; border-color: #adb5bd; }
#view-controls-section .view-switcher button.active { background-color: var(--primary-color); color: var(--white-color); border-color: var(--primary-color); }

/* --- Results Area --- */
#results-section { position: relative; }
#results-section h2 { margin-top: 0; }
#results-info { margin-bottom: 15px; font-style: italic; color: var(--secondary-color); padding: 8px 12px; background-color: #e9ecef; border-radius: 4px; font-size: 0.95em;}
.loading-overlay { position: absolute; inset: 0; background-color: rgba(255, 255, 255, 0.7); display: flex; justify-content: center; align-items: center; font-size: 1.2em; color: var(--secondary-color); z-index: 10; border-radius: 6px; }
#article-results-area { margin-top: 10px; }

/* --- Result Item Base --- */
.result-item { border: 1px solid var(--border-color); border-radius: 8px; background-color: #ddfff8; margin-bottom: 25px; overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.result-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-3px); }
.result-item .item-image { background-color: var(--placeholder-bg); display: flex; justify-content: center; align-items: center; color: var(--secondary-color); font-size: 1.5em; overflow: hidden; }
.result-item .item-image img { width: 100%; height: 100%; object-fit: cover; }
.result-item .item-content { padding: 15px 20px; flex-grow: 1; }
.result-item h3 { margin-top: 0; margin-bottom: 10px; font-size: 1.2em; }
.result-item h3 a { color: var(--primary-hover-color); text-decoration: none; }
.result-item h3 a:hover { text-decoration: underline; }
.result-item .meta-info { font-size: 0.8em; color: #ffffff; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 5px 15px;}
.result-item .meta-info span {color: #007bff; white-space: nowrap; }
.result-item .meta-info .tag { background-color: #ffffff; padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }
.result-item .meta-info i { margin-right: 4px; }
.result-item .description { font-size: 0.95em; margin-bottom: 15px; }
.result-item .tags-container { margin-bottom: 15px; line-height: 1.5; }
.result-item .tag-item { display: inline-block; background-color: #ff6ab4; color: #ffffff; padding: 3px 8px; border-radius: 12px; font-size: 0.75em; margin-right: 5px; margin-bottom: 5px; text-decoration: none; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.result-item .tag-item:hover { background-color: var(--anime-accent-purple); color: var(--anime-text-light); }
.result-item .item-footer { margin-top: auto; padding: 10px 20px; border-top: 1px solid #eee; text-align: right; }
.result-item .read-more-link { font-weight: bold; color: var(--primary-color); text-decoration: none; font-size: 0.9em;}
.result-item .read-more-link:hover { text-decoration: underline; }
.result-item mark { background-color: #fff3cd; padding: 0.1em; border-radius: 2px; box-shadow: 0 0 0 1px #ffeeba; }

/* --- View Mode Specific Styles --- */
#article-results-area.view-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
#article-results-area.view-grid .result-item { display: flex; flex-direction: column; margin-bottom: 0; }
#article-results-area.view-grid .item-image { height: 180px; width: 100%; }
#article-results-area.view-grid .item-content { display: flex; flex-direction: column; flex-grow: 1; }
#article-results-area.view-grid .description { flex-grow: 1; }
#article-results-area.view-list .result-item { display: flex; flex-direction: row; align-items: flex-start; }
#article-results-area.view-list .item-image { width: 200px; height: 150px; flex-shrink: 0; border-radius: 8px 0 0 8px; }
#article-results-area.view-list .item-content { padding-left: 25px; }
#article-results-area.view-list .item-footer { text-align: left; padding-top: 15px; border-top: none;}
#article-results-area.view-compact .result-item { display: flex; align-items: center; padding: 10px 15px; margin-bottom: 10px; }
#article-results-area.view-compact .item-image { display: none; }
#article-results-area.view-compact .item-content { padding: 0; flex-grow: 1; }
#article-results-area.view-compact h3 { font-size: 1.05em; margin-bottom: 5px; }
#article-results-area.view-compact .meta-info { font-size: 0.75em; margin-bottom: 0; gap: 10px;}
#article-results-area.view-compact .description, #article-results-area.view-compact .tags-container, #article-results-area.view-compact .item-footer { display: none; }

/* --- Pagination --- */
.pagination-container { text-align: center; margin-top: 40px; }
.pagination-container button, .pagination-container span { display: inline-block; padding: 8px 14px; margin: 0 3px; border: 1px solid var(--border-color); background-color: var(--white-color); color: var(--primary-color); text-decoration: none; border-radius: 4px; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.pagination-container button:hover, .pagination-container span:not(.current):hover { background-color: #e9ecef; border-color: #ced4da; }
.pagination-container span.current { background-color: var(--primary-color); color: var(--white-color); border-color: var(--primary-color); cursor: default; }
.pagination-container button:disabled { color: var(--secondary-color); background-color: var(--light-bg-color); border-color: var(--border-color); cursor: not-allowed; opacity: 0.6; }


/* Responsive */
@media (max-width: 600px) {
#article-results-area.view-list .result-item { flex-direction: column; }
#article-results-area.view-list .item-image { width: 100%; height: 150px; border-radius: 8px 8px 0 0; }
#article-results-area.view-list .item-content { padding: 15px 20px; }
#explore-topics .topic-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } /* Adjust topic grid */
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/*------------------------------------*\
#NAVIGATION
\*------------------------------------*/
.main-nav {
background: var(--anime-gradient);
padding: 0 20px; 
position: relative;
min-height: 55px;
display: flex;
align-items: center;
box-shadow: 0 3px 8px rgba(255, 182, 254, 0.15);
border-bottom: 1px solid var(--anime-border);
}

.nav-container {
display: flex;
align-items: center;
width: 100%;
max-width: 1140px;
margin: 0 auto;
}

.navbar-brand { /* Basic brand styling */
color: var(--header-text, #f8f9fa);
font-size: 1.4em;
font-weight: bold;
text-decoration: none;
margin-right: 20px;
white-space: nowrap; 
}

.nav-links { /* Base styles for desktop */
list-style: none;
padding: 0;
margin: 0;
display: flex; /* Arrange links horizontally */
}

.nav-links li {
margin-left: 5px;
}
.nav-links li:first-child {
margin-left: 0;
}

.nav-links .nav-item {
color: var(--header-text, #f8f9fa);
text-decoration: none;
padding: 6px 10px;
border-radius: 4px;
transition: background-color 0.2s ease, color 0.2s ease;
display: block;
white-space: nowrap;
}

.nav-links .nav-item:hover {
background-color: #141515;
color: #ffffff;
}

.nav-links .nav-item.active { /* Desktop active style */
background-color: #007bff;
color: #ffffff;
}
/* === Dropdown Menu Styles (Integrated with existing nav CSS) === */

/* --- Base for Dropdown Container --- */
.nav-links li.dropdown {
  /* Ensure dropdown works correctly within flex layout and provides positioning context */
  position: relative; 
}

/* --- Dropdown Trigger Button (inherits .nav-item styles) --- */
/* The <a> element already has .nav-item class, inheriting padding, color, etc. */
.nav-links li.dropdown > a.dropbtn {
  /* Ensure cursor indicates interaction */
  cursor: pointer; 
}

/* Style the dropdown arrow icon */
.nav-links li.dropdown > a.dropbtn .dropdown-icon {
  margin-left: 8px;  /* Space before the arrow */
  font-size: 0.8em;   /* Make arrow slightly smaller */
  display: inline-block; /* Needed for rotation */
  transition: transform 0.3s ease; /* Smooth rotation */
  vertical-align: middle; /* Align with text */
}

/* --- Dropdown Content Box --- */
.dropdown-content {
  display: none; /* Hidden by default */
  /* Desktop Styling */
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff; /* White background for dropdown */
  min-width: 200px; /* Or adjust to content */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Subtle shadow */
  border: 1px solid #e0e0e0; /* Light border */
  border-radius: 0 0 4px 4px;
  z-index: 1010;
  padding: 5px 0;
  list-style: none; 
  margin: 0; 
}

/* --- Links inside the Dropdown (Desktop) --- */
.dropdown-content a {
  color: #333333; /* Dark text on white background */
  padding: 10px 20px; /* Comfortable padding */
  text-decoration: none;
  display: block;
  font-size: 0.95em; /* Slightly smaller than main nav items */
  white-space: nowrap; /* Prevent wrapping on desktop */
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* --- Interaction (Desktop Hover/Focus) --- */

/* Show dropdown content on hover/focus of the container list item */
.nav-links li.dropdown:hover > .dropdown-content,
.nav-links li.dropdown:focus-within > .dropdown-content {
  display: block;
}

/* Rotate arrow when dropdown is open/hovered */
.nav-links li.dropdown:hover > a.dropbtn .dropdown-icon,
.nav-links li.dropdown:focus-within > a.dropbtn .dropdown-icon {
  transform: rotate(180deg);
}

/* Hover effect for links inside the dropdown (Desktop) */
.dropdown-content a:hover {
  background-color: #007bff; /* Use the existing active blue for hover */
  color: #ffffff; /* White text */
}

/* --- Mobile Styles for Dropdown --- */
@media (max-width: 768px) {

  /* Reset desktop positioning for mobile */
  .dropdown-content {
    position: static; /* Let it flow naturally in the column */
    display: none; /* Hide by default on mobile too, show on interaction */
    background-color: transparent; /* Blend with mobile nav background */
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: auto;
    padding: 0;
    margin: 0;
    padding-left: 15px; /* Indent sub-menu items */
    border-left: 2px solid rgba(255, 255, 255, 0.2); /* Subtle indicator */
    margin-left: 5px; /* Space from parent left edge */
  }
  
  /* Mobile interaction: Show on hover/focus-within */
  /* IMPORTANT: Click/Tap interaction controlled by JavaScript is recommended for mobile usability */
  .nav-links li.dropdown:hover > .dropdown-content,
  .nav-links li.dropdown:focus-within > .dropdown-content {
     display: block; 
   }
   
  /* Ensure arrow rotates on mobile hover/focus too */
   .nav-links li.dropdown:hover > a.dropbtn .dropdown-icon,
   .nav-links li.dropdown:focus-within > a.dropbtn .dropdown-icon {
       transform: rotate(180deg);
    }

  /* Style links inside dropdown to match other mobile links */
  .dropdown-content a {
    /* Match styles defined in .nav-links .nav-item for mobile */
    padding: 10px 15px; /* Adjust padding if needed for sub-items */
    width: auto; /* Allow natural width */
    box-sizing: border-box;
    border-radius: 0;
    color: #dee2e6; /* Match mobile text color */
    display: block;
    font-size: 0.9em; /* Slightly smaller */
    border-bottom: 1px solid #495057; /* Match mobile separator */
    white-space: normal; /* Allow wrapping */
    background-color: transparent; /* Ensure no inherited background */
  }

  .dropdown-content a:last-child {
      border-bottom: none;
  }

  /* Hover effect for links inside dropdown (Mobile) */
  .dropdown-content a:hover {
    background-color: #055eb7; /* Match mobile hover color */
    color: #ffffff;
  }
}
.nav-toggle {
display: block;
background: none;
border: none;
color: var(--header-text, #f8f9fa);
font-size: 1.6em;
cursor: pointer;
padding: 8px 10px;
margin-right: 15px;
line-height: 1;
z-index: 1001;
order: -1;
border-radius: 4px;
position: relative;
overflow: hidden;
transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.nav-toggle .icon-bar {
display: block;
width: 22px;
height: 2px;
background-color: currentColor;
border-radius: 1px;
margin: 4px auto;
transition: transform 0.3s ease-in-out,
opacity 0.3s ease-in-out,
background-color 0.3s ease-in-out;
transform-origin: center;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
background-color: rgba(255, 255, 255, 0.1);
transform: scale(1.1);
outline: none;
}

.nav-toggle:hover .icon-bar,
.nav-toggle:focus-visible .icon-bar {
background-color: #17a2b8;
}

.nav-toggle:focus-visible {
box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.5);
}

.nav-toggle:active {
transform: scale(0.95);
background-color: rgba(255, 255, 255, 0.05);
}

.nav-toggle:active .icon-bar {
background-color: #138496;
}

.nav-toggle.is-active .icon-bar:nth-child(2) {
opacity: 0;
transform: scaleX(0.5);
}

.nav-toggle.is-active .icon-bar:nth-child(1) {
transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-active .icon-bar:nth-child(3) {
transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle.is-active .icon-bar {
background-color: #dc3545;
}

@media (max-width: 768px) {
.nav-container {
flex-wrap: wrap;
}
}

.nav-links {
display: none;
flex-direction: column;
width: 100%;
position: absolute;
top: 100%;
left: 0;
background-color: #3f474f;
padding: 10px 0;
box-shadow: 0 4px 8px rgba(2, 96, 66, 0.1);
border-top: 1px solid #495057;
max-height: calc(100vh - 55px);
overflow-y: auto;
order: 99;
z-index: 1000;
}


.main-nav.nav-active .nav-links {
display: flex;
}

.nav-links li {
margin-left: 0;
margin-bottom: 0;
width: 100%;
text-align: left;
border-bottom: 1px solid #05632f;
}
.nav-links li:last-child {
border-bottom: none;
}

.nav-links .nav-item {
padding: 12px 20px;
width: 100%;
box-sizing: border-box;
border-radius: 0;
color: #dee2e6;
display: block;
}
.nav-links .nav-item:hover {
background-color: #055eb7;
color: #ffffff;
}
/* Active state styling mobile */
.nav-links .nav-item.active {
background-color: #007bff;
color: #ffffff;
}

.main-nav.nav-active .nav-toggle .icon-bar:nth-child(1) {
transform: translateY(6px) rotate(45deg);
}
.main-nav.nav-active .nav-toggle .icon-bar:nth-child(2) {
opacity: 0;
}
.main-nav.nav-active .nav-toggle .icon-bar:nth-child(3) {
transform: translateY(-6px) rotate(-45deg);
}
.sticky-nav {
position: sticky;
top: 0;
z-index: 1020;
width: 100%;
background-color: #6900e8;
box-sizing: border-box;
}

/*------------------------------------*\
#COMMON COMPONENTS (Buttons, Search, Cards)
\*------------------------------------*/

/* Search Bar */
#search-section {
margin: 30px 0;
text-align: center;
}

#search-bar {
padding: 10px 18px;
width: calc(100% - 100px);
max-width: 400px;
border: 1px solid var(--accent-color-light-purple);
border-radius: 25px 0 0 25px;
font-size: 1em;
vertical-align: middle;
background-color: #fff;
}
#search-bar:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 5px rgba(126, 87, 194, 0.3);
}

#search-button {
padding: 10px 20px;
background: linear-gradient(45deg, var(--secondary-color), var(--accent-color-light-blue));
color: white;
border: 1px solid var(--secondary-color-darker);
border-left: none;
border-radius: 0 25px 25px 0;
cursor: pointer;
font-size: 1em;
vertical-align: middle;
transition: background var(--transition-speed) ease, transform 0.2s ease;
}

#search-button:hover {
background: linear-gradient(45deg, var(--secondary-color-darker), var(--secondary-color));
transform: scale(1.05);
}

#search-button i {
margin-right: 6px;
}

/* Article Placeholder Card (Featured Articles) */
.article-placeholder {
border: 1px solid var(--accent-color-light-purple);
border-radius: var(--border-radius);
padding: 20px;
background-color: #fff;
box-shadow: var(--box-shadow);
display: flex;
flex-direction: column;
transition: box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.article-placeholder:hover {
box-shadow: var(--box-shadow-hover);
transform: translateY(-4px);
}

.article-placeholder .placeholder-meta {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
font-size: 0.8em;
color: var(--text-color-light);
}

.placeholder-category {
background-color: var(--highlight-bg);
color: var(--primary-color);
padding: 3px 8px;
border-radius: calc(var(--border-radius) / 2);
font-weight: 500;
}

.placeholder-lang {
font-weight: bold;
color: var(--secondary-color);
}

.article-placeholder h3 {
margin-top: 0;
margin-bottom: 12px;
color: var(--primary-color-darker);
font-size: 1.2em;
font-weight: 700;
}

.article-placeholder p.placeholder-desc {
font-size: 0.95em;
color: var(--text-color);
flex-grow: 1;
margin-bottom: 15px;
line-height: 1.6;
}

.article-placeholder .placeholder-link {
display: inline-block;
background: #879f00;
color: white;
padding: 8px 15px;
border-radius: 20px; /* Pill shape */
text-decoration: none;
font-family: 'Pyidaungsu";
font-size: 0.9em;
font-weight: bold;
align-self: flex-start;
transition: background-color var(--transition-speed) ease, transform 0.2s ease;
}

.article-placeholder .placeholder-link:hover {
background-color: #007bff;
transform: scale(1.05);
}

#posts-list { list-style: none; padding: 0; }
.post-summary-item {
border: 1px solid var(--border-color);
border-radius: 6px;
padding: 20px;
margin-bottom: 20px;
background-color: #fff;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
transition: box-shadow 0.2s ease;
}
.post-summary-item:hover { box-shadow: 0 3px 8px rgba(0,0,0,0.08); }
.post-summary-item h3 { margin-top: 0; margin-bottom: 8px; color: var(--primary-hover-color); font-size: 1.3em; }
.post-meta { font-size: 0.85em; color: var(--secondary-color); margin-bottom: 12px; }
.post-meta span { margin-right: 15px; }
.post-meta .tag { background-color: #e9ecef; padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }
.post-summary-text { font-size: 1em; margin-bottom: 15px; color: #495057; }
.read-more-btn {
display: inline-block;
background-color: var(--primary-color);
color: var(--white-color);
padding: 8px 15px;
text-decoration: none;
border-radius: 4px;
font-weight: bold;
font-size: 0.9em;
cursor: pointer;
border: none;
transition: background-color 0.2s ease;
}
.read-more-btn:hover { background-color: var(--primary-hover-color); }

/* --- Modal Styles --- */
.modal {
display: none;
position: fixed;
z-index: 1050;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.6);
opacity: 0;
transition: opacity 0.3s ease-in-out;
}
.modal.active {
display: block;
opacity: 1;
}
.modal-content {
background-color: var(--white-color);
margin: 5% auto;
padding: 30px 40px;
border: 1px solid #888;
width: 85%;
max-width: 800px;
border-radius: 8px;
position: relative;
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
max-height: 85vh;
display: flex;
flex-direction: column;
}
.modal-header {
border-bottom: 1px solid var(--border-color);
padding-bottom: 15px;
margin-bottom: 20px;
}
.modal-header h2 { margin: 0; color: var(--primary-hover-color); font-size: 1.6em;}
.modal-header .modal-meta { font-size: 0.9em; color: var(--secondary-color); margin-top: 5px;}

.modal-body {
overflow-y: auto;
line-height: 1.8;
color: var(--dark-text-color);
}
.modal-body p { margin-bottom: 1.5em; font-family: "Pyidaungsu";font-size: 1.05em;}

.modal-close-btn {
color: #aaa;
position: absolute;
top: 10px;
right: 20px;
font-size: 2em;
font-weight: bold;
line-height: 1;
}
.modal-close-btn:hover,
.modal-close-btn:focus {
color: #333;
text-decoration: none;
cursor: pointer;
}

.js-required-note {
font-size: 0.75em;
color: var(--accent-color-light-purple);
margin-top: 8px;
text-align: right;
width: 100%;
}

/* Topic Box */
.topic-box {
background-color: #fff;
padding: 20px 10px;
border-radius: var(--border-radius);
border: 1px solid var(--accent-color-light-blue);
transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, background-color var(--transition-speed) ease;
cursor: pointer;
position: relative;
box-shadow: 0 2px 5px rgba(66, 165, 245, 0.1); /* Blue-tinted shadow */
}

.topic-box:hover {
transform: translateY(-5px) scale(1.03);
box-shadow: 0 5px 12px rgba(66, 165, 245, 0.2);
background-color: var(--toc-bg); /* Light blue on hover */
}

.topic-box i {
font-size: 1.8em; /* Smaller icon */
color: var(--secondary-color);
margin-bottom: 8px;
transition: transform 0.3s ease;
}
.topic-box:hover i {
transform: scale(1.1);
}

.topic-box span.topic-name {
display: block;
font-weight: bold;
color: var(--secondary-color-darker);
font-size: 0.9em;
margin-bottom: 3px;
}

.topic-box span.topic-count {
display: inline-block;
font-size: 0.7em;
color: #fff;
background-color: var(--accent-color-pink); /* Pink count bubble */
padding: 2px 6px;
border-radius: 10px;
position: absolute;
top: 8px;
right: 8px;
line-height: 1;
}

/* Pagination */
.pagination-container {
text-align: center;
margin-top: 30px;
}

.pagination-container .pagination-btn,
.pagination-container .pagination-num {
display: inline-block;
padding: 8px 12px;
margin: 0 3px;
border: 1px solid var(--accent-color-light-blue);
background-color: #fff;
color: var(--secondary-color);
text-decoration: none;
border-radius: calc(var(--border-radius)/2);
cursor: pointer;
transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, transform 0.2s ease;
font-size: 0.9em;
}

.pagination-container .pagination-btn:hover,
.pagination-container .pagination-num:hover {
background-color: var(--toc-bg);
border-color: var(--secondary-color);
transform: translateY(-2px);
}

.pagination-container .pagination-num.active {
background-color: var(--secondary-color);
color: white;
border-color: var(--secondary-color);
cursor: default;
transform: none;
}

.pagination-container .pagination-btn.disabled {
color: var(--text-color-light);
background-color: #f5f5f5;
border-color: #e0e0e0;
cursor: not-allowed;
opacity: 0.7;
}
.pagination-container .pagination-btn.disabled:hover {
transform: none;
background-color: #f5f5f5;
}

.pagination-js-note {
font-size: 0.8em;
color: var(--accent-color-light-purple);
margin-top: 10px;
display: block;
}

/* Back to Top Button */
#backToTopBtn {
display: none;
opacity: 0;
position: fixed;
bottom: 20px;
right: 20px;
z-index: 999;
border: none;
outline: none;
background: linear-gradient(45deg, var(--accent-color-pink), var(--primary-color));
color: white;
cursor: pointer;
width: 45px;
height: 45px;
border-radius: 50%;
font-size: 1.4em;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease, background var(--transition-speed) ease;
display: flex;
align-items: center;
justify-content: center;
}

#backToTopBtn.visible {
display: flex;
opacity: 0.9;
}

#backToTopBtn:hover {
opacity: 1;
background: linear-gradient(45deg, var(--primary-color), var(--accent-color-pink));
transform: scale(1.15) rotate(10deg);
}

/*------------------------------------*\
#TYPOGRAPHY & CONTENT STYLES
\*------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-family: "Myanmar3";
font-weight: 700;
margin-top: 1.5em;
margin-bottom: 0.8em;
letter-spacing: -0.2px;
line-height: 1.3;
}

h1 {
color: var(--heading-color);
text-align: center;
font-size: 2em; /* Mobile H1 size */
border-bottom: 2px solid var(--accent-color-light-purple);
padding-bottom: 10px;
margin-top: 0;
margin-bottom: 0.5em;
}

.page-title { /* For index and about h1 */
border-bottom: none;
margin-bottom: 0.8em;
}

.subtitle {
text-align: center;
font-size: 1em;
color: var(--text-color-light);
margin-top: -0.5em;
margin-bottom: 1.2em;
font-style: italic;
}

.read-time {
text-align: center;
color: var(--text-color-light);
font-style: italic;
margin-bottom: 1.2em;
font-size: 0.9em;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
}

.read-time i {
font-size: 1em;
color: var(--secondary-color);
}

h2 {
color: #ff69b4;
font-size: 1.6em; /* Mobile H2 size */
border-left: 5px solid var(--accent-color-light-blue);
padding-left: 12px;
margin-top: 2em;
display: flex;
align-items: center;
gap: 8px;
}
/* Specific heading type */
h2.part-heading {
color: var(--primary-color); /* Lavender for Parts */
border-left-color: var(--accent-color-pink); /* Pink border */
font-size: 1.5em;
margin-top: 2.2em;
}

h3 {
color: #0aa207;
font-size: 1.3em; /* Mobile H3 size */
}
/* Specific heading type */
h3.sub-list-title {
color: var(--secondary-color-darker); /* Darker blue */
font-style: italic;
margin-top: 1.5em;
margin-bottom: 0.6em;
font-size: 1.15em;
border-bottom: 1px dashed var(--accent-color-light-blue);
padding-bottom: 4px;
}

p {
margin-bottom: 1.2em;
font-family: "Pyidaungsu";
text-align: left;
}

.intro-paragraph {
font-style: italic;
color: #555;
text-align: center;
margin-bottom: 2em;
}
.philosopher-view, .ideology-section, .htet-thought, .perspective {
margin-left: 20px;
padding-left: 15px;
border-left: 3px solid #007bff;
margin-bottom: 1.5em;
}
.htet-thought {
background-color: #eef7ff;
padding: 15px;
border-radius: 5px;
border-left: 3px solid #0056b3;
font-style: italic;
color: #224;
}
.htet-thought strong {
font-style: normal;
}
.perspective {
border-left: 3px solid #17a2b8;
font-size: 0.95em;
color: #117a8b;
}
.perspective strong {
color: #0d6c7c;
}
.featured-item-preview-image {
    display: block;
    max-width: 100%;
    height: auto;
    width: auto;
  }
  .main-item-preview-image {
    display: block;
    max-width: 65%;
    height: auto;
    width: auto;
    margin: 0 auto;
  }

  .item-additional-data {
    background: linear-gradient(135deg, #c3dafe, #e9d8fd); /* blue + purple pastel */
    border: 2px solid #d6bcfa;
    border-radius: 20px;
    padding: 20px;
    font-family: "Comic Neue", "Quicksand", cursive, sans-serif;
    color: #4c51bf; /* soft blue */
    box-shadow: 0 4px 15px rgba(186, 140, 255, 0.3);
    max-width: 500px;
    margin: 20px auto;
    animation: sparkleFade 5s ease-in-out infinite alternate;
  }
  
  .item-additional-data p {
    margin: 8px 0;
    font-family: "Pyidaungsu";
    font-size: 16px;
  }
  .item-image {
    display: none;
  }
  
  @keyframes sparkleFade {
    0% {
      box-shadow: 0 0 10px rgba(255, 182, 255, 0.4);
    }
    100% {
      box-shadow: 0 0 20px rgba(186, 140, 255, 0.7);
    }
  }
  
/* References list style */
.references-list {
list-style: none; padding-left: 10px; font-size: 0.9em;
}
.references-list li {
margin-bottom: 0.7em; word-wrap: break-word;
}
.references-list li::before {
content: '🔗'; /* Link symbol */
font-size: 1.1em; margin-right: 8px;
}

/* --- BLUE LIST STYLING --- */
ul, ol {
padding-left: 20px;
margin-bottom: 1.2em;
}

li {
margin-bottom: 0.8em;
}

ul:not([class]) li,
.styled-list li {
    font-family: "Pyidaungsu";
list-style: none;
position: relative;
padding-left: 25px;
}

ul:not([class]) li::before,
.styled-list li::before {
content: '✧';
position: absolute;
left: 0;
top: 1px;
color: var(--secondary-color);
font-family: "Pyidaungsu";
font-size: 1.3em;
line-height: 1;
transition: transform 0.3s ease;
}
ul:not([class]) li:hover::before,
.styled-list li:hover::before {
transform: rotate(90deg) scale(1.1);
}

ol {
padding-left: 25px;
}
ol li {
list-style-type: decimal;
color: var(--text-color);
}
ol li::marker {
color: var(--secondary-color-darker);
font-weight: bold;
}


/* Icon List */
.icon-list {
list-style: none;
padding-left: 0;
}
.icon-list li {
padding-left: 35px;
position: relative;
}
.icon-list li i.list-icon {
position: absolute;
left: 0;
top: 4px;
color: var(--secondary-color);
font-size: 1.2em;
width: 25px;
text-align: center;
transition: transform 0.3s ease;
}
.icon-list li:hover i.list-icon {
transform: scale(1.2);
}
/* Variations */
.icon-list li i.icon-pink { color: var(--accent-color-pink); }
.icon-list li i.icon-purple { color: var(--primary-color); }

/* Nested Lists */
ul ul, ol ul, .styled-list ul {
padding-left: 25px;
margin-top: 0.5em;
}
ul ul li::before, .styled-list ul li::before {
content: '✿'; /* Flower for nested */
color: var(--accent-color-light-blue); /* Lighter blue */
font-size: 1em;
}
ol ul li {
list-style-type: disc;
}
ol ul li::marker {
color: var(--secondary-color);
}

/* --- END BLUE LIST STYLING --- */


strong, b {
color: var(--primary-color-darker); /* Darker Lavender */
font-weight: 700;
}

em, i:not([class*="fa-"]) { /* Exclude Font Awesome */
color: var(--secondary-color-darker); /* Darker Blue */
font-style: italic;
}

a {
color: var(--secondary-color-darker); /* Use the darker blue for links */
text-decoration: none;
transition: color var(--transition-speed) ease;
font-weight: 500; /* Slightly bolder links */
}

a:hover, a:focus {
color: var(--accent-color-pink);
text-decoration: underline;
text-decoration-thickness: 1.5px;
text-underline-offset: 3px; /* Nicer underline */
}

/* Blockquote/Highlight */
blockquote {
background-color: var(--highlight-bg);
border-left: 5px solid var(--highlight-border);
margin: 25px 0;
padding: 20px 25px;
font-style: normal;
color: var(--text-color);
border-radius: 0 var(--border-radius) var(--border-radius) 0;
box-shadow: var(--box-shadow);
position: relative;
overflow: hidden;
}

blockquote::before {
font-family: "Font Awesome 6 Free";
font-weight: 900;
content: "\f10d"; /* fa-quote-left */
position: absolute;
top: 10px;
left: 10px;
font-size: 1.6em;
color: #8d20e6;
opacity: 0.6;
}

blockquote p {
margin-bottom: 0.5em;
font-family: "Pyidaungsu";
text-align: left;
position: relative;
z-index: 1;
padding-left: 25px;
}

blockquote p:last-child {
margin-bottom: 0;
}

/* Table Styles */
.content-table {
width: 100%;
border-collapse: collapse;
margin: 25px 0;
box-shadow: 0 2px 5px rgba(0,0,0,0.08);
overflow-x: auto;
display: block;
}

.content-table th,
.content-table td {
border: 1px solid #e0e0e0;
padding: 10px 12px;
text-align: left;
font-family: 'Pyidaungsu";
font-size: 0.95em;
}

.content-table th {
background-color: var(--secondary-color);
color: white;
font-family: 'Pyidaungsu";
font-weight: bold;
}

.content-table tr:nth-child(even) {
background-color: #f9f9f9;
}

.content-table tr:hover {
background-color: var(--toc-bg);
}

.signature {
text-align: right;
margin-top: 2em;
font-weight: bold;
color: var(--primary-color, #0056b3);
}
.final-thanks {
text-align: center;
margin-top: 2em;
font-style: italic;
color: #555;
}

/* Example, Exercise, Answer Boxes */
.example, .exercise, .answers {
padding: 15px 20px;
margin: 20px 0;
border-radius: calc(var(--border-radius) / 1.5);
border: 1px solid;
border-left-width: 5px;
font-style: normal;
}

.example {
background-color: var(--example-bg);
border-color: var(--example-border);
}
.example p { margin: 0.3em 0; font-family: "Pyidaungsu"; text-align: left; font-size: 0.95em; }
.example .en { font-family: sans-serif; font-weight: bold; color: var(--secondary-color-darker); }
.example .my { color: var(--text-color); }

.exercise {
background-color: var(--exercise-bg);
border-color: var(--exercise-border);
}
.answers {
background-color: var(--answer-bg);
border-color: var(--answer-border);
}

.exercise h3, .answers h3 {
margin-top: 0;
font-size: 1.2em;
font-style: normal;
border-bottom: none;
padding-left: 0;
border-left: none;
}
.exercise h3 { color: #bfa000; }
.answers h3 { color: #388e3c; }

.exercise ol, .answers ol {
padding-left: 20px;
list-style-type: decimal;
margin-top: 10px;
}
.exercise ol li, .answers ol li {
margin-bottom: 0.5em;
font-family: sans-serif;
font-size: 0.95em;
}
.exercise ol li::marker, .answers ol li::marker {
color: var(--text-color-light);
font-weight: normal;
}

/*------------------------------------*\
#ARTICLE SPECIFIC (Progress Bar, TOC)
\*------------------------------------*/

/* Progress Bar */
#progressBarContainer {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 5px;
background-color: #e0e0e0; 
z-index: 1001;
}

#progressBar {
height: 100%;
background: var(--progress-bar-gradient);
width: 0%;
transition: width 0.1s linear;
border-radius: 0 2px 2px 0;
}

/* Table of Contents */
.toc {
background-color: var(--toc-bg);
border: 1px solid var(--toc-border);
padding: 20px 25px;
margin: 30px 0;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
}

.toc h3 {
margin-top: 0;
color: var(--secondary-color-darker);
font-family: 'Pyidaungsu";
font-size: 1.5em;
text-align: center;
margin-bottom: 1em;
border-bottom: 2px solid var(--toc-border);
padding-bottom: 10px;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}

.toc h3 i {
font-size: 0.9em;
font-family: 'Pyidaungsu";
}

.toc ul {
list-style: none;
padding-left: 0;
}

.toc li {
margin-bottom: 0.8em;
}
.toc li a {
font-weight: 500;
font-family: 'Pyidaungsu";
font-size: 1.05em;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
color: var(--secondary-color-darker);
transition: color var(--transition-speed) ease, transform 0.2s ease;
padding: 5px 0;
}

.toc li a:hover, .toc li a:focus {
color: var(--accent-color-pink);
transform: translateX(5px);
text-decoration: none;
}

.toc li a i {
color: var(--accent-color-pink);
font-family: 'Pyidaungsu";
font-size: 1em;
width: 20px;
text-align: center;
transition: transform var(--transition-speed) ease;
}
.toc li a:hover i {
transform: rotate(15deg);
}

/*------------------------------------*\
#SPECIFIC SECTIONS (Index List, Footer, etc.)
\*------------------------------------*/
#main-content-area .content-count {
text-align: right;
margin-bottom: 15px;
font-family: 'Pyidaungsu";
font-size: 0.9em;
color: var(--text-color-light);
}
.content-display-area {
margin-top: 20px;
min-height: 150px;
padding: 0;
background-color: transparent;
}
.content-display-area .loading-message {
text-align: center;
padding-top: 30px;
color: var(--text-color-light);
}
.content-display-area .loading-message i {
margin-top: 15px;
color: var(--secondary-color);
font-size: 2em;
display: block;
}
/* Grouping and item styles */
.category-group {
margin-bottom: 35px;
}
.category-title {
color: var(--primary-color); /* Lavender for category titles */
font-size: 1.6em;
font-weight: bold;
margin-bottom: 20px;
border-bottom: 2px solid var(--accent-color-light-purple);
padding-bottom: 8px;
}
.content-item {
display: block;
padding: 15px 10px;
border-bottom: 1px solid #eee; /* Lighter separator */
text-decoration: none;
color: var(--text-color);
transition: background-color var(--transition-speed) ease;
border-radius: calc(var(--border-radius) / 2);
margin-bottom: 8px;
}
.content-item:hover {
background-color: var(--highlight-bg); /* Light Lavender hover */
}
.content-item strong {
font-size: 1.1em;
color: var(--secondary-color-darker); /* Blue title */
display: block;
margin-bottom: 5px;
font-weight: 600;
}
.content-item p {
font-size: 0.9em;
color: var(--text-color-light);
margin: 0;
line-height: 1.6;
}
/* Specific item types */
.content-item.exercise-item strong::after {
content: ' (Exercise)';
font-size: 0.8em;
color: #bfa000; /* Dark Yellow */
margin-left: 5px;
font-weight: normal;
}
.content-item.book-item strong::before {
content: '\f02d';
font-family: 'Font Awesome 6 Free';
font-weight: 900;
margin-right: 7px;
color: var(--primary-color); /* Lavender */
}

details {
border: 1px solid #dee2e6;
border-radius: 5px;
margin-bottom: 15px;
background-color: #fff;
}
summary {
font-weight: bold;
padding: 15px;
cursor: pointer;
outline: none;
background-color: #f1f3f5;
border-bottom: 1px solid #dee2e6;
list-style: none;
position: relative;
}
/* Custom marker */
summary::before {
content: '+';
font-weight: bold;
margin-right: 10px;
display: inline-block;
transition: transform 0.2s;
color: #007bff;
}
details[open] summary::before {
content: '−'; /* Minus sign */
transform: rotate(180deg);
}
/* Hide default marker */
summary::-webkit-details-marker { display: none; }

details[open] summary {
border-bottom: 1px dashed #dee2e6;
}

details div {
padding: 20px;
line-height: 1.8;
}
details p { margin-bottom: 1em; }
details p:last-child { margin-bottom: 0; }

/* Article List Styling for Index Page */
.article-list {
list-style: none;
padding: 0;
margin-top: 25px;
}

.article-list li {
background-color: #fff;
border: 1px solid var(--accent-color-light-purple);
border-radius: var(--border-radius);
padding: 20px;
margin-bottom: 20px;
box-shadow: var(--box-shadow);
transition: transform var(--transition-speed) ease-in-out, box-shadow var(--transition-speed) ease-in-out;
}

.article-list li:hover {
transform: translateY(-6px);
box-shadow: var(--box-shadow-hover);
}

.article-list h3 {
margin-top: 0;
margin-bottom: 8px;
font-size: 1.4em;
color: var(--primary-color);
}

.article-list h3 a {
text-decoration: none;
color: inherit;
display: inline-flex;
align-items: center;
gap: 8px;
}
.article-list h3 a:hover {
color: var(--accent-color-pink);
text-decoration: none;
}
.article-list h3 a i {
font-size: 0.8em;
color: var(--accent-color-light-blue);
}

.article-list p.excerpt {
margin-bottom: 15px;
text-align: left;
color: var(--text-color-light);
font-size: 0.95em;
line-height: 1.6;
}

.article-list .read-more {
display: inline-flex;
align-items: center;
gap: 6px;
font-family: 'Pyidaungsu";
font-weight: bold;
color: var(--secondary-color-darker);
text-decoration: none;
background-color: var(--toc-bg);
padding: 6px 12px;
border-radius: 20px;
border: 1px solid var(--toc-border);
transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, transform 0.2s ease;
font-size: 0.9em;
}

.article-list .read-more i {
    font-family: 'Pyidaungsu";
font-size: 0.9em;
transition: transform var(--transition-speed) ease;
}

.article-list .read-more:hover {
background-color: var(--accent-color-pink);
color: white;
text-decoration: none;
border-color: var(--accent-color-pink-darker);
transform: translateX(4px); 
}
.article-list .read-more:hover i {
transform: rotate(360deg);
}

/* Contact Info Section */
.contact-info {
margin-bottom: 30px;
padding: 20px;
background-color: var(--highlight-bg);
border-radius: var(--border-radius);
border: 1px solid var(--accent-color-light-purple);
}
.contact-info h2 {
color: var(--primary-color);
margin-top: 0;
margin-bottom: 15px;
font-size: 1.4em;
border-bottom: 1px solid var(--accent-color-light-purple);
padding-bottom: 8px;
padding-left: 0;
border-left: none;
}
.contact-info p {
margin-bottom: 10px;
font-size: 1em;
line-height: 1.7;
}
.contact-info i {
margin-right: 10px;
color: var(--primary-color);
width: 20px;
text-align: center;
}
.contact-info a {
color: var(--secondary-color-darker);
text-decoration: none;
font-weight: bold;
}
.contact-info a:hover {
color: var(--accent-color-pink);
text-decoration: underline;
}

/* Social Media Links */
#social-media-section {
text-align: center;
padding: 25px 15px;
background-color: var(--footer-bg);
margin-top: 30px;
border-radius: var(--border-radius);
}
#social-media-section h3 {
margin-top: 0;
margin-bottom: 15px;
color: var(--text-color);
font-size: 1.3em;
}
.social-links a {
color: var(--secondary-color);
font-size: 1.6em;
margin: 0 12px;
text-decoration: none;
transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
display: inline-block;
}
.social-links a:hover {
color: var(--accent-color-pink);
transform: scale(1.2) rotate(-10deg);
}

/* Visual Separator */
hr.section-divider {
border: 0;
height: 1px;
background-image: linear-gradient(to right, rgba(126, 87, 194, 0), rgba(126, 87, 194, 0.2), rgba(126, 87, 194, 0)); /* Lavender gradient */
margin: 40px 0;
}

/* --- Notification Banner Styles --- */
#notification-banner { background-color: var(--info-bg-color); color: var(--info-text-color); border: 1px solid var(--info-border-color); padding: 15px 40px 15px 20px; margin: -10px 0 25px 0; border-radius: 5px; position: relative; display: block; opacity: 1; transition: opacity 0.5s ease-out, transform 0.5s ease-out, margin-top 0.5s ease-out; }
#notification-banner.hidden { opacity: 0; transform: translateY(-20px); margin-top: -50px; padding-top: 0; padding-bottom: 0; border: none; z-index: -1; }
#notification-banner i { margin-right: 10px; }
#close-notification-btn { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); background: none; border: none; font-size: 1.5em; color: inherit; cursor: pointer; padding: 0 5px; line-height: 1; opacity: 0.7; }
#close-notification-btn:hover { opacity: 1; }

/* --- Announcement & Statement List Styles --- */
.announcement-list, .statements-list { margin-top: 20px; }
.announcement-item, .statement-item { background-color: #fff; border: 1px solid var(--border-color); border-radius: 5px; padding: 20px 25px; margin-bottom: 25px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.announcement-item { border-left: 5px solid var(--primary-color); }
.statement-item { border-left: 5px solid var(--anime-accent-purple); }
.item-meta { font-size: 0.85em; color: var(--secondary-color); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px dashed #eee; }
.item-meta i { margin-right: 6px; }
.item-body p, .item-body ul { margin-bottom: 1em; color: #343a40; }
.item-body ul { margin-left: 20px; list-style: disc; }
.item-body li { margin-bottom: 0.5em; }
.item-body p:last-child, .item-body ul:last-child { margin-bottom: 0; }
.no-items { text-align: center; color: var(--secondary-color); font-style: italic; padding: 30px; }
.item-body strong { color: var(--primary-hover-color); }

/* Footer */
footer {
/* --- Color Theme Variables --- */
--footer-bg: #2c1f3e; /* Deep indigo/purple background */
--footer-text: #e0d6f9; /* Light lavender text */
--footer-heading: #c8b0ff; /* Brighter lavender/purple heading */
--footer-link: #a695e0; /* Medium purple link */
--footer-link-hover: #ffffff; /* White link hover */
--footer-border: #5a4a75; /* Muted purple border */
--footer-social-icon: #9177ff; /* Vibrant purple/blue social icon */
--footer-social-icon-hover: #ffffff; /* White social icon hover */
--footer-context-text: #b0a5cc; /* Softer lavender context text */
--gradient-start: #8ecae6; /* Soft blue */
--gradient-mid: #a695e0; /* Medium purple */
--gradient-end: #ffafcc; /* Soft pink */

/* --- Base Styles --- */
background-color: var(--footer-bg);
color: var(--footer-text);
padding: 50px 20px 20px 20px;
margin-top: 60px;
font-size: 0.95em;
line-height: 1.6;
border-top: 3px solid var(--footer-border);
}

.footer-container {
max-width: 1140px; 
margin: 0 auto;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 30px;
}

.footer-section {
flex: 1;
min-width: 200px;
margin-bottom: 25px;
}

.footer-section h4 {
color: var(--footer-heading);
font-size: 1.15em;
margin-top: 0;
margin-bottom: 18px;
border-bottom: 1px solid var(--footer-border);
padding-bottom: 10px;
font-weight: 600;
}

/* --- Footer Links Styling --- */
.footer-links {
display: flex;
flex-wrap: wrap;
gap: 25px;
flex-basis: 40%;
}
.footer-links ul {
list-style: none;
padding: 0;
margin: 0 0 10px 0;
flex: 1;
min-width: 150px;
}
.footer-links li {
margin-bottom: 10px;
}
.footer-links a {
color: var(--footer-link);
text-decoration: none;
transition: color 0.2s ease, padding-left 0.2s ease, text-decoration 0.2s ease;
}
.footer-links a:hover {
color: var(--footer-link-hover);
text-decoration: underline;
padding-left: 5px;
}
.footer-links a.back-to-top {
font-weight: bold;
display: inline-block;
margin-top: 10px;
}
.footer-links a.back-to-top i {
margin-left: 6px;
vertical-align: middle;
}


/* --- Social Media Links Styling --- */
.footer-social {
text-align: left;
flex-basis: 20%;
min-width: 180px;
}
.social-links-footer a {
color: var(--footer-social-icon);
font-size: 1.9em;
margin: 0 12px 12px 0;
text-decoration: none;
transition: color 0.3s ease, transform 0.2s ease;
display: inline-block;
}
.social-links-footer a:hover {
color: var(--footer-social-icon-hover);
transform: scale(1.15) rotate(5deg);
}
.footer-tagline {
margin-top: 15px;
font-style: italic;
font-size: 0.9em;
color: var(--footer-context-text);
}

#clock {
font-family: 'Nunito', Arial, sans-serif;
font-size: 1.3rem;
color: #ffffff;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
background: linear-gradient(135deg, #caa6f7 0%, #89b4fa 100%);
padding: 12px 25px;
display: inline-block;
margin-top: 20px;
border: none;
border-radius: 25px;
box-shadow: 3px 5px 10px rgba(108, 112, 134, 0.3);
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#clock:hover {
transform: translateY(-2px);
box-shadow: 4px 7px 12px rgba(108, 112, 134, 0.4);
}

.fa-clock {
margin-right: 10px;
color: #ffffff;
vertical-align: middle;
}
/* --- Footer Info Styling --- */
.footer-info {
flex-basis: 30%;
min-width: 220px;
text-align: left;
}
.footer-info p {
margin-bottom: 12px;
}
.footer-context {
font-size: 0.88em;
color: var(--footer-context-text);
margin-top: 15px;
}
.footer-context i {
margin-right: 8px;
width: 16px;
text-align: center;
color: var(--footer-link);
}

.footer-bottom-bar {
height: 4px;
background: linear-gradient(to right, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
margin-top: 25px;
border-radius: 2px;
}
@media (max-width: 768px) {
footer {
padding: 40px 15px 15px 15px;
text-align: center;
}
.footer-container {
flex-direction: column;
align-items: center;
gap: 20px;
}
.footer-section {
min-width: 90%;
margin-bottom: 20px;
text-align: center;
}
.footer-section h4 {
margin-left: auto;
margin-right: auto;
display: inline-block;
border-bottom-width: 2px;
}
.footer-links {
flex-basis: auto;
justify-content: center;
flex-direction: column;
align-items: center;
gap: 15px;
width: 100%;
}
.footer-links ul {
text-align: center;
width: auto;
margin-bottom: 15px;
min-width: unset;
}
.footer-social {
flex-basis: auto;
text-align: center;
width: 100%;
}
.social-links-footer a {
margin: 5px 10px;
font-size: 1.8em;
}
.footer-info {
flex-basis: auto;
text-align: center;
width: 100%;
}
.footer-context i {
margin-right: 5px;
}
}

@media (max-width: 480px) {
footer {
padding: 30px 10px 10px 10px;
font-size: 0.9em;
}
.footer-section h4 {
font-size: 1.1em;
}
.social-links-footer a {
font-size: 1.7em;
margin: 5px 8px;
}
.footer-bottom-bar {
margin-top: 20px;
}
}
/*------------------------------------*\
#RESPONSIVE DESIGN (min-width)
\*------------------------------------*/

/* Tablet Styles (e.g., 768px and up) */
@media (min-width: 768px) {
body {
    font-family: 'Pyidaungsu";
font-size: 16.5px;
}

.container {
padding: 40px 30px;
margin: 30px auto;
}

h1 { font-size: 2.4em; }
.subtitle { font-size: 1.1em; }
h2 { font-size: 1.9em; }
h2.part-heading { font-size: 1.8em; }
h3 { font-size: 1.5em; }
h3.sub-list-title { font-size: 1.25em; }

.menu-toggle {
display: none;
}
#nav-menu {
display: flex !important;
flex-direction: row;
position: static;
width: auto;
background: none;
box-shadow: none;
padding: 0;
}
#nav-menu li {
margin: 0 10px;
width: auto;
border-bottom: none;
}
#nav-menu li a {
padding: 8px 12px;
font-size: 1.05em;
justify-content: flex-start;
}
.main-nav {
justify-content: space-around;
padding: 12px 30px;
}
#search-bar {
width: 60%;
max-width: 500px;
}
#search-button {
padding: 10px 22px;
}

.articles-grid-container {
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 2+ columns */
gap: 25px;
}
#explore-topics .topic-grid {
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* More columns */
gap: 20px;
}
.topic-box i { font-size: 2em; }

.toc { padding: 25px 35px; }
.toc h3 { font-size: 1.7em; }
.toc li a { font-size: 1.1em; }

.article-list li { padding: 25px 30px; }
article-list h3 { font-size: 1.6em; }
article-list p.excerpt { font-size: 1em; }

#backToTopBtn { bottom: 25px; right: 25px; width: 50px; height: 50px; font-size: 1.5em; }

.content-table { display: table; /* Revert for larger screens */ overflow-x: visible; }
.social-links a { font-size: 1.8em; margin: 0 15px; }
}

/* Desktop Styles (e.g., 1024px and up) */
@media (min-width: 1024px) {
body {
font-size: 17px;
}
.container {
padding: 50px 60px;
margin: 40px auto;
}

h1 { font-size: 2.8em; padding-bottom: 15px; }
h2 { font-size: 2.2em; padding-left: 15px; border-left-width: 6px; gap: 12px; }
h2.part-heading { font-size: 2em; }
h3 { font-size: 1.7em; }
h3.sub-list-title { font-size: 1.35em; }

p { line-height: 1.8; }

#nav-menu li { margin: 0 15px; }
#nav-menu li a { font-size: 1.1em; gap: 8px; }

.article-list h3 { font-size: 1.7em; }

hr.section-divider { margin: 60px 0; }
footer { padding: 30px 20px; font-size: 0.95em; }
}

/*------------------------------------*\
#PRINT STYLES
\*------------------------------------*/
@media print {
:root { /* Reset variables for print */
--primary-color: #000000;
--secondary-color: #000000;
--accent-color-pink: #000000;
--text-color: #000000;
--container-bg: #ffffff;
--nav-bg: #ffffff;
--footer-bg: #ffffff;
--highlight-bg: #f0f0f0;
--toc-bg: #f0f0f0;
--example-bg: #f5f5f5;
--exercise-bg: #f5f5f5;
--answer-bg: #f5f5f5;
body { background: none; color: #000; padding-top: 0; font-size: 11pt; line-height: 1.5; }
#progressBarContainer, #backToTopBtn, .toc, footer .date-location { display: none; }
.container { max-width: 100%; margin: 0; padding: 0; box-shadow: none; border: none; }
h1, h2, h3 { color: #000; border: none; padding: 0; margin-top: 1.5em; margin-bottom: 0.8em; page-break-after: avoid; font-family: sans-serif; }
h1 { text-align: left; font-size: 1.6em; }
h2 { font-size: 1.4em; } h3 { font-size: 1.1em; font-style: normal;}
blockquote { border-left: 3px solid #ccc; background-color: #f9f9f9; padding: 10px; font-style: normal; color: #333; page-break-inside: avoid; box-shadow: none; }
a { color: #000; text-decoration: underline; word-break: break-word; }
ul li::before { content: '- '; position: static; padding-left: 0; margin-right: 5px; font-size: 1em; color: #000; }
ul li, ol li { padding-left: 10px; }
.styled-list ul li::before { content: '• '; }
.references-list li::before { content: ''; margin-right: 0;}
footer p { font-size: 0.8em; color: #555; }
.read-time { display: none; }
}

body { background: none !important; color: #000; padding-top: 0 !important; font-size: 11pt; line-height: 1.4; font-family: serif; } /* Serif often better for print */
#progressBarContainer, #backToTopBtn, .toc, footer .date-location, .main-nav, .menu-toggle, #search-section, .article-list .read-more, .read-time, .social-links, #social-media-section, .placeholder-link, .topic-box span.topic-count, .js-required-note, .pagination-container, .content-display-area .loading-message { display: none !important; }

.container { max-width: 100% !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; border: none !important; background-color: transparent !important; }
h1, h2, h3, h4, h5, h6 { color: #000 !important; border: none !important; padding: 0 !important; margin-top: 1.2em; margin-bottom: 0.6em; page-break-after: avoid; font-family: sans-serif; /* Sans-serif headings can be okay */ }
h1 { text-align: left; font-size: 16pt; }
.subtitle { font-size: 11pt; font-style: normal; text-align: left; color: #333; margin-bottom: 1em; }
h2 { font-size: 14pt; }
h3 { font-size: 12pt; }
p { text-align: left; orphans: 3; widows: 3; font-size: 11pt; margin-bottom: 1em; }
a { color: #000 !important; text-decoration: underline !important; font-weight: normal; }
a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; } /* Show external links */
a[href^="#"] { text-decoration: none !important; } /* Hide internal links */

blockquote { border: 1px solid #ccc !important; border-left: 3px solid #ccc !important; background-color: #f9f9f9 !important; padding: 10px; font-style: normal; color: #333 !important; page-break-inside: avoid; box-shadow: none !important; }
blockquote::before { display: none !important; }
blockquote p { padding-left: 0; }

ul, ol { padding-left: 25px; }
li { margin-bottom: 0.5em; }
ul li { list-style: disc !important; padding-left: 5px; }
ul li::before { content: none !important; }
ol li { list-style: decimal !important; }
.icon-list { padding-left: 25px; }
.icon-list li { padding-left: 5px; }
.icon-list li i { display: none !important; }

.content-table { display: table; width: 100%; border: 1px solid #999 !important; box-shadow: none !important; margin: 15px 0; page-break-inside: avoid; }
.content-table th, .content-table td { border: 1px solid #aaa !important; padding: 5px 8px; font-size: 10pt; font-family: 'Pyidaungsu";}
.content-table th { background-color: #eee !important; color: #000 !important; font-weight: bold; font-family: 'Pyidaungsu";}
.content-table tr:nth-child(even) { background-color: #fff !important; }

.example, .exercise, .answers { border: 1px solid #ccc !important; background: #f9f9f9 !important; padding: 10px; margin: 10px 0; page-break-inside: avoid; }

.article-list li { border: 1px solid #ccc !important; box-shadow: none !important; margin-bottom: 15px; padding: 15px; page-break-inside: avoid; background-color: transparent !important; }
.article-list h3 { font-size: 13pt; }
.article-list p.excerpt { font-size: 10pt; color: #333; }
}