/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #ffffff;
    color: #000000;
    line-height: 1.6;
}

a {
    text-decoration: none;
}
/* General typography adjustments for headings and paragraphs */
h1, h2, h3 {
    margin-bottom: 20px; /* Space between heading and following content */
    line-height: 1.4; /* Adjust the line-height for better readability */
}

p {
    margin-bottom: 20px; /* Space between paragraphs */
    line-height: 1.6; /* Ensure the text doesn't feel cramped */
}

/* List spacing */
ul {
    margin-bottom: 20px; /* Space between lists and other elements */
    padding-left: 20px;  /* Ensure the list items are indented */
}

li {
    margin-bottom: 10px; /* Space between list items */
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
.site-header {
    background: #003366;
    color: #ffffff;
    padding: 15px 0;
    position: relative;  /* Ensure the header can contain absolute positioned elements */
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #ffffff;
    font-weight: 500;
}

.main-nav a:hover {
    opacity: 0.8;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-menu div {
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 5px;
}

/* Mobile styles */
@media (max-width: 768px) {
    /* Logo */
    .logo a {
        font-size: 20px;
    }

    /* Hide nav links by default on mobile */
    .main-nav ul {
        display: none;
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }

    .main-nav ul li {
        margin: 10px 0;
    }

    /* Show the hamburger menu */
    .hamburger-menu {
        display: flex;
    }

    /* Overlay navigation */
    .main-nav.overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent dark background */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 9999;  /* Make sure it's above all other content */
        transform: translateX(-100%);  /* Hide off-screen by default */
        transition: transform 0.3s ease-in-out;
    }

    .main-nav.overlay.active {
        transform: translateX(0);  /* Slide the menu in */
    }

    .main-nav.overlay ul {
        display: block;
        width: 100%;
    }

    .main-nav.overlay ul li {
        margin: 20px 0;
    }
}
.main-content {margin:20px 20px 20px 20px}
 /* Add styles for the Slug and Share Section */
    .share-section {
        margin-top: 20px;
        text-align: center;
    }
@media (max-width: 768px) {
    .mortgage-container {
        grid-template-columns: 1fr;
    }
}

/* Content */
.content {
   
}

/* Footer */
.site-footer {
    background: #003366;
    color: #ffffff;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.site-footer h4 {
    margin-bottom: 12px;
}

.site-footer p,
.site-footer a {
    color: #ffffff;
    font-size: 14px;
}

.site-footer ul {
    list-style: none;
}

.site-footer ul li {
    margin-bottom: 8px;
}

.footer-bottom {
    background: #002244;
    text-align: center;
    padding: 12px 0;
    font-size: 13px;
}

/*this is for landing page */

/* HERO */
.hero {
    background: #003366;
    color: #ffffff;
    padding: 70px 0;
    text-align: center;
}


.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 25px;
    font-size: 18px;
}

/* BUTTONS */
.btn-primary {
    background: #ffffff;
    color: #003366;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}

.btn-outline {
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 10px 26px;
    border-radius: 4px;
    font-weight: 600;
}

/* SECTIONS */
.section {
    padding: 60px 0;
}

.section-light {
    background: #f5f7fa;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #003366;
}

/* CARDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 6px;
}

.card h3 {
    color: #003366;
    margin-bottom: 15px;
}

.card ul {
    list-style: none;
}

.card ul li {
    padding: 4px 0;
    font-size: 14px;
}



/* POPULAR */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.popular-item {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    font-weight: 500;
    color: #003366;
    border-radius: 4px;
}

/* CTA */
.cta {
    background: #003366;
    color: #ffffff;
    text-align: center;
    padding: 60px 0;
}

.narrow {
    max-width: 800px;
}
/* Calculator Layout */
.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

/* Main calculator area */
.calculator-main {
    max-width: 100%;
}
/* Responsive fix */
@media (max-width: 992px) {
    .calculator-layout {
        grid-template-columns: 1fr;
    }

    .calculator-sidebar {
        position: static;
        margin-top: 30px;
    }
}

/*this is cslculator css*/

/* HERO GRID */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    
}

/* HERO TEXT */
.hero-text h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 25px;
    max-width: 520px;
}

/* CALCULATOR CARD */
.calculator-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    max-width: 340px;
    margin-left: auto;
}

/* DISPLAY */
.calculator-display {
    background: #003366;
    color: #ffffff;
    font-size: 32px;
    text-align: right;
    padding: 20px;
    font-weight: 600;
}

/* BUTTON GRID */
.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.calculator-buttons button {
    border: 1px solid #e0e0e0;
    padding: 18px;
    font-size: 18px;
    cursor: pointer;
    background: #ffffff;
    transition: background 0.2s;
}

.calculator-buttons button:hover {
    background: #f0f4f8;
}

.calculator-buttons .equals {
    background: #003366;
    color: #ffffff;
}

.calculator-buttons .equals:hover {
    background: #002244;
}

.calculator-buttons .span-2 {
    grid-column: span 2;
}
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr; /* Stack hero text and calculator card vertically */
        gap: 30px; /* Less gap between elements on mobile */
        justify-items:center;
    }

    /* Adjust Hero Text */
    .hero-text h1 {
        font-size: 28px; /* Smaller font size on mobile */
    }

    .hero-text p {
        font-size: 16px; /* Adjust paragraph font size for better readability */
        max-width: 90%; /* Allow text to take up more width */
      /*  margin: 0 auto;  Center text */
    }

    /* Adjust Calculator Card */
    .calculator-card {
        width: 100%; /* Make calculator card take full width */
        max-width: 100%; /* Remove max-width restriction */
        margin: 0; /* Reset margin */
    }

    /* Adjust Button Sizes */
    .calculator-buttons button {
        font-size: 16px; /* Smaller button text */
        padding: 15px; /* Adjust padding */
    }

    /* Adjust Display Size */
    .calculator-display {
        font-size: 28px; /* Smaller font size on mobile */
        padding: 18px; /* Adjust padding */
    }

    .btn-primary {
        padding: 10px 20px; /* Adjust button size */
        font-size: 16px; /* Adjust font size for smaller screens */
    }
}

/*all calculators*/

.calc-title {
    text-align: center;
    color: #003366;
    margin-bottom: 10px;
}

.calc-desc {
    text-align: center;
    margin-bottom: 30px;
    font-size: 15px;
}

.calc-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.calc-card label {
    font-weight: 600;
    margin-top: 15px;
    display: block;
}

.calc-card input {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.calc-btn {
    margin-top: 20px;
    background: #003366;
    color: #ffffff;
    padding: 12px;
    width: 100%;
    border: none;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
}

.calc-result {
    margin-top: 20px;
    background: #f5f7fa;
    padding: 15px;
    border-radius: 4px;
    font-weight: 500;
}

/* Calculator layout */
.calc-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Main content */
.calc-content {
    flex: 1;
}

/* Sidebar */
.calc-sidebar {
    width: 280px;
    background: #f9f9f9;
    padding: 16px;
    border-radius: 8px;
}

.calc-sidebar h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.calc-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.calc-sidebar li {
    margin-bottom: 8px;
}

.calc-sidebar a {
    text-decoration: none;
    color: #333;
}

.calc-sidebar a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    .calc-layout {
        flex-direction: column;
    }

    .calc-sidebar {
        width: 100%;
        margin-top: 30px;
    }
}

/*this is for ebay uk and usa fields and grid*/
/* Responsive Grid for Calculator Forms */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 15px;
}

.calc-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.calc-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.calc-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* Tablet and up */
@media (min-width: 768px) {
    .calc-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calc-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calc-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    .calc-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .calc-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.calc-field {
    display: flex;
    flex-direction: column;
}

.calc-field label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.calc-field input,
.calc-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.calc-section-title {
    color: #003366;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #003366;
    grid-column: 1 / -1;
}

.calc-checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.calc-checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.calc-checkbox-group label {
    margin: 0;
    font-weight: 500;
}

.full-width {
    grid-column: 1 / -1;
}