/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    margin: 0;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.main-nav a:hover {
    color: #00ff00;
    background-color: rgba(255,255,255,0.1);
}

/* Responsive header */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #1a1a1a;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    .main-nav a {
        display: block;
        padding: 0.8rem 1rem;
        font-size: 1.1rem;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Responsive container adjustments */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23000000"/><text x="50" y="50" font-family="monospace" font-size="10" fill="%2300ff00" text-anchor="middle" dominant-baseline="middle">HACK</text></svg>');
    color: #fff;
    padding: 8rem 0 4rem;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: rgba(255,255,255,0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    background-color: rgba(255,255,255,0.15);
}

.feature-icon {
    font-size: 1.4rem;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,255,0,0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Services section */
.services {
    padding: 4rem 0;
    background-color: #fff;
}

.services h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.service-details {
    list-style: none;
    margin-top: 1rem;
}

.service-details li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-details li:before {
    content: "✓";
    color: #00ff00;
    position: absolute;
    left: 0;
}

/* Features section */
.features {
    padding: 4rem 0;
    background-color: #f4f4f4;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.feature-card h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

/* About section */
.about {
    padding: 4rem 0;
    background-color: #fff;
    position: relative;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
    font-size: 2.5rem;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-title {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.about-title h3 {
    color: #1a1a1a;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-title p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f8f8f8;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.badge:hover {
    transform: translateY(-3px);
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-text {
    font-weight: bold;
    color: #1a1a1a;
}

.about-stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    background-color: #fff;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-content {
    flex-grow: 1;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #00ff00;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    color: #1a1a1a;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-desc {
    color: #666;
    font-size: 0.9rem;
}

.about-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    background-color: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.feature-content {
    flex-grow: 1;
}

.feature-content h4 {
    color: #1a1a1a;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.feature-content p {
    color: #666;
    line-height: 1.6;
}

/* Process section */
.process {
    padding: 4rem 0;
    background-color: #f4f4f4;
    position: relative;
}

.process h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
    font-size: 2.5rem;
}

.process-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.process-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,255,0,0.3);
}

.process-content {
    text-align: left;
}

.process-content h3 {
    color: #1a1a1a;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.process-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.process-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background-color: #f8f8f8;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.detail-item:hover {
    transform: translateX(5px);
    background-color: #f0f0f0;
}

.detail-icon {
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Contact section */
.contact {
    padding: 4rem 0;
    background-color: #fff;
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-card h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #00ff00;
}

.footer-ads {
    margin: 1rem 0;
}

.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.footer-copyright p {
    margin: 0.5rem 0;
    color: #ccc;
}

.footer-copyright a {
    color: #00ff00;
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a {
        display: block;
        padding: 0.5rem 0;
    }
}

/* Responsive adjustments for about section */
@media (max-width: 992px) {
    .about-stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-title h3 {
        font-size: 1.8rem;
    }

    .about-stats-container {
        grid-template-columns: 1fr;
    }

    .about-features-grid {
        grid-template-columns: 1fr;
    }

    .badge {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .about-title h3 {
        font-size: 1.5rem;
    }

    .stat-card,
    .feature-card {
        padding: 1.5rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Responsive adjustments for process section */
@media (max-width: 1200px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .process {
        padding: 3rem 0;
    }

    .process h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-card {
        padding: 1.5rem;
        display: flex;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .process-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .process-content {
        flex-grow: 1;
    }

    .process-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .process-content p {
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }

    .process-details {
        gap: 0.8rem;
    }

    .detail-item {
        padding: 0.6rem;
    }

    .detail-icon {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .process {
        padding: 2rem 0;
    }

    .process h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .process-card {
        padding: 1.2rem;
        gap: 1rem;
    }

    .process-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .process-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .process-content p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .detail-item {
        padding: 0.5rem;
    }

    .detail-item span:last-child {
        font-size: 0.9rem;
    }
}

/* Responsive adjustments for hero section */
@media (max-width: 1200px) {
    .hero-text h2 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-image {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-text h2 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .feature-item {
        padding: 0.6rem 1.2rem;
    }

    .hero-image {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 2rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        width: 100%;
        justify-content: center;
    }

    .hero-image {
        max-width: 250px;
    }
}

/* Logo link */
.logo a {
    color: #fff;
    text-decoration: none;
}

.logo a:hover {
    color: #00ff00;
}

/* Nav active state */
.main-nav .active a,
.main-nav .z8820ethis a {
    color: #00ff00;
    background-color: rgba(0, 255, 0, 0.1);
}

/* ===== Page layout (list & article) ===== */
.page-main {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

.page-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}

.page-banner h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

.breadcrumb {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: #00ff00;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.4);
}

.page-layout {
    display: flex;
    gap: 2rem;
    padding-bottom: 3rem;
    align-items: flex-start;
}

.page-content {
    flex: 1;
    min-width: 0;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-block {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.sidebar-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    background-color: #1a1a1a;
    color: #fff;
}

.sidebar-block-header h3 {
    font-size: 1rem;
    margin: 0;
}

.sidebar-block-header h3 a {
    color: #fff;
    text-decoration: none;
}

.sidebar-block-header h3 a:hover {
    color: #00ff00;
}

.sidebar-more {
    font-size: 0.85rem;
    color: #00ff00;
    text-decoration: none;
}

.sidebar-more:hover {
    text-decoration: underline;
}

.sidebar-article-list {
    list-style: none;
    padding: 0.5rem 0;
    max-height: 600px;
    overflow-y: auto;
}

.sidebar-article-list li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-article-list li:last-child {
    border-bottom: none;
}

.sidebar-article-list a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.sidebar-article-list a:hover {
    background-color: #f8f8f8;
    color: #00cc00;
}

.sidebar-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #eee;
}

.sidebar-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-title {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ===== List page ===== */
.article-list {
    list-style: none;
}

.article-list-item {
    display: flex;
    gap: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-list-thumb {
    flex-shrink: 0;
    width: 240px;
    height: 160px;
    overflow: hidden;
    border-radius: 6px;
    background-color: #eee;
}

.article-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.article-list-item:hover .article-list-thumb img {
    transform: scale(1.05);
}

.article-list-body {
    flex: 1;
    min-width: 0;
}

.article-list-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.article-list-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.article-list-title a:hover {
    color: #00cc00;
}

.article-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.8rem;
}

.article-list-meta a {
    color: #666;
    text-decoration: none;
}

.article-list-meta a:hover {
    color: #00cc00;
}

.article-list-meta small {
    color: #aaa;
}

.article-list-intro {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Pagination - left/center/right layout */
.pagebar {
    margin-top: 2rem;
    padding: 1.5rem 0;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pagination-left,
.pagination-right {
    flex-shrink: 0;
    min-width: 70px;
}

.pagination-left {
    text-align: left;
}

.pagination-right {
    text-align: right;
}

.pagination-center {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow-x: auto;
}

.pagination-left a,
.pagination-right a,
.pagination-left span,
.pagination-right span {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.pagination-left a:hover,
.pagination-right a:hover {
    background-color: #1a1a1a;
    color: #00ff00;
}

.pagelist {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.pagelist li,
.pagelist a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.pagelist a:hover {
    background-color: #1a1a1a;
    color: #00ff00;
}

.pagelist .thisclass,
.pagelist .thisclass a {
    background-color: #00ff00;
    color: #1a1a1a;
    font-weight: bold;
}

/* ===== Article detail page ===== */
.article-detail {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.article-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: 1.8rem;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.9rem;
    color: #888;
}

.article-meta a {
    color: #666;
    text-decoration: none;
}

.article-meta a:hover {
    color: #00cc00;
}

.article-meta small {
    color: #aaa;
}

.article-litpic {
    margin-bottom: 1.5rem;
    text-align: center;
}

.article-litpic img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-body {
    line-height: 1.9;
    color: #444;
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

.article-body p {
    margin-bottom: 1rem;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: #1a1a1a;
    margin: 1.5rem 0 1rem;
}

.z8820ediyfield {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #eee;
}

.article-images {
    margin-top: 1.5rem;
}

.article-figure {
    margin-bottom: 1.5rem;
    text-align: center;
}

.article-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.article-figure figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #888;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.tags-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: bold;
}

.z8820emeta-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.z8820etagitem a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: #f0f0f0;
    color: #666;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
}

.z8820etagitem a:hover {
    background-color: #00ff00;
    color: #1a1a1a;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.article-nav-item {
    flex: 1;
    max-width: 48%;
}

.nav-label {
    display: block;
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.article-nav-prev {
    text-align: left;
}

.article-nav-next {
    text-align: right;
}

.article-nav-item a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.3s;
}

.article-nav-item a:hover {
    color: #00cc00;
}

/* Related articles */
.related-articles {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 1.5rem 2rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #00ff00;
}

.related-list {
    list-style: none;
}

.related-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.related-item:last-child {
    border-bottom: none;
}

.related-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #eee;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-info a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 0.5rem;
}

.related-info a:hover {
    color: #00cc00;
}

.related-info p {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ===== Homepage article section ===== */
.home-articles {
    padding: 4rem 0;
    background-color: #f4f4f4;
}

.home-articles h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #1a1a1a;
    font-size: 2rem;
}

.home-article-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.home-article-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.home-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.home-article-thumb {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background-color: #eee;
}

.home-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.home-article-card:hover .home-article-thumb img {
    transform: scale(1.08);
}

.home-article-info {
    padding: 1rem;
}

.home-article-info h3 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-article-info h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.home-article-info h3 a:hover {
    color: #00cc00;
}

/* ===== Responsive: page layout & sidebar ===== */
@media (max-width: 1200px) {
    .home-article-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .page-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .sidebar-article-list {
        max-height: none;
    }

    .home-article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 2rem 0;
    }

    .page-banner h2 {
        font-size: 1.4rem;
    }

    .article-list-item {
        flex-direction: column;
        padding: 1rem;
    }

    .article-list-thumb {
        width: 100%;
        height: 200px;
    }

    .article-detail {
        padding: 1.2rem;
    }

    .article-title {
        font-size: 1.4rem;
    }

    .article-nav {
        flex-direction: column;
    }

    .article-nav-item {
        max-width: 100%;
    }

    .article-nav-next {
        text-align: left;
    }

    .pagination-bar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-left,
    .pagination-right {
        min-width: auto;
    }

    .pagination-center {
        width: 100%;
        order: 3;
        margin-top: 0.5rem;
    }

    .home-article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .home-articles h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .related-item {
        flex-direction: column;
    }

    .related-thumb {
        width: 100%;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .home-article-grid {
        grid-template-columns: 1fr;
    }

    .home-article-thumb {
        height: 180px;
    }

    .article-list-thumb {
        height: 160px;
    }

    .sidebar-article-list a {
        padding: 0.6rem 0.8rem;
    }

    .sidebar-thumb {
        width: 70px;
        height: 52px;
    }
} 