/* =========================
   Reset & Base
========================= */
body,
h1,
h2,
h3,
p,
ul,
li {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Sarabun", sans-serif;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =========================
   Header
========================= */
.site-header {
    background: #0056b3; /* Corporate Blue */
    padding: 15px 0;
    color: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.site-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}

/* Main Menu */
.site-header .main-nav ul {
    list-style: none;
    display: flex;
}

.site-header .main-nav ul li {
    padding: 0 15px;
    font-size: 15px;
    position: relative;
}

/* Divider between menu items */
.site-header .main-nav ul li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 30%;
    height: 40%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #a7c7ff, transparent);
}

/* Menu Links */
.site-header .main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

/* Underline animation */
.site-header .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #ffcc00;
    transition: width 0.3s ease;
}

.site-header .main-nav a:hover {
    color: #ffcc00;
}

.site-header .main-nav a:hover::after {
    width: 100%;
}

/* =========================
   Hero Section
========================= */
.hero {
    background: #0056b3;
    color: #fff;
    text-align: center;
    padding: 20px 20px 40px;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 15px;
}

.search-box {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 10px auto 0;
}

.search-box input {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 6px 0 0 6px;
}

.search-box button {
    background: #ff8000;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #e56e00;
}

/* =========================
   Stats
========================= */
.stats {
    background: #fff;
    padding: 40px 20px;
    text-align: center;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.stat-box {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px 25px;
    max-width: 220px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
    flex: 1 1 200px;
}

.stat-box h2 {
    font-size: 26px;
    color: #0056b3;
    margin-bottom: 6px;
}

.stat-box p {
    font-size: 15px;
    color: #555;
}

/* =========================
   Section Titles
========================= */
.popular-companies h2,
.categories h2,
.articles h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #222;
    text-align: center;
    font-weight: 600;
    position: relative;
}

.popular-companies h2::after,
.categories h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #ff8000;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* =========================
   Companies & Categories
========================= */
.company-grid,
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.company-card,
.category-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 18px 22px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
    cursor: pointer;
}

.company-card:hover,
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    background: #fdfdfd;
}

.company-card small,
.category-card small {
    display: block;
    font-size: 13px;
    color: #777;
    margin-top: 6px;
}

/* =========================
   Articles
========================= */
.articles {
    padding: 40px 20px;
}

.article-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.article-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #0056b3;
}

.article-card p {
    font-size: 14px;
    color: #777;
}

/* Button */
.btn-primary {
    display: inline-block;
    background: #ff8000;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #e56e00;
}

/* =========================
   Footer
========================= */
.site-footer {
    background: #0056b3;
    color: #fff;
    padding: 40px 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer-about,
.footer-links,
.footer-social {
    font-size: 14px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-links ul li a:hover {
    text-decoration: underline;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
    .site-header .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input,
    .search-box button {
        border-radius: 6px;
        margin: 5px 0;
    }
}
