/* Hide dark images in light mode */
[data-md-color-scheme="default"] .only-dark {
  display: none !important;
}

/* Hide light images in dark mode */
[data-md-color-scheme="slate"] .only-light {
  display: none !important;
}


/* 1. Hide the icons that are nested INSIDE the copyright block (the left ones) */
.md-copyright > .md-social {
    display: none !important;
}

/* 2. Ensure the SECOND social block (the right ones) is visible */
.md-footer-meta__inner > .md-social {
    display: flex !important;
}

/* 3. Force the container to push them to opposite sides */
.md-footer-meta__inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-direction: row !important;
}

/* 4. Ensure the copyright area doesn't try to grow too wide */
.md-copyright {
    flex: 1;
}


/* ==========================================================
   PRICING TABLE & PAYPAL BUTTONS
   ========================================================== */
/* 1. Base Pricing Card Setup */
.md-typeset .pricing-card {
    position: relative !important;
    overflow: visible !important; /* Required for badges to pop out top */
    display: flex;
    flex-direction: column;
    padding-top: 2rem; /* Space for the badge */
}

/* 2. Badge Styling (Combined & Bulletproof) */
.md-typeset .card-badge {
    display: block;
    position: absolute !important;
    top: -12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10;
    
    /* Look and Feel */
    background-color: #526cfe !important; /* Professional Blue */
    color: #ffffff !important;
    padding: 4px 14px !important;
    border-radius: 20px !important;
    font-size: 0.7rem !important;
    font-weight: bold !important;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* 3. Special "Best Value" Gold Badge & Card Highlight */
.md-typeset .featured-card {
    border: 2px solid #ffd700 !important;
    transform: scale(1.03); /* Subtle pop for the middle card */
}

.md-typeset .featured-card .card-badge {
    background-color: #ffd700 !important; /* Gold */
    color: #000 !important;
}

/* 4. PayPal Form & Buttons */
.card-button {
    margin-top: auto; /* Pushes button to the bottom of the card */
    padding-top: 1rem;
}

.card-button form img {
    max-width: 150px;
    height: auto;
}

.card-button section {
    line-height: 1;
    margin-top: 4px;
    font-size: 0.75rem;
}

/* Styling the "Buy Now" input to match your site buttons */
.card-button input.button.buy-now {
    display: inline-block;
    width: 100%;
    padding: 0.6em 2em;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

/* 5. Dark Mode Corrections (Specific to Slate theme) */
[data-md-color-scheme="slate"] .card-button img[src*="paypal-wordmark-color.svg"] {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

[data-md-color-scheme="slate"] .card-button section {
    color: #ccc !important;
}

/* 6. Mobile Responsiveness */
@media (max-width: 76.25em) {
    .md-typeset .featured-card {
        transform: scale(1); /* Don't scale on small screens */
        margin: 1.5rem 0;
    }
}


/* Peaceful Blue Banner Override */
[data-md-color-scheme] .md-banner {
    background-color: #e1f5fe !important; /* Soft Sky Blue */
    color: #01579b !important;            /* Dark Blue Text */
}

/* Ensure links in the banner are also readable */
[data-md-color-scheme] .md-banner a {
    color: #01579b !important;
    text-decoration: underline;
}

/* Hide page header */
.md-content h1 {
   display: none;
}

/* remove white space from top of content */
.md-typeset h2 {
	margin: 0 !important;
}

/* remove padding from logo image container */
.md-header__button.md-logo {
	margin: 0;
	padding: 0;
}	

/* enlarge the logo image in the header */
.md-header__button.md-logo img, 
.md-header__button.md-logo svg {
    height: 2.4rem;
    width: auto;
}

 /* reduce white space on top */
.md-main__inner {
	margin-top: 0;
}	

.md-header__ellipsis {
	font-size: 1.7rem;
	display: flex;
/*	justify-content: center; */
}	

 /* reduce margin-top on tabs */
.md-tabs__link {
	/* margin-top: 0.6rem; */ /* vs. 0.8rem */
}	

/* Base Button Style */
.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    color: white !important; /* Forces the text to be white */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
	width: 220px;
}

/* Download Button Style (the 'trial' class) */
.button.trial {
    background-color: #4CAF50; /* Green */
}

.button.features {
    background-color: #40D3D6;
}

.button.trial:hover {
    background-color: #45a049;
}

/* Animation (for 'animated shake') */
/* You would typically use a library like Animate.css here,
   but this is a minimal shake example: */
@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  100% { transform: translate(1px, 1px) rotate(0deg); }
}
.shake:hover {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
}

/* --- Feature Row Layout (Checkmate/Zigzag) --- */

/* Basic container for all feature rows */
.feature-row {
    display: flex; /* Enables flexible box layout */
    align-items: center; /* Vertically centers content */
    margin: 40px 0; /* Add space between rows */
    padding: 20px 0;
    border-bottom: 1px solid var(--md-default-fg-color--lightest); /* Optional separator */
    flex-wrap: wrap; /* Allows stacking on small screens */
}

/* Styles for text and image containers */
.feature-text, .feature-image {
    width: 50%;
    padding: 0 20px;
    box-sizing: border-box; 
}

.feature-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Optional rounded corners for images */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow */
}

/* 1. Image on the Right (Default layout) */
/* The HTML structure already puts text first, then image, so we don't need to change order */
.feature-row.image-right {
    /* Text on left (first item), Image on right (second item) */
    flex-direction: row;
}

/* 2. Image on the Left (Alternating layout) */
.feature-row.image-left {
    /* Use flex-direction: row-reverse to swap the order of the two divs */
    flex-direction: row-reverse;
}

/* --- Responsive Design (Stacking on Mobile) --- */
@media (max-width: 900px) {
    .feature-row {
        flex-direction: column !important; /* Forces all rows to stack */
    }

    .feature-text, .feature-image {
        width: 100%; /* Each takes full width */
        padding: 10px 0;
        text-align: center; /* Center text/images on mobile */
    }

    .feature-image {
        order: -1; /* Move image to the top of the stack on mobile */
    }

    /* Optional: Small spacing for text above image */
    .feature-text {
        padding-top: 20px;
    }
}

/* --- Screenshot Grid Container (4 Columns) --- */
.screenshot-grid {
    display: flex; /* Enable Flexbox */
    flex-wrap: wrap; /* Allows items to wrap onto new lines */
    gap: 20px; /* Space between grid items */
    margin-top: 30px;
    list-style: none; /* Remove list bullets if used */
    padding: 0;
	overflow: visible;
}

/* --- Individual Screenshot Item --- */
.screenshot-item {
    /* Calculates 25% of the container width minus the space between columns (gap) */
    flex-basis: calc(25% - 15px);
    text-align: center;
    text-decoration: none; /* Remove link underline */
    color: var(--md-default-fg-color);
    overflow: visible; /* Important to keep shadow/zoom within bounds */
    border-radius: 8px;
    background-color: var(--md-default-bg-color); /* Light background */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle lift */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for zoom */
}

.screenshot-item img {
    max-width: 100%;
    height: auto;
    display: block; /* Removes any extra spacing below image */
    transition: transform 0.3s ease; /* Smooth transition just for the image */
}

.screenshot-item p {
    padding: 10px 5px;
    font-size: 0.9em;
    margin: 0;
    font-weight: 500;
}

/* --- Individual Screenshot Item --- */
.screenshot-item {
    /* ... (rest of the code remains the same) ... */
    position: relative; /* IMPORTANT: Sets a reference point for the absolute position on hover */
    z-index: 1; /* Ensures non-hovered items are behind the zoomed one */
}

/* --- Hover Effect: Zoom and Lift --- */
 /* Remove the slight upward lift transform from the container */
 /* Make the hovered item jump above all others */
.screenshot-item:hover {
    transform: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 10; 
}

/* --- Pricing Table Grid Container --- */
.pricing-table {
    display: flex;
    justify-content: center;
    gap: 24px; /* Space between cards */
    margin-top: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allows cards to wrap on smaller screens */
}

/* --- Individual Pricing Card Styling --- */
.pricing-card {
    flex-basis: calc(33.333% - 16px); /* 3 cards wide, adjusting for gap */
    max-width: 320px;
    text-align: center;
    padding: 10px 20px 20px;
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex; /* Use flex to align content vertically */
    flex-direction: column;
}

/* Hover Effect */
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* --- Card Components --- */

/* Icon Styling */
.card-icon {
    font-size: 2.5rem;
    color: var(--md-default-fg-color--light);
    margin-bottom: 10px;
}

/* Featured Card (Middle one) */
.featured-card {
    border-color: var(--md-accent-fg-color); /* Use accent color for border */
    transform: scale(1.05); /* Make it slightly larger */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.featured-card .card-icon {
    color: var(--md-accent-fg-color); /* Use accent color for icon */
}

/* Title Styling */
.card-title {
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
    /* Ensure links inside the title match text color */
    color: var(--md-default-fg-color);
}
.card-title a {
    text-decoration: underline;
    color: inherit;
    font-weight: 600;
}

/* Price Styling */
.card-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--md-primary-fg-color); /* Use primary theme color for price */
    margin-top: auto; /* Pushes price/button to the bottom */
    margin-bottom: 20px;
}

/* Button Container */
.card-button {
    padding-top: 15px;
    border-top: 1px dashed var(--md-default-fg-color--lightest);
}

/* Buy Now Button (Inherits from previously defined .button if available) */
.button.buy-now {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 1.05rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    background-color: var(--md-primary-fg-color);
    color: white !important;
    transition: background-color 0.2s;
}

.button.buy-now:hover {
    background-color: var(--md-primary-fg-color--light);
}

/* Featured Button (Middle one) */
.button.primary-button {
    background-color: var(--md-accent-fg-color);
	color: white !important;
}
.button.primary-button:hover {
    background-color: var(--md-primary-fg-color--light) !important;
	background-color: var(--md-accent-fg-color) !important;
	filter: brightness(110%);
}


/* --- Responsive Styles --- */
@media (max-width: 960px) {
    .pricing-card {
        flex-basis: calc(50% - 12px); /* 2 cards wide on medium screens */
    }
}

@media (max-width: 600px) {
    .pricing-table {
        gap: 16px;
    }
    .pricing-card {
        flex-basis: 100%; /* 1 card wide on small screens */
        max-width: none;
        transform: none !important;
    }
}