/* 3tinybones.org Absolute Precision 1:1 Replica CSS */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --color-primary: #0089D0;
    --color-secondary: #00D2FF;
    --color-accent: #3a7bd5;
    --color-text-dark: #1a1a1a;
    --color-text-body: #444444;
    --color-meta: #888888;
    --color-white: #ffffff;
    --color-bg-gray: #f4f7f9;
    --color-sea-green: #00ccbb;
    --color-footer-bg: #111111;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);

    --font-heading: "Outfit", sans-serif;
    --font-body: "Open Sans", sans-serif;
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* Global Reset & Base Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 14.5px;
    /* Precision match for OceanWP body */
    line-height: 1.8;
    color: var(--color-text-body);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

/* Headings Precision */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
}

h1 {
    font-size: 34px;
    letter-spacing: -0.02em;
    margin: 0 0 15px;
    font-weight: 700;
}

h2 {
    font-size: 26px;
    font-weight: 600;
}

h3 {
    font-size: 18px;
    font-weight: 600;
}

/* Links & Metadata */
a {
    color: var(--color-text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

.meta-line {
    font-size: 14px;
    color: var(--color-text-body);
    margin-bottom: 20px;
}

.blog-meta {
    font-size: 12px;
    color: var(--color-meta);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation & Header (74px High) */
header {
    background: var(--color-white);
    border-bottom: 1px solid #f1f1f1;
    height: 74px;
    position: sticky;
    top: 0;
    z-index: 10000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a:not(.btn-pledge-white) {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.6px;
    padding: 5px 0;
    color: #555;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a:not(.btn-pledge-white)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-sea-green);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu a:not(.btn-pledge-white):hover {
    color: var(--color-sea-green);
}

.nav-menu a:not(.btn-pledge-white):hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

.nav-menu a.active {
    color: var(--color-sea-green);
}



.btn-pledge-white {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-sea-green);
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid var(--color-sea-green);
}

.mobile-menu-btn {
    display: none;
}

.btn-pledge-white:hover {
    background-color: var(--color-sea-green);
    color: var(--color-white);
}

/* Hero Section */
.hero-section {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-container {
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1.2;
    color: var(--color-white);
}

.hero-text h1 {
    color: var(--color-white);
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-image {
    flex: 0.8;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Grid Components */
.grid-section {
    padding: 80px 0;
    background-color: var(--color-bg-gray);
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-premium);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    background: var(--color-white);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--color-primary);
}

.card p {
    font-size: 15px;
    margin-bottom: 25px;
    color: var(--color-text-body);
    line-height: 1.6;
}

.card-stickers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.sticker {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 100px;
    background: #f0f0f0;
    color: #666;
}

.sticker.diseases {
    background: rgba(255, 82, 82, 0.1);
    color: #ff5252;
}

.sticker.tutorials {
    background: rgba(124, 77, 255, 0.1);
    color: #7c4dff;
}

.sticker.health {
    background: rgba(0, 200, 83, 0.1);
    color: #00c853;
}

.sticker.works {
    background: rgba(0, 145, 234, 0.1);
    color: #0091ea;
}

/* Search & Filter System */
.filter-system {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.search-container {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 25px 15px 50px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 137, 208, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #aaa;
}

.filter-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tag {
    cursor: pointer;
    padding: 8px 18px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.filter-tag.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Article Page Styles */
.article-container {
    padding: 80px 0;
    line-height: 1.8;
}

.article-content {
    max-width: 800px;
    margin: 40px auto;
    font-size: 17px;
    color: var(--color-text-body);
}

.article-content h2 {
    margin: 40px 0 20px;
    color: var(--color-primary);
}

.article-content p {
    margin-bottom: 25px;
}

.article-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

/* Article Image Styling */
.article-image {
    width: 100%;
    margin: 30px 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.image-caption {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 10px;
    font-style: italic;
}

.news-section {
    padding: 80px 0;
}

.blog-post {
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.blog-post h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.blog-post h3 a:hover {
    color: var(--color-primary);
}

/* Footer Precision */
footer {
    background-color: var(--color-footer-bg);
    color: var(--color-white);
    padding: 60px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 11px;
    color: #888;
    margin-top: 10px;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.footer-links a {
    color: #666;
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 992px) {
    .nav-menu {
        gap: 15px;
    }

    .nav-menu a:not(.btn-pledge-white) {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    header {
        height: 60px;
    }

    .header-inner {
        padding: 0 15px;
    }

    .logo img {
        height: 35px;
    }

    .nav-menu:not(.active) {
        display: none;
    }

    /* Hamburger Menu Button */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        z-index: 10001;
        width: 30px;
        height: 30px;
    }

    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--color-text-dark);
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Mobile Nav Overlay */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 50px;
        gap: 30px;
        transition: right 0.4s ease;
        z-index: 10000;
        display: flex;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a:not(.btn-pledge-white) {
        font-size: 24px;
    }

    /* Section Mobile Fixes */
    .hero-section {
        padding: 50px 20px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

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

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

    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }

    .news-section h1 {
        font-size: 32px !important;
    }
}

@media (max-width: 768px) {
    .article-container {
        padding: 40px 0;
    }

    .article-content {
        padding: 0 20px;
        font-size: 16px;
    }
}