/* File: css/style.css - Part 1/4 */
/* Global Styles & Header */

/* ============================================
   GLOBAL STYLES
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #0a0a0a;
    background: #fcfcfc;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: #9a3432;
    color: #fff;
}

.btn-primary:hover {
    background: #7a2a28;
}

.btn-secondary {
    background: #b4b4b4;
    color: #686868;
    border: 2px solid #ececec;
}

.btn-secondary:hover {
    background: #9a3432;
    color: #fff;
}

/* ============================================
   HEADER STYLES
============================================ */
#header {
    background: #fff;
    border-bottom: 1px solid #a5a0a0;
    position: sticky;
    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;
    padding: 15px 0;
    gap: 20px;
}

.logo img {
    height: 60px;
    width: auto;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #000;
    transition: 0.3s;
}

/* Main Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav > ul > li > a {
    color: #000;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    padding: 10px 5px;
    display: block;
    white-space: nowrap;
}

.main-nav a:hover {
    color: #9a3432;
}

/* Submenu */
.has-submenu {
    position: relative;
}

.submenu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px 0;
    z-index: 1000;
    border-radius: 4px;
    margin-top: 5px;
}

.has-submenu:hover > .submenu {
    display: block !important;
}

.submenu li {
    padding: 0;
    list-style: none;
}

.submenu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
}

.submenu a:hover {
    background: #f5f5f5;
    color: #9a3432;
}

.btn-donate {
    background: #9a3432;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s;
    white-space: nowrap;
    font-size: 16px;
}

.btn-donate:hover {
    background: #7a2a28;
}

/* ============================================
   SUBHEADER / BREADCRUMB
============================================ */
.subheader {
    background: rgba(154,52,50,1);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.subheader h1 {
    font-size: 36px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.breadcrumbs {
    color: rgba(255,255,255,0.8);
}

.breadcrumbs a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #fff;
}

.breadcrumbs span {
    margin: 0 5px;
}
/* File: css/style.css - Part 2/4 */
/* Content, Home Page & Articles Styles */

/* ============================================
   MAIN CONTENT
============================================ */
#content {
    padding: 60px 0;
    min-height: 500px;
}

/* ============================================
   HOME PAGE STYLES
============================================ */
.home-page {
    background: #fcfcfc;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #9a3432 0%, #7a2a28 100%);
    color: #fff;
    padding: 80px 0;
    margin-bottom: 60px;
    border-radius: 8px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 180px;
}

/* Section Titles */
.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

.view-all {
    color: #9a3432;
    font-weight: 500;
    transition: color 0.3s;
}

.view-all:hover {
    color: #7a2a28;
}

/* Featured Articles */
.featured-articles {
    margin-bottom: 60px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.featured-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.featured-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
    padding: 15px;
}

.featured-category {
    display: inline-block;
    background: #9a3432;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.featured-content {
    padding: 20px;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.featured-date {
    color: #9a3432;
    font-weight: 500;
}

.featured-views {
    color: #999;
}

.featured-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.featured-content h3 a {
    color: #2c3e50;
    transition: color 0.3s;
}

.featured-content h3 a:hover {
    color: #9a3432;
}

.featured-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Latest Articles */
.latest-articles {
    margin-bottom: 60px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.article-date {
    background: #342927;
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
}

.article-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-content h3 a {
    color: #4f4f54;
    transition: color 0.3s;
}

.article-content h3 a:hover {
    color: #9a3432;
}

.article-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: #9a3432;
    font-weight: 500;
    transition: color 0.3s;
    display: inline-block;
}

.read-more:hover {
    color: #7a2a28;
}

/* Categories Section */
.categories-section {
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
    border-left: 4px solid #9a3432;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.category-card h3 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 10px;
}

.category-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
}

.category-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
    color: #9a3432;
    transition: transform 0.3s;
}

.category-card:hover .category-arrow {
    transform: translateX(5px);
}

/* ============================================
   POSTS GRID (List, Kategori, Search)
============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.post-date {
    background: #9a3432;
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
}

.post-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-category {
    margin-bottom: 10px;
}

.post-category a {
    display: inline-block;
    background: #f0f0f0;
    color: #9a3432;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.post-category a:hover {
    background: #9a3432;
    color: #fff;
}

.post-content h2 {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-content h2 a {
    color: #4f4f54;
    transition: color 0.3s;
}

.post-content h2 a:hover {
    color: #9a3432;
}

.post-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-views {
    color: #999;
    font-size: 14px;
}

/* Kategori Description */
.kategori-description {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #9a3432;
}

.kategori-description p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

/* Search Info */
.search-info {
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-info p {
    margin: 5px 0;
    color: #666;
}

.search-count {
    color: #9a3432;
    font-weight: 500;
}

/* No Results */
.no-results {
    background: #fff;
    padding: 60px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.no-results h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.no-results p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.search-suggestions {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin: 30px auto;
    max-width: 500px;
    text-align: left;
}

.search-suggestions h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.search-suggestions ul {
    list-style-position: inside;
    color: #666;
}

.search-suggestions li {
    margin-bottom: 8px;
}
/* File: css/style.css - Part 3/4 */
/* Article Detail, Related Articles & Pagination Styles */

/* ============================================
   ARTICLE DETAIL PAGE
============================================ */
.article-detail {
    padding: 60px 0;
}

.article-header {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    color: #666;
    font-size: 15px;
    margin-bottom: 30px;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta-item strong {
    color: #9a3432;
}

.article-meta-item a {
    color: #666;
    text-decoration: underline;
}

.article-meta-item a:hover {
    color: #9a3432;
}

.article-featured-image {
    max-width: 100%;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 8px;
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
}

.article-content h2 {
    font-size: 28px;
    color: #2c3e50;
    margin: 30px 0 15px;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 24px;
    color: #34495e;
    margin: 25px 0 12px;
}

.article-content h4 {
    font-size: 20px;
    color: #34495e;
    margin: 20px 0 10px;
}

.article-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.article-content blockquote {
    border-left: 4px solid #9a3432;
    padding: 20px 30px;
    margin: 30px 0;
    background: #f8f8f8;
    font-style: italic;
    color: #555;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-content a {
    color: #9a3432;
}

.article-content a:hover {
    color: #7a2a28;
}

/* Article Tags Styling */
.article-tags {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}
.article-tags h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.tags-list .tag {
    display: inline-block;
    padding: 5px 15px;
    background: #fff;
    border: 2px solid #ddd;
    color: #8b4513;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.tags-list .tag:hover {
    background: #9a3432;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
}
/* Article Share Buttons */
.article-share {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}
.article-share h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.share-btn span {
    font-weight: bold;
    font-size: 16px;
}
/* Facebook Button */
.share-btn.facebook {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}
.share-btn.facebook:hover {
    background: #fff;
    color: #1877f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.3);
}
/* Twitter Button */
.share-btn.twitter {
    background: #1da1f2;
    color: #fff;
    border-color: #1da1f2;
}
.share-btn.twitter:hover {
    background: #fff;
    color: #1da1f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(29, 161, 242, 0.3);
}
/* WhatsApp Button */
.share-btn.whatsapp {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}
.share-btn.whatsapp:hover {
    background: #fff;
    color: #25d366;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}
/* Email Button */
.share-btn.email {
    background: #666;
    color: #fff;
    border-color: #666;
}
.share-btn.email:hover {
    background: #fff;
    color: #666;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 102, 102, 0.3);
}
/* Responsive */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        justify-content: center;
        width: 100%;
        max-width: 300px;
    }
}

/* ============================================
   RELATED ARTICLES
============================================ */
.related-articles {
    padding: 60px 0;
    background: #f8f8f8;
}

.related-articles h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #2c3e50;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.related-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-card:hover .related-card-image img {
    transform: scale(1.05);
}

.related-card-content {
    padding: 20px;
}

.related-card-date {
    color: #9a3432;
    font-size: 14px;
    margin-bottom: 10px;
}

.related-card-content h3 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.related-card-content h3 a {
    color: #4f4f54;
    text-decoration: none;
    transition: color 0.3s;
}

.related-card-content h3 a:hover {
    color: #9a3432;
}

.related-card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   PAGINATION
============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 16px;
    text-decoration: none;
}

.pagination a:hover {
    background: #9a3432;
    color: #fff;
    border-color: #9a3432;
}

.pagination .page-link.disabled,
.pagination span.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .page-number {
    min-width: 40px;
    text-align: center;
}

.pagination .page-number.active {
    background: #9a3432;
    color: #fff;
    border-color: #9a3432;
}

.pagination .dots {
    border: none;
    background: none;
    cursor: default;
}

.pagination .page-info {
    border: none;
    background: none;
    color: #666;
}

/* ============================================
   ERROR 404 PAGE
============================================ */
.error-404-page {
    padding: 60px 0;
    min-height: 500px;
}

.error-404-content {
    background: #fff;
    padding: 60px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.error-404-number {
    font-size: 120px;
    font-weight: bold;
    color: #9a3432;
    line-height: 1;
    margin-bottom: 20px;
}

.error-404-content h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.error-404-message {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.error-404-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.error-404-search {
    margin: 40px 0;
}

.error-404-search h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.search-form-large {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}

.search-form-large input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
}

.search-form-large input:focus {
    border-color: #9a3432;
}

.search-form-large button {
    padding: 15px 30px;
    background: #9a3432;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form-large button:hover {
    background: #7a2a28;
}

.error-404-popular {
    margin-top: 40px;
    text-align: left;
}

.error-404-popular h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popular-item {
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    border-left: 4px solid #9a3432;
}

.popular-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.popular-item h4 a {
    color: #2c3e50;
    text-decoration: none;
}

.popular-item h4 a:hover {
    color: #9a3432;
}

.popular-item p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Error Message */
.error-message {
    background: #fff;
    padding: 60px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.error-message h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.error-message p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}
/* File: css/style.css - Part 4/4 */
/* Footer & Responsive Styles */

/* ============================================
   FOOTER STYLES
============================================ */
#footer {
    background: #292b33;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-widgets {
    margin-bottom: 40px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-col .tagline {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-col a {
    color: #0095eb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #007cc3;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #444;
    background: #333;
    color: #fff;
    border-radius: 4px;
    outline: none;
}

.search-form input:focus {
    border-color: #9a3432;
}

.search-form button {
    padding: 10px 20px;
    background: #9a3432;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #7a2a28;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #ccc;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: #444;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s;
    font-weight: bold;
}

.social-links a:hover {
    background: #9a3432;
}

/* ============================================
   UTILITY CLASSES
============================================ */
.hidden {
    display: none !important;
}

:focus-visible {
    outline: 2px solid #9a3432;
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE STYLES
============================================ */

/* Tablet Large - 1200px */
@media (max-width: 1200px) {
    .main-nav ul {
        gap: 15px;
    }

    .main-nav > ul > li > a {
        font-size: 15px;
    }

    .btn-donate {
        padding: 8px 15px;
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 42px;
    }
}

/* Tablet - 1024px */
@media (max-width: 1024px) {
    .main-nav ul {
        gap: 10px;
    }

    .main-nav > ul > li > a {
        font-size: 14px;
        padding: 8px 3px;
    }

    .featured-grid,
    .articles-grid,
    .posts-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .article-content {
        padding: 40px 30px;
    }
}

/* Mobile Large - 768px */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .main-nav li {
        border-bottom: 1px solid #eee;
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav > ul > li > a {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
    }

    .has-submenu > a::after {
        content: ' ▼';
        font-size: 11px;
        margin-left: 8px;
        transition: transform 0.3s;
    }

    .has-submenu.active > a::after {
        transform: rotate(180deg);
    }

    .has-submenu:hover > .submenu {
        display: none !important;
    }

    .submenu {
        position: static !important;
        box-shadow: none;
        background: #f8f8f8;
        padding: 0;
        margin: 0;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .has-submenu.active .submenu {
        display: block !important;
        max-height: 500px;
    }

    .submenu li {
        border-bottom: 1px solid #e5e5e5;
    }

    .submenu li:last-child {
        border-bottom: none;
    }

    .submenu a {
        padding: 12px 20px 12px 40px;
        font-size: 15px;
        background: #f8f8f8;
    }

    .submenu a:hover {
        background: #efefef;
    }

    .btn-donate {
        margin: 15px 20px;
        display: inline-block;
        text-align: center;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .subheader h1 {
        font-size: 28px;
    }

    .subheader {
        padding: 30px 0;
    }

    #content {
        padding: 40px 0;
    }

    .hero-section {
        padding: 50px 0;
        margin-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 70%;
        margin:0 auto;
    }
    
    .hero-content { padding:20px;}

    .featured-grid,
    .articles-grid,
    .posts-grid,
    .related-grid,
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .article-detail {
        padding: 40px 0;
    }

    .article-header {
        margin-bottom: 30px;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .article-content {
        padding: 30px 20px;
    }

    .article-content h2 {
        font-size: 24px;
    }

    .article-content h3 {
        font-size: 20px;
    }

    .article-content p {
        font-size: 16px;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        justify-content: center;
    }

    .related-articles {
        padding: 40px 0;
    }

    .related-articles h2 {
        font-size: 28px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 14px;
    }

    .error-404-number {
        font-size: 80px;
    }

    .error-404-content h1 {
        font-size: 28px;
    }

    .error-404-actions {
        flex-direction: column;
    }

    .error-404-actions .btn {
        width: 100%;
    }

    .search-form-large {
        flex-direction: column;
    }

    .post-image,
    .article-image {
        height: 220px;
    }

    .featured-image {
        height: 220px;
    }
}

/* Mobile Small - 480px */
@media (max-width: 480px) {
    .header-content {
        padding: 10px 0;
    }

    .logo img {
        height: 45px;
    }

    .subheader {
        padding: 25px 0;
    }

    .subheader h1 {
        font-size: 24px;
    }

    .breadcrumbs {
        font-size: 14px;
    }

    #content {
        padding: 30px 0;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-description {
        font-size: 15px;
    }

    .section-title {
        font-size: 26px;
    }

    .post-content h2,
    .article-content h2,
    .featured-content h3 {
        font-size: 18px;
    }

    .post-content p,
    .article-content p {
        font-size: 15px;
    }

    .post-image,
    .article-image,
    .featured-image {
        height: 200px;
    }

    .post-content,
    .article-content {
        padding: 15px;
    }

    .footer-col h4 {
        font-size: 16px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form button {
        width: 100%;
    }

    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 35px;
    }

    .error-404-number {
        font-size: 60px;
    }

    .error-404-content h1 {
        font-size: 24px;
    }

    .error-404-message {
        font-size: 16px;
    }

    .category-card {
        padding: 20px;
    }

    .category-card h3 {
        font-size: 18px;
    }
}

/* Extra Small - 360px */
@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .section-title {
        font-size: 22px;
    }

    .article-content {
        padding: 20px 15px;
    }
}

/* Print Styles */
@media print {
    #header,
    #footer,
    .subheader,
    .breadcrumbs,
    .article-share,
    .related-articles,
    .pagination {
        display: none;
    }

    .article-content {
        box-shadow: none;
        padding: 0;
    }

    body {
        background: #fff;
    }
}