/* =========================================
   1. GLOBAL TYPOGRAPHY & LAYOUT
   ========================================= */
body, p, span, li {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    color: #4a5568; 
    line-height: 1.7;
}

#landing-page, #plunge-picker {
    text-align: center;
    max-width: 650px;
    margin: 60px auto;
    padding: 50px 30px;
    background: #ffffff;
    border-radius: 24px; 
    box-shadow: 0 15px 50px rgba(0,0,0,0.08); 
}

/* =========================================
   2. FIX: WHITE TEXT ON DARK OVERLAYS
   ========================================= */
/* Force the paragraph text (like "For most people...") to be white */
.main-slider .entry-content p,
.post-overlay .entry-content,
.post-overlay p,
.widget_blaze_themes_banner_slider_widget .entry-content {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8); /* Shadow for readability */
    opacity: 0.95;
}

/* Force Titles on images to be White */
.widget_blaze_themes_banner_slider_widget .entry-title a,
.widget_blaze_themes_grid_posts_slider_widget .entry-title a,
.main-slider .entry-title a,
.post-overlay .entry-title a {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-weight: 600 !important; 
}

/* Meta Data (Dates/Authors) on images */
.widget_blaze_themes_banner_slider_widget .entry-meta span,
.post-overlay .entry-meta span {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400;
}

/* =========================================
   3. FIX: "LATEST STORIES" HEADER & ICON
   ========================================= */
/* The Blue Gradient Box */
.widget-title,
.widget-title span {
    background: linear-gradient(90deg, #0077b6 0%, #0096c7 100%) !important;
    color: #ffffff !important; /* Force Text White */
    padding-top: 14px !important;    
    padding-bottom: 14px !important; 
    line-height: 1 !important;
    display: flex; /* Aligns text and icon */
    align-items: center;
    border-radius: 8px;
    padding-left: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Force the Icon inside the header to be white */
.widget-title i, 
.widget-title svg,
.widget-title::before {
    color: #ffffff !important;
    fill: #ffffff !important;
    margin-right: 10px; /* Space between icon and text */
}

/* =========================================
   4. CAPSULE SEARCH BAR
   ========================================= */
.widget_search .search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.widget_search .search-field, 
input[type="search"] {
    width: 100%;
    padding: 15px 60px 15px 25px !important; 
    border-radius: 50px !important; 
    border: 2px solid #f1f5f9 !important;
    background-color: #f8fafc !important;
    font-size: 14px;
    transition: all 0.3s ease;
}

.widget_search .search-field:focus {
    background-color: #ffffff !important;
    border-color: #0077b6 !important;
    box-shadow: 0 4px 20px rgba(0, 119, 182, 0.15) !important;
    outline: none;
}

.widget_search .search-submit {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 40px !important;
    width: 40px !important;
    border-radius: 50% !important; 
    background: linear-gradient(135deg, #0077b6, #00b4d8) !important;
    color: white !important;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 119, 182, 0.3);
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget_search .search-submit:hover {
    transform: translateY(-50%) scale(1.1) !important;
}

/* =========================================
   5. MODERN CARD STYLES & ZOOM
   ========================================= */
.archive .post, .blog .post, .grid-item, .list-post-block {
    background: #ffffff;
    border-radius: 16px !important;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    padding: 20px !important;
    margin-bottom: 30px;
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive .post:hover, .blog .post:hover {
    transform: translateY(-5px); 
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08) !important;
}

/* Zoom Effect */
.post-thumbnail img, .list-post-block img {
    border-radius: 12px !important;
    width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

.post:hover .post-thumbnail img {
    transform: scale(1.05); 
}

/* =========================================
   6. POST TITLES (Standard)
   ========================================= */
.post-title a, .entry-title a {
    color: #1a202c; 
    text-decoration: none !important;
    font-size: 1.25rem !important;
    line-height: 1.4;
    font-weight: 700; 
    letter-spacing: -0.02em; 
}

.post-title a:hover {
    color: #0077b6 !important; 
}

/* =========================================
   7. BUTTONS & ARROWS
   ========================================= */
/* Orange Menu Button */
.menu-button-orange > a {
    background-color: #ff8c00 !important;
    color: #ffffff !important;
    padding: 8px 20px !important; 
    border-radius: 50px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: normal !important;
    border: none !important;
    margin-top: 10px !important; 
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.25);
}

.menu-button-orange > a:hover {
    background-color: #e67e00 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.35);
}

/* Slider Arrows */
.widget_blaze_themes_grid_posts_slider_widget .slick-arrow,
.slick-prev:before, .slick-next:before {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 300 !important;
    font-size: 20px !important;
}

/* =========================================
   8. CLEANUP (Hide Default Titles)
   ========================================= */
.td-page-header .entry-title, h1.entry-title {
    display: none !important;
}

/* Landing Page Buttons */
.picker-btn, #get-started {
    background-color: #fd2f21;
    color: #ffffff !important;
    padding: 18px 35px;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(253, 47, 33, 0.3);
}

/* =========================================
   9. FOOTER TEXT & ICONS (NEW)
   ========================================= */

/* General Footer Container Text */
footer, .site-footer, #colophon, .footer-widgets, .site-info {
    color: #ffffff !important;
}

/* Force standard text elements, links, and lists to be white */
.site-footer p, 
.site-footer span, 
.site-footer a, 
.site-footer li, 
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5,
footer p, footer span, footer a, footer li, footer h3 {
    color: #ffffff !important;
}

/* Force Social Icons (SVG, FontAwesome, etc) to be white */
.site-footer i, 
.site-footer svg, 
.site-footer .fa, 
.site-footer .fab,
.footer-social-icons a,
footer i, footer svg {
    color: #ffffff !important;
    fill: #ffffff !important;
    border-color: #ffffff !important;
}

/* Optional: Add hover opacity for links so they don't look static */
.site-footer a:hover, footer a:hover {
    opacity: 0.8;
}

/* =========================================
   10. FEATURED PARTNER LOGO WIDGET (SKIN ONLY)
   ========================================= */

/* 1. CONTAINER: Do not touch layout. 
      We leave the positioning exactly as your widget sets it. */
.widget_text, .textwidget, .gs_logo_container {
    background: transparent;
    border: none;
    box-shadow: none;
    margin-bottom: 30px; /* Just some space at the bottom */
}

/* 2. HEADER: Keep your blue gradient style */
.widget_text .widget-title {
    background: linear-gradient(90deg, #0077b6 0%, #0096c7 100%) !important;
    color: #ffffff !important;
    padding: 15px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    display: block !important;
}

/* 3. THE LOGOS: Add the "Card" styling ONLY. 
      No width/height changes. */
.gs_logo_container img {
    /* The "Square Box" Look */
    background-color: #ffffff !important;
    border: 2px solid #f1f5f9 !important;
    border-radius: 12px !important;       /* Rounded corners */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important; /* Subtle shadow */
    
    /* Spacing inside the box */
    padding: 15px !important;             
    box-sizing: content-box !important;   /* Ensures padding adds to the size, keeping logo safe */
    
    /* Animation */
    transition: all 0.3s ease !important;
    
    /* Optional: Start B&W, color on hover (Remove if you want color always) */
    filter: grayscale(100%);
    opacity: 0.8;
}

/* 4. HOVER EFFECT */
.gs_logo_container img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px); /* Subtle float up */
    border-color: #0077b6 !important;
    box-shadow: 0 10px 20px rgba(0, 119, 182, 0.15) !important;
}

/* Base Style for the Card */
.modern-card {
    /* Smooth transition for the transform (movement) and shadow */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                border-color 0.3s ease;
    
    /* Setup initial look */
    border: 2px solid #e5e5e5; /* Subtle grey border initially */
    border-radius: 15px;       /* Matches the rounded look in your image */
    background: white;
    padding: 20px;             /* Gives the logo breathing room */
}

/* The Hover Effect */
.modern-card:hover {
    /* The "Bounce Forward" - Scales up 1.05x and moves up 8px */
    transform: scale(1.05) translateY(-8px);
    
    /* The "Highlight" - Blue border */
    border-color: #007cba;     /* Change this HEX code to match your exact blue */
    
    /* The "Glow" - First shadow is for depth, second is for the blue glow */
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1), 
                0 0 15px rgba(0, 124, 186, 0.4); 
    
    /* Ensures it pops OVER neighboring items */
    position: relative;
    z-index: 10;
}
/* Container Style */
.custom-icon-box {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #f0f0f0; /* Very subtle border */
    transition: all 0.3s ease; /* Smooth animation */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Light shadow */
    text-align: center; /* Center content */
}

/* Hover Effect - The Lift */
.custom-icon-box:hover {
    transform: translateY(-5px); /* Moves the box up */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1); /* Deepens shadow */
    border-color: #e0e0e0;
}

/* Icon Styling (Adjust selector based on your builder) */
.custom-icon-box i, 
.custom-icon-box svg {
    font-size: 40px;
    color: #333; /* Dark gray icon */
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

/* Icon Color Change on Hover */
.custom-icon-box:hover i,
.custom-icon-box:hover svg {
    color: #0073aa; /* Change to your brand color */
}

/* Update this section at the bottom of your CSS */
.last-home-product, 
.last-home-product img {
    width: 100% !important;  /* Forces it to fill the column */
    max-width: 100%;         /* Prevents it from overflowing */
    height: auto !important; /* Maintains aspect ratio so it doesn't stretch */
    object-fit: contain;
    display: block;
    margin: 0 auto;          /* Centers it if the container is larger */
}