/*!
Theme Name: CSEguideNov2026
Theme URI: https://www.webicules.com
Author: Webicules Technology
Author URI: https://www.webicules.com
Description: CSEguide Nov 2026
Version: 1.0
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.2
License: GPL version 2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0
Tags: custom-background, custom-colors, featured-images, flexible-header, microformats, post-formats, rtl-language-support, theme-options, translation-ready, accessibility-ready
Text Domain: cse-guide-nov-2026
https://materialui.co/colors/

*/

:root {
    --site-width: 1100px;
    --reading-width: 700px;
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --bg1: #ffffff;
    --text: #202124;
    --muted: #5f6368;
    
    --link: #0b57d0;
    --link-hover: #0842a0;
    --link-visited: #5b21b6;
    --focus: #111827;
    
    --border: #dfe3e8;
    --radius: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg1); color: var(--text); font-family: var(--font-system); font-size: 1rem; line-height: 1.65; }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
button, input, textarea, select { font: inherit; }

h1 { margin: 0; padding: 0; font-size: 2rem; line-height: 1.1; font-weight: 700; }
h2 { margin: 0; padding: 0; font-size: 1.4rem; line-height: 1.1; font-weight: 700;}
h3 { margin: 0; padding: 0; font-size: 1.3rem; line-height: 1.1; font-weight: 700;}
h4 { margin: 0; padding: 0; font-size: 1.2rem; line-height: 1.1; font-weight: 700;}
h5 { margin: 0; padding: 0; font-size: 1.1rem; line-height: 1.1; font-weight: 700; }

p { margin: 0; padding: 0 0 1.2rem 0; font-size: 1.05rem; line-height: 1.5; }

a { color: var(--link); text-decoration: underline; }
a:hover { color: var(--link-hover); }
a:visited { color: var(--link-visited); }
a:focus-visible { outline: 3px solid #111827; outline-offset: 3px; }

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.container { width: min(100% - 2rem, var(--reading-width)); margin-inline: auto; min-width: 0; }

/* SITE HEADER */
.site-header { padding: 0 1rem; background: #fff; border-bottom: 1px solid #ccc; }
.container-header { width: min(100%, var(--site-width)); margin-inline: auto; min-width: 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }

.site-branding { min-width: 0; margin: 0; padding: 0; }
.site-branding img { display: block; float: left; width: 64px; }
.site-branding a { margin: 0; padding: 0; color: var(--text); font-size: 24px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.site-title { display: block; margin: 0; padding: 0; }
.site-description { display: block; margin: 0; padding: 0; color: var(--muted); font-size: 13px; line-height: 1.2; }

.custom-logo-link { display: block; }
.custom-logo { max-width: 180px; height: auto; }

/*  DESKTOP NAVIGATION */
.desktop-navigation { display: none; }
.primary-menu, .primary-menu ul { margin: 0; padding: 0; list-style: none; }
.primary-menu { display: flex; align-items: center; gap: 0.25rem; }
.primary-menu > li { position: relative; }
.primary-menu a { display: block; padding: 0.75rem 0.7rem; color: var(--text); font-size: 0.95rem; line-height: 1.2; text-decoration: none; font-weight: 600; }
.primary-menu a:hover, .primary-menu a:focus { color: var(--link); }
/* FIRST LEVEL DROPDOWN */
.primary-menu > li > ul { position: absolute; top: 100%; left: 0; z-index: 1000; min-width: 220px; margin: 0; padding: 0.5rem 0; background: #eee; border: 1px solid var(--border); visibility: hidden; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease; }
.primary-menu > li:hover > ul,
.primary-menu > li:focus-within > ul { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.primary-menu > li > ul > li { position: relative; }
.primary-menu > li > ul a { padding: 0.65rem 1rem; white-space: nowrap; }
.primary-menu > li > ul a:hover, .primary-menu > li > ul a:focus { background: #f5f5f5; }
/*  SECOND LEVEL DROPDOWN  */
.primary-menu > li > ul > li > ul { position: absolute; top: -0.5rem; left: 100%; z-index: 1001; min-width: 220px; margin: 0; padding: 0.5rem 0; background: #fff; border: 1px solid var(--border); visibility: hidden; opacity: 0; transform: translateX(4px); pointer-events: none; transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease; }
.primary-menu > li > ul > li:hover > ul,
.primary-menu > li > ul > li:focus-within > ul { visibility: visible; opacity: 1; transform: translateX(0); pointer-events: auto; }
/*  MOBILE NAVIGATION */
.mobile-navigation { position: relative; }
.menu-toggle {display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; cursor: pointer; list-style: none; color: var(--text); font-size: 0.875rem; font-weight: 600; }
.menu-toggle::-webkit-details-marker { display: none; }
.menu-icon { display: flex; flex-direction: column; gap: 4px; width: 22px; }
.menu-icon span { display: block; width: 22px; height: 2px; background: currentColor; }
/* MOBILE MENU PANEL */
.mobile-menu-panel { position: absolute; top: calc(100% + 12px); right: -16px; z-index: 2000; width: min(90vw, 360px); background: #fff; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.mobile-menu-list, .mobile-menu-list ul { margin: 0; padding: 0; list-style: none; }
.mobile-menu-list a { display: block; padding: 0.85rem 1rem; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.mobile-menu-list a:hover, .mobile-menu-list a:focus { color: var(--link); background: #f8f8f8; }
.mobile-menu-list .sub-menu { padding-left: 1rem; background: #fafafa; }
.mobile-menu-list .sub-menu .sub-menu { padding-left: 1rem; background: #f5f5f5; }
/* DESKTOP HEADER  */
@media (min-width: 900px) {
    .desktop-navigation { display: block; }
    .mobile-navigation { display: none; }
    .primary-menu .menu-item-has-children > a::after { content: "⌄"; margin-left: 0.4rem; font-size: 0.75em; }
    .primary-menu .sub-menu menu-item-has-children > a::after { content: "›"; float: right; margin-left: 1rem; }
    .primary-menu > li > ul { display: none; }
    .primary-menu > li:hover > ul, .primary-menu > li:focus-within > ul { display: block; }
}

 /*  Site Search */
.site-search-bar { width: 100%; padding: 0.75rem 0;  border-bottom: 1px solid #ccc; background: rgb(224, 226, 228); }
.search-form { display: flex; align-items: stretch; width: 100%; margin: 0; }
.search-form input[type="search"] { flex: 1 1 auto; min-width: 0; width: 100%; height: 42px; padding: 0 0.75rem; border: 1px solid #ccc; border-right: 0; border-radius: 4px 0 0 4px; background: #fff; color: #222; font: inherit; line-height: 1.4; }
.search-form input[type="search"]::placeholder { color: #777; }
.search-form input[type="search"]:focus { outline: 2px solid currentColor; outline-offset: -2px; }
.search-submit { flex: 0 0 auto; height: 42px; padding: 0 1rem; border: 1px solid #222; border-radius: 0 4px 4px 0; background: #222; color: #fff; font: inherit; font-weight: 600; line-height: 1; cursor: pointer; }
.search-submit:hover { opacity: 0.7; }
.search-submit:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Breadcrumb */
.bc10 { margin: 0.5rem 0 1.5rem 0;  }
.bc10 p { margin: 12px 0; padding: 0; color: #666; font-size: 0.9rem; line-height: 1.4; }
.rank-math-breadcrumb a { color: var(--muted); text-decoration: none; }
.rank-math-breadcrumb a:hover { color: var(--link); }
.rank-math-breadcrumb .separator { margin-inline: 0.4rem; color: var(--muted); }
.rank-math-breadcrumb .last { color: var(--text); }

/* Home Page */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.section-header h2 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.3;
}

.section-header a {
    flex-shrink: 0;
    color: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.section-header a:hover,
.section-header a:focus {
    text-decoration: underline;
}

.section-header a span {
    margin-left: 0.25rem;
}


/* Post List */
.archive-title h1 {  }
.archive-description { margin: 0.75rem 0 1rem 0; color: var(--muted); }

/* Single Post */
.post-title h1 { }
.post-excerpt { margin: var(--space-4) 0 0; color: var(--muted); font-size: 1.125rem; line-height: 1.6; }

.post-meta {}
.post-meta p { margin: 12px 0; padding: 0; color: #666; font-size: 0.9rem; line-height: 1.4; }

.img-single-post { margin: 1rem 0 2rem 0; border: 1px solid #ddd; }
.img-single-post img { width: 100%; height: auto; border-bottom: 1px solid #ddd; }
.img-single-post figcaption { background: #eee; padding: 8px 16px; font-size: 0.9rem; }

.post-content { margin-top: 2rem;}
.post-content p { }
.post-content h2 { margin: 2.5rem 0 1rem; font-size: 1.65rem; line-height: 1.25; }
.post-content h3 { margin: 2rem 0 0.75rem; font-size: 1.3rem; line-height: 1.3; }
.post-content h4 { margin: 1.5rem 0 0.5rem; font-size: 1.1rem; }
.post-content ul, .post-content ol { margin: 0 0 0 0.5rem; padding-left: 2.5rem;  }
.post-content li { font-size: 1rem; }
.post-content blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; background: rgb(251,238,203); border-top: 1px solid rgba(224,149,26,0.2); border-bottom: 1px solid rgba(224,149,26,0.2); border-right: 1px solid rgba(224,149,26,0.2); border-left: 4px solid rgb(224,149,26); border-radius: 6px; color: var(--muted); }
.post-content img { margin: 1.5rem 0; }

.table-responsive { width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; }
.table-responsive table { width: max-content; min-width: 100%; border-collapse: collapse; }
.table-responsive caption { margin-bottom: 0.75rem; text-align: left; font-weight: 600; }
.table-responsive th, .table-responsive td { padding: 0.65rem 0.75rem; border: 1px solid var(--border); text-align: left; vertical-align: top; white-space: normal; }
.table-responsive th { font-weight: 600; background: #f7f8fa; }

.post-tags-label { color: var(--muted); }
.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.875rem; }
.post-tags a { padding: 0.25rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; }

.post-categories ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 10px 10px 0; padding: 0; list-style: none; font-size: 0.875rem; }
.post-categories li { padding: 0; }
.post-categories a { padding: 0.25rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; }

/* Author Box */
.author-box { display: flex; align-items: flex-start; gap: 12px; margin: 2rem 0; padding: 1.25rem 0.6rem; border: 1px solid #e5e5e5;  border-radius: 8px; }
.author-avatar { flex: 0 0 96px; }
.author-avatar-img { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.author-content { flex: 1; min-width: 0; }
.author-name { margin: 0 0 0.35rem; font-size: 1.15rem; line-height: 1.3; }
.author-name a { color: inherit; text-decoration: none; }
.author-name a:hover { text-decoration: underline; } 
.author-description { margin: 0 0 0.65rem; font-size: 0.95rem; line-height: 1.6; }
.author-link { font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.author-link:hover { text-decoration: underline; }

/* Prev-Next Post */
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 2rem 0; border: 1px solid #ddd; border-radius: 8px; }
.post-nav-item { min-width: 0; padding: 12px 16px; }
.post-nav-item:hover { background: #eee; }
.post-nav-label { display: block; margin-bottom: 0.4rem; font-size: 0.8rem; font-weight: 600; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.04em; }
.post-nav-item a { display: block; font-size: 0.95rem; font-weight: 600; line-height: 1.5; text-decoration: none; }
.post-nav-item a:hover { text-decoration: underline; }
.post-nav-next { border-left: 1px solid #ddd; text-align: right; }

/* Related Articles */
.related-articles { margin: 2rem 0 0; }
.related-articles > h2 { margin: 0 0 1.25rem; font-size: 1.35rem; line-height: 1.3; }

/* Grid */
.related-articles-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.related-article { min-width: 0; border: 1px solid #ddd; border-radius: 8px; }
.related-article-image { display: block; margin-bottom: 0.75rem; overflow: hidden; }
.related-article-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-top-left-radius: 7px; border-top-right-radius: 7px; }
.related-article-title { padding: 0 16px; font-size: 1rem; line-height: 1.3; }
.related-article-title a { color: inherit; text-decoration: none; }
.related-article-title a:hover { text-decoration: underline; }
.related-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.5rem; font-size: 0.8rem; line-height: 1.4; padding: 6px 16px 12px 16px; }
.related-article-meta p {  font-size: 0.8rem; line-height: 1.4; }
.related-article-meta a { font-weight: 600; color: inherit; text-decoration: none; }
.related-article-meta a:hover { text-decoration: underline; }
.related-article-meta time { opacity: 0.75; }
.related-image-placeholder { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-top-left-radius: 7px; border-top-right-radius: 7px; background: rgb(224, 226, 228); margin-bottom: 0.75rem; overflow: hidden; }
@media (min-width: 768px) {
    .related-articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
}

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.pagination .page-numbers { display: inline-block; padding: 0.45rem 0.7rem; border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 0.875rem; }
.pagination .current { background: var(--text); color: #fff; }
.pagination a:hover { color: var(--link); }
.no-results { padding: 2rem 0; }

/* 404 PAGE */
.error-code { margin: 1rem auto; color: var(--muted); font-size: clamp(3rem, 12vw, 6rem); font-weight: 700; line-height: 1; text-align: center; }
.error-title { margin: 1rem auto; font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.2; text-align: center; }
.error-content { margin: 1rem auto; color: var(--muted); text-align: center; }

/* Footer */
.footer1 { margin-top: 40px; background: rgb(224,226,228); padding: 16px 0 32px 0; border-top: 1px solid #ccc; }
.footer1 h3 { padding: 12px 0 0 0; font-size: 18px; color: #333; }
.footer1 p { font-size: 15px; color: #333;  }

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.footer-column { min-width: 0; }

.footer-widget ul { list-style: none; padding: 0;margin: 0; }
.footer-widget1 li { margin-bottom: 9px; }
.footer-widget1 a { color: #d5dbe1; text-decoration: none; }
.footer-widget1 a:hover { color: #ffffff; text-decoration: underline; }

.footer2 { background: rgb(224,226,228); padding: 16px 0 32px 0; }
.footer-disclaimer { border-top: 1px solid #999; border-bottom: 1px solid #999; }
.footer-disclaimer h3 { padding: 12px 0 0 0; font-size: 18px; color: #333; }
.footer-disclaimer p { font-size: 15px; color: #333;  }
.footer-bottom { padding: 16px 0 32px 0; }
.footer-bottom p { font-size: 14px; color: #333; }
@media (min-width: 1024px) {
    .footer-description { padding: 30px 0; }
    .footer-widgets { padding: 35px 0; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
}
