/* ==========================
   🔷 CSS Variables
========================== */
:root {
  --primary: #f97316;
  --secondary: #f43f5e;
  --text-dark: #1e293b;
  --brand-dark: #1e3a8a;
  --light-bg: #f1f5f9;
  --story-bg: #ffedd5;
  --story-section-bg: #fff7ed;
}

/* ==========================
   🔷 Base Reset
========================== */
* {
  box-sizing: border-box;
}

a:focus,
a:active,
button:focus,
button:active,
input:focus,
input:active {
  outline: none;
  box-shadow: none;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: var(--text-dark);
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3 {
  margin: 0;
}

.container {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================
   🔷 Header & Navbar
========================== */
.header {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  padding: 10px 0;
}

.logo {
  font-size: 25px;
  font-weight: bold;
}

.navbar .logo a {
  text-decoration: none;
  color: inherit;
}

.nav-links {
  display: flex;
  align-items: center;
  transition: all 0.3s ease-in-out;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin: 0 12px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffeb3b;
}

.nav-links .btn-primary,
.nav-links .btn-secondary {
  margin-left: 12px;
}

.hamburger {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

/* ==========================
   🔷 Buttons
========================== */
.btn-primary {
  background-color: var(--brand-dark);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.btn-secondary {
  background-color: white;
  color: var(--brand-dark);
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* ==========================
   🔷 Hero Section
========================== */
.hero {
  text-align: center;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  padding: 20px 20px;
  border-radius: 0 0 20px 20px;
}

.hero h2 {
  color: white;
  font-size: 35px;
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-buttons a {
  text-decoration: none;
}



/* ==========================
   🔷 Word of the Day
========================== */

.daily-section {
  background-color: #ffffff; /* clean white background */
  padding: 2rem 1rem;
  text-align: center;
  animation: fadeIn 1s ease-in;
}

.daily-section h2 {
  font-size: 20px;
  text-align: center;
  font-weight: 700;
  margin-bottom: 30px;
  margin-top: 10px;
}

.daily-boxes {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.daily-card {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  max-width: 360px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  text-align: left;
  position: relative;
  border-left: 4px solid #f97316;
  background: var(--story-section-bg);
}

.label {
  font-size: 0.9rem;
  font-weight: bold;
  background: #fef3c7;
  color: #92400e;
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.word-title {
  font-size: 1.2rem;
  font-weight: bold;
  color:var(--brand-dark);
  margin-bottom: 0.1rem;
}

.word-desc {
  font-size: 1rem;
  color: #475569;
}

.quote-text {
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #334155;
}

.quote-author {
  font-weight: bold;
  color: #1e40af;
}



/* ==========================
   🔷 Featured Calculators
========================== */
.calculators {
  padding: 40px;
  text-align: center;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.card {
  background-color: var(--light-bg);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  text-decoration: none;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.card p {
  margin: 0;
  font-weight: 600;
  color: var(--text-dark);
}

/* ================================
   🔷 Infographics Section
================================= */
.infographics {
  padding: 1px 0px;
  background-color: #ffedd5;
  text-align: center;
  color: black;
  margin-bottom: 35px;
  border-radius: 20px 20px 20px 20px;
}

.infographics h2 {
  font-size: 20px;
  text-align: center;
  font-weight: 700;
  margin-bottom: 0px;
  margin-top: 30px;
}

.infographics .story-grid {
  display: flex;
  justify-content: center;
  gap: 25px;
  overflow-x: auto;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
}

.infographics .story-card {
  flex: 0 0 auto;
  width: 220px;
  background-color: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  scroll-snap-align: start;
}

.infographics .story-card img {
  max-height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  width: 100%;
}

.infographics .story-card figcaption {
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.4;
}


/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

.modal-content p {
  font-size: 1rem;
  color: #111827;
}

.close-btn {
  color: #333;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #f43f5e;
}

/* Fade In Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}



/* ==========================
   🔷 Footer
========================== */
footer {
  background-color: var(--brand-dark);
  color: white;
  padding: 40px 20px;
  text-align: center;
  width: 100%;
  border-radius: 20px 20px 0 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-follow,
.footer-links {
  width: 45%;
}

h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}


ul {
  list-style-type: none;
  padding: 0;
}

ul li {
  margin-bottom: 10px;
}

ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

ul li a:hover {
  color: var(--primary);
}

.footer-disclaimer,
.footer-copyright {
  font-size: 14px;
  margin-top: 10px;
}


/* ==========================
   🔷 Media Queries
========================== */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    text-align: center;
  }

  nav a {
    padding: 10px;
    display: block;
    margin: 10px 0;
  }

  .card,
  .story-card {
    width: 100%;
    max-width: 200px;
  }

  .hero h2 {
    font-size: 24px;
  }

  .hero-buttons button {
    width: 100%;
  }

  
  .subscribe-box input {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .story-card {
    width: 90%;
    margin: 10px 0;
  }
}

@media (max-width: 768px) {
  .container.navbar {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 20px 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    margin: 12px 0;
  }

  .hamburger {
    display: block;
  }
}