/* Google Fonts loaded via <link> in header.php (non-blocking) */

:root {
    --primary: #20b2aa;
    --primary-dark: #178f88;
    --primary-light: #e0f5f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1 {
    font-family: 'Darumadrop One', sans-serif;
    color: #2c3e50;
    margin-bottom: 1rem;
}

h2 {
    margin-bottom: 0.5rem;
}

/* Header Styles */
header {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 0 0.3rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    text-decoration: none;
}

.logo a span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    color: white;
    margin: 0;
    font-size: 1.7rem;
    font-weight: 100;
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Main Content */
main {
    flex: 1;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-featured {
    background: #f8fffe;
    border-bottom: 1px solid #e0f5f4;
    padding: 0;
}

.hero-featured-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-featured-image a {
    display: block;
}

.hero-featured-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 8px;
}

.hero-featured-content h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.hero-featured-content h1 a {
    color: #2c3e50;
    text-decoration: none;
}

.hero-featured-content h1 a:hover {
    color: var(--primary);
}

.hero-featured-content p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.hero-read-more {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hero-read-more:hover {
    background-color: var(--primary-dark);
}

/* Top Featured */
.top-featured {
    padding: 1.5rem 0;
    background: white;
    border-bottom: 1px solid #eee;
}

.featured-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.featured-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.6rem;
}

.featured-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.featured-card a:hover h3 {
    color: var(--primary);
}

/* Article Grid */
.articles-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.article-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.article-card-content {
    padding: 1.2rem;
}

.article-card-content h3 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.article-card-content h3 a {
    color: inherit;
    text-decoration: none;
}

.article-card-content h3 a:hover {
    color: var(--primary);
}

.article-card-content p {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.article-card-content p a {
    color: inherit;
    text-decoration: none;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Editors Picks */
.editors-picks {
    padding: 3rem 0;
    background: #f8fffe;
}

.editors-picks h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* Aquatic Expert Board Section */
.vet-board-section {
    padding: 3rem 0;
    background: white;
}

.vet-board-content {
    text-align: center;
}

.vet-board-content h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.vet-board-content > p {
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.vet-process {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.process-step {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.process-arrow {
    color: var(--primary);
    font-size: 1.2rem;
}

.vet-team {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.vet-member {
    text-align: center;
}

.vet-member img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 3px solid var(--primary-light);
}

.vet-member h4 {
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.vet-member p {
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* Newsletter */
.newsletter-section {
    background: var(--primary);
    padding: 3rem 0;
    color: white;
}

.newsletter-content {
    text-align: center;
}

.newsletter-content h2 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.5rem;
}

.newsletter-content p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    max-width: 450px;
    margin: 0 auto;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #1a252f;
}

/* Category Highlight */
.category-highlight {
    padding: 3rem 0;
    background: #f8f9fa;
}

.category-highlight h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* Explore More */
.explore-more {
    padding: 3rem 0;
    background: white;
}

.explore-more h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 700;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.explore-card {
    padding: 0.8rem;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.explore-card:hover {
    border-color: var(--primary);
}

.explore-card h3 {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Stats Section */
.stats-section {
    background: var(--primary-light);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    margin: 0.8rem auto;
    max-width: 1200px;
    padding: 0 2rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-disclaimer {
    max-width: 900px;
    margin: 1rem auto 0;
    padding: 0 2rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

/* ---- Article page ---- */
.article-container {
    max-width: 820px;
    margin: 2rem auto;
    padding: 0 2rem 4rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-categories {
    margin-bottom: 0.8rem;
}

.category-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.category-tag:hover {
    background: var(--primary);
    color: white;
}

.category-tag-separator {
    color: #aaa;
    font-size: 0.8rem;
}

.article-header h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    color: #1a1a2e;
    margin-bottom: 0.8rem;
}

.article-subtitle {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-meta {
    font-size: 0.85rem;
    color: #999;
}

.article-meta a {
    color: var(--primary);
    text-decoration: none;
}

.cover-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: block;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.article-content h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 1.5rem 0 0.8rem;
    font-weight: 600;
}

.article-content h2.numbered {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.number-badge {
    display: inline-flex;
    align-items: baseline;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    padding: 0.1rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1.6;
}

.total-num {
    font-size: 0.7em;
    opacity: 0.7;
}

.article-content p {
    margin-bottom: 1.2rem;
}

.article-content ul, .article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content strong {
    color: #2c3e50;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.2rem;
    margin: 1.5rem 0;
    color: #555;
    font-style: italic;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.article-content table th,
.article-content table td {
    border: 1px solid #ddd;
    padding: 0.6rem 0.9rem;
    text-align: left;
}

.article-content table th {
    background: var(--primary-light);
    font-weight: 600;
    color: #2c3e50;
}

.article-content table tr:nth-child(even) {
    background: #f9fffe;
}

.article-content footer {
    background-color: white;
    color: #2c3e50;
    padding: 0;
    margin-top: auto;
    padding-top: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.article-footer-divider {
    text-align: center;
    margin: 2rem 0 1rem;
    color: var(--primary);
    font-size: 1.5rem;
    opacity: 0.5;
}

.article-tags {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--primary-light);
    border-radius: 6px;
    font-size: 0.9rem;
    color: #555;
}

.article-author {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: #f8fffe;
    border-radius: 8px;
    border: 1px solid var(--primary-light);
}

.article-author h3 {
    font-size: 1rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-author-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.article-author-text p {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: #555;
}

.author-view-more {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.nav-link:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.next-article {
    justify-content: flex-end;
    text-align: right;
}

.nav-arrow {
    font-size: 1.3rem;
    color: var(--primary);
    flex-shrink: 0;
}

.nav-content {
    display: flex;
    flex-direction: column;
}

.nav-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

/* nameslist OL */
.article-content ol.nameslist {
    list-style: none;
    margin-left: 0;
    padding: 0;
    column-count: 3;
    column-gap: 0.75rem;
}
.article-content ol.nameslist.cols-2 { column-count: 2; }
.article-content ol.nameslist.cols-3 { column-count: 3; }
.article-content ol.nameslist.cols-4 { column-count: 4; }
.article-content ol.nameslist.cols-5 { column-count: 5; }

.article-content ol.nameslist li {
    background: #f0fafa;
    padding: 0.9rem 1.2rem 0.9rem 3.2rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #2c3e50;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    position: relative;
    break-inside: avoid;
}
.article-content ol.nameslist li:before {
    content: counter(list-item);
    position: absolute;
    left: 1rem;
    top: 50%;
    margin-top: -0.75rem;
    font-size: 11px;
    background: #20b2aa;
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
@media (max-width: 768px) {
    .article-content ol.nameslist,
    .article-content ol.nameslist.cols-2,
    .article-content ol.nameslist.cols-3,
    .article-content ol.nameslist.cols-4,
    .article-content ol.nameslist.cols-5 {
        column-count: 1;
    }
}

/* ---- Category page ---- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* ---- Author page ---- */
.author-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 3rem 0 2rem;
}

.author-header img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.author-header p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Privacy / Terms */
.legal-page {
    max-width: 820px;
    margin: 3rem auto;
    padding: 0 2rem 4rem;
}

.legal-page h1 {
    margin-bottom: 0.5rem;
}

.legal-page .last-updated {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 2rem 0 0.8rem;
}

.legal-page p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-page ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #555;
}

.legal-page li {
    margin-bottom: 0.4rem;
}

/* Visits page */
.visits-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Hamburger menu (mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0.8rem;
        z-index: 100;
    }

    .nav-menu.open {
        display: flex;
    }

    header {
        position: relative;
    }

    nav {
        flex-wrap: wrap;
    }

    .hero-featured-container {
        grid-template-columns: 1fr;
    }

    .hero-featured-image img {
        height: 250px;
    }

    .featured-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid-3 {
        grid-template-columns: 1fr;
    }

    .explore-grid {
        grid-template-columns: 1fr;
    }

    .article-navigation {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vet-team {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .featured-grid-4 {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .article-container {
        padding: 0 1rem 3rem;
    }
}
