* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;

    font-family: "Poppins", Arial, sans-serif;
    background: #ffffff;
    color: #1f2937;
}

/* Header */
.site-header {
    background: #0f3b66;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70px;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    color: #ffffff;
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo img {
    width: 230px;
    height: auto;
    display: block;
}

.logo span {
    color: #84cc16;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #a3e635;
}

/* =========================================
   HEADER RESPONSIVE
========================================= */

@media (max-width: 1200px) {

    .header-container {
        padding: 0 20px;
    }

    .logo img {
        width: 200px;
    }

    .main-nav {
        gap: 22px;
    }

    .main-nav a {
        font-size: 15px;
    }

}


@media (max-width: 1000px) {

    .header-container {
        padding: 0 16px;
    }

    .logo img {
        width: 180px;
    }

    .main-nav {
        gap: 16px;
    }

    .main-nav a {
        font-size: 14px;
    }

}


@media (max-width: 768px) {

    .header-container {
        min-height: 60px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px 16px;
    }

    .logo img {
        width: 170px;
    }

    .main-nav {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav a {
        font-size: 13px;
    }

}
/* ================================
   Homepage
================================ */

main {
    width: 100%;
}

/* Hero */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 25px;
    text-align: center;
}

.hero h1 {
    margin-bottom: 10px;
    color: #0f3b66;
    font-size: 36px;
    font-weight: 700;
}

.hero p {
    margin-bottom: 24px;
    color: #555555;
    font-size: 17px;
}

/* Search */
.search-box {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #b8c4d1;
    border-radius: 5px 0 0 5px;
    font-size: 15px;
    outline: none;
}

.search-box input:focus {
    border-color: #2563eb;
}

.search-box button {
    width: 100px;
    border: none;
    border-radius: 0 5px 5px 0;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.search-box button:hover {
    background: #1d4ed8;
}


/* Calculator Categories */
.calculator-categories {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px 30px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 55px;
}

.category h2 {
    margin-bottom: 14px;
    color: #087f23;
    font-size: 20px;
    font-weight: 500;
    white-space: nowrap;
}

.category a {
    display: block;
    margin-bottom: 9px;
    color: #0066b3;
    text-decoration: none;
    font-size: 15px;
}

.category a:hover {
    text-decoration: underline;
}


/* All Calculators */
.all-calculators {
    text-align: center;
    padding: 10px 24px 45px;
}

.all-calculators a {
    display: inline-block;
    padding: 12px 30px;
    background: #4b8524;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 17px;
    font-weight: 600;
}

.all-calculators a:hover {
    background: #3d6f1d;
}


/* Introduction */
.intro {
    background: #f1f3f5;
    padding: 30px 24px;
}

.intro p {
    max-width: 1100px;
    margin: 0 auto 15px;
    color: #444444;
    font-size: 15px;
    line-height: 1.6;
}

.intro p:last-child {
    margin-bottom: 0;
}


/* Footer */
.site-footer {
    background: #e2e5e8;
    padding: 25px 24px;
    text-align: center;
}

.site-footer nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.site-footer nav a {
    color: #333333;
    font-size: 14px;
    text-decoration: underline;
}

.site-footer p {
    color: #555555;
    font-size: 14px;
}


/* Responsive */
@media (max-width: 900px) {

    .calculator-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .header-container {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 12px 16px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 35px 16px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
    }

    .calculator-categories {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px 20px 35px;
    }

    .search-box {
        width: 100%;
    }
}

/* ================================
   Category Pages
================================ */

.category-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.category-page h1 {
    margin-bottom: 12px;
    color: #0f3b66;
    font-size: 32px;
    font-weight: 600;
}

.category-description {
    max-width: 850px;
    margin-bottom: 35px;
    color: #555555;
    font-size: 16px;
    line-height: 1.6;
}

.calculator-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.calculator-column a {
    display: block;
    margin-bottom: 11px;
    color: #0066b3;
    font-size: 16px;
    text-decoration: none;
}

.calculator-column a:hover {
    text-decoration: underline;
}


/* Category page responsive */

@media (max-width: 900px) {

    .calculator-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (max-width: 600px) {

    .category-page {
        padding: 30px 20px 45px;
    }

    .category-page h1 {
        font-size: 27px;
    }

    .calculator-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Tools page */

.category-page .calculator-column h2 {
    margin-bottom: 14px;
    color: #087f23;
    font-size: 20px;
    font-weight: 500;
}

/* ================================
   Sitemap
================================ */

.sitemap-section {
    margin-top: 35px;
}

.sitemap-section > h2 {
    margin-bottom: 22px;
    color: #0f3b66;
    font-size: 24px;
    font-weight: 600;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.sitemap-grid h3 {
    margin-bottom: 12px;
    color: #087f23;
    font-size: 18px;
    font-weight: 500;
}

.sitemap-grid a {
    display: block;
    margin-bottom: 9px;
    color: #0066b3;
    font-size: 15px;
    text-decoration: none;
}

.sitemap-grid a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* =========================================
   ABOUT US PAGE
========================================= */

.about-page {
    width: 100%;
    background: #ffffff;
    padding: 55px 20px 70px;
}

.about-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.about-container h1 {
    margin: 0 0 25px;
    color: #0f3b66;
    font-size: 36px;
    line-height: 1.2;
}

.about-container h2 {
    margin: 40px 0 15px;
    color: #2d3e50;
    font-size: 26px;
    line-height: 1.3;
}

.about-container p {
    margin: 0 0 16px;
    color: #526070;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================
   ABOUT PAGE - MOBILE
========================================= */

@media (max-width: 768px) {

    .about-page {
        padding: 40px 20px 55px;
    }

    .about-container h1 {
        font-size: 30px;
    }

    .about-container h2 {
        font-size: 24px;
        margin-top: 35px;
    }

    .about-container p {
        font-size: 15px;
        line-height: 1.65;
    }

}
/* =========================================
   GENERAL CONTENT PAGES
========================================= */

.content-page {

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 55px 24px 60px;

    box-sizing: border-box;
}


.content-page h1 {

    margin: 0 0 28px;

    color: #0f3b66;

    font-size: 38px;

    line-height: 1.2;

    font-weight: 700;
}


.content-page h2 {

    margin: 38px 0 14px;

    color: #2d3e50;

    font-size: 27px;

    line-height: 1.3;

    font-weight: 700;
}


.content-page p {

    margin: 0 0 18px;

    color: #3f5f7d;

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .content-page {

        padding: 40px 20px 50px;

    }


    .content-page h1 {

        font-size: 32px;

        margin-bottom: 24px;

    }


    .content-page h2 {

        font-size: 24px;

        margin-top: 32px;

        margin-bottom: 12px;

    }


    .content-page p {

        font-size: 15px;

        line-height: 1.65;

    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .content-page {

        padding: 35px 16px 45px;

    }


    .content-page h1 {

        font-size: 28px;

    }


    .content-page h2 {

        font-size: 22px;

    }

}

.category h2 a {
    color: #008000;
    text-decoration: none;
    font-weight: 700;
}

.category h2 a:hover {
    text-decoration: underline;
}

/* ================================
   Category Page Layout
   ================================ */

.category-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 40px;
    align-items: start;
}

.category-content {
    min-width: 0;
}

.category-page h1 {
    margin-bottom: 12px;
}

.category-description {
    margin-bottom: 36px;
    line-height: 1.6;
}


/* Calculator Links - 2 Columns */

.calculator-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 50px;
    row-gap: 0;
}

.calculator-column {
    display: flex;
    flex-direction: column;
}

.calculator-column a {
    display: block;
    margin-bottom: 12px;
}


/* Advertisement */

.ad-space {
    width: 100%;
}

.ad-placeholder {
    width: 100%;
    min-height: 250px;

    border: 1px solid #ddd;
    background: #fafafa;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #888;
    font-size: 14px;
}


/* ================================
   Mobile
   ================================ */

@media (max-width: 768px) {

    .category-page {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .calculator-list {
        grid-template-columns: 1fr;
    }

    .ad-space {
        max-width: 100%;
    }

}
/* =========================================
   Text Tools Category
========================================= */

.text-tools-category h3 {
    color: #008000;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 10px;
}

.text-tools-category a,
.text-tools-category a:visited {
    display: block;
    margin-bottom: 4px;
    color: #0066cc;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    text-decoration: none;
}

.text-tools-category a:hover {
    text-decoration: underline;
}

/* Tools page category heading links */

.calculator-column h2 a {
    color: inherit;
    text-decoration: none;
}

.calculator-column h2 a:hover {
    text-decoration: underline;
}