/*
Theme Name: Calculators2
Theme URI: https://calculator2,net
Author: Sarkarivasta
Author URI: calculator2.net
Description: A custom WordPress theme featuring 300+ online calculators with comprehensive articles, FAQs with schema markup, and complete SEO optimization. Mobile-responsive design with sticky header and fast loading.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.calculator2.net/licenses/gpl-2.0.html
Text Domain: calculator2 net
Tags: calculators, seo, responsive, custom-header, featured-images
*/


body {
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #F5F7FA;
  color: #333;
}


header {
  background: #48b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo-section {
  display: flex;
  align-items: center;
}

.logo-section img {
  height: 30px;
  margin-right: 4px;
  margin-left: -15px;
}

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

.menu-toggle {
  font-size: 26px;
  cursor: pointer;
  display: block;
}

nav {
  display: none;
  flex-direction: column;
  background: #0056b3;
  position: absolute;
  top: 60px;
  right: 0;
  width: 200px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

nav.active {
  display: flex;
}

nav a {
  color: #fff;
  padding: 12px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

nav a:hover {
  background: #00408f;
}

h2 {
  padding: 8px 12px;
  font-size: 20px;
  margin: 20px 0 10px -15px;
}

.section-title {
  background: #336799;
  color: #fff;
  padding: 8px 12px;
  font-size: 20px;
  margin: 20px 0 10px 0;
}


.top-calculators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  padding: 15px;
}

.card {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-3px);
}

.card a {
  text-decoration: none;
  color: #333;
}

.card img {
  width: 100%;
  max-height: 100px;
  object-fit: contain;
  border-radius: 6px;
}

.card p {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li {
  background: #fff;
  padding: 10px;
  margin-bottom: 5px;
  border-bottom: 1px solid #ddd;
  font-size: 15px;
}

ul li a {
  text-decoration: none;
  color: #1f5fa8;
  display: block;
}

ul li:hover {
  background: #f1f1f1;
  cursor: pointer;
}

footer {
  text-align: center;
  background: #222;
  color: #fff;
  padding: 15px;
  margin-top: 20px;
}

footer a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
  font-size: 14px;
}

footer a:hover {
  text-decoration: underline;
}

/* ================= HOME PAGE CATEGORIES FIX ================= */

.sv-homepage-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 20px 0;
}

/* Every category group (title + ul + view more) */
.sv-homepage-categories > h2.section-title {
    margin: 0 0 8px 0;
}

.sv-homepage-categories > ul {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.view-more {
    margin-top: 20px;
    text-align: center;
    margin-bottom: -39px;
}

/* LEFT COLUMN */
.sv-homepage-categories > h2.section-title:nth-of-type(1),
.sv-homepage-categories > ul:nth-of-type(1),
.sv-homepage-categories > .view-more:nth-of-type(1) {
    grid-column: 1;
}

/* RIGHT COLUMN */
.sv-homepage-categories > h2.section-title:nth-of-type(2),
.sv-homepage-categories > ul:nth-of-type(2),
.sv-homepage-categories > .view-more:nth-of-type(2) {
    grid-column: 2;
}

/* MOBILE */
@media (max-width: 768px) {
    .sv-homepage-categories {
        grid-template-columns: 1fr;
    }

    .sv-homepage-categories > .view-more {
        text-align: center;
    }
}

.calculator-container {
  max-width: 340px;
  margin: 15px auto;
  background: #f1f1f1;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.display-container {
  background: #1a252f;
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  text-align: right;
}

#expression {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  min-height: 20px;
  word-wrap: break-word;
}

#calc-display {
  width: 100%;
  height: 50px;
  font-size: 22px;
  text-align: right;
  padding: 5px;
  border: none;
  background: transparent;
  color: white;
}

.calc-panel {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.calc-panel button {
  padding: 12px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  background: #c9d6e6;
  cursor: pointer;
  transition: background 0.2s;
}

.calc-panel button:hover {
  background: #a9bedb;
}

.calc-panel button.func {
  background: #a0c4ff;
}

.calc-panel button.func:hover {
  background: #7db2ff;
}

.calc-panel button.op {
  background: #ffb3ba;
}

.calc-panel button.op:hover {
  background: #ff8a95;
}

.calc-panel button.equals {
  background: #9bf6b8;
}

.calc-panel button.equals:hover {
  background: #7ae89c;
}

.calc-panel button.mem {
  background: #c8b6ff;
}

.calc-panel button.mem:hover {
  background: #b19fff;
}

.calc-panel button.clear {
  background: #ffd6a5;
}

.calc-panel button.clear:hover {
  background: #ffc685;
}

.calculator-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  color: #003366;
  font-size: 26px;
  font-weight: 700;
  margin: 16px 0;
  padding: 4px 0px 0px 56px;
  line-height: 1.3;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  border-bottom: 2px solid #003366;
}

.sptioneo-descri {
  padding: 0px 0px 0px 56px;

}

.article-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin: 20px 0;
  line-height: 1.8;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  color: #000;
  margin-top: 0px;
  margin-bottom: -10px;
  font-size: 21px;
}

.article-content p {
  margin: 15px 0;
  font-size: 16px;
}

.article-content ul,
.article-content ol {
  margin: 15px 0;
  padding-left: 30px;
}

.faq-section {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin: 20px 0;
}

.faq-item {
  margin: 20px 0;
  padding: 15px;
  border-left: 3px solid #007bff;
  background: #f8f9fa;
}

.faq-item h4 {
  color: #007bff;
  margin-top: 0;
  font-size: 18px;
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  nav {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    background: transparent;
    box-shadow: none;
  }

  nav a {
    border-bottom: none;
    padding: 10px 15px;
  }

  .menu-toggle {
    display: none;
  }
}

@media (max-width: 767px) {
  .top-calculators {
    grid-template-columns: repeat(auto-fit, minmax(140px, 2fr));
  }

  .calculator-page {
    padding: 10px;
  }

   h1 {
    padding: 4px 0px 0px 0px;

  }

  .article-content {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .top-calculators {
    grid-template-columns: repeat(auto-fit, minmax(120px, 2fr));
    }

   h1 {
    padding: 4px 0px 0px 0px;

  
  }
}

/* ===================== SIDEBAR STYLES ===================== */

#primary-sidebar {
    width: 100%;
    margin-top: 110px;
    margin-bottom: 0px;
    box-sizing: border-box;
    border-top: 44px;
}

/* Sidebar section box */
.sidebar-section {
    background: #f2f2f2;
    border-radius: 0px;
    padding: 15px;
    margin-bottom: 1px;
    box-shadow: 0 2px 2px rgba(0,0,0,0.1);
    border: 1px solid #000;
    border-bottom: 2px solid #003366;
}

/* Sidebar title */
.sidebar-title {
    color: #003466;
    font-size: 18px;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

/* Calculator list */
.sidebar-calculator-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.sidebar-calculator-list li {
    margin-bottom: 8px;
}

.sidebar-calculator-list li a {
    display: block;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid #007bff;
}

.sidebar-calculator-list li a:hover {
    background: #007bff;
    color: #fff;
    transform: translateX(5px);
    border-left-color: #0056b3;
}

/* ===================== AD SECTION ===================== */

.ad-section .ad-placeholder {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #ccc;
}

.ad-sample {
    width: 300px;
    height: 250px;
    margin: 15px auto;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

.ad-placeholder p {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

/* ===================== MOBILE & TABLET ===================== */
@media (max-width: 1023px) {

    .site-content {
        display: block;
    }

    .content-area {
        width: 100%;
        float: none;
    }

    #primary-sidebar {
        display: none;
        width: 100%;
        margin-top: 20px;
    }

    /* Mobile toggle active */
    #primary-sidebar.active {
        display: block;
    }
}

/* ===================== DESKTOP (>=1024px) ===================== */
@media (min-width: 1024px) {

    .site-content {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
    }

    .content-area {
        width: 65%;
        float: none;
    }

    #primary-sidebar {
        width: 30%;
        display: block !important;
        float: none;
        margin-top: 80px;
    }
}

/* ====== MOBILE / DEFAULT ====== */
.site-content {
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 0 10px;
}

.content-area,
#primary-sidebar {
  width: 100%;
  float: none;
  margin: 0;
}

/* ===================== DESKTOP (>=1024px) ===================== */
@media (min-width: 1024px) {

  .site-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }

  .content-area {
    width: 65%;
  }

  #primary-sidebar {
    width: 30%;
    display: block !important;
    margin-top: 80px;
  }
}



/* ===================== SIDEBAR TOGGLE BUTTON ===================== */

.sidebar-toggle {
    display: none;
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px auto;
    cursor: pointer;
    font-weight: bold;
}

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

/* ========== AUTHOR CARD (SIDEBAR MATCHED STYLE) ========= */

.author-card {
    background: #f2f2f2;               /* same as sidebar-section */
    border-radius: 0px;                /* flat like other boxes */
    padding: 15px;
    border: 1px solid #000;            /* same border */
    box-shadow: 0 2px 2px rgba(0,0,0,0.1);
    margin-bottom: 1px;
}

.author-top {
    display: flex;
    gap: 12px;
    align-items: center;
}

.author-top img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #003466;         /* theme color */
    object-fit: cover;
    background: #fff;
}

.author-top strong {
    font-size: 15px;
    color: #003466;
    display: block;
}

.role {
    font-size: 12px;
    color: #555;
    margin-top: 2px;
}

.reviewer {
    font-size: 13px;
    color: #333;
    margin-top: 4px;
}

/* Like + Share Row */
.like-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #ccc;
}

.like-btn {
    border: 1px solid #007bff;
    background: #f8f9fa;
    border-radius: 4px;               /* match links/buttons */
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    color: #003466;
    font-weight: 600;
}

.like-btn:hover {
    background: #007bff;
    color: #fff;
}

.like-btn.liked {
    background: #007bff;
    color: #fff;
    border-color: #0056b3;
    cursor: not-allowed;
}

/* Share Icons */
.share-icons a {
    margin-left: 6px;
    font-size: 16px;
    text-decoration: none;
    color: #003466;
}

.share-icons a:hover {
    color: #007bff;
}

/* Help text */
.help-text {
    margin-top: 8px;
    font-size: 12px;
    color: #444;
}

/* ================= STICKY SIDEBAR SCROLL FIX ================= */

/* Desktop only */
@media (min-width: 1024px) {

    .site-content {
        display: flex;
        align-items: flex-start;
    }

    .content-area {
        width: 65%;
    }

    #primary-sidebar {
        width: 30%;
        position: sticky;     /* MAIN MAGIC */
        top: 110px;           /* header height ke baad */
        align-self: flex-start;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        padding-bottom: 10px;
    }

    /* Sidebar scroll smooth */
    #primary-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    #primary-sidebar::-webkit-scrollbar-thumb {
        background: #bbb;
        border-radius: 10px;
    }

    #primary-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }
}

}

.view-more {
    text-align: center;
    margin: 10px 0;
}

.view-more a {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}

@media (max-width: 768px) {
    p {
        margin: 0;                 /* saare margins remove */
        padding: 4px 0 0 0;        /* mobile padding */
        line-height: 1.6;          /* mobile readability */
    }
}

@media (max-width: 480px) {
    p {
        margin: 0;
        padding: 0px 0 0 0;   /* thoda zyada touch-friendly */
        line-height: 1.7;
        font-size: 14px;
    }
}

/* Aapki existing Age Calculator classes ka extension */
.calculator-input-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    margin: 7px;
}
.calculator-input-item {
    flex: 1;
    min-width: 100px; /* Mobile responsive ke liye */
}
.age-input-group label {
    display: block;
    margin-bottom: 5px;
    width: 100% !important; /* Label ko top par karne ke liye */
}
.unit-text {
    margin-left: 8px;
    font-size: 14px;
    color: #666;
    font-weight: bold;
}
/* Visual Gauge Style */
.gauge-container { position: relative; width: 300px; height: 160px; margin: 20px auto; overflow: hidden; }
.gauge-bg { width: 300px; height: 150px; background: conic-gradient(from 270deg, #3498db 0% 12.5%, #2ecc71 12.5% 25%, #f1c40f 25% 37.5%, #e67e22 37.5% 45%, #e74c3c 45% 50%, #fff 50% 100%); mask: radial-gradient(circle at 50% 100%, transparent 65%, black 66%); -webkit-mask: radial-gradient(circle at 50% 100%, transparent 65%, black 66%); border-radius: 150px 150px 0 0; }
.gauge-needle { position: absolute; bottom: 0; left: 50%; width: 4px; height: 90px; background: #333; transform-origin: bottom center; transform: rotate(-90deg); transition: transform 2s cubic-bezier(0.17, 0.67, 0.12, 1); border-radius: 4px; }
.gauge-labels-numbers { display: flex; justify-content: space-between; width: 280px; margin: 0 auto; font-size: 12px; font-weight: bold; color: #444; }


}

/* ===================== AGE CALCULATOR CALCULAT.NET STYLE ===================== */
.age-calculator-wrapper {
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 700px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.age-calculator-header {
    background: #48b;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 14px;
    border-radius: 6px 6px 0 0;
    margin: 0;
    border-bottom: 1px solid #ccc;
}

.age-calculator-header span {
    margin-right: 8px;
    font-size: 18px;
}

.age-calculator-body {
    padding: 20px;
    background: #fff;
    border-radius: 0 0 8px 8px;
}

.age-calculator-body h2 {
    color: #000;
    font-size: 20px;
    margin: 0 0 20px 0;
    padding: 0;
    font-weight: 600;
    text-align: left;
    border-bottom: none;
}

.age-input-group {
    margin-bottom: 20px;
}

.age-input-group:last-child {
    margin-bottom: 0;
}

.age-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 16px;
}

/* Date dropdowns styling - calculat.net style */
.date-dropdown-container {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.date-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.date-dropdown {
    padding: 6px 30px 6px 8px;
    border: 1px solid #044284;
    border-radius: 2px;
    background: #fff;
    font-size: 20px;
    color: #000;
    font-weight: normal;
    width: 100px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23044284" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 1px 1px 2px #666;
    height: 36px;
}

.date-dropdown:hover {
    border-color: #044284;
}

.date-dropdown:focus {
    outline: none;
    border-color: #044284;
    box-shadow: 0 0 0 2px rgba(4, 66, 132, 0.2);
}

.date-dropdown.month {
    width: 100px;
}

.date-dropdown.day {
    width: 80px;
}

.date-dropdown.year {
    width: 100px;
}

.date-dropdown-separator {
    font-weight: bold;
    color: #000;
    margin: 0 5px;
    font-size: 16px;
}

/* Button styling - calculat.net style */
.age-calc-button {
    background-color: #48b;
    color: #fff;
    border: 0px;
    padding: 11px 50px 11px 16px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.3s;
    text-transform: none;
    letter-spacing: normal;
    font-family: Arial, Helvetica, sans-serif;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="180px" height="40px"><circle cx="112" cy="20" r="11" fill="darkseagreen" /><path d="M110 12 L120 20 L110 28 Z" fill="white" /></svg>');
    background-repeat: no-repeat;
    background-position: -8px;
    position: relative;
    overflow: hidden;
    display: block;
    margin: 25px auto 0 auto;
}

.age-calc-button:hover {
    background-color: #518428;
}

.age-calc-button:active {
    transform: none;
}

/* ===== MAIN RESULT BOX ===== */
.age-result-container{
    background:#ffffff;
    padding:0;
    margin-top:15px;
    margin-left: 2px;
    margin-right: -1px;
    margin-bottom: -16;
    font-family: Arial, Helvetica, sans-serif;
}

/* ===== GRID ===== */
.result-grid{
    width:100%;
}

/* ===== TOP GREEN BAR (AGE ROW) ===== */
.result-row:first-child{
    background:#6f9c2f;
    color:#fff;
    font-size:18px;
    font-weight:600;
    padding: 5px 8px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

/* top row text color */
.result-row:first-child strong,
.result-row:first-child span{
    color:#fff;
    font-weight:600;
    font-size: 20px;
}

/* ===== NORMAL ROWS ===== */
.result-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 14px;
    font-size:15px;
    color:#000;
    white-space:nowrap;
}

/* labels */
.result-row strong{
    font-weight:bold;
    color:#000;
    font-size: 17px;
    padding-top: 5px;
}

/* values */
.result-row span{
    font-weight:bold;
    color:#000;
}

/* ===== REMOVE EXTRA LINES ===== */
.result-row:not(:first-child){
    border-bottom:0;
}

/* ===== MOBILE: SAME AS DESKTOP ===== */
@media (max-width:600px){
    .result-row{
        font-size:15px;
        padding:8px 12px;
    }
    .result-row:first-child{
        font-size:18px;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    body {
        padding: 0px 0px;
    }
    
    .date-dropdown-container {
        gap: 8px;
    }
    
    .date-dropdown-wrapper {
        flex: 1;
        min-width: 80px;
    }
    
    .date-dropdown {
        width: 100%;
        font-size: 20px;
        height: 40px;
    }
    
    .date-dropdown.month,
    .date-dropdown.day,
    .date-dropdown.year {
        width: 100%;
    }
    
    .result-table th,
    .result-table td {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .age-calculator-wrapper {
        margin: 10px;
        background: #f1f1f1;
    }
    
    .age-calculator-body {
        padding: 15px;
    }
    
    .date-dropdown-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr auto 1fr;
        gap: 5px;
        align-items: center;
    }
    
    .date-dropdown-wrapper {
        width: 100%;
        margin-bottom: 0;
    }
    
    .date-dropdown {
        width: 300%;
        padding: 0px 0px 0px 8px;
        font-size: 18px;
        height: 36px;
    }
    
    .date-dropdown-separator {
        font-size: 14px;
        margin: 0 2px;
    }
    
    .age-calc-button {
        width: 100%;
        padding: 11px 16px;
        background-position: right 16px center;
    }
    
    .result-section {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .result-section h3 {
        margin-right: -12px;
        margin-left: -12px;
        margin-top: -12px;
        font-size: 16px;
        padding: 6px 10px;
    }
    
    .result-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 360px) {
    .date-dropdown-container {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .date-dropdown-separator {
        display: none;
    }
    
    .date-dropdown-wrapper {
        width: 100%;
    }
    
    .date-dropdown {
        width: 100%;
    }
    
    .result-table {
        display: block;
    }
    
    .result-table thead {
        display: none;
    }
    
    .result-table tbody,
    .result-table tr,
    .result-table td {
        display: block;
        width: 100%;
    }
    
    .result-table tr {
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        overflow: hidden;
    }
    
    .result-table td {
        padding: 10px;
        text-align: left;
        border: none;
        border-bottom: 1px solid #eee;
    }
    
    .result-table td:last-child {
        border-bottom: none;
    }
    
    .result-table td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        color: #333;
        margin-right: 10px;
    }
}

/* Calculator should use full content width */
.page-main-content .age-calculator-wrapper {
    max-width: 100%;
    margin: 20px 0;
    background: #f1f1f1;
}

.related-box {
    background: #f1f1f1;
    border: 1px solid #ddd;
    padding: 15px;
    position: relative;
    margin: 20px 0;
}

.related-title {
    position: absolute;
    top: -10px;
    left: 15px;
    background: #fff;
    padding: 0 8px;
    font-weight: bold;
    font-size: 18px;
}

.related-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.related-btn {
    background: #2f6da4;
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.related-btn:hover {
    background: #204d74;
}

@media (max-width: 1023px) {
  .calculator-container {
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0;
  }
}

@media (max-width: 768px) {
  .calculator-page {
    padding: 0 !important;
  }
}


/* Container */
.container-404 {
    max-width: 600px;
    margin: 80px auto;
    padding: 30px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* H1 */
.error-code {
    font-size: 8rem;
    color: #ff4d6d;
    margin: 0;
    animation: bounce 2s infinite;
}

/* H2 */
.error-title {
    font-size: 2rem;
    color: #333;
    margin: 15px 0 25px;
}

/* Paragraph */
.error-message {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

/* Input */
.search-input {
    padding: 10px 15px;
    width: 60%;
    max-width: 250px;
    border-radius: 50px;
    border: 1px solid #ccc;
    outline: none;
    margin-bottom: 15px;
}

/* Button */
.search-button {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    background: #ff4d6d;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
}

.search-button:hover {
    background: #ff2a50;
}

/* Link */
.back-link {
    text-decoration: none;
    color: #ff4d6d;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

/* Bounce animation for error-code */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Responsive */
@media(max-width: 600px) {
    .error-code { font-size: 5rem; }
    .error-title { font-size: 1.5rem; }
    .search-input { width: 80%; }
}

.calculator-top-section {
    text-align: center;
    margin: -28px 0 -25px 0; /* your requested margin */
    padding: 20px 15px 20px 15px;
}

.calculator-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #003366; /* matches your theme h1 */
}

.calculator-description {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.top-search-container {
    display: flex;
    justify-content: center;
}

.top-search-form {
    display: flex;
    width: 100%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
}

.top-search-input {
    flex: 1;
    padding: 10px 12px;
    font-size: 15px;
    border: none;
    outline: none;
}

.top-search-button {
    padding: 0 15px;
    background: #003366; /* same as title */
    color: #fff;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.top-search-button:hover {
    background: #0056b3;
}

/* MOBILE SAME AS DESKTOP */
@media (max-width: 768px) {
    .top-search-form {
        flex-direction: row !important; /* keep horizontal */
    }
    .top-search-input {
        font-size: 15px;
        padding: 10px 12px;
    }
    .top-search-button {
        font-size: 16px;
        padding: 0 15px;
    }
}

.search-results-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.search-results-list li {
  background: #fff;
  padding: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

.search-results-list li a {
  text-decoration: none;
  color: #003366;
  font-weight: 600;
}

.search-results-list li a:hover {
  text-decoration: underline;
}

/* 
 * Custom Footer Styles
 * File: footer-styles.css
 */

/* Footer Container */
#custom-footer-box {
    background-color: #ffffff;
    width: 100%;
    margin-top: 60px;
    padding: 40px 0;
    font-family: Arial, sans-serif;
    border-top: 4px solid #2563eb;
    text-align: center;
    display: block;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.footer-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Top Section - Author and Social */
.footer-top-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.author-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 1px solid #2563eb;
    object-fit: cover;
}

.author-details {
    line-height: 1.3;
}

.author-name {
    font-size: 15px;
    color: #000;
    display: block;
}

.author-name strong {
    font-weight: 600;
}

.author-review {
    font-size: 11px;
    color: #666;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-icon img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Like Button Section */
.footer-like-section {
    margin-bottom: 25px;
}

.like-button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.like-button:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.like-button.liked {
    background: #16a34a;
}

/* Feedback Badge */
.footer-feedback-badge {
    background: #f0fdf4;
    color: #16a34a;
    display: inline-block;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Calculator Links Section */
.calculator-links-section {
    margin: 25px 0 20px 0;
}

.calculator-title {
    font-size: 27px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #003366;   /* matches your theme h1 */
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}


.calculator-links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.calculator-link {
    background: #f8fafc;
    padding: 6px 14px;
    border-radius: 20px;
    color: #334155;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    font-size: 13px;
    display: inline-block;
}

.calculator-link:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    transform: translateY(-2px);
}

/* Footer Navigation */
.footer-navigation {
    width: 100%;
    margin-bottom: 15px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.footer-menu li {
    display: inline-block;
}

.separator {
    color: #ccc;
}

.footer-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.footer-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Copyright */
.footer-copyright {
    font-size: 12px;
    color: #999;
    padding-top: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-top-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .author-info {
        text-align: center;
        flex-direction: column;
    }
    
    .author-details {
        text-align: center;
    }
    
    .calculator-links-grid {
        gap: 8px;
    }
    
    .calculator-link {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 5px;
    }
    
    .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    #custom-footer-box {
        padding: 30px 0;
        margin-top: 40px;
    }
    
    .author-avatar {
        width: 55px;
        height: 55px;
    }
    
    .footer-copyright {
        font-size: 11px;
    }
}

.breadcrumb-nav {
    margin-bottom: 15px;
    font-size: 14px;
    font-family: inherit;
}

.breadcrumb-nav a {
    text-decoration: none;
    color: #0073aa;
}

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

.breadcrumb-nav .breadcrumb-separator {
    color: #666;
    margin: 0 5px;
}

.breadcrumb-nav .breadcrumb-current {
    color: #333;
    font-weight: 500;
}

 p {
        margin: 0;
        padding: 0px 0 0 0;   /* thoda zyada touch-friendly */
        line-height: 1.7;
        font-size: 18px;
    }
}

.article-content {
    line-height: 1.6;
    color: #333;
    font-size: 16px;
}

.article-content h2 {
    color: #2c5aa0;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.article-content h3 {
    color: #444;
    margin-top: 25px;
    margin-bottom: 15px;
}

.article-content h4 {
    color: #555;
    margin-top: 20px;
    margin-bottom: 10px;
}

.article-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.comparison-table th {
    background-color: #2c5aa0;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 10px 15px;
    border: 1px solid #ddd;
}

.comparison-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.comparison-table tr:hover {
    background-color: #f5f5f5;
}

.tax-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.tax-table th, .tax-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.tax-table th {
    background-color: #4a6fa5;
    color: white;
}

.example-box {
    background-color: #f8f9fa;
    border-left: 4px solid #2c5aa0;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 5px 5px 0;
}

.code-box {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

.code-box code {
    background-color: #e8e8e8;
    padding: 2px 6px;
    border-radius: 3px;
}

.rule-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0;
}

.rule-item {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.key-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.key-point {
    background-color: white;
    border: 2px solid #2c5aa0;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.key-point:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-section {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #ddd;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    color: #2c5aa0;
    margin-top: 0;
}

.final-note {
    background-color: #fff8e1;
    border-left: 5px solid #ffc107;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .rule-box, .key-points {
        flex-direction: column;
    }
    
    .comparison-table, .tax-table {
        font-size: 14px;
    }
    
    .comparison-table th, 
    .comparison-table td,
    .tax-table th,
    .tax-table td {
        padding: 8px 10px;
    }
}


.age-result-container {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}
.result-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.result-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
  line-height: 1.4;
  word-break: break-word;
}
.result-row strong {
  flex: 0 0 180px;
  max-width: 100%;
}
.result-row > span,
.result-row > code {
  flex: 1 1 300px;
  max-width: 100%;
}
.result-row code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow-x: auto;
  background: #f8fafc;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 14px;
}
#quick-solution {
  margin-top: 20px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 6px;
}
#quick-solution h3 {
  margin: 0 0 8px 0;
  color: #4CAF50;
  font-size: 18px;
}
@media (max-width: 768px) {
  .result-row {
    font-size: 15px;
  }
  .result-row strong {
    flex: 1 1 100%;
  }
  .result-row > span,
  .result-row > code {
    flex: 1 1 100%;
  }
  #res-header-bar strong {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .age-result-container {
    padding: 12px;
  }
  .result-row {
    font-size: 14px;
    gap: 6px;
  }
  .result-row code {
    font-size: 13px;
    padding: 5px 6px;
  }
}
