/* =======================
   General
======================= */
body { 
  font-family: Arial, sans-serif; 
  margin: 0; 
  padding: 0; 
  line-height: 1.6; 
  scroll-behavior: smooth; 
  background: #DDF7E1; 
  color: #041022; 
}

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


/* =======================
   Top Sticky Bar
======================= */
.top-bar {
  position: sticky;
  top: 0;
  width: 100%;
  background: red;
  color: white;
  text-align: center;
  padding: 8px 0;
  font-weight: bold;
  z-index: 4000;
  transition: background 0.3s;
}


/* =======================
   Navbar
======================= */
.navbar { 
  position: sticky; 
  top: 40px; 
  background: #F9F9F9; /*rgba(173, 216, 230, 0.95);  this is the old blue color*/
  border: 3px solid #2E7D32; /*later on added*/
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 12px 30px; 
  z-index: 3000; 
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
  will-change: transform;
  gap: 10px;
}

.navbar a { 
  margin: 0 12px; 
  font-weight: bold; 
  color: #041022;
  white-space: nowrap;
}

.navbar > div:first-child {
  max-width: 60% 
}

.navbar .cta { 
  background: #4CAF50; 
  color: white; 
  padding: 8px 16px; 
  border-radius: 8px; 
  transition: background 0.3s; 
}

.navbar .cta:hover { 
  background: #15803d; 
}


/* =======================
   Sidebar
======================= */
.sidebar { 
  position: fixed; 
  right: 20px; 
  bottom: 20px; /* top: 50%; */
  transform: none; /*translateY(-50%); */
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
  z-index: 2500; 
  opacity: 0; 
  transition: opacity 0.3s; 
}

.sidebar.show { 
  opacity: 1; /* opacity: 1; */ 
}

.sidebar a { 
  background: #4CAF50; 
  color: white; 
  padding: 12px; 
  border-radius: 50px; 
  text-align: center; 
  font-weight: bold; 
  transition: background 0.3s; 
}

.sidebar a:hover { 
  background: #15803d; 
}


/* =======================
   Header
======================= */
header { 
  background: linear-gradient(135deg, #2E7D32, #66BB6A); 
  color: white; 
  text-align: center; 
  padding: 100px 20px 70px; 
}

header h1 { 
  margin: 0 0 10px; 
  font-size: 3em; 
}

header p { 
  margin: 0; 
  font-size: 1.3em; 
}


/* =======================
   Main Container
======================= */
.container { 
  max-width: 1100px; 
  margin: auto; 
  padding: 30px 20px; 
}

.section { 
  background: white; 
  padding: 30px; 
  margin: 25px 0; 
  border-radius: 16px; 
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); 
  border-right: 6px solid #2E7D32; 
}

h2 { 
  color: #2E7D32; 
  margin-bottom: 15px; 
  border-bottom: 2px solid #2E7D32; 
  padding-bottom: 5px; 
}

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

ul li::before { 
  content: "✅ "; 
  color: #2E7D32; 
}

ul li.exclamation::before { 
  content: "❌ "; 
  color: red; 
}

table { 
  width: 100%; 
  border-collapse: collapse; 
  margin: 20px 0; 
  font-size: 1em; 
}

table, th, td { 
  border: 1px solid #ddd; 
}

th, td { 
  padding: 12px; 
  text-align: center; 
}

th { 
  background: #f2f2f2; 
}

.cta { 
  margin-top: 20px; 
  background: #4CAF50; 
  color: white; 
  padding: 14px; 
  border-radius: 14px; 
  font-weight: bold; 
  text-align: center; 
  cursor: pointer; 
  transition: background 0.3s; 
}

.cta:hover { 
  background: #15803d; 
}

/*Calcualtor*/

/* PAGE BACKGROUND ONLY FOR THIS SECTION */
#calculator {
    background: linear-gradient(135deg, #ffe97d, #45fff3);
    padding: 50px 0;
}

/* Center Container */
#calculator .calc-center {
    max-width: 700px;       /* fixed width */
    width: 90%;
    margin: auto;
    padding: 10px;
}

/* Premium Card */
#calculator .premium-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0px 10px 28px rgba(0,0,0,0.45);
    backdrop-filter: blur(10px);
    animation: fadeUp 0.5s ease-out;
}

/* Heading */
#calculator h2 {
    text-align: left;
    color: rgb(46, 125, 50);  /* soft neon finance green */
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 700;
}

#calculator h1 {
    text-align: center;
    color: rgb(46, 125, 50);  /* soft neon finance green */
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 700;
}

#calculator p {
    text-align: left;
    color: #000000;  /* soft neon finance green */
    margin-bottom: 25px;
    font-size: 20px;
    /*font-weight: 700;*/
}

/* Labels */
#calculator label {
    display: block;
    margin-top: 15px;
    color: #000000;
}

/* Inputs */
#calculator input[type="number"],
#calculator input[type="range"] {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border-radius: 10px;
    background: #121a2f;
    border: 1px solid rgba(255,255,255,0.15);
    color: #e8fff5;
}

/* Range Value */
#calculator .value-display {
    color: #000000;
}

/* Result Box */
#calculator .result {
    background: #f9f9f9;
    color: #000000;
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
}
#calculator .result div {
    margin: 8px 0;
    color: #000000;
}

/* Chart Container */
#calculator #chartContainer {
    margin-top: 28px;
    background: #ffffff;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Chart responsive */
#calculator canvas {
    max-width: 100%;
}

/* Fade Up Animation */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =======================
   Sidebar – Mobile Size Fix
======================= */
@media (max-width: 600px) {

  .sidebar {
    right: 10px;
    gap: 8px;
  }

  .sidebar a {
    padding: 8px;        /* smaller button */
    font-size: 12px;     /* smaller text */
    border-radius: 40px;
  }
}/* Section inside calculator - force white card style */
#calculator .section {
    background: #ffffff !important;           /* white container */
    width: 900px;
    max-width: 90%;
    padding: 30px !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08) !important;
    border-right: 6px solid #2E7D32 !important;
      /* Center horizontally */
    margin: 50px auto 0 auto; /* top: 50px, bottom: 0, left & right: auto */
}

/* Headings inside section */
#calculator .section h2,
#calculator .section h3 {
    color: #2E7D32 !important;               /* green headings */
    border-bottom: 2px solid #2E7D32 !important;
    padding-bottom: 5px !important;
    margin-bottom: 15px !important;
}

/* Paragraphs inside section */
#calculator .section p {
    color: #041022 !important;               /* dark text */
    font-size: 15px !important;
    line-height: 1.7 !important;
}

/* Style for SIP input field */
#calculator input[type="text"] {
    background: #ffffff;           /* dark background */
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #000000;                /* text color */
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    font-size: 16px;
    box-sizing: border-box;
    margin-top: 6px;
}

#calculator input[type="text"]:focus {
    outline: none;
    border: 1px solid #4CAF50;    /* green focus border */
}

@media (max-width: 768px) {
  header h1 {
  font-size: 20px !important;
  line-height: 1.3;
}

  header p {
    font-size: 1em;
  }
  
  header {
    padding: 60px 15px 40px;   /* reduced from 100px 20px 70px */
  }
}

/* ===== FINAL MOBILE NAV FIX ===== */

/* default desktop */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== FINAL SAMSUNG FIX ===== */
@media (max-width: 768px) {

  /* 1. Keep navbar simple */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 10px 15px;
  }

  /* 2. Hide all links (THIS is the key fix) */
  .nav-links {
    display: none !important;
  }

  /* 3. Show hamburger only */
  .menu-toggle {
    display: block;
    font-size: 26px;
  }

  /* 4. When menu opens */
  .nav-links.active {
    display: flex !important;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(173, 216, 230, 0.98);
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
    z-index: 2000;
  }

  /* 5. Clean menu items */
  .nav-links a {
    display: block;
    margin: 12px 0;
    white-space: nowrap;
  }
}

.dropdown {
  position: relative;
}

.dropbtn {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  min-width: 180px;
  top: 100%;
  left: auto; /* changes done on 18.4 */
  right: 0; /* changes done on 18.4 */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  z-index: 5000;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: #041022;
}

.dropdown-content a:hover {
  background: #f0f0f0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

@media (max-width: 768px) {
  .dropdown-content {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
  }
}