/* ============================================
   COMPONENTS - Reusable UI Components
   ============================================ */

/* Buttons */
.btn {
  display: inline-block;
  border: 1.5px solid #C0962B;
  background: #C0962B;
  color: #fff;
  border-radius: 3px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .4px;
  transition: .15s;
  font-family: inherit;
  text-decoration: none;
}

.btn:hover {
  background: #d8b252;
  border-color: #d8b252;
}

.btn.line {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}

.btn.line:hover {
  background: rgba(255,255,255,.12);
}

.btn.dark {
  background: #1F3864;
  border-color: #1F3864;
}

.btn.dark:hover {
  filter: brightness(1.15);
}

.btn.ghost {
  background: #fff;
  color: #1F3864;
  border-color: #1F3864;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid #e6e9f0;
  border-radius: 7px;
  padding: 26px 24px;
  transition: .18s;
}

.card:hover {
  box-shadow: 0 12px 30px rgba(16,32,63,.10);
  transform: translateY(-3px);
}

.card .ic {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: #eef2f9;
  color: #2E5496;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 20px;
  margin: 0;
}

.card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #C0962B;
  margin-bottom: 8px;
}

.card p {
  color: #5d6675;
  font-size: 14.5px;
  margin: 10px 0 0;
}

.card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #5d6675;
  font-size: 14px;
}

.card ul li {
  margin: 4px 0;
}

/* Tags / Eyebrow */
.eyebrow {
  font-family: -apple-system, Segoe UI, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  font-size: 12px;
  font-weight: 700;
  color: #C0962B;
}

/* Grid layouts */
.cards {
  display: grid;
  gap: 20px;
  margin-top: 42px;
}

.cards.c3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards.c4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive */
@media (max-width: 920px) {
  .cards.c3,
  .cards.c4 {
    grid-template-columns: 1fr;
  }
}

/* Cookie Consent Modal (from first page) */
.cookie-consent-modal {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  padding: 20px;
  justify-content: center;
  align-items: flex-end;
}

.cookie-consent-modal.active {
  display: flex;
}

.cookie-consent-content {
  background: #fff;
  max-width: 700px;
  width: 100%;
  border-radius: 12px;
  padding: 30px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-consent-header h2 {
  margin: 0 0 8px 0;
  font-size: 22px;
  color: #10203f;
}

.cookie-consent-body p {
  color: #5d6675;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.only-essential-link {
  color: #2E5496;
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  display: inline-block;
  margin-bottom: 16px;
}

.only-essential-link:hover {
  color: #10203f;
}

.cookie-settings {
  display: none;
  margin-top: 16px;
  border-top: 1px solid #e6e9f0;
  padding-top: 16px;
}

.cookie-settings.active {
  display: block;
}

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  gap: 16px;
}

.cookie-setting-content h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: #10203f;
}

.cookie-setting-content p {
  margin: 0;
  font-size: 12.5px;
  color: #5d6675;
}

.toggle-container {
  flex-shrink: 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  transition: .3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: .3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background: #C0962B;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-consent-footer {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.cookie-settings-btn {
  background: transparent;
  border: 1px solid #e6e9f0;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #5d6675;
  transition: .15s;
  flex: 1;
  min-width: 120px;
}

.cookie-settings-btn:hover {
  background: #f7f5ef;
}

.cookie-accept-btn {
  background: #C0962B;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  transition: .15s;
  flex: 1;
  min-width: 120px;
}

.cookie-accept-btn:hover {
  background: #d8b252;
}

.cookie-info {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-size: 12px;
}

.cookie-info a {
  color: #2E5496;
  text-decoration: underline;
}

.cookie-info a:hover {
  color: #10203f;
}