/* Base Styles and Reset */
:root {
  --primary: darkgoldenrod; /* #B8860B */
  --primary-dark: #8B5A2B; /* Darker shade for hover */
  --secondary: #f59e0b;
  --dark: #1e293b;
  --light: #f8fafc;
  --text: #334155;
  --text-light: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --error: #ef4444;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --radius: 0.5rem;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--light);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 1rem;
}

h4 {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

p {
  margin-bottom: 1rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

.hidden {
  display: none !important;
}

/* Header */
.header {
  background-color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
  color: darkgoldenrod;
}

.tagline {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  font-weight: 500;
  padding: 0.5rem;
  color: var(--text);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.navbar-collapse {
  flex-grow: 0;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #f3f4f6, #e5e7eb);
  padding: 6rem 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  max-width: 500px;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: none;
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature {
  text-align: center;
  padding: 2rem;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

/* Plan Creator Section */
.plan-creator {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.plan-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

/* Form Elements */
input[type="text"],
input[type="number"] {
  width: 100%;
  padding: 0.75rem 1rem; /* No extra padding for arrow */
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: white;
  transition: var(--transition);
  color: var(--text);
}

select,
.form-select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem; /* Extra right padding for arrow */
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: white;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23000000' viewBox='0 0 16 16'%3E%3Cpath d='M8 12l-6-6h12l-6 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  color: var(--text);
}

input[type="text"]::placeholder,
input[type="number"]::placeholder,
select:invalid,
.form-select:not(.has-selection) {
  color: #6c757d; /* Match placeholder color */
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

/* Custom Dropdown for Interests */
.interests-wrapper {
  position: relative;
}

.dropdown {
  position: relative;
  width: 100%;
}

.dropdown-toggle.form-select {
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.dropdown-toggle:hover {
  border-color: var(--primary);
}

.dropdown-toggle::after {
  display: none; /* Remove Bootstrap's default arrow */
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 10;
  padding: 0.5rem 0;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: rgba(184, 134, 11, 0.1);
}

.dropdown-item input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color:darkgoldenrod;
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: #d97706;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  width: 100%;
  box-sizing: border-box;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.25rem;
}

.btn-full {
  width: 100%;
  grid-column: 1 / -1;
}

/* Results Section */
.results-section {
  background-color: var(--light);
}

.results-container {
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.results-nav {
  background-color: darkgoldenrod;
  padding: 0 1rem;
}

.tabs {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
}

.tabs li {
  padding: 1rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: var(--transition);
}

.tabs li:hover {
  color: white;
}

.tabs li.active {
  color: white;
  font-weight: 600;
  position: relative;
}

.tabs li.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: white;
}

.tab-content {
  display: none;
  padding: 2rem;
}

.tab-content.active {
  display: block;
}

.recommendation-content {
  min-height: 200px;
}

.recommendation-card {
  background-color: white;
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.recommendation-card h4 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.recommendation-footer {
  font-size: 0.875rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem;
}

/* Resources Section */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.resource-card {
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 250px;
}

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

.resource-card h3 {
  margin-bottom: 1rem;
}

.resource-card p {
  margin-bottom: 1rem;
  flex-grow: 1;
}

.resource-card .btn-outline {
  margin-top: auto;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background-color: darkgoldenrod;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 120px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
  filter: brightness(1);
}

.footer-logo:hover {
  filter: brightness(1.2);
}

.footer-links {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 160px;
}

.footer-column h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    max-width: none;
    margin-bottom: 2rem;
  }
  .hero-image {
    max-width: 600px;
    margin: 0 auto;
  }
  .navbar-collapse {
    background-color: white;
    padding: 1rem;
    margin-top: 1rem;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
  }
  .footer-logo {
    text-align: center;
    margin-bottom: 2rem;
  }
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav {
    display: none;
  }
  .tabs {
    justify-content: flex-start;
  }
  .tabs li {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  .action-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .action-buttons .btn {
    width: 100%;
  }
  .plan-form {
    grid-template-columns: 1fr;
  }
  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .resources-grid {
    grid-template-columns: 1fr;
  }
  .logos {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-logo {
    height: 150px;
  }
}

/* Print styles */
@media print {
  body {
    background-color: white;
  }
  .header, .hero, .about, .plan, .resources, .footer, .action-buttons {
    display: none !important;
  }
  .results-section {
    display: block !important;
  }
  .tab-content {
    display: block !important;
    margin-bottom: 2rem;
  }
  .recommendation-card {
    border: none;
    box-shadow: none;
    page-break-inside: avoid;
  }
}

.resource-results {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.resource-results.hidden {
  display: none;
}

.resource-results h3 {
  margin-bottom: 1rem;
  color: #003366;
}

.recommendation-footer {
  font-size: 0.85rem;
  color: #666;
}