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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo {
    flex-shrink: 0;
}

.logo h1 {
    font-size: 28px;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.logo a {
    text-decoration: none;
    color: #fff;
    display: block;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.logo a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

.primary-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.primary-menu li {
    position: relative;
    display: inline-block;
}

.primary-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.primary-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.primary-menu a:hover::before {
    left: 100%;
}

.primary-menu a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

.primary-menu .current-menu-item > a {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 5px 15px rgba(255,255,255,0.35);
}

/* Submenu styles */
.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 5px;
    flex-direction: column;
    gap: 0;
    z-index: 9999;
}

.primary-menu li:hover > .sub-menu {
    display: flex;
}

.primary-menu .sub-menu li {
    width: 100%;
}

.primary-menu .sub-menu a {
    color: #333;
    padding: 12px 20px;
    border-radius: 0;
    background: transparent;
    font-weight: 500;
    font-size: 14px;
}

.primary-menu .sub-menu a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: none;
    box-shadow: none;
}

.primary-menu .sub-menu a::before {
    display: none;
}

/* Menu toggle button for mobile */
.menu-toggle {
    display: none;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

.menu-toggle.active {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 15px;
}

.btn-login,
.btn-register {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-login::before,
.btn-register::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-login:hover::before,
.btn-register:hover::before {
    width: 300px;
    height: 300px;
}

.btn-login {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

.btn-login:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

.btn-register {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.btn-register:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.6);
}

/* Responsive Header */
@media (max-width: 768px) {
    .header-container {
        height: auto;
        padding: 12px 20px;
        flex-wrap: wrap;
        position: relative;
    }
    
    .menu-toggle {
        display: block;
        order: 2;
        margin-left: auto;
    }
    
    .primary-navigation {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 15px;
        background: rgba(255,255,255,0.1);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        padding: 15px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    }
    
    .primary-navigation.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .primary-menu {
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }
    
    .primary-menu li {
        display: block;
        width: 100%;
    }
    
    .primary-menu a {
        padding: 12px 16px;
        background: rgba(255,255,255,0.1);
        margin-bottom: 5px;
        border-radius: 8px;
        text-align: left;
    }
    
    .primary-menu a:hover {
        background: rgba(255,255,255,0.2);
    }
    
    /* Mobile submenu */
    .primary-menu .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        border-radius: 8px;
        margin-top: 5px;
        padding: 0;
    }
    
    .primary-menu .sub-menu a {
        color: #fff;
        padding-left: 30px;
        background: transparent;
    }
    
    .primary-menu .sub-menu a:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }
    
    .primary-menu li:hover > .sub-menu {
        display: flex;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        order: 4;
        gap: 10px;
    }
    
    .btn-login,
    .btn-register {
        flex: 1;
        max-width: 140px;
        text-align: center;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .logo {
        order: 1;
    }
    
    .logo h1 {
        font-size: 22px;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary,
.btn-secondary {
    padding: 15px 35px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #d32f2f;
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-primary:hover {
    background: #b71c1c;
}

.btn-secondary:hover {
    background: #fff;
    color: #667eea;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Info Section */
.info-section {
    padding: 80px 0;
    background: #fff;
}

.info-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.info-icon {
    margin: 0 auto 20px;
}

.info-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.info-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #d32f2f;
}

.info-card p {
    color: #666;
    line-height: 1.8;
}

/* Content Image */
.content-image {
    margin: 30px 0;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.content-image .image-caption {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* Content Section */
.content-section {
    padding: 80px 0;
    background: #f5f5f5;
}

.content-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

.content-block {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.content-block p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

.content-block h3 {
    font-size: 24px;
    margin: 30px 0 20px;
    color: #d32f2f;
}

/* Articles Section */
.articles-section {
    padding: 80px 0;
    background: #fff;
}

.articles-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

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

.article-card {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.article-thumbnail {
    height: 200px;
    overflow: hidden;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.article-content h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.article-content h3 a:hover {
    color: #d32f2f;
}

.article-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.article-date {
    color: #999;
    font-size: 14px;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #d32f2f;
}

.footer-widget p {
    color: #bdc3c7;
    line-height: 1.8;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: #d32f2f;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Page Content */
.page-content {
    background: #fff;
    padding: 40px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
}

.page-body {
    line-height: 1.8;
}

.page-body p {
    margin-bottom: 20px;
    color: #444;
    text-align: justify;
}

.page-body h2 {
    font-size: 28px;
    margin: 30px 0 20px;
    color: #d32f2f;
}

.page-body ul {
    margin: 20px 0;
    padding-left: 30px;
}

.page-body li {
    margin-bottom: 10px;
    color: #444;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 25px;
}

.post-content h2 {
    font-size: 22px;
    margin-bottom: 15px;
}

.post-content h2 a {
    text-decoration: none;
    color: #333;
}

.post-content h2 a:hover {
    color: #d32f2f;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    color: #999;
    font-size: 14px;
}

/* Single Post */
.single-post {
    background: #fff;
    padding: 40px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.post-header h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.post-featured-image {
    margin: 30px 0;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.post-body {
    line-height: 1.8;
    margin: 30px 0;
}

.post-body p {
    margin-bottom: 20px;
    color: #444;
}

.post-tags {
    margin: 30px 0;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* Sidebar */
.content-area {
    grid-column: 1 / 3;
}

.sidebar {
    grid-column: 3 / 4;
    padding-left: 30px;
}

.widget {
    background: #fff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #d32f2f;
}

/* Pagination */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 5px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #d32f2f;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .primary-menu {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .info-grid,
    .articles-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}
