/* =====================
   GLOBAL RESET & BASE
===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #f5f7fb;
    color: #222;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* =====================
   HEADER
===================== */
header {
    background: #0b1c2d;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 18px;
}

nav a {
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 1;
}

/* =====================
   HERO SECTION
===================== */
#hero {
    background: linear-gradient(132deg, #143a63, #5aa6f3);
    color: #fff;
    padding: 40px 10px;
    text-align: center;
}

#hero h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

#hero p {
    font-size: 1.05rem;
    opacity: 0.9;
}

/* =====================
   SECTION HEADINGS
===================== */
section h2 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: #0b1c2d;
}

/* =====================
   CARDS GRID
===================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.1);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #143a63;
}

.card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 14px;
}

/* =====================
   BUTTONS
===================== */
.btn {
    display: inline-block;
    padding: 10px 16px;
    background: #143a63;
    color: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background: #0b1c2d;
    transform: scale(1.03);
}

/* =====================
   ABOUT SECTION
===================== */
#about p {
    max-width: 850px;
    margin-bottom: 10px;
    color: #444;
}

/* =====================
   ADS PLACEHOLDER
===================== */
.ads-placeholder {
    margin-top: 40px;
}

.ads-box {
    background: #fff;
    border: 2px dashed #ccc;
    padding: 30px;
    text-align: center;
    color: #777;
    border-radius: 12px;
}

/* =====================
   FOOTER
===================== */
footer {
    background: #0b1c2d;
    color: #fff;
    margin-top: 40px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

footer a {
    color: #8fd3ff;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.3rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    #hero h2 {
        font-size: 1.6rem;
    }
}
/* ================= PREMIUM CALCULATOR UI ================= */

.container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

/* Calculator Card */
.card {
    background: linear-gradient(145deg, #ffffff, #f1f4f9);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}

/* Headings */
.container h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 20px;
    color: #1f2937;
}

/* Inputs */
.card input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 16px;
    outline: none;
    background: #ffffff;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.card input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.35);
}

/* Result Text */
.card p {
    margin-top: 14px;
    font-size: 17px;
    font-weight: 600;
    color: #111827;
}

/* Small note */
.card small {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

/* Calculator Grid (Desktop) */
@media (min-width: 768px) {
    #calculators .cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
}

/* Mobile Optimization */
@media (max-width: 600px) {
    .container h2 {
        font-size: 22px;
    }
    .card {
        padding: 20px;
    }
}

/* Ads placeholder safe styling */
.ads-box {
    height: 120px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 15px;
}
