* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    background: #fff;
}

a {
    color: #0000EE;
}

a:visited {
    color: #551A8B;
}

a:hover {
    text-decoration: underline;
}

/* HEADER */
.header {
    background: #003366;
    padding: 10px 15px;
    border-bottom: 3px solid #FFD700;
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    color: #FFD700;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
}

.logo:visited {
    color: #FFD700;
}

.nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-size: 15px;
}

.nav a:hover {
    text-decoration: underline;
}

.nav a:visited {
    color: #ccc;
}

/* DROPDOWN MENUS */
.dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-left: 20px;
    color: #fff;
    font-size: 15px;
}

.dropdown a {
    margin-left: 0;
}

.mega-menu {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 400px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 20px;
    border-radius: 4px;
    border-top: 3px solid #ffcc00;
    top: 100%;
    left: 0;
}

.mega-menu a,
.mega-menu a:visited {
    color: #333;
    padding: 6px 0;
    text-decoration: none;
    display: block;
}

.mega-menu a:hover {
    color: #003366;
    background-color: transparent;
    text-decoration: underline;
}

.dropdown:hover .mega-menu {
    display: block;
}

.dropdown.active .mega-menu {
    display: block;
}

.mega-section {
    margin-bottom: 20px;
}

.mega-section:last-child {
    margin-bottom: 0;
}

.mega-title {
    font-weight: bold;
    color: #003366;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 16px;
}

.mega-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* MOBILE TOGGLE */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 10px;
    }

    .nav.active {
        display: flex;
    }

    .nav a,
    .dropdown {
        margin-left: 0;
        padding: 10px 0;
        border-bottom: 1px solid #004080;
    }

    .mega-menu {
        position: static;
        min-width: 100%;
        box-shadow: none;
        padding: 10px 0 0 10px;
        background-color: transparent;
        border-top: none;
    }

    .mega-menu a {
        color: #fff;
    }

    .mega-title {
        color: #FFD700;
        border-bottom-color: #004080;
    }
}

/* MAIN CONTENT */
.main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 15px;
    color: #666;
}

.breadcrumb a {
    color: #0000EE;
}

h1 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #000;
}

h2 {
    font-size: 20px;
    margin: 30px 0 15px 0;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

h3 {
    font-size: 17px;
    margin: 20px 0 10px 0;
    color: #333;
}

p {
    margin-bottom: 15px;
}

ul,
ol {
    margin: 15px 0 15px 25px;
}

li {
    margin-bottom: 8px;
}

/* YELLOW ANSWER BOX */
.answer-box,
.statement-card {
    background: #FFFFCC;
    border: 2px solid #CC9900;
    padding: 20px;
    margin: 20px 0;
}

.answer-box .conversion {
    font-size: 28px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 10px;
}

.answer-box .savings {
    font-size: 18px;
    color: #006600;
    margin-bottom: 15px;
}

/* CARDS */
.card,
.about-container {
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    margin: 20px 0;
}

.data-sheet {
    margin: 15px 0;
}

.ds-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}

.ds-label {
    font-weight: bold;
    width: 40%;
}

.ds-value {
    width: 60%;
}

.ds-value.highlight {
    background: #FFFFCC;
    padding: 2px 8px;
}

.ds-value.money {
    color: #006600;
    font-weight: bold;
}

/* TABLES */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0 25px 0;
    font-size: 15px;
}

th,
td {
    border: 1px solid #ccc;
    padding: 12px 15px;
    text-align: left;
}

th {
    background: #E8E8E8;
    font-weight: bold;
}

tr:nth-child(even) {
    background: #F9F9F9;
}

.highlight {
    background: #FFFFCC;
    font-weight: bold;
}

/* BUTTONS & UTILITY CLASSES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background: #FF9900;
    color: #000;
}

.btn-primary:hover {
    background: #FFB84D;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: #003366;
    color: #fff;
}

.btn-secondary:hover {
    background: #004080;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: #fff;
    color: #003366;
    border: 2px solid #003366;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
    background: #003366;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 18px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* CATEGORY BUTTONS & ACCORDION */
.category-accordion>summary {
    cursor: pointer;
    list-style: none;
    /* Hide default triangle */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-medium);
}

.category-accordion>summary::-webkit-details-marker {
    display: none;
}

.category-accordion .accordion-icon {
    width: 24px;
    height: 24px;
    position: relative;
    display: inline-block;
}

.category-accordion .accordion-icon::before,
.category-accordion .accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.category-accordion .accordion-icon::before {
    top: 11px;
    left: 4px;
    width: 16px;
    height: 2px;
}

.category-accordion .accordion-icon::after {
    top: 4px;
    left: 11px;
    width: 2px;
    height: 16px;
}

.category-accordion[open] .accordion-icon::after {
    transform: rotate(90deg);
}

.category-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

/* Category btns are now handled by .btn .btn-outline */

/* TECH NOTE */
.tech-note {
    background: #F0F8FF;
    border: 1px solid #4A90D9;
    border-left: 4px solid #003366;
    padding: 15px 20px;
    margin: 20px 0;
}

.tech-note strong {
    color: #003366;
}

/* RELATED LINKS SECTION */
.related-section {
    margin: 30px 0;
}

.related-section h2 {
    background: #E8E8E8;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-bottom: none;
    margin-bottom: 0;
}

.link-columns {
    border: 1px solid #ccc;
    padding: 15px 20px;
    column-count: 3;
    column-gap: 25px;
}

@media (max-width: 700px) {
    .link-columns {
        column-count: 2;
    }
}

@media (max-width: 500px) {
    .link-columns {
        column-count: 1;
    }
}

.link-columns a {
    display: block;
    padding: 3px 0;
    text-decoration: none;
}

.link-columns a:hover {
    text-decoration: underline;
}

.link-category {
    font-weight: bold;
    color: #333;
    margin-top: 12px;
    margin-bottom: 5px;
    font-size: 13px;
    text-transform: uppercase;
}

.link-category:first-child {
    margin-top: 0;
}

.note {
    font-size: 13px;
    color: #666;
}

/* HEADER-MATCHING FOOTER */
.footer {
    background: #003366;
    color: #fff;
    padding: 60px 20px 30px;
    margin-top: 60px;
    border-top: 3px solid #FFD700;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.brand-col .logo {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 22px;
    /* Matches header logo */
    font-weight: bold;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 0;
}

.margin-top-gap {
    margin-top: 25px !important;
}

.footer-col h3 {
    color: #FFD700;
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 15px 0;
    border: none;
    padding: 0;
    background: transparent;
}

.footer-col a {
    display: block;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 10px;
    padding: 0;
}

.footer-col a:visited {
    color: #ccc;
}

.footer-col a:hover {
    color: #FFD700;
    text-decoration: underline;
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.legal-links {
    margin-bottom: 20px;
}

.legal-links a {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    margin: 0 15px;
    display: inline-block;
}

.legal-links a:visited {
    color: #ccc;
}

.legal-links a:hover {
    color: #FFD700;
    text-decoration: underline;
}

.amazon-disclosure {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.amazon-disclosure img {
    height: 14px;
    opacity: 0.6;
}

.copyright {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 0;
}

@media (max-width: 800px) {
    .footer-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
}

@media (max-width: 500px) {
    .footer-nav {
        grid-template-columns: 1fr;
    }

    .amazon-disclosure {
        flex-direction: column;
        text-align: center;
    }

    .legal-links a {
        display: block;
        margin: 10px 0;
    }
}

/* PRODUCT GRID (Recommendations) - Full width stacked layout */
.product-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.product-card {
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px 25px;
    border-left: 5px solid #ccc;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card.best-value {
    border-left-color: #003366;
    background: #f8fbff;
}

.product-card.premium {
    border-left-color: #FF9900;
    background: #fffdf8;
}

.product-card h4 {
    font-size: 18px;
    font-weight: bold;
    margin: 8px 0 12px 0;
    color: #000;
    line-height: 1.3;
}

.product-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #222;
}

.product-card .product-specs {
    font-size: 14px;
    color: #555;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    margin-bottom: 15px;
    line-height: 1.8;
}

.product-card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 3px;
    background: #e2e8f0;
    color: #334155;
}

.product-card.best-value .product-card-badge {
    background: #003366;
    color: #fff;
}

.product-card.premium .product-card-badge {
    background: #FF9900;
    color: #000;
}

.product-card .btn {
    font-size: 17px;
    padding: 14px 24px;
    font-weight: 700;
    margin-top: 5px;
}

/* PREMIUM CONTACT FORM */
.premium-form {
    margin-top: 25px;
}

.premium-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.premium-form .form-group {
    margin-bottom: 20px;
}

.premium-form .half-width {
    flex: 1;
    margin-bottom: 0;
}

.premium-form label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-input,
.premium-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    background: #fafafa;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

.premium-input:focus,
.premium-textarea:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
    background: #fff;
}

.premium-textarea {
    min-height: 150px;
    resize: vertical;
}

.calculator-input button {
    margin-top: 10px;
}

/* Use .btn .btn-block .btn-secondary in HTML instead of .calc-btn */

.premium-button {
    background: #FFD700;
    color: #003366;
    border: none;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s, transform 0.2s;
    margin-top: 10px;
}

.premium-button:hover {
    background: #ffcc00;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .premium-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* CALCULATOR WIDGET */
.calculator {
    background: #F5F5F5;
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
}

.calc-row {
    margin-bottom: 10px;
}

.calc-row label {
    display: block;
    font-weight: bold;
    margin-bottom: 3px;
}

.calc-row select,
.calc-row input {
    padding: 8px 10px;
    font-size: 16px;
    border: 1px solid #999;
    font-family: inherit;
}

.calc-row select {
    min-width: 220px;
    max-width: 100%;
    box-sizing: border-box;
}

.calc-row input {
    width: 120px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Use .btn .btn-block .btn-secondary in HTML instead of .calc-btn */

.result {
    margin-top: 15px;
    padding: 10px;
    background: #FFFFCC;
    border: 1px solid #CC9900;
    display: none;
}

.result.show {
    display: block;
}

.result strong {
    font-size: 16px;
}




/* Spec tables in guides */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

.spec-table th {
    background: #003366;
    color: #FFD700;
    padding: 9px 12px;
    text-align: left;
    font-size: 13px;
}

.spec-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.spec-table tr:nth-child(even) td {
    background: #f9fafb;
}

.spec-table td:first-child {
    font-weight: 700;
    color: #003366;
    width: 30%;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .spec-table td:first-child {
        white-space: normal;
    }
}

/* PREMIUM SITEMAP */
.sitemap-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #EEE;
    padding-bottom: 20px;
}

.premium-sitemap-section {
    margin-bottom: 30px;
}

.premium-sitemap-section h2 {
    color: #003366;
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 10px;
    display: inline-block;
}

.sitemap-grid {
    display: grid;
    gap: 15px;
}

.general-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.guides-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.commercial-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.sitemap-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #003366;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.2s ease;
}

.sitemap-link:hover {
    background: #003366;
    color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Sitemap Accordions for Conversion Charts */
.sitemap-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sitemap-category {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

.sitemap-category summary {
    padding: 15px 20px;
    font-weight: bold;
    font-size: 18px;
    background: #f1f5f9;
    cursor: pointer;
    color: #003366;
    list-style: none;
    /* Hide default triangle in some browsers */
    position: relative;
    border-bottom: 1px solid transparent;
}

.sitemap-category summary::-webkit-details-marker {
    display: none;
    /* Hide default triangle in WebKit */
}

.sitemap-category summary::after {
    content: '▼';
    position: absolute;
    right: 20px;
    color: #64748b;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.sitemap-category[open] summary::after {
    transform: rotate(180deg);
}

.sitemap-category[open] summary {
    border-bottom: 1px solid #ccc;
}

.sitemap-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    padding: 20px;
    background: #fff;
}

.mini-link {
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
    justify-content: center;
}

@media (max-width: 600px) {

    .general-grid,
    .guides-grid,
    .commercial-grid {
        grid-template-columns: 1fr;
    }

    .sitemap-subgrid {
        grid-template-columns: repeat(2, 1fr);
    }
}