/* main.css */

body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f6f8;
    color: #222;
    margin: 0;
    padding: 0;
}

header {
    background-color: #111;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: start;
}

header h1 a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
}

.subtitle {
    font-size: 0.9rem;
    color: #ccc;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    margin-top: 0.5rem;
}

nav a {
    color: #99ccff;
    text-decoration: none;
    font-weight: 600;
    margin-right: 1.5rem;
}

nav a:hover {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #222;
}

a {
    color: #0056b3;
}

a:hover {
    text-decoration: underline;
}

.chart-commentary {
    margin-top: 2em;
    padding: 1em;
    background-color: #f9f9f9;
    border-left: 4px solid #555;
    border-radius: 5px;
    font-size: 0.95em;
}

#toggleCommentary {
    background-color: #333;
    color: white;
    border: none;
    padding: 0.5em 1em;
    font-size: 1em;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 1em;
}

#toggleCommentary:hover {
    background-color: #555;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

.home-card {
    background: linear-gradient(145deg, #fdfdfd, #f3f6fa);
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f8f9fa;
}

.card {
    background: #fff;
    padding: 1.5rem;
    margin: 1.5rem auto;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-width: 1000px;
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .card {
        margin: 2em 1em;
        padding: 1.5rem;
    }

    main {
        margin: 2rem 1rem;
    }
}

h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

footer {
    margin-top: 3rem;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
}

a, button {
    transition: all 0.2s ease-in-out;
}
nav a:hover {
    transform: scale(1.05);
}

p {
    line-height: 1.7;
    margin-bottom: 1rem;
}
ul {
    padding-left: 1.5rem;
}

.top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0077cc;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

h2 {
    margin-top: 0.02em;
    color: #222;
}

hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 1.5em 0;
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .card {
        margin: 1em 0;
    }
}

* {
    transition: all 0.2s ease-in-out;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-width: 600px;
}
.feedback-form input,
.feedback-form textarea {
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.feedback-form button {
    background-color: var(--primary, #1e90ff);
    color: white;
    padding: 0.5em 1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.feedback-form button:hover {
    background-color: var(--accent, #0077cc);
}
.flash {
    color: green;
    margin-top: 1em;
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 6px;
}

/* Dropdown items */
.dropdown-content a {
    color: black;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
}

/* Hover styles */
.dropdown-content a:hover {
    background-color: #f1f1f1;
}

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

.dropbtn {
    cursor: pointer;
}

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

.summary-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.2s ease-in-out;
}

.summary-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.summary-card h3 {
  margin-top: 0;
}

.summary-card a {
  color: #0056b3;
  font-weight: bold;
  text-decoration: none;
}

.hero-subtext {
    font-size: 1.2rem;
    margin: 0.5rem 0 1.5rem;
    color: #444;
}

.cta-button {
    display: inline-block;
    background-color: #0d6efd;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0b5ed7;
}


.card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 12px;
    background: #ffffff;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
}
p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.quote-box {
    background-color: #f9f9f9;
    border-left: 4px solid #0d6efd;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    font-style: italic;
    color: #333;
    font-size: 1rem;
    border-radius: 6px;
    position: relative;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.quote-box .quote-icon {
    font-size: 4rem;         /* Increased from 2rem */
    position: absolute;
    top: -0.25rem;           /* Slight nudge upward */
    left: 0.5rem;            /* Align nicely with the text */
    color: #0d6efd;
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.2;            /* Light opacity for elegance */
    pointer-events: none;
}

.quote-box blockquote {
    padding-left: 2.5rem;
    margin: 0;
}


@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.search-bar {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}
