/* ==========================================
   GLOBAL RESET
========================================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body{
    background:#f4f6fb;
    color:#1f2937;
    line-height:1.6;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    list-style:none;
}

/* ==========================================
   NAVBAR
========================================== */
.navbar{
    position:sticky;
    top:0;
    z-index:1000;
    background:#0f172a;
    color:white;
    padding:14px 24px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    font-size:22px;
    font-weight:700;
    color:#facc15;
}

.nav-links{
    display:flex;
    gap:22px;
}

.nav-links a{
    color:#e5e7eb;
    font-weight:500;
}

.nav-links a:hover{
    color:#facc15;
}

.search-box{
    display:flex;
    gap:6px;
}

.search-box input{
    padding:7px 12px;
    border-radius:20px;
    border:none;
}

.search-box button{
    background:#facc15;
    border:none;
    border-radius:50%;
    padding:6px 10px;
    cursor:pointer;
}

/* ==========================================
   HERO
========================================== */
.hero{
    background:linear-gradient(135deg,#1d2671,#c33764);
    padding:100px 20px;
    text-align:center;
    color:white;
}

.hero h1{
    font-size:46px;
}

.hero p{
    margin-top:12px;
    font-size:18px;
}

.btn{
    display:inline-block;
    margin-top:28px;
    background:#facc15;
    color:black;
    padding:13px 36px;
    border-radius:30px;
    font-weight:600;
}

.btn:hover{
    background:#ffe066;
}

/* ==========================================
   FEATURES
========================================== */
.features{
    max-width:1100px;
    margin:70px auto;
    padding:0 20px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.feature-card{
    background:white;
    padding:35px 25px;
    border-radius:18px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    transition:0.3s;
}

.feature-card h3{
    color:#1d2671;
    font-size:22px;
}

.feature-card p{
    margin-top:8px;
    color:#555;
}

.feature-card:hover{
    background:linear-gradient(135deg,#1d2671,#c33764);
    color:white;
    transform:translateY(-6px);
}

.feature-card:hover h3{
    color:white;
}

/* ==========================================
   GRID (TOOLS / LETTERS / CALCULATORS)
========================================== */
.tools-grid{
    max-width:1100px;
    margin:60px auto;
    padding:0 20px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:22px;
}

.tool-card{
    background:white;
    padding:28px 22px;
    border-radius:16px;
    text-align:center;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
    transition:0.3s;
}

.tool-card:hover{
    background:#1d2671;
    color:white;
    transform:translateY(-6px);
}

.tool-card a{
    display:inline-block;
    margin-top:15px;
    background:#1d2671;
    color:white;
    padding:10px 22px;
    border-radius:22px;
}

.tool-card:hover a{
    background:#facc15;
    color:black;
}

/* ==========================================
   PAGE CONTAINER
========================================== */
.calculator-page{
    padding:50px 15px;
}

.calculator-card{
    background:white;
    max-width:500px;
    margin:auto;
    padding:35px;
    border-radius:18px;
    box-shadow:0 12px 30px rgba(0,0,0,0.1);
    text-align:center;
}

/* ==========================================
   FORMS
========================================== */
input,textarea{
    width:100%;
    padding:12px;
    margin-top:12px;
    border-radius:10px;
    border:1px solid #ccc;
}

button{
    margin-top:18px;
    padding:12px 28px;
    background:#1d2671;
    color:white;
    border:none;
    border-radius:25px;
    font-size:16px;
    cursor:pointer;
}

button:hover{
    background:#121857;
}

/* ==========================================
   POPULAR
========================================== */
.popular{
    background:white;
    padding:70px 20px;
    text-align:center;
}

.popular h2{
    color:#1d2671;
}

.popular-list{
    margin-top:25px;
    max-width:600px;
    margin:auto;
    display:grid;
    gap:14px;
}

.popular-list a{
    background:#f4f6fb;
    padding:14px;
    border-radius:10px;
}

.popular-list a:hover{
    background:#1d2671;
    color:white;
}

/* ==========================================
   HELPS
========================================== */
.helps{
    max-width:900px;
    margin:70px auto;
    padding:0 20px;
    text-align:center;
}

.helps h2{
    color:#1d2671;
}

/* ==========================================
   CTA
========================================== */
.cta{
    background:linear-gradient(135deg,#1d2671,#c33764);
    color:white;
    padding:90px 20px;
    text-align:center;
}

.cta h2{
    font-size:32px;
}

/* ==========================================
   FOOTER
========================================== */
.footer{
    background:#0f172a;
    color:white;
    padding:50px 20px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:30px;
}

.footer-box h3{
    color:#facc15;
    margin-bottom:10px;
}

.footer-box a{
    display:block;
    color:#cbd5f5;
    margin:6px 0;
}

.footer-box a:hover{
    color:#facc15;
}

/* ==========================================
   MOBILE
========================================== */
@media(max-width:768px){

.navbar{
    flex-direction:column;
    gap:12px;
}

.nav-links{
    flex-direction:column;
    align-items:center;
}

.hero h1{
    font-size:34px;
}

.cta h2{
    font-size:26px;
}

}
/* ==========================================
   LETTERS PAGE ENHANCEMENT
========================================== */

.tool-box{
    background:white;
    padding:28px 20px;
    border-radius:16px;
    text-align:center;
    font-size:17px;
    font-weight:600;
    color:#1d2671;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    transition:0.3s ease;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}

.tool-box:hover{
    background:linear-gradient(135deg,#1d2671,#c33764);
    color:white;
    transform:translateY(-6px) scale(1.03);
    box-shadow:0 15px 40px rgba(0,0,0,0.18);
}

/* heading style inside calculator-card */

.calculator-card h1{
    font-size:32px;
    color:#1d2671;
    margin-bottom:8px;
}

.calculator-card p{
    color:#555;
    margin-bottom:30px;
    font-size:16px;
}

/* MOBILE IMPROVEMENT */

@media(max-width:600px){
    .tool-box{
        font-size:16px;
        padding:22px 16px;
    }

    .calculator-card h1{
        font-size:26px;
    }
}
/* school leave letter styles */
/* LETTER PAGE */
.letter-page{
    min-height:80vh;
    background:#f4f7fb;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:30px 10px;
}

.letter-card{
    background:#ffffff;
    width:100%;
    max-width:650px;
    padding:25px;
    border-radius:15px;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

.letter-card h1{
    text-align:center;
    color:#1e3c72;
    margin-bottom:5px;
}

.subtitle{
    text-align:center;
    color:#666;
    margin-bottom:20px;
}

/* LETTER BOX */
.letter-box{
    background:#f9fafc;
    border-left:5px solid #1e3c72;
    padding:20px;
    font-size:16px;
    line-height:1.7;
    white-space:pre-wrap;
    border-radius:10px;
    max-height:400px;
    overflow-y:auto;
}

/* BUTTONS */
.letter-actions{
    margin-top:20px;
    display:flex;
    gap:15px;
    justify-content:center;
}

.letter-actions button{
    background:#1e3c72;
    color:#fff;
    border:none;
    padding:10px 20px;
    border-radius:8px;
    font-size:15px;
    cursor:pointer;
    transition:0.3s;
}

.letter-actions button:hover{
    background:#16305c;
}

/* MOBILE */
@media(max-width:600px){
    .letter-card{
        padding:18px;
    }
    .letter-box{
        font-size:15px;
    }
}
/* ================= LETTER PAGES (School / Office / Bank) ================= */

.letter-page,
.calculator-page {
    min-height: 70vh;
    background: linear-gradient(135deg,#f4f9ff,#eef2ff);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 15px;
}

.letter-card {
    background: #ffffff;
    width: 100%;
    max-width: 750px;
    padding: 30px 28px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
}

/* Title */
.letter-card h1 {
    color: #1e3a8a;
    font-size: 28px;
    margin-bottom: 6px;
}

.letter-subtitle {
    color: #555;
    margin-bottom: 20px;
    font-size: 15px;
}

/* Letter Box */
.letter-box {
    background: #f9fafb;
    border-left: 5px solid #2563eb;
    padding: 22px;
    border-radius: 10px;
    text-align: left;
    font-size: 16px;
    line-height: 1.7;
    white-space: pre-wrap;
    margin-bottom: 25px;
    color: #111;
}

/* Copy Button */
.copy-btn {
    background: #2563eb;
    color: #fff;
    padding: 12px 26px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.copy-btn:hover {
    background: #1e40af;
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width:600px){
    .letter-card{
        padding: 22px 18px;
    }

    .letter-card h1{
        font-size:22px;
    }

    .letter-box{
        font-size:15px;
    }
}
/* ================= EMI CALCULATOR ================= */

.emi-card{
 max-width:900px;
 margin:auto;
 background:#fff;
 padding:40px;
 border-radius:18px;
 box-shadow:0 10px 30px rgba(0,0,0,0.1);
 text-align:center;
}

.input-grid{
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
 gap:20px;
 margin-top:25px;
}

.input-group label{
 font-weight:600;
 display:block;
 margin-bottom:6px;
}

.calc-btn{
 background:#4f46e5;
 color:white;
 padding:14px 35px;
 border:none;
 border-radius:30px;
 font-size:16px;
 margin-top:30px;
 cursor:pointer;
}

.calc-btn:hover{
 background:#3730a3;
}

.emi-result-box{
 margin-top:40px;
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:30px;
 align-items:center;
}

.emi-values{
 background:#f4f6fb;
 padding:25px;
 border-radius:15px;
 font-size:18px;
 text-align:left;
}

.chart-box{
 max-width:350px;
 margin:auto;
}

@media(max-width:768px){
 .emi-result-box{
   grid-template-columns:1fr;
 }
}
/* ===== TEXT COUNTER TOOL ===== */

.tool-page{
  min-height:100vh;
  background:#f3f4f6;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.tool-card{
  background:#ffffff;
  max-width:550px;
  width:100%;
  padding:30px;
  border-radius:15px;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
  text-align:center;
}

.tool-card h1{
  color:#1f2933;
  margin-bottom:8px;
}

.subtitle{
  color:#6b7280;
  margin-bottom:20px;
}

.text-form textarea{
  width:100%;
  padding:15px;
  font-size:16px;
  border-radius:10px;
  border:1px solid #d1d5db;
  outline:none;
  resize:vertical;
}

.text-form textarea:focus{
  border-color:#4f46e5;
}

.btn-row{
  display:flex;
  gap:12px;
  margin-top:15px;
}

.calc-btn{
  flex:1;
  background:#4f46e5;
  color:#fff;
  padding:12px;
  border:none;
  border-radius:8px;
  font-size:16px;
  cursor:pointer;
}

.calc-btn:hover{
  background:#4338ca;
}

.reset-btn{
  flex:1;
  background:#ef4444;
  color:#fff;
  padding:12px;
  border:none;
  border-radius:8px;
  font-size:16px;
  cursor:pointer;
}

.reset-btn:hover{
  background:#dc2626;
}

.text-result{
  margin-top:25px;
  padding:18px;
  background:#eef2ff;
  border-radius:10px;
}

.text-result h3{
  margin-bottom:8px;
  color:#3730a3;
}

.text-result p{
  font-size:18px;
}
/* date difference styles */
/* Calculator Layout */
.calculator-page{
  min-height:80vh;
  display:flex;
  justify-content:center;
  align-items:center;
  background:#f3f4f6;
}

.calculator-card{
  background:#fff;
  padding:30px;
  width:100%;
  max-width:420px;
  border-radius:12px;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
  text-align:center;
}

.calculator-card h1{
  color:#1f2933;
  margin-bottom:5px;
}

.subtitle{
  color:#6b7280;
  margin-bottom:20px;
}

/* Form */
.calc-form{
  display:flex;
  flex-direction:column;
  gap:15px;
}

.input-group{
  text-align:left;
}

.input-group label{
  display:block;
  margin-bottom:5px;
  font-weight:600;
}

.input-group input{
  width:100%;
  padding:10px;
  border-radius:8px;
  border:1px solid #ccc;
  font-size:16px;
}

.input-group input:focus{
  border-color:#2563eb;
  outline:none;
}

/* Buttons */
.btn-group{
  display:flex;
  gap:10px;
}

.calc-btn{
  flex:1;
  background:#2563eb;
  color:white;
  padding:12px;
  border:none;
  border-radius:8px;
  font-size:16px;
  cursor:pointer;
}

.calc-btn:hover{
  background:#1d4ed8;
}

.reset-btn{
  flex:1;
  background:#9ca3af;
  color:white;
  text-decoration:none;
  text-align:center;
  padding:12px;
  border-radius:8px;
}

.reset-btn:hover{
  background:#6b7280;
}

/* Result */
.result-box{
  margin-top:25px;
  padding:15px;
  background:#ecfeff;
  border-left:5px solid #06b6d4;
  border-radius:8px;
}

.result-box h2{
  margin-bottom:10px;
  color:#0f172a;
}
/* case converter styles */
/* textarea */
textarea{
  width:100%;
  padding:12px;
  border-radius:8px;
  border:1px solid #ccc;
  font-size:15px;
  resize:vertical;
}

select{
  width:100%;
  padding:10px;
  border-radius:8px;
  border:1px solid #ccc;
  font-size:15px;
}

/* Copy Button */
.copy-btn{
  margin-top:12px;
  width:100%;
  background:#16a34a;
  color:#fff;
  padding:10px;
  border:none;
  border-radius:8px;
  font-size:15px;
  cursor:pointer;
}

.copy-btn:hover{
  background:#15803d;
}
/* unit converter styles */
select{
  width:100%;
  padding:10px;
  border-radius:8px;
  border:1px solid #ccc;
  font-size:15px;
}
