/* Make text more readable on mobile */
@media (max-width: 768px) {
    body, p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    
    h1, h2, h3 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
    
    /* Hero text improvements */
    .wp-block-cover-text, .hero-text {
        font-size: 1.4rem !important;
    }
}
/* === HERO BANNER IMPROVEMENTS ON MOBILE === */
@media (max-width: 768px) {
    
    /* Reduce height so it doesn't take too much screen space on phones */
    .wp-block-cover {
        min-height: 380px !important;     /* You can change 380px to 350px or 420px */
    }

    /* Add more breathing space inside the hero */
    .wp-block-cover__inner-container {
        padding: 30px 20px !important;
    }

    /* Make the main heading (your tagline) bigger and clearer on mobile */
    .wp-block-cover .wp-block-heading,
    .wp-block-cover h1,
    .wp-block-cover h2 {
        font-size: 1.85rem !important;
        line-height: 1.25 !important;
        margin-bottom: 15px !important;
    }

    /* Improve the smaller text (AMFI registration, subtitle etc.) */
    .wp-block-cover p {
        font-size: 1.05rem !important;
        line-height: 1.5 !important;
    }

    /* Make sure the content is centered nicely */
    .wp-block-cover__inner-container {
        text-align: center !important;
    }
}
/* === NAVIGATION MENU + GENERAL MOBILE SPACING === */
@media (max-width: 768px) {

    /* Make navigation collapse properly into hamburger and easier to use */
    .wp-block-navigation__responsive-container.is-menu-open {
        padding: 20px 15px !important;
    }

    .wp-block-navigation__submenu-container,
    .wp-block-navigation__container {
        gap: 8px !important;
    }

    /* Better touch targets for menu items */
    .wp-block-navigation-item a {
        padding: 12px 15px !important;
        min-height: 48px !important;
        font-size: 1.1rem !important;
    }

    /* Reduce excessive padding/margins between main sections */
    .wp-block-group,
    .wp-block-post-template,
    .wp-block-columns {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Safe global padding to prevent horizontal scrolling */
    .entry-content,
    .wp-block-group.is-layout-constrained {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Prevent any unwanted horizontal scroll */
    html, body {
        overflow-x: hidden !important;
    }
}
/* === BLOG POSTS + NEWS TABLE MOBILE FIXES === */
@media (max-width: 768px) {

    /* Make blog post cards / list items more readable and spaced */
    .wp-block-post-template,
    .wp-block-post {
        gap: 25px !important;
    }

    .wp-block-post .wp-block-post-title {
        font-size: 1.35rem !important;
        line-height: 1.35 !important;
        margin-bottom: 10px !important;
    }

    .wp-block-post-excerpt p,
    .wp-block-post .entry-summary {
        font-size: 1rem !important;
        line-height: 1.55 !important;
    }

    /* Fix the News / "Do You Know" table - prevent horizontal scroll */
    table,
    .wp-block-table {
        width: 100% !important;
        overflow-x: auto !important;
        display: block !important;
    }

    table td,
    table th {
        font-size: 0.95rem !important;
        padding: 10px 8px !important;
        word-break: break-word !important;
    }

    /* Make long links in news section wrap properly */
    table a {
        word-break: break-all !important;
        hyphens: auto !important;
    }

    /* Improve "Load more posts" button */
    .wp-block-button__link,
    .load-more {
        min-height: 52px !important;
        font-size: 1.1rem !important;
        padding: 14px 24px !important;
        width: 100% !important;   /* Makes it full width on mobile - easier to tap */
    }

    /* Add more breathing space between major sections */
    .wp-block-group:not(:first-child) {
        margin-top: 35px !important;
    }
}
/* === FINAL POLISH: TESTIMONIALS, FOOTER, BUTTONS & SAFETY === */
@media (max-width: 768px) {

    /* Testimonials - make quote more readable and prominent */
    .wp-block-quote,
    blockquote {
        font-size: 1.15rem !important;
        line-height: 1.6 !important;
        padding: 20px 25px !important;
        margin: 30px 0 !important;
        border-left: 6px solid #0073aa !important;   /* Nice blue accent for finance feel */
    }

    .wp-block-quote p {
        margin-bottom: 10px !important;
    }

    .wp-block-quote cite {
        font-size: 1rem !important;
        font-style: italic !important;
    }

    /* Make "Load more posts" button full-width and highly tappable */
    .wp-block-button__link,
    .load-more-button,
    button.load-more {
        width: 100% !important;
        min-height: 55px !important;
        font-size: 1.15rem !important;
        padding: 16px 20px !important;
        margin: 25px auto !important;
        display: block !important;
    }

    /* Footer improvements - better spacing and readability */
    footer,
    .wp-block-group.footer,
    .site-footer {
        padding: 30px 15px 20px !important;
        font-size: 0.95rem !important;
    }

    footer p,
    footer a {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    /* General safety for any remaining columns or groups */
    .wp-block-columns {
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* Final touch: Slightly increase line height for all paragraphs for better reading */
    p {
        line-height: 1.65 !important;
    }
}
.finance-news-section .news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.finance-news-section h3 a:hover {
    color: #1e40af;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}