:root {
    --primary-color: #0A0A0A;
    --secondary-color: #666666;
    --accent-color: #2563EB;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --border-color: #E2E8F0;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}





section {
    max-width: 980px;
    margin: 32px auto;
    padding: 48px 40px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

/* Nested sections (articles often have sections inside sections) */
section section {
    max-width: 100%;
    margin: 1.5rem 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

p {
    margin-bottom: 1.25em;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.75;
}

ul, ol {
    margin: 1.25rem 0;
    padding-left: 1.75rem;
}

li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

em {
    color: var(--text-secondary);
    font-style: italic;
}

mark {
    background: #FEF08A;
    color: var(--text-primary);
    padding: 0.125rem 0.25rem;
    border-radius: var(--radius-sm);
}


header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
}

.headercontainer {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.7;
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.headerright {
    max-width: 480px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: right;
}

/* MOBILE MENU TOGGLE (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

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

/* MOBILE OVERLAY */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: block;
}

nav a:hover {
    color: var(--accent-color);
}






/* FOOTER */
footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-container img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.footer-logo {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

footer nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

footer nav a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    font-size: 0.9375rem;
}

footer nav a:hover {
    color: var(--accent-color);
}

.footer-copy {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}






/* TABLES */
table {
    margin: 2.5rem 0;
    border-collapse: collapse;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    font-size: 0.9375rem;
}

table th,
table td {
    padding: 1rem 1.25rem;
    text-align: left;
}

table th {
    background-color: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

table tr:nth-child(even) {
    background-color: var(--bg-secondary);
}

table tr:hover {
    background-color: #F0F9FF;
    transition: background 0.2s ease;
}

table td {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

table tr:last-child td {
    border-bottom: none;
}

/* IMAGES */
img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    display: block;
}

section img {
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

section img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* BLOCKQUOTES */
blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--accent-color);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--text-secondary);
}

blockquote p:last-child {
    margin-bottom: 0;
}

/* CODE BLOCKS */
code {
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--accent-color);
}

pre {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

pre code {
    background: transparent;
    padding: 0;
    color: var(--text-primary);
}


/* MAIN CONTAINER */
.main {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 3rem;
    padding: 2.5rem;
}

/* LEFT SIDEBAR */
.leftside {
    width: 280px;
    flex-shrink: 0;
}

.leftside nav {
    position: sticky;
    top: 100px;
}

.leftside nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.leftside nav li {
    margin: 0;
}

.leftside nav a {
    display: block;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.leftside nav a:hover {
    color: var(--accent-color);
    background-color: var(--bg-tertiary);
    border-left-color: var(--accent-color);
}

/* RIGHT CONTENT */
.rightside {
    flex: 1;
    min-width: 0;
}






/* HERO SECTION */
.hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    margin-bottom: 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../images/zip-photo-00001.png') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 3rem 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.375rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #fff;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-primary {
    background: #fff;
    color: var(--text-primary);
    border: none;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}


/* ARTICLE GALLERY */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2.5rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.article-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.article-card a {
    text-decoration: none;
    display: block;
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.article-card:hover img {
    transform: scale(1.05);
}

.article-card h3 {
    font-size: 1.125rem;
    padding: 1.5rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
}





/* ABOUT SECTION */
.about {
    max-width: 900px;
    margin: 4rem auto;
    padding: 4rem 3rem;
    text-align: center;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.about h2 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.about p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* SUBSCRIBE SECTION */
.subscribe {
    max-width: 800px;
    margin: 4rem auto;
    padding: 4rem 3rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.subscribe h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.subscribe p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-form {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input[type="email"] {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 280px;
    flex: 1;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.subscribe-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.subscribe-form button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-form button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.subscribe-form button:active {
    transform: translateY(0);
}

/* FAQ SECTION */
.faq {
    margin: 3rem 0;
}

.faq details {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-primary);
    transition: all 0.2s ease;
}

.faq details:hover {
    border-color: var(--accent-color);
}

.faq details[open] {
    box-shadow: var(--shadow-sm);
}

.faq summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--text-primary);
    list-style: none;
    user-select: none;
    transition: background 0.2s ease;
    position: relative;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq details[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq summary:hover {
    background: var(--bg-tertiary);
}

.faq details p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* LINKS */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-overlay {
        display: block;
    }

    /* Hide sidebar by default on mobile */
    .leftside {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        z-index: 1000;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        padding-top: 80px;
    }

    .leftside.mobile-open {
        left: 0;
    }

    .leftside nav {
        position: static;
    }

    .leftside nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .leftside nav a {
        border-left: 3px solid transparent;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 1.5rem;
    }

    .leftside nav li:last-child a {
        border-bottom: none;
    }

    .main {
        flex-direction: column;
        gap: 0;
        padding: 1.5rem;
    }

    .rightside {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .headercontainer {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }

    .headerright {
        display: none;
    }

    .leftside {
        width: 85%;
        max-width: 300px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem 3rem;
    }

    section {
        padding: 2rem 1.5rem;
        margin: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .about,
    .subscribe {
        padding: 2.5rem 2rem;
        margin: 2rem 1.5rem;
    }

    .subscribe-form {
        flex-direction: column;
        width: 100%;
    }

    .subscribe-form input[type="email"] {
        min-width: 100%;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem 1.5rem;
    }

    footer nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    table {
        font-size: 0.875rem;
    }

    table th,
    table td {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .leftside nav ul {
        grid-template-columns: 1fr;
    }
}

/* SMOOTH SCROLLING */
html {
    scroll-behavior: smooth;
}

/* SELECTION COLORS */
::selection {
    background: var(--accent-color);
    color: white;
}

::-moz-selection {
    background: var(--accent-color);
    color: white;
}

/* UTILITY CLASSES */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* PRINT STYLES */
@media print {
    header,
    footer,
    .leftside,
    .hero,
    .subscribe {
        display: none;
    }

    .main {
        padding: 0;
    }

    section {
        box-shadow: none;
        border: none;
    }
}

/* LOADING ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeIn 0.5s ease-out;
}

.article-card:nth-child(1) { animation-delay: 0.05s; }
.article-card:nth-child(2) { animation-delay: 0.1s; }
.article-card:nth-child(3) { animation-delay: 0.15s; }
.article-card:nth-child(4) { animation-delay: 0.2s; }
.article-card:nth-child(5) { animation-delay: 0.25s; }
.article-card:nth-child(6) { animation-delay: 0.3s; }

/* FOCUS VISIBLE */
*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ACCESSIBILITY */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* HORIZONTAL RULE */
hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 3rem 0;
}