/* Sticky Navigation */
.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

body {
    padding-top: 80px;
}

/* Top Newsletter Bar */
.newsletter-top-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
    position: relative;
    z-index: 10000;
}

.newsletter-top-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.newsletter-top-text {
    font-size: 1em;
    font-weight: 500;
}

.newsletter-top-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.newsletter-top-form input[type="email"] {
    padding: 8px 15px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    width: 250px;
    outline: none;
}

.newsletter-top-form button {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.newsletter-top-form button:hover {
    background: #218838;
    transform: translateY(-1px);
}

.close-newsletter-bar {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-newsletter-bar:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Adjust body padding when newsletter bar is shown */
body.has-newsletter-bar {
    padding-top: 140px;
}

/* Hide Page Titles */
.entry-title,
.page-title,
h1.entry-title,
.ast-single-post .entry-title {
    display: none !important;
}

/* Clean content spacing */
.entry-content {
    margin-top: 0 !important;
    padding-top: 20px !important;
}

/* Tighter layout spacing */
.wp-block-group,
.entry-content > *,
div[style*="padding"] {
    margin-bottom: 20px !important;
}

/* Consistent typography */
body, p {
    font-size: 16px;
    line-height: 1.6;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    margin-top: 25px;
}

h3 {
    font-size: 1.4em;
    margin-bottom: 12px;
    margin-top: 20px;
}

/* Scroll to Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

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

#scroll-to-top:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .site-header {
        background: rgba(255, 255, 255, 0.98);
    }
    
    body {
        padding-top: 70px;
    }

    body.has-newsletter-bar {
        padding-top: 160px;
    }
    
    .newsletter-top-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-top-form input[type="email"] {
        width: 200px;
    }
    
    #scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .close-newsletter-bar {
        position: static;
        transform: none;
        margin-top: 10px;
    }
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

img[data-lazy] {
    opacity: 0;
}

img[data-lazy].loaded {
    opacity: 1;
}

/* Enhanced Card Hover Effects */
.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Newsletter Form Enhancements */
.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
}

.newsletter-form button:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Footer Styling */
.custom-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-section p, .footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #3498db;
}

/* Clean, Minimalist Social Icons */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #34495e;
    color: #bdc3c7;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    border: 1px solid #495057;
}

.social-icon:hover {
    background: #495057;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-icon.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.social-icon.instagram:hover {
    background: #e1306c;
    border-color: #e1306c;
}

.social-icon.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

/* Social Icon Symbols - Clean and Minimal */
.social-icon .icon-twitter::before {
    content: "𝕏";
    font-size: 14px;
}

.social-icon .icon-instagram::before {
    content: "📷";
    font-size: 14px;
}

.social-icon .icon-linkedin::before {
    content: "💼";
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
    font-size: 0.9em;
}

.footer-bottom a {
    color: #3498db;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Hide Homepage Newsletter Section - Remove from bottom */
.homepage-newsletter,
div[style*="Join the Journey"],
div[id="newsletter"] {
    display: none !important;
}

/* Compact content blocks */
.wp-block-group__inner-container > *,
.entry-content > div {
    margin-bottom: 25px !important;
}

/* Better section spacing */
div[style*="padding: 60px"] {
    padding: 40px 20px !important;
}

div[style*="padding: 50px"] {
    padding: 35px 20px !important;
}

/* Consistent button styling */
a[style*="background: #"] {
    border-radius: 6px !important;
    padding: 12px 24px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}
