* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
}

nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 5px 15px;
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    padding: 8px;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    margin: 20px 0;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.hero-overlay h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-align: center;
}

.hero-overlay p {
    font-size: 18px;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
}

.cta-button {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(26, 188, 156, 0.4);
}

/* Category Cards */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.category-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-card .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.category-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.category-card p {
    font-size: 14px;
    color: #666;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin: 40px 0 30px;
}

.section-title h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-title p {
    color: #7f8c8d;
    font-size: 16px;
}

/* Featured Articles */
.featured-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #95a5a6;
}

.article-category {
    background: #1abc9c;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.article-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
    line-height: 1.4;
}

.article-card p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #1abc9c;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Plain Article List */
.plain-articles {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin: 40px 0;
}

.plain-articles ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.plain-articles li {
    padding: 15px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.plain-articles li:hover {
    background-color: #f8f9fa;
}

.plain-articles a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
}

.plain-articles h4 {
    font-size: 15px;
    transition: color 0.3s ease;
    margin-bottom: 8px;
}

.plain-articles li:hover h4 {
    color: #1abc9c;
}

.plain-articles .date {
    font-size: 13px;
    color: #95a5a6;
}

/* Links Section */
.friend-links {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin: 40px 0;
}

.friend-links h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.link-item {
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.link-item:hover {
    background: #1abc9c;
}

.link-item a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
}

.link-item:hover a {
    color: white;
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin: 40px 0;
}

.contact-form h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1abc9c;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 188, 156, 0.4);
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #1abc9c;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    color: #bdc3c7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #1abc9c;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    margin-top: 30px;
    color: #95a5a6;
    font-size: 14px;
}

/* List Page Styles */
.page-header {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}
.page-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
}
.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

.breadcrumb {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
    font-size: 14px;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: #1abc9c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #16a085;
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #6c757d;
}

.breadcrumb .current {
    color: #495057;
    font-weight: 500;
}

.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
}

.filter-group select {
    padding: 10px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.filter-group select:focus {
    border-color: #1abc9c;
}

/* Article Page Styles */
.article-header {
    margin-bottom: 30px;
}

.article-header h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.article-meta-full {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    color: #95a5a6;
    font-size: 14px;
}

.article-meta-full span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-content-full {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.article-content-full img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.article-content-full p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.article-content-full h2 {
    font-size: 24px;
    color: #2c3e50;
    margin: 30px 0 15px;
}

.article-content-full h3 {
    font-size: 20px;
    color: #34495e;
    margin: 25px 0 12px;
}

.article-content-full ul,
.article-content-full ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.article-content-full li {
    margin-bottom: 10px;
    color: #444;
}

/* Next/Prev Navigation */
.next-prev {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0;
}

.nav-link {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.nav-link a {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
}

.nav-link .nav-label {
    font-size: 12px;
    color: #1abc9c;
    margin-bottom: 8px;
}

.nav-link .nav-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.nav-link:hover .nav-title {
    color: #1abc9c;
}

/* Related Articles */
.related-articles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.related-section,
.latest-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.related-section h3,
.latest-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #1abc9c;
}

.related-section ul,
.latest-section ul {
    list-style: none;
}

.related-section li,
.latest-section li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.related-section li:last-child,
.latest-section li:last-child {
    border-bottom: none;
}

.related-section li:hover,
.latest-section li:hover {
    background-color: #f8f9fa;
}

.related-section a,
.latest-section a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.related-section h4,
.latest-section h4 {
    font-size: 15px;
    transition: color 0.3s ease;
    margin: 0;
}

.related-section li:hover h4,
.latest-section li:hover h4 {
    color: #1abc9c;
}

.related-section .date,
.latest-section .date {
    font-size: 13px;
    color: #95a5a6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-banner {
        height: 250px;
    }

    .hero-overlay h1 {
        font-size: 28px;
    }

    .hero-overlay p {
        font-size: 14px;
        padding: 0 15px;
    }

    .header-top {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        justify-content: center;
    }

    .article-header h1 {
        font-size: 24px;
    }

    .article-content-full {
        padding: 20px;
    }

    .next-prev {
        flex-direction: column;
    }

    .related-articles {
        grid-template-columns: 1fr;
    }

    .plain-articles ul {
        grid-template-columns: 1fr;
    }

    .footer-content {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card {
        padding: 20px 15px;
    }

    .category-card .icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .featured-articles {
        grid-template-columns: 1fr;
    }
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    display: none;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    display: none;
}