
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial,sans-serif;
    background:#f5f7fb;
    color:#333;
    line-height:1.6;
}

/* =========================
   LAYOUT
========================= */
.container{
    max-width:1100px;
    margin:40px auto;
    padding:20px;
}

h1{
    text-align:center;
    margin-bottom:10px;
}

.subtitle{
    text-align:center;
    color:#666;
    margin-bottom:30px;
}

/* =========================
   CALCULATOR
========================= */
.calculator{
    background:#fff;
    padding:25px;
    border-radius:12px;
    box-shadow:0 2px 12px rgba(0,0,0,.08);
}

.form-row{
    display:grid;
    grid-template-columns:1fr 70px 1fr;
    gap:20px;
    align-items:end;
}

.form-group{
    position:relative;
}

label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
}

input[type="text"],
input[type="date"]{
    width:100%;
    height:50px;
    padding:0 15px;
    border:2px solid #dde3ea;
    border-radius:8px;
    font-size:15px;
    background:#fff;
}

input:focus{
    outline:none;
    border-color:#0d6efd;
}

/* =========================
   OR DIVIDER
========================= */
.or-divider{
    display:flex;
    align-items:center;
    justify-content:center;
    height:50px;
}

.or-divider span{
    background:#eef4ff;
    color:#0d6efd;
    padding:8px 15px;
    border-radius:30px;
    font-size:14px;
    font-weight:700;
    letter-spacing:1px;
    box-shadow:0 2px 8px rgba(13,110,253,.25);
}

/* =========================
   AUTOCOMPLETE
========================= */
#suggestions{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#fff;
    border:1px solid #ddd;
    border-top:none;
    max-height:250px;
    overflow-y:auto;
    z-index:999;
    display:none;
    border-radius:0 0 8px 8px;
}

.suggestion-item{
    padding:12px;
    cursor:pointer;
    transition:.2s;
}

.suggestion-item:hover{
    background:#eef4ff;
}

/* =========================
   BUTTON
========================= */
.calculate-btn{
    margin-top:20px;
    width:100%;
    height:50px;
    border:none;
    background:#0d6efd;
    color:#fff;
    font-size:16px;
    border-radius:8px;
    cursor:pointer;
    transition:.2s;
}

.calculate-btn:hover{
    background:#0b5ed7;
}

/* =========================
   SUMMARY
========================= */
.summary{
    margin-top:20px;
    padding:15px;
    background:#eef4ff;
    border-radius:8px;
    text-align:center;
    font-size:30px;
}

/* =========================
   COUNTDOWN CARDS
========================= */
.countdown-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    margin-top:30px;
}

.countdown-card{
    background:#fff;
    text-align:center;
    padding:25px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.countdown-card .value{
    font-size:42px;
    font-weight:bold;
    color:#0d6efd;
}

.countdown-card .label{
    color:#666;
    margin-top:5px;
}

/* =========================
   DETAILS ACCORDION
========================= */
.results{
    margin-top:30px;
}

.accordion-btn{
    width:100%;
    border:none;
    background:#0d6efd;
    color:#fff;
    padding:15px 20px;
    border-radius:10px;
    cursor:pointer;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:18px;
    font-weight:600;
}

.accordion-content{
    max-height:0;
    overflow:hidden;
    transition:max-height .4s ease;
    margin-top:10px;
}

.accordion-content.active{
    max-height:1000px;
}

.accordion-content table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
}

.accordion-content td{
    padding:12px;
    border-bottom:1px solid #eee;
}

.accordion-content td:first-child{
    width:40%;
    font-weight:600;
}

/* =========================
   CATEGORY SECTION
========================= */
.countdown-categories{
    margin:10px 0;
}

.countdown-categories h2{
    margin-bottom:25px;
}

.category-section{

    background:#fff;

    border-radius:12px;

    box-shadow:0 2px 10px rgba(0,0,0,.08);

    padding:20px;

    margin-bottom:25px;

}

.category-section h3{

    margin-bottom:18px;

    color:#0d6efd;

    border-bottom:2px solid #eef3ff;

    padding-bottom:10px;

}

.category-links{

    list-style:none;

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));

    gap:12px 18px;

    padding:0;

    margin:0;

}

.category-links li{
    margin:0;
}

.category-links a{

    display:block;

    padding:10px 14px;

    border:1px solid #e6ebf2;

    background:#f8f9fc;

    border-radius:8px;

    color:#333;

    text-decoration:none;

    transition:.25s;

}

.category-links a:hover{

    background:#0d6efd;

    color:#fff;

    border-color:#0d6efd;

}


.popular-countdowns{
    margin:40px 0;
}

.popular-countdowns h2{
    margin-bottom:10px;
}

.popular-subtitle{
    color:#666;
    margin-bottom:10px;
}

.popular-section{

    background:#fff;

    padding:20px;

    margin-bottom:25px;

    border-radius:12px;

    box-shadow:0 2px 10px rgba(0,0,0,.08);

}

.popular-section h3{

    margin-bottom:18px;

    color:#0d6efd;

    border-bottom:2px solid #eef3ff;

    padding-bottom:10px;

}

.popular-links{

    list-style:none;

    display:grid;

    grid-template-columns:
        repeat(auto-fill,minmax(240px,1fr));

    gap:10px 20px;

    padding:0;

    margin:0;

}

.popular-links li{

    margin:0;

}

.popular-links a{

    display:block;

    padding:10px 14px;

    background:#f8f9fc;

    border:1px solid #e7ebf3;

    border-radius:8px;

    text-decoration:none;

    color:#333;

    transition:.25s;

}

.popular-links a:hover{

    background:#0d6efd;

    color:#fff;

    border-color:#0d6efd;

}