﻿    /* Layout Styling */
    body {
        margin: 0;
        font-family: 'Segoe UI', sans-serif;
        background-color: #f5f5f5;
    }

    .header-bar {
        background-color: #fff;
        border-bottom: 1px solid #ddd;
        display: flex;
        flex-wrap: wrap; /* ✅ allow wrap */
        justify-content: space-between;
        align-items: center;
        padding: 12px 24px;
    }

    /* Find your existing .header-logo rule and update it */
    .header-logo {
        display: flex;
        align-items: center; /* This is the key for vertical alignment */
        flex-wrap: nowrap; /* Prevent wrapping for better control */
        gap: 10px; /* Adds space between logo and name */
    }

    /* This targets the hyperlink that wraps your logo and name */
    .header-logo a {
        text-decoration: none; /* Removes the underline from the link */
        display: flex; /* Ensures the flex properties from .header-logo are inherited */
        align-items: center;
        gap: 10px;
    }

    /* Find your existing .business-name rule and ensure it looks like this */
.business-name {
    text-decoration: none; /* Removes the underline from the link */
    align-items: center; /* This is the key for vertical alignment */
    font-size: 20px;
    font-weight: bold;
    /* The color will be set by the inline style from the code-behind, 
           but we can set a fallback color here */
    color: #333;
    border: none;
}

    .header-right {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .phone-number {
        font-weight: 600;
        color: #d32f2f;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }

    .footer {
        background-color: #111;
        color: #eee;
        padding: 30px 20px 10px 20px;
    }

    .footer-columns {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        max-width: 1100px;
        margin: auto;
    }

    .footer-column {
        flex: 1 1 200px;
        margin: 10px;
    }

    .footer-column h4 {
        font-size: 15px;
        color: #fff;
        margin-bottom: 10px;
    }

    .footer-column p {
        margin: 0 0 6px 0;
        font-size: 13px;
        color: #ccc;
    }

    .copyright {
        text-align: center;
        font-size: 13px;
        padding: 10px;
        color: #999;
        border-top: 1px solid #333;
        margin-top: 20px;
    }

    main {
        padding: 30px;
    }
    .ubw-container {
        max-width: 800px;
        margin: 40px auto;
        padding: 30px;
        background-color: #ffffff;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    /* Base styles */
    .ubw-nav {
        background-color: #fff;
        border-bottom: 1px solid #ddd;
        padding: 10px 15px;
    }

    .nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo-text {
        font-size: 1.5em;
        font-weight: bold;
    }

    .menu-toggle {
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
        display: none; /* Hidden on desktop */
    }

    .ubw-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 20px;
    }

    .ubw-menu li a {
        text-decoration: none;
        font-weight: bold;
        color: #333;
    }

    .ubw-menu li a:hover {
        color: #007acc;
    }

    /* Mobile Styles */
    @media (max-width: 768px) {
        .header-bar {
            position: relative; /* This is crucial for positioning the menu */
        }

        .menu-toggle {
            display: block; /* Show the hamburger button */
        }

        .ubw-menu {
            display: none; /* Hide the menu by default */
            position: absolute; /* This makes the menu float over the page content */
            top: 100%; /* Start the menu right below the parent header bar */
            left: 0;
            width: 100%;
            background-color: #333; /* A solid background is important for pop-up menus */
            list-style: none;
            padding: 0;
            margin: 0;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Add a subtle shadow */
            z-index: 1000; /* Ensure it appears above other content */
            flex-direction: column; /* Stack items vertically */
        }

            /* This is the key rule: When JS adds the 'show' class, display the menu */
            .ubw-menu.show {
                display: flex; /* We use 'flex' because its items are flex items */
            }

            /* Style the individual menu items for a better mobile experience */
            .ubw-menu li {
                width: 100%;
                border-bottom: 1px solid #444; /* Separator lines */
            }

                .ubw-menu li:last-child {
                    border-bottom: none; /* Remove border from the last item */
                }

                .ubw-menu li a {
                    display: block; /* Make the entire area clickable */
                    padding: 15px 20px;
                    color: white;
                    text-align: left;
                }

                    .ubw-menu li a:hover {
                        background-color: #555; /* Add a hover effect */
                        color: #fff;
                    }

        /* Optional: Hide some desktop elements on mobile for a cleaner look */
        .header-right .phone-number {
            display: none;
        }
    }
    .form-group {
        display: flex;
        align-items: center;
        margin-bottom: 12px;
    }

    .form-group label {
        width: 150px; /* consistent label width */
        font-weight: bold;
    }

    .form-control {
        flex: 1;
        padding: 5px;
        font-size: 14px;
    }
    .tooltip-icon {
        display: inline-block;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: yellow;
        border: 2px solid black;
        color: black;
        font-weight: bold;
        font-size: 14px;
        text-align: center;
        line-height: 16px;
        cursor: pointer;
        margin-left: 6px;
        position: relative;
    }

    .tooltip-icon:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
        transform: translateY(0px);
    }

    .tooltip-text {
        visibility: hidden;
        opacity: 0;
        background-color: #333;
        color: #fff;
        text-align: left;
        border-radius: 4px;
        padding: 10px;
        position: absolute;
        z-index: 999;
        top: 24px;
        left: 0;
        width: 280px;
        font-size: 13px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
        transform: translateY(-10px);
    }
    .form-section {
        border: 1px solid #ddd; /* Thin, light gray border */
        border-radius: 8px; /* Rounded corners */
        padding: 25px 20px 20px 20px; /* Top, R/L, Bottom */
        margin-bottom: 25px;
        position: relative;
    }

    .form-section legend {
        font-size: 1.1em;
        font-weight: 600;
        padding: 0 10px; /* Creates space around the text */
        margin-left: 10px; /* Aligns with the input fields */
        width: auto; /* Required for the "cut-through" effect */
        border-bottom: none; /* Removes default fieldset border on legend */
    }
    
    .form-section small {
        font-weight: normal;
        color: #555;
    }
    
    /* Simple layout for labels and inputs */
    .form-row {
        margin-bottom: 15px;
    }
    .form-row label {
        display: block;
        margin-bottom: 5px;
    }
    .form-row .aspNetTextBox, 
    .form-row .aspNetTextArea {
        width: 100%;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }
    .label-wrapper {
        display: flex;
        align-items: center;
        gap: 5px; /* adds space between label and icon */
        margin-bottom: 4px;
    }
    .join-button {
        background-color: #007bff;        /* Bootstrap blue */
        color: white;
        border: none;
        padding: 10px 20px;
        font-size: 16px;
        border-radius: 6px;               /* Slightly rounded corners */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
        cursor: pointer;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

    .join-button:hover {
        background-color: #0056b3;        /* Darker blue on hover */
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    .product-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .product-card {
        flex: 0 1 300px; /* Flex-grow, flex-shrink, flex-basis */
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: transform 0.2s ease-in-out;
    }

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .product-card a {
        text-decoration: none;
        color: inherit;
    }

    .product-image-container {
        width: 100%;
        height: 150px;
        background-color: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-image {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain; /* Use 'cover' if you want it to fill the box */
    }

    .product-info {
        padding: 15px;
        text-align: center;
        flex-grow: 1; /* Allows this section to grow and fill space */
    }

        .product-info h3 {
            font-size: 1.1em;
            margin: 0 0 5px 0;
        }

    .product-subtitle {
        font-size: 0.9em;
        color: #666;
        margin: 0 0 10px 0;
        min-height: 1.1em; /* Ensures layout doesn't jump if subtitle is missing */
    }

    .product-description-summary {
        font-size: 0.9em;
        color: #333;
        line-height: 1.4;
    }

    .no-items-panel {
        text-align: center;
        padding: 40px;
        color: #888;
    }
    .service-detail-title {
        font-size: 2.2em;
        margin-bottom: 10px;
    }

    .service-detail-price {
        font-size: 1.4em;
        color: #007bff;
        margin-bottom: 20px;
        font-weight: 600;
    }

    .service-detail-image {
        margin-bottom: 25px;
        text-align: center;
    }

    .service-main-image {
        max-width: 100%;
        max-height: 400px;
        border-radius: 5px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .service-detail-content {
        line-height: 1.7;
        font-size: 1.1em;
    }
    .service-list-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .service-list-item {
        display: flex;
        flex-wrap: wrap; /* Allows wrapping on smaller screens */
        gap: 20px;
        padding: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 5px;
        align-items: center;
        background-color: #fff;
    }
    /* Alternating row color */
    .service-list-item:nth-child(even) {
        background-color: #f9f9f9;
    }

    .service-image-col {
        flex: 0 0 150px; /* Does not grow, does not shrink, starts at 150px */
    }

    .service-list-image {
        width: 150px;
        height: 100px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #ddd;
    }

    .service-info-col {
        flex: 1 1 500px; /* Grows and shrinks, with a base width */
    }

    .service-info-col h3 {
        margin: 0 0 5px 0;
        font-size: 1.2em;
    }

    .service-info-col h3 a {
        text-decoration: none;
        color: #333;
    }

    .service-info-col h3 a:hover {
        text-decoration: underline;
    }

    .service-info-col p {
        margin: 0;
        color: #555;
        font-size: 0.95em;
    }

    .service-action-col {
        flex: 1 1 100px;
        text-align: right;
    }

    .button.primary-button {
        display: inline-block;
        padding: 10px 20px;
        background-color: #007bff;
        color: white;
        text-decoration: none;
        border-radius: 4px;
        transition: background-color 0.2s;
    }

    .button.primary-button:hover {
        background-color: #0056b3;
    }

    .no-items-panel {
        text-align: center;
        padding: 40px;
        color: #888;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .service-list-item {
            flex-direction: column;
            align-items: flex-start;
            text-align: center;
        }

        .service-image-col, .service-info-col, .service-action-col {
            flex-basis: 100%; /* Each takes full width */
            text-align: center;
            width: 100%;
        }

        .service-action-col {
            margin-top: 15px;
        }
    }
    .blog-detail-header {
        text-align: center;
        margin-bottom: 25px;
    }

    .blog-detail-title {
        font-size: 2.5em;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    .blog-detail-meta {
        font-size: 1em;
        color: #666;
    }

    .blog-detail-image {
        margin-bottom: 30px;
        text-align: center;
    }

    .blog-main-image {
        max-width: 100%;
        max-height: 500px;
        border-radius: 5px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .blog-detail-content {
        line-height: 1.8;
        font-size: 1.1em;
    }

    .blog-detail-content p {
        margin-bottom: 1.5em;
    }

    .blog-detail-content h2, .blog-detail-content h3 {
        margin-top: 2em;
        margin-bottom: 0.8em;
        line-height: 1.3;
    }

    .blog-list-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .blog-list-item {
        display: flex;
        flex-wrap: wrap;
        gap: 25px;
        padding: 20px;
        border-bottom: 1px solid #e0e0e0;
        align-items: center;
    }

    .blog-list-item:first-child {
        padding-top: 0;
    }

    .blog-image-col {
        flex: 0 0 200px;
    }

    .blog-list-image {
        width: 200px;
        height: 120px;
        object-fit: cover;
        border-radius: 4px;
    }

    .blog-info-col {
        flex: 1 1 500px;
    }

    .blog-info-col h3 {
        margin: 0 0 5px 0;
        font-size: 1.4em;
    }

    .blog-info-col h3 a {
        text-decoration: none;
        color: #333;
    }

    .blog-info-col h3 a:hover {
        color: #007bff;
    }

    .post-meta {
        font-size: 0.9em;
        color: #777;
        margin-bottom: 10px;
    }

    .post-summary {
        margin: 0;
        color: #555;
        font-size: 1em;
        line-height: 1.5;
    }

    .blog-action-col {
        flex: 0 0 120px;
        text-align: center;
    }

    .button.primary-button {
        display: inline-block;
        padding: 10px 20px;
        background-color: #007bff;
        color: white;
        text-decoration: none;
        border-radius: 4px;
        transition: background-color 0.2s;
    }

    .button.primary-button:hover {
        background-color: #0056b3;
    }

    .no-items-panel {
        text-align: center;
        padding: 40px;
        color: #888;
    }

    @media (max-width: 768px) {
        .blog-list-item {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .blog-action-col {
            margin-top: 15px;
        }
    }
    .product-detail-title {
        font-size: 2.2em;
        margin-bottom: 5px;
    }

    .product-detail-subtitle {
        font-size: 1.2em;
        color: #555;
        margin-top: 0;
        font-weight: normal;
    }

    .product-detail-layout {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        margin-top: 20px;
    }

    .product-image-gallery {
        flex: 1 1 400px;
    }

    .main-image-wrapper {
        border: 1px solid #eee;
        padding: 10px;
        margin-bottom: 10px;
    }

    .main-product-image {
        width: 100%;
        height: auto;
    }

    .thumbnail-wrapper {
        display: flex;
        gap: 10px;
    }

    .thumbnail-image {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border: 2px solid #ddd;
        cursor: pointer;
        transition: border-color 0.2s;
    }

    .thumbnail-image:hover {
        border-color: #007bff;
    }

    .product-text-content {
        flex: 2 1 500px;
    }

    .product-detail-description {
        line-height: 1.6;
    }

    .purchase-links-section {
        margin-top: 40px;
        border-top: 1px solid #ddd;
        padding-top: 20px;
    }

    .purchase-links-section h3 {
        margin-bottom: 15px;
    }

    .purchase-link-logo {
        display: inline-block;
        margin: 0 15px 15px 0;
    }

    .purchase-link-logo img {
        max-height: 40px;
        max-width: 150px;
        vertical-align: middle;
        transition: opacity 0.2s;
    }

    .purchase-link-logo img:hover {
        opacity: 0.8;
    }
    /* --- Product Detail Page --- */

    .product-detail-title {
        font-size: 2.2em;
        margin-bottom: 5px;
    }

    .product-detail-subtitle {
        font-size: 1.2em;
        color: #555;
        margin-top: 0;
        font-weight: normal;
    }

    /* This is the main container that creates the two-column layout */
    .product-detail-layout {
        display: flex; /* Use Flexbox for easy column layout */
        flex-wrap: wrap; /* Allow columns to stack on mobile */
        gap: 30px; /* Space between the image and text columns */
        margin-top: 20px;
    }

    /* --- Left Column: Image Gallery --- */
    .product-image-gallery {
        flex: 1 1 400px; /* Grow, Shrink, Basis: A flexible column with a base width of 400px */
    }

    .main-image-wrapper {
        border: 1px solid #eee;
        padding: 10px;
        margin-bottom: 10px;
    }

    .main-product-image {
        width: 100%; /* Make the image fill its container */
        height: auto;
        display: block; /* Removes extra space below the image */
    }

    .thumbnail-wrapper {
        display: flex; /* Align thumbnails in a row */
        gap: 10px; /* Space between thumbnails */
    }

    .thumbnail-image {
        width: 80px;
        height: 80px;
        object-fit: cover; /* Ensures images fill the thumbnail box without distortion */
        border: 2px solid #ddd;
        cursor: pointer;
        transition: border-color 0.2s;
    }

    .thumbnail-image:hover {
        border-color: #007bff; /* Highlight thumbnail on hover */
    }


    /* --- Right Column: Text Content --- */
    .product-text-content {
        flex: 2 1 500px; /* This column will be wider and take up more space */
    }

    .product-detail-description {
        line-height: 1.6;
    }


    /* --- Purchase Links Section (Below the columns) --- */
    .purchase-links-section {
        margin-top: 40px;
        border-top: 1px solid #ddd;
        padding-top: 20px;
    }

    .purchase-links-section h3 {
        margin-bottom: 15px;
    }

    .purchase-link-logo {
        display: inline-block;
        margin: 0 15px 15px 0;
    }

    .purchase-link-logo img {
        max-height: 40px;
        max-width: 150px;
        vertical-align: middle;
        transition: opacity 0.2s;
    }

    .purchase-link-logo img:hover {
        opacity: 0.8;
    }

    /* --- Mobile Responsiveness --- */
    @media (max-width: 768px) {
        .product-detail-layout {
            flex-direction: column; /* Stack columns vertically on small screens */
        }
    }

    /* ======================== */
    /* === ADVERTISEMENT STYLES === */
    /* ======================== */

    .ads-container {
        max-width: 1100px;
        margin: 40px auto;
        padding: 20px;
        background-color: #f7f7f7;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
    }

    .ads-header {
        text-align: center;
        font-size: 0.8em;
        color: #999;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }

    .ads-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    /* Find and replace your existing .ad-card styles with this */
    .ad-card {
        flex: 1 1 250px; /* This allows it to be flexible */
        max-width: 48%; /* On larger screens, ensures a max of 2 per row */
        padding: 15px;
        background-color: #fff;
        border: none; /* A cleaner look without borders */
        text-align: left; /* Align text to the left for a classic ad look */
    }

    /* Find and replace your existing .ad-card h3 styles */
    .ad-card h3 {
        font-size: 1.1em;
        margin: 0 0 5px 0;
        font-weight: 500; /* Standard weight for ad headings */
    }

    /* Find and replace your existing .ad-card h3 a styles */
    .ad-card h3 a {
        text-decoration: none;
        color: #1a0dab; /* Google's classic ad link color */
    }

    .ad-card h3 a:hover {
        text-decoration: underline;
    }

    /* Find and replace your existing .ad-card p styles */
    .ad-card p {
        font-size: 0.9em;
        color: #4d5156; /* A standard ad copy color */
        margin: 0;
        line-height: 1.4;
    }

    .ad-card .ad-link {
        font-size: 0.9em;
        font-weight: bold;
        text-decoration: none;
        color: #333;
    }

/* ============================= */
/* === NEWSLETTER POPUP STYLES === */
/* ============================= */

    .popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .popup-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    .popup-box {
        background-color: #fff;
        padding: 30px 40px;
        border-radius: 8px; /* Softly rounded corners */
        width: 100%;
        max-width: 450px;
        text-align: center;
        position: relative;
        transform: scale(0.9);
        transition: transform 0.3s ease;
        /* --- THESE ARE THE KEY REFINEMENTS --- */
        border: 1px solid #e0e0e0; /* A thin, light grey border */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* A softer, more modern shadow */
    }
 
    .popup-overlay.show .popup-box {
        transform: scale(1);
    }

    .popup-box .close-btn {
        position: absolute;
        top: 10px;
        right: 15px;
        background: none;
        border: none;
        font-size: 28px;
        font-weight: bold;
        color: #aaa;
        cursor: pointer;
        line-height: 1;
    }

    .popup-box h2 {
        margin-top: 0;
        margin-bottom: 10px;
        color: #333;
    }

    .popup-box p {
        color: #666;
        margin-bottom: 25px;
    }

    .popup-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .popup-input {
        width: 100%;
        padding: 12px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 16px;
        box-sizing: border-box;
    }

    .popup-button {
        width: 100%;
        padding: 12px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 4px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .popup-button:hover {
        background-color: #0056b3;
    }

    .popup-message {
        margin-top: 15px;
        font-weight: bold;
        display: block;
    }

    .popup-message.success {
        color: #155724;
    }

    .popup-message.error {
        color: #721c24;
    }

    /*======================================= */
    /*== Join button Spinner Overlay ======== */
    /*======================================= */
    .loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.8);
        z-index: 9999;
        display: none; /* Hidden by default */
        justify-content: center;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .spinner {
        border: 8px solid #f3f3f3; /* Light grey */
        border-top: 8px solid #3498db; /* Blue */
        border-radius: 50%;
        width: 60px;
        height: 60px;
        animation: spin 1s linear infinite;
    }

    .loading-text {
        margin-top: 20px;
        font-size: 1.2em;
        color: #333;
        font-weight: 500;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    /* In site.css */
    .blog-list-item .blog-info-col {
        flex: 1; /* Allow this to take full width if the image is gone */
    }
