/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Classes */
.hide {
    display: none !important;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-text {
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
}

/* Desktop Navigation */
.desktop-nav {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu > li {
    position: relative;
    margin: 0 1rem;
}

.nav-menu > li > a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 0;
    transition: color 0.3s ease;
    display: block;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: #667eea;
}

/* Desktop Search */
.desktop-search {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.desktop-search-form {
    display: flex;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 5px;
    transition: all 0.3s ease;
}

.desktop-search-form:focus-within {
    background: white;
    box-shadow: 0 0 0 2px #667eea;
}

.desktop-search-input {
    border: none;
    background: transparent;
    padding: 8px 15px;
    outline: none;
    width: 200px;
    transition: width 0.3s ease;
}

.desktop-search-input:focus {
    width: 250px;
}

.desktop-search-button {
    background: #667eea;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Navigation Controls */
.mobile-nav-controls {
    display: none;
    align-items: center;
    gap: 1rem;
}

.search-toggle, .menu-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: color 0.3s ease;
}

.search-toggle:hover, .menu-toggle:hover {
    color: #667eea;
}

/* Mobile Search Bar */
.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001;
}

.search-bar.active {
    display: block;
}

.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    outline: none;
}

.search-input:focus {
    border-color: #667eea;
}

.search-button {
    padding: 0.8rem 1.5rem;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #5a6fd8;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-close {
    cursor: pointer;
    font-size: 1.2rem;
}

.mobile-nav {
    list-style: none;
    padding: 1rem;
}

.mobile-nav li {
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav li a {
    display: block;
    padding: 1rem 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.mobile-submenu-toggle {
    position: absolute;
    right: 0;
    top: 1rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-sub-menu {
    display: none;
    padding-left: 1rem;
}

.mobile-sub-menu.active {
    display: block;
}

.mobile-sub-menu li a {
    font-size: 0.9rem;
    color: #666;
    padding: 0.8rem 0;
}

/* Hero Section Styles */
.hero-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-content h2 {
    font-size: 1.4rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.5;
    max-width: 600px;
}

/* Home Hero Grid */
.home-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    margin-top: 2rem;
}

.home-article {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.home-article.primary {
    grid-column: 1 / -1;
    min-height: 300px;
}

.home-article p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    margin: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.home-article.primary p {
    font-size: 1.8rem;
}

/* Hero Sidebar */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.latest-issue {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.issue-cover {
    margin-bottom: 15px;
}

.issue-cover img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.issue-info p {
    margin: 5px 0;
    font-weight: 600;
}

.issue-date {
    font-size: 1.2rem;
    color: #333;
}

.issue-number {
    font-size: 1rem;
    color: #667eea;
}

/* Author Widget */
.author-widget {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.author-image {
    margin-bottom: 15px;
}

.author-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f0f0;
}

.author-name {
    margin-bottom: 15px;
}

.author-name a {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.author-name a:hover {
    color: #667eea;
}

.author-social {
    margin-bottom: 15px;
}

.author-social a {
    display: inline-block;
    margin: 0 8px;
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.author-social a:hover {
    color: #667eea;
}

.author-text {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Featured Posts Grid Layout */
.featured-posts {
    padding: 80px 0;
    background: #f8f9fa;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 25px;
    margin-bottom: 3rem;
}

.featured-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Different card sizes */
.featured-card.large {
    grid-column: span 8;
    grid-row: span 2;
    min-height: 500px;
}

.featured-card.medium {
    grid-column: span 4;
    min-height: 240px;
}

.featured-card.small {
    grid-column: span 4;
    min-height: 240px;
}

.featured-card.horizontal {
    grid-column: span 6;
    flex-direction: row;
    min-height: 200px;
}

/* Card Image Styles */
.featured-image {
    position: relative;
    overflow: hidden;
}

.featured-card.large .featured-image {
    height: 300px;
}

.featured-card.medium .featured-image,
.featured-card.small .featured-image {
    height: 150px;
}

.featured-card.horizontal .featured-image {
    width: 40%;
    height: 100%;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Card Content Styles */
.featured-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-card.horizontal .featured-content {
    width: 60%;
    padding: 20px;
}

.featured-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #666;
}

.featured-date {
    margin-right: 15px;
}

.featured-author {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.featured-title {
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-card.large .featured-title {
    font-size: 1.8rem;
}

.featured-card.medium .featured-title {
    font-size: 1.4rem;
}

.featured-card.small .featured-title,
.featured-card.horizontal .featured-title {
    font-size: 1.2rem;
}

.featured-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-title a:hover {
    color: #667eea;
}

.featured-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.featured-card.large .featured-excerpt {
    font-size: 1.1rem;
}

.featured-card.medium .featured-excerpt,
.featured-card.small .featured-excerpt,
.featured-card.horizontal .featured-excerpt {
    font-size: 0.95rem;
}

.featured-read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.featured-read-more:hover {
    transform: translateX(5px);
}

.featured-read-more i {
    margin-left: 5px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.featured-read-more:hover i {
    transform: translateX(3px);
}

/* Blog Listing Styles */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.blog-posts {
    padding: 80px 0;
    background: #f8f9fa;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-post-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-post-card .post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post-card:hover .post-image img {
    transform: scale(1.05);
}

.blog-post-card .post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-post-card .post-content {
    padding: 25px;
}

.blog-post-card .post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.blog-post-card .post-title {
    margin-bottom: 15px;
    font-size: 1.4rem;
    line-height: 1.3;
}

.blog-post-card .post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-card .post-title a:hover {
    color: #667eea;
}

.blog-post-card .post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-post-card .read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.blog-post-card .read-more:hover {
    transform: translateX(5px);
}

.blog-post-card .read-more i {
    margin-left: 5px;
    font-size: 0.9rem;
}

/* Single Post Styles */
.single-post {
    padding: 60px 0;
    background: #f8f9fa;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.post-header .post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.post-header .post-category {
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.post-title {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #333;
}

.post-excerpt {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.6;
}

.post-featured-image {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-content h2 {
    margin: 40px 0 20px 0;
    color: #333;
    font-size: 2rem;
}

.post-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.post-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
}

.post-content blockquote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
    color: #333;
}

.post-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.post-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.post-tags span {
    font-weight: 600;
    margin-right: 10px;
}

.post-tags a {
    display: inline-block;
    background: #f8f9fa;
    color: #667eea;
    padding: 5px 12px;
    border-radius: 15px;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: #667eea;
    color: white;
}

.post-navigation {
    max-width: 800px;
    margin: 50px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid #e9ecef;
}

.nav-back {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.nav-back:hover {
    transform: translateX(-5px);
}

.nav-back i {
    margin-right: 8px;
}

.nav-next span {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.nav-next a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-next a:hover {
    color: #667eea;
}

.view-all-container {
    text-align: center;
    margin-top: 50px;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.about-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 2rem;
}

.about-text p {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #555;
}

.team-member {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.team-member h3 {
    margin-bottom: 10px;
    color: #333;
}

.team-member p {
    color: #666;
    margin-bottom: 8px;
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form h2 {
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #667eea;
    outline: none;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info h2 {
    margin-bottom: 30px;
    color: #333;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-item span {
    color: #555;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 991px) {
    .desktop-nav {
        display: none;
    }
    
    .desktop-search {
        display: none;
    }
    
    .mobile-nav-controls {
        display: flex;
    }
    
    body {
        padding-top: 70px;
    }
    
    /* Hero section responsive */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .home-hero-grid {
        grid-template-columns: 1fr;
    }
    
    .home-article.primary {
        grid-column: 1;
    }
    
    .home-article p {
        font-size: 1.1rem;
    }
    
    .home-article.primary p {
        font-size: 1.4rem;
    }
    
    /* Featured posts responsive */
    .featured-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
    
    .featured-card.large {
        grid-column: span 6;
        grid-row: span 1;
        min-height: 400px;
    }
    
    .featured-card.medium,
    .featured-card.small {
        grid-column: span 3;
        min-height: 200px;
    }
    
    .featured-card.horizontal {
        grid-column: span 6;
        min-height: 180px;
    }
    
    .featured-card.large .featured-image {
        height: 200px;
    }
    
    .featured-card.large .featured-title {
        font-size: 1.5rem;
    }
    
    /* About and contact responsive */
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Hero section mobile */
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
    }
    
    .home-article {
        min-height: 150px;
    }
    
    .home-article.primary {
        min-height: 200px;
    }
    
    .home-article p {
        padding: 15px;
        font-size: 1rem;
    }
    
    .home-article.primary p {
        font-size: 1.2rem;
    }
    
    .latest-issue,
    .author-widget {
        padding: 20px;
    }
    
    .author-image img {
        width: 100px;
        height: 100px;
    }
    
    /* Blog and single post responsive */
    .blog-hero h1,
    .about-hero h1,
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 2.2rem;
    }
    
    .post-content {
        padding: 30px 20px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav-next {
        text-align: center;
    }
    
    /* Featured posts mobile */
    .featured-posts {
        padding: 60px 0;
    }
    
    .featured-posts h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .featured-card.large,
    .featured-card.medium,
    .featured-card.small,
    .featured-card.horizontal {
        grid-column: span 1;
        min-height: auto;
    }
    
    .featured-card.horizontal {
        flex-direction: column;
    }
    
    .featured-card.horizontal .featured-image {
        width: 100%;
        height: 200px;
    }
    
    .featured-card.horizontal .featured-content {
        width: 100%;
    }
    
    .featured-card.large .featured-title {
        font-size: 1.4rem;
    }
    
    .featured-card.medium .featured-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    /* Hero section small mobile */
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .home-article p {
        font-size: 0.9rem;
    }
    
    .home-article.primary p {
        font-size: 1rem;
    }
    
    /* Mobile menu */
    .mobile-menu {
        width: 100%;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    /* Blog and single post small mobile */
    .blog-hero h1,
    .about-hero h1,
    .contact-hero h1 {
        font-size: 1.8rem;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-header .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Featured posts small mobile */
    .featured-posts h2 {
        font-size: 1.8rem;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    .featured-card.large .featured-title {
        font-size: 1.3rem;
    }
    
    .featured-card.medium .featured-title,
    .featured-card.small .featured-title,
    .featured-card.horizontal .featured-title {
        font-size: 1.1rem;
    }
}

/* Form Validation Styles */
.form-group.error input,
.form-group.error textarea {
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.form-group.success input,
.form-group.success textarea {
    border-color: #2ecc71;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 8px;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.btn-primary.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-primary.loading .btn-text {
    display: none;
}

.btn-primary.loading .btn-loading {
    display: flex;
}

.btn-loading {
    display: none;
    align-items: center;
    gap: 10px;
}

/* Success Message */
.form-success {
    display: none;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    animation: slideUp 0.5s ease;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Opinion Piece Specific Styles */
.opinion-piece .post-header {
    border-left: 5px solid #667eea;
    padding-left: 25px;
    margin-left: -30px;
}

.opinion-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.opinion-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #856404;
}

.opinion-disclaimer i {
    color: #f39c12;
    font-size: 1.2rem;
}

.article-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 30px 0;
    background: #f8f9ff;
    padding: 25px;
    border-radius: 0 10px 10px 0;
}

.key-point {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.key-point h3 {
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.key-point h3 i {
    font-size: 1.4rem;
}

.case-study {
    background: #e8f4fd;
    border: 2px solid #3498db;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.case-study h4 {
    color: #2980b9;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.expert-quote {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    border: none;
    margin: 35px 0;
    position: relative;
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.3);
}

.expert-quote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(255,255,255,0.3);
    font-family: Georgia, serif;
}

.expert-quote cite {
    color: rgba(255,255,255,0.9);
    font-style: italic;
    margin-top: 15px;
    display: block;
    text-align: right;
}

.stat-box {
    text-align: center;
    background: #2c3e50;
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 30px auto;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.3);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.tech-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.tech-method {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.tech-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.tech-method h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.tech-method ul {
    list-style: none;
    padding: 0;
}

.tech-method li {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
    position: relative;
    padding-left: 25px;
}

.tech-method li::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.emphasis {
    background: #fff9e6;
    border-left: 4px solid #f39c12;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
    font-style: italic;
    margin: 25px 0;
}

.supply-impact {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    border: 2px solid #e9ecef;
}

.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.impact-item {
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.impact-item.negative {
    background: #ffeaa7;
    border: 2px solid #fdcb6e;
}

.impact-item.positive {
    background: #d1f7c4;
    border: 2px solid #55efc4;
}

.impact-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.impact-item.negative i {
    color: #e74c3c;
}

.impact-item.positive i {
    color: #27ae60;
}

.impact-item h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.solution-pathways {
    margin: 40px 0;
}

.pathway {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #667eea;
}

.pathway:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.pathway-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pathway-icon i {
    color: white;
    font-size: 1.8rem;
}

.pathway-content h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.conclusion-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin: 50px 0;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.conclusion-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="rgba(255,255,255,0.1)"><polygon points="50,0 100,50 50,100 0,50"/></svg>');
    background-size: 200px;
}

.conclusion-box h3 {
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.conclusion-box p {
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.final-thought {
    font-size: 1.2rem;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid rgba(255,255,255,0.3);
}

/* Enhanced Tags */
.post-tags {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 3px solid #f1f3f4;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.post-tags span {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

.post-tags a {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-opinion { background: #667eea; color: white; }
.tag-environment { background: #27ae60; color: white; }
.tag-sustainability { background: #2ecc71; color: white; }
.tag-mining { background: #e67e22; color: white; }
.tag-global-south { background: #9b59b6; color: white; }
.tag-energy { background: #3498db; color: white; }

.post-tags a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Author Bio */
.author-bio {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    border-left: 5px solid #667eea;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
}

.author-info h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.facebook { background: #3b5998; }

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid #e9ecef;
}

.related-posts h3 {
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
    font-size: 1.8rem;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.related-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.related-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.related-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-content {
    padding: 20px;
}

.related-content h4 {
    margin-bottom: 10px;
}

.related-content h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: #667eea;
}

.related-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Responsive Design for Opinion Piece */
@media (max-width: 768px) {
    .opinion-piece .post-header {
        margin-left: 0;
        padding-left: 20px;
    }
    
    .tech-comparison,
    .impact-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .pathway {
        flex-direction: column;
        text-align: center;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .share-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .opinion-disclaimer {
        flex-direction: column;
        text-align: center;
    }
    
    .article-intro {
        padding: 20px 15px;
    }
    
    .key-point,
    .expert-quote,
    .conclusion-box {
        padding: 20px 15px;
    }
    
    .stat-box {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}
.desktop-search video,
.related-post video,
article video,
section video {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: inherit;
  object-fit: cover;
}

@media (max-width: 768px) {
  video {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}
/* Ensure search results container is properly structured */
.search-results-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.search-results-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

#search-query-display {
    font-size: 1.2rem;
    color: #666;
}

/* Fix blog post card images */
.blog-post-card .post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa; /* Fallback background */
}

.blog-post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block; /* Ensure image displays properly */
}

.blog-post-card:hover .post-image img {
    transform: scale(1.05);
}

/* Ensure proper image loading */
.blog-post-card .post-image img[src=""],
.blog-post-card .post-image img:not([src]) {
    display: none;
}

/* Fallback for missing images */
.blog-post-card .post-image:empty::before {
    content: "📄";
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Fix container height */
.container {
    min-height: auto;
    flex: 1;
}

/* Ensure posts grid displays properly */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
}

/* No results styling */
.no-results {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.no-results h3 {
    margin-bottom: 1rem;
    color: #333;
}

.no-results p {
    color: #666;
    font-size: 1.1rem;
}

.no-results a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.no-results a:hover {
    text-decoration: underline;
}