/* =============================
   Basic Style&Global Layout
============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #fdfdfd;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =============================
   Header
============================= */
header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .site-logo {
    font-size: 1.8em;
    font-weight: bold;
}

header nav a {
    margin-left: 15px;
    color: #fff;
    font-weight: 500;
}

header nav a:hover {
    color: #ffd600;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.site-brand {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
}

.site-logo a {
    font-size: 46px;
    font-weight: 800;
    color: #111827;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.site-tagline {
    font-size: 13px;
    color: #6b7280;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 10px;
    border-radius: 6px;
}

.main-nav a:hover {
    background: #f3f4f6;
    color: #1d4ed8;
    text-decoration: none;
}

@media (max-width: 768px) {
    .header-container {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .main-nav {
        justify-content: flex-start;
        gap: 4px;
    }

    .main-nav a {
        font-size: 14px;
        padding: 7px 8px;
    }

    .site-logo a {
        font-size: 36px;
    }

    .site-tagline {
        font-size: 12px;
    }
}




/* =============================
   Main
============================= */
main {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 15px;
}

h1, h2, h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 25px 0;
}

/* =============================
   Lists
============================= */
ul {
    list-style-type: none;
}

ul li {
    margin-bottom: 10px;
}

ul li a {
    display: inline-block;
}

/* =============================
   Cards / Entries
============================= */
.entry {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    transition: box-shadow 0.2s ease;
}

.entry:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.entry h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.entry p {
    font-size: 0.95em;
    color: #555;
}

/* =============================
   Ads
============================= */
.ad-block {
    border: 1px dashed #ccc;
    background: #fafafa;
    color: #777;
    padding: 18px;
    margin: 25px 0;
    text-align: center;
}


/* =============================
   Footer
============================= */
.site-footer {
    background: #111827;
    color: #d1d5db;
    margin-top: 48px;
    padding: 48px 20px 24px;
}

.footer-container {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
}

.footer-section h3 {
    margin-bottom: 14px;
    font-size: 17px;
    color: #ffffff;
}

.footer-section p {
    color: #9ca3af;
    font-size: 15px;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 9px;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 15px;
}

.footer-section a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-about p {
    max-width: 360px;
}

.footer-bottom {
    max-width: 1180px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid #374151;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 6px;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 36px 16px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        text-align: left;
    }
}


/* =============================
   Breadcrumb
============================= */
.breadcrumb {
    font-size: 0.9em;
    margin-bottom: 15px;
}

.breadcrumb a {
    color: #1a73e8;
}






/* =============================
   Responsive / Mobile
============================= */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    header nav {
        margin-top: 10px;
    }
    main {
        padding: 0 10px;
    }
	
	.header-container{
    flex-direction:column;
    align-items:flex-start;
    gap:15px;
	}
	
	.main-nav{
		gap:15px;
	}

	
}


/* =============================
   Directory Grid
============================= */

.directory-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:20px;
    margin-top:20px;
}

.directory-card{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:10px;
    padding:22px;
    transition:all .2s ease;
}

.directory-card:hover{
    border-color:#2563eb;
    box-shadow:0 8px 24px rgba(0,0,0,.06);
}

.directory-card h3{
    margin:0 0 10px;
    font-size:20px;
}

.directory-card p{
    color:#6b7280;
    margin-bottom:16px;
}

.directory-button{
    display:inline-block;
    padding:8px 14px;
    border-radius:6px;
    background:#2563eb;
    color:#fff!important;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
}

.directory-button:hover{
    background:#1d4ed8;
    text-decoration:none;
}


/* =============================
   Page Layout
============================= */

.page-layout {
    max-width: 1180px;
    margin: 28px auto;
    padding: 0 20px;
}

.page-hero {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 28px;
}

.page-hero h1 {
    margin-top: 0;
    font-size: 34px;
    letter-spacing: -0.6px;
    color: #111827;
}

.page-hero p {
    max-width: 860px;
    color: #4b5563;
    margin-bottom: 12px;
}

.content-section {
    margin: 34px 0;
}

.content-section h2 {
    font-size: 26px;
    color: #111827;
    margin-bottom: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 18px;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

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

/* =============================
   Listings
============================= */

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.listing-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px;
    transition: all .2s ease;
}

.listing-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}

.listing-card h3 {
    margin-top: 0;
    font-size: 21px;
    line-height: 1.35;
}

.listing-card p {
    margin-bottom: 8px;
    color: #4b5563;
}

.text-link {
    display: inline-block;
    margin-top: 8px;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.empty-message {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 18px;
    border-radius: 10px;
    color: #6b7280;
}

/* =============================
   Link Cards / FAQ
============================= */

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.link-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
    color: #1f2937;
    font-weight: 600;
    text-decoration: none;
}

.link-card:hover {
    border-color: #2563eb;
    color: #1d4ed8;
    background: #f8fafc;
    text-decoration: none;
}

.faq-item {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 18px 0;
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #111827;
}

.faq-item p {
    color: #4b5563;
}

@media (max-width: 768px) {
    .page-layout {
        margin: 20px auto;
        padding: 0 16px;
    }

    .page-hero {
        padding: 22px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .content-section h2 {
        font-size: 23px;
    }
}


/* =============================
   Static Content Pages
============================= */

.page-content {
    max-width: width: 100%;
    margin: 0 auto;
}

.page-section {
    margin: 34px 0;
}

.content-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 22px;
}

.content-card h2 {
    margin-top: 0;
    color: #111827;
}

.content-card p {
    color: #4b5563;
    margin-bottom: 12px;
}

.notice-box {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    padding: 18px 20px;
    border-radius: 8px;
    color: #4b5563;
    margin: 24px 0;
}

.contact-box,
.submit-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.contact-box p,
.submit-box p {
    margin-bottom: 10px;
    color: #4b5563;
}

.content-list {
    list-style: disc;
    padding-left: 22px;
    margin: 14px 0 20px;
}

.content-list li {
    margin-bottom: 10px;
    color: #4b5563;
}

.content-list li a {
    display: inline;
}

@media (max-width: 768px) {
    .content-card,
    .contact-box,
    .submit-box {
        padding: 20px;
    }
}


/* =============================
   Pagination
============================= */
/* =============================
   Pagination correct
============================= */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centered page breaks */
    align-items: center;
    gap: 8px;
    margin: 30px 0 10px;
}

.pagination a,
.pagination b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.pagination a:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #f8fafc;
}

.pagination b {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* Total number button special style */
.pagination a[title="Total record"],
.pagination b[title="Total record"] {
    min-width: auto;
    padding: 0 10px;
    background: #f3f4f6;
    color: #6b7280;
    font-weight: 500;
    border: 1px solid #e5e7eb;
}

/* Pagination total record fix */
.pagination a[title="Total record"] {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
}

.pagination a[title="Total record"] b {
    background: transparent;
    border: none;
    color: #6b7280;
    min-width: auto;
    height: auto;
    padding: 0;
}

/* =============================
   Mobile Header Fix
============================= */
@media (max-width: 768px) {
    .site-header {
        position: static !important; /* cancel sticky */
        top: auto !important;
        z-index: auto; /* Avoid coverage */
    }
}