/* ================================
   GLOBAL
   ================================ */

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #F4F6F3;          /* warm off-white */
    color: #2C2C2C;               /* soft charcoal */
}

/* ================================
   HEADER
   ================================ */

header {
    background: #FFFFFF;
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid #E5E7EB;
}

header img {
    max-height: 55px;
}

/* ================================
   NAVIGATION
   ================================ */

nav {
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    padding: 14px;
    display: flex;
    justify-content: center;
    gap: 22px;
}

nav a {
    text-decoration: none;
    color: #6F8F7A;               /* sage green */
    font-weight: 500;
    font-size: 17px;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #2F5F55;
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
    padding: 70px 20px 40px;
    text-align: center;
}

.hero h1 {
    color: #6F8F7A;
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 14px;
}

.hero p {
    font-size: 20px;
    max-width: 720px;
    margin: auto;
    color: #4B5563;
}

/* ================================
   CATEGORY CARDS
   ================================ */

.category-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 38px;
    text-align: center;
    border: 1px solid #E5E7EB;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(111,143,122,0.18);
}

.category-card h3 {
    margin: 0;
    font-size: 22px;
    color: #6F8F7A;
}

.category-card p {
    margin-top: 10px;
    color: #6B7280;
    font-size: 16px;
}

/* ================================
   STOCK GRID (DO NOT CHANGE)
   ================================ */

.stock-grid {
    max-width: 1400px;
    margin: 60px auto 90px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 48px;
    padding: 0 20px;
}

/* ================================
   STOCK CARDS (SAFE HOVER)
   ================================ */

.stock-card {
    background: #FFFFFF;
    border-radius: 22px;
    padding-bottom: 26px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stock-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(111,143,122,0.28);
}

.stock-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 22px 22px 0 0;
    margin-bottom: 14px;
}

.stock-card h3 {
    font-size: 20px;
    color: #2F5F55;
    margin: 10px 22px 8px 22px;
    text-transform: capitalize;
}

.stock-card a {
    display: inline-block;
    margin-left: 22px;
    font-weight: 600;
    text-decoration: none;
    color: #6F8F7A;
}

/* ================================
   ARTICLE PAGE
   ================================ */

.article-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 42px;
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.article-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #2F5F55;
    margin-bottom: 10px;
}

.article-date {
    text-align: center;
    font-size: 15px;
    color: #9CA3AF;
    margin-bottom: 30px;
}

#pfp-article-img {
    width: 100%;
    max-width: 900px;
    height: 360px;
    object-fit: cover;
    display: block;
    margin: 0 auto 45px auto;
    border-radius: 16px;
}

.article-body {
    font-size: 20px;
    line-height: 1.75;
    color: #374151;
}

.article-body p {
    margin-bottom: 20px;
}

/* ================================
   FOOTER
   ================================ */

footer {
    margin-top: 70px;
    background: #FFFFFF;
    color: #6B7280;
    padding: 28px;
    text-align: center;
    border-top: 1px solid #E5E7EB;
}
