/* Modern color scheme */
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --background-color: #f5f7fa;
  --text-color: #34495e;
  --light-gray: #ecf0f1;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --header-bg: #333;
  --header-text: #ffffff;
  --hover-color: #2980b9;
}

/* Base styles */
body {
  font-family: Arial, sans-serif;
  max-width: 800px;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  margin: 0 auto;
  padding: 15px;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.highlight {
  color: var(--secondary-color);
}

/* Header styles */
header {
  background-color: #27374D;
  color: var(--header-text);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--header-text);
}

.logo-img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
}

nav a {
  color: var(--header-text);
  text-decoration: none;
  margin-left: 1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--primary-color);
}

/* Calculator section */
.calculator {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 3rem 0;
  max-width: 100%;
  transition: transform 0.3s ease;
  text-align: center;
}

.calculator:hover {
  transform: translateY(-5px);
}

.input-group {
  margin-bottom: 2rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

input[type="date"] {
  width: 95%;
  padding: 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="date"]:focus {
  outline: none;
  border-color: var(--primary-color);
}

button {
  background-color: #ec2704;
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: block;
  width: 100%;
}

button:hover {
  background-color: var(--hover-color);
  transform: translateY(-2px);
}

/* Result Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9em;
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

th {
  background-color: #27374D;
  color: white;
  text-align: left;
  padding: 12px 15px;
}

td {
  padding: 12px 15px;
  border-bottom: 1px solid #dddddd;
}

tr:nth-child(even) {
  background-color: #f8f9fa;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background-color: #f1f1f1;
}

#result h2 {
  color: #2c3e50;
  margin: 1.5rem 0;
  text-align: center;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .calculator {
    padding: 20px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .container {
    width: 100%;
    padding: 0;
  }
  input[type="date"],
  button {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
}

/* New styles moved from index.html */
.article-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin: 2rem 0;
  line-height: 1.7;
  color: #333;
}

.article-section h1 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.article-section p {
  margin-bottom: 1.2rem;
}

.accordion {
  margin: 1.5rem 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-btn {
  width: 100%;
  padding: 15px;
  text-align: left;
  background: #ec2704;
  border: none;
  outline: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  color: white;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: #fff;
}

.accordion-content > div {
  padding: 20px;
}

.accordion-content h2,
.accordion-content h3 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  text-align: left;
}

.accordion-content h3 {
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
}

.accordion-content ol {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
}

.accordion-content ol li {
  margin-bottom: 0.5rem;
}

.feature-item {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item i {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-item h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.feature-item p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.features {
  background-color: #f8f9fa;
  padding: 4rem 0;
  margin-top: 3rem;
  border-top: 1px solid #e0e0e0;
}

.features h2 {
  text-align: center;
  color: #2c3e50;
  font-size: 2rem;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.features h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #3498db;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.table-image-container {
  margin: 2rem auto;
  max-width: 100%;
  overflow-x: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.table-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.centered-image {
  margin: 2rem 0;
  text-align: center;
}

.centered-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article-section p:last-child {
  margin-bottom: 0;
}

/* Compact Features & Footer */
.features { padding: 3rem 0; background: #f8f9fa; border-top: 1px solid #e0e0e0; }
.feature-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.features-title { text-align: center; color: #2c3e50; font-size: 1.8rem; margin-bottom: 2rem; position: relative; }
.features-title-underline { display: block; width: 60px; height: 4px; background: #3498db; margin: 0.8rem auto 0; border-radius: 2px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-item { background: white; padding: 1.5rem; border-radius: 8px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform 0.2s; }
.feature-item:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.feature-icon { font-size: 2.2rem; margin-bottom: 1rem; display: block; }
.feature-item h3 { color: #2c3e50; margin: 0.5rem 0; font-size: 1.2rem; }
.feature-item p { color: #666; margin: 0.5rem 0 0; font-size: 0.95rem; }

/* Compact Footer */
footer { background: #2c3e50; color: #ecf0f1; padding: 1.5rem 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
footer p { margin: 0.3rem 0; line-height: 1.5; font-size: 0.9rem; color: #bdc3c7; }
footer a { color: #5dade2; text-decoration: none; transition: opacity 0.2s; margin: 0 8px; }
footer a:hover { opacity: 0.9; text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  .features { padding: 2rem 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 1rem; }
  .features-title { font-size: 1.5rem; margin-bottom: 1.5rem; }
  footer { padding: 1.2rem 0; }
  footer p { font-size: 0.85rem; }
  footer a { display: inline-block; margin: 5px; }
}
  