/* Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* base for scaling */
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fafafa;
    color: #333;
    line-height: 1.5;
}

/* Header */
.main-header-sec {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .8rem 1rem;
}

.logo img {
    height: 50px;
    max-width: 100%;
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-list a {
    text-decoration: none;
    color: #2C2C2C;
    font-weight: 500;
    transition: color .3s;
}

.nav-list a:hover {
    color: #1E90FF;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #2C2C2C;
    margin: 3px 0;
    transition: .3s;
}

/* Layout */
.main-container {
    max-width: 1200px;
    margin: 40px auto;
}

.container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 10px;
}

.breadcrumb {
    font-size: 14px;
    color: #555;
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 10px;
    display: flex;
    /* Make breadcrumb items inline and flexible */
    gap: 5px;
    /* Optional spacing between items */
    list-style: none;
    /* Remove default bullets */
    padding: 0;
    /* Remove default padding */
}

.breadcrumb li {
    display: inline;
    /* Inline items */
}

.breadcrumb a {
    color: #0077cc;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li+li::before {
    content: ">";
    margin: 0 5px;
    color: #555;
}


/* Calculator section */
.calculator-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.calculator {
    width: 100%;
    max-width: 700px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    word-break: break-word;
}

/* SEO + related tools */
.seo-layout {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.seo-content {
    flex: 1 1 65%;
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
}

.related-tools {
    flex: 1 1 30%;
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: fit-content;
    max-height: 100%;
}

.search-bar input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Footer */
.footer {
    background: #1f2937;
    padding: 3rem 1rem 1rem;
    color: white;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: rgb(207, 211, 218);
    text-decoration-line: underline;

}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 20px auto;
}

.footer-section h3,
.footer-section h4,
.footer-section p {
    color: white;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Breakpoints */

/* Tablet screens */
@media (max-width: 1024px) {
    .header-content {
        padding: .8rem;
    }

    .seo-layout {
        flex-direction: column;
    }

    .related-tools {
        width: 100%;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    .nav {
        display: none;
        width: 100%;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .calculator {
        padding: 15px;
    }

    .search-bar {
        display: none;
    }
}

/* Very small devices */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 10px;
    }

    .calculator {
        padding: 10px;
    }

    .breadcrumb {
        font-size: 12px;
    }
}


/* First Column */
.main-column {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


/* Content Section */
.content-section {
    line-height: 1.6;
}

.content-section h1,
.content-section h2,
.content-section h3 {
    color: #333;
    margin-bottom: 15px;
}

.content-section h1 {
    font-size: 22px;
}

.content-section h2 {
    font-size: 18px;
}

.content-section h3 {
    font-size: 16px;
}

.content-section p {
    color: #666;
    margin-bottom: 15px;
}

/* Second Column */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Search Bar */
.search-section {
    position: relative;
    /* Important for dropdown positioning */
    max-width: 400px;
}

.search-bar {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar:focus {
    border-color: #4CAF50;
}

/* Internal Links Section */
.links-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.links-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.internal-links {
    list-style: none;
}

.internal-links li {
    margin-bottom: 10px;
}

.internal-links a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.internal-links a:hover {
    color: #45a049;
    text-decoration: underline;
}

/* Mobile Links Section - Hidden by default on desktop */
.mobile-links-section {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .search-section {
        display: none;
    }

    .main-column {
        padding: 20px;
    }

    /* Hide sidebar links on mobile */
    .sidebar-column .links-section {
        display: none;
    }

    /* Show mobile links section */
    .mobile-links-section {
        display: block;
        background-color: white;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin-bottom: 30px;
    }

    .mobile-links-section h3 {
        color: #333;
        margin-bottom: 15px;
        font-size: 20px;
    }

    .mobile-links-section .internal-links {
        list-style: none;
    }

    .mobile-links-section .internal-links li {
        margin-bottom: 10px;
    }

    .mobile-links-section .internal-links a {
        color: #4CAF50;
        text-decoration: none;
        font-size: 16px;
        transition: color 0.3s;
    }

    .mobile-links-section .internal-links a:hover {
        color: #45a049;
        text-decoration: underline;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .content-section h1 {
        font-size: 28px;
    }

    .content-section h2 {
        font-size: 24px;
    }

    .content-section h3 {
        font-size: 20px;
    }

}

.tool-heading {
    margin-bottom: 10px;
}

.tool-heading h1 {
    text-align: center;
}

.tool-heading p {
    text-align: center;
}

.subtitle {
    font-size: 1.2rem;
    color: #636464;
    opacity: 0.9;
    text-align: center;
}

.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 1000;
    display: none;
    max-height: 250px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
}

.suggestion-item:hover {
    background: #f0f0f0;
}