/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

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

:root {
    --primary-dark: #0a1929;
    --secondary-dark: #132a3f;
    --accent-gold: #d4af37;
    --text-light: #e8e8e8;
    --text-gray: #b0b0b0;
    --hover-gold: #f0c75e;
    --card-bg: #1a2332;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--primary-dark);
}

/* Make blog page respond to global theme toggle */
html[data-theme="light"] body.blogs-page {
    color: #1f2937;
    background-color: #f3f6fb;
}

html[data-theme="light"] .page-header {
    background: linear-gradient(135deg, #f8fbff 0%, #eaf2ff 100%);
    border-bottom-color: rgba(45, 108, 223, 0.22);
}

html[data-theme="light"] .page-title {
    color: #0a2540;
}

html[data-theme="light"] .blog-section {
    background-color: #f3f6fb;
}

html[data-theme="light"] .blog-card {
    background-color: #ffffff;
    border-color: rgba(45, 108, 223, 0.16);
}

html[data-theme="light"] .blog-meta,
html[data-theme="light"] .meta-item,
html[data-theme="light"] .blog-excerpt {
    color: #4b5563;
}

html[data-theme="light"] .tag {
    color: #1d4ed8;
    border-color: rgba(29, 78, 216, 0.25);
    background-color: rgba(59, 130, 246, 0.1);
}

/* Keep blog page content below the fixed global navbar */
body.blogs-page {
    padding-top: 92px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    padding: 6rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 2px;
}

/* Blog Section */
.blog-section {
    padding: 5rem 0;
    background-color: var(--primary-dark);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    gap: 3rem;
}

/* Blog Card */
.blog-card {
    background-color: var(--card-bg);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold);
}

/* Blog Image */
.blog-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.08);
}

/* Blog Content */
.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Blog Meta */
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.meta-item {
    color: var(--text-gray);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-item i {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

/* Blog Title */
.blog-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #3b82f6;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: #60a5fa;
}

/* Blog Excerpt */
.blog-excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Blog Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.tag {
    background-color: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
}

.tag i {
    font-size: 0.75rem;
}

/* Read More Button */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    color: #60a5fa;
    gap: 0.8rem;
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    }
}

@media (max-width: 968px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 3rem;
    }
    
    .blog-section {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    body.blogs-page {
        padding-top: 80px;
    }

    .page-header {
        padding: 4rem 0 3rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .blog-grid {
        gap: 2rem;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    .blog-title {
        font-size: 1.3rem;
    }
    
    .blog-meta {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .blog-image {
        height: 220px;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-excerpt {
        font-size: 0.9rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .meta-item {
        font-size: 0.8rem;
    }
}

/* Additional utility classes for navbar and footer compatibility */
.navbar {
    background-color: var(--secondary-dark);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-gold);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-menu li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--accent-gold);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.theme-toggle {
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.theme-toggle:hover {
    background-color: rgba(212, 175, 55, 0.1);
    transform: rotate(20deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--accent-gold);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Footer Styles */
.footer {
    background-color: var(--secondary-dark);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover {
    color: var(--accent-gold);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--text-gray);
}

.contact-info .icon {
    font-size: 1.2rem;
}

.footer-contact-item a,
.footer-contact-item a:link,
.footer-contact-item a:visited,
.footer-contact-item a:active {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--hover-gold) 100%);
    color: var(--primary-dark);
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 85px;
        flex-direction: column;
        background-color: var(--secondary-dark);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        gap: 0;
        border-top: 2px solid var(--accent-gold);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .theme-toggle {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .contact-info li {
        justify-content: flex-start;
    }
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}
