/* Design System for SDH Hustopeče Redesign */

:root {
  /* Color Palette */
  --bg-darkest: #070a12;
  --bg-dark: #0f1423;
  --bg-card: #171d33;
  --bg-input: #1b223c;
  
  --primary: #e53e3e;         /* Fire truck red */
  --primary-rgb: 229, 62, 62;
  --primary-hover: #c53030;
  --primary-glow: rgba(229, 62, 62, 0.4);
  
  --accent: #ed8936;          /* Fire orange */
  --accent-hover: #dd6b20;
  
  --amber: #ecc94b;           /* Fire yellow */
  --amber-rgb: 236, 201, 75;
  
  --success: #38a169;         /* Safe green */
  --success-glow: rgba(56, 161, 105, 0.2);
  --error: #e53e3e;
  
  --text-main: #f7fafc;
  --text-muted: #a0aec0;
  --text-dark: #2d3748;
  
  /* Layout & Glassmorphism */
  --glass-bg: rgba(23, 29, 51, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(229, 62, 62, 0.3);
  --glass-blur: blur(12px);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-darkest);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border: 2px solid var(--bg-darkest);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.bg-dark {
  background-color: var(--bg-dark);
}

.highlight {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin-top: 15px;
}

.section-header {
  margin-bottom: 60px;
}

.section-subtitle {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.5rem;
}

.section-intro {
  max-width: 800px;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.grid {
  display: grid;
  gap: 30px;
}

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

@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .section-title { font-size: 2rem; }
}

/* Card Styling */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 15px 35px -5px rgba(229, 62, 62, 0.2);
}

/* Button Styling */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--text-main);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.6);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-main);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-img {
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.nav-menu {
  display: flex;
  gap: 8px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  border-bottom: 2px solid var(--primary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--bg-dark);
    padding: 20px;
    gap: 10px;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  background-image: url('assets/hero_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(15, 20, 35, 0.5) 0%, var(--bg-darkest) 90%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .badge {
  background-color: rgba(229, 62, 62, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 25px;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: 3.8rem;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 40px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  gap: 20px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(229, 62, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero-lead { font-size: 1.1rem; }
  .hero-actions { flex-direction: column; width: 100%; gap: 15px; }
  .hero-actions .btn { justify-content: center; }
}

/* News Section */
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-badge {
  background-color: var(--primary);
  color: var(--text-main);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  align-self: flex-start;
  margin: 20px 20px 0;
  border-radius: 4px;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.news-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  transition: var(--transition);
}

.card-link:hover {
  color: var(--primary);
}

/* About Section */
.about-intro {
  align-items: center;
  margin-bottom: 60px;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.stats-grid {
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

.stat-number {
  font-size: 2.2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.about-img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.img-shadow {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--glass-border);
}

/* Timeline */
.timeline-container {
  margin-top: 80px;
  background-color: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow);
}

.timeline-title {
  font-size: 1.5rem;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
}

.timeline-wrapper {
  display: flex;
  gap: 40px;
}

.timeline-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 120px;
  border-right: 2px solid var(--glass-border);
  padding-right: 20px;
}

.timeline-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: right;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.timeline-btn:hover, .timeline-btn.active {
  color: var(--primary);
}

.timeline-btn.active {
  background-color: rgba(229, 62, 62, 0.08);
  font-weight: 800;
}

.timeline-content-pane {
  flex-grow: 1;
  display: none;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.timeline-content-pane.active {
  display: block;
}

.timeline-content-pane h4 {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.timeline-content-pane p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
  .timeline-wrapper { flex-direction: column; gap: 20px; }
  .timeline-nav { flex-direction: row; border-right: none; border-bottom: 2px solid var(--glass-border); padding-right: 0; padding-bottom: 15px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .timeline-btn { text-align: center; font-size: 1rem; }
}

/* Leaders Grid */
.leaders-section {
  margin-top: 80px;
}

.leaders-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.leaders-subtitle {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.leader-card {
  height: 400px;
  display: flex;
  flex-direction: column;
}

.card-header.bg-red {
  background-color: rgba(229, 62, 62, 0.1);
  border-bottom: 1px solid var(--glass-border);
  padding: 15px 20px;
  color: var(--primary);
}

.card-header h4 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.leader-list {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.leader-list ul {
  list-style: none;
}

.leader-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.leader-list li:last-child {
  border-bottom: none;
}

.leader-list li span {
  font-weight: 500;
}

.leader-list li small {
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.03);
  padding: 2px 8px;
  border-radius: 12px;
}

/* Teams Section */
.teams-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.team-selector {
  display: inline-flex;
  background-color: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 6px;
  border-radius: 30px;
  margin: 0 auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  background-color: var(--primary);
  color: var(--text-main);
}

/* Grid Layout for Team Dashboard */
.grid-team-dashboard {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
}

@media (max-width: 992px) {
  .grid-team-dashboard { grid-template-columns: 1fr; }
}

.position-visualizer-card {
  padding: 30px;
}

.position-visualizer-card h3 {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

/* Fire Attack Diagram Flow */
.attack-layout-diagram {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 10% 50%, rgba(229, 62, 62, 0.05) 0%, transparent 60%);
  overflow: visible;
}

.diagram-node {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 2px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 5;
}

.diagram-node:hover, .diagram-node.active {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: scale(1.08);
}

.diagram-node.active {
  background-color: rgba(229, 62, 62, 0.15);
}

.node-icon {
  font-size: 1.3rem;
  color: var(--text-main);
}

.diagram-node:hover .node-icon, .diagram-node.active .node-icon {
  color: var(--primary);
}

.node-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.diagram-node:hover .node-label, .diagram-node.active .node-label {
  color: var(--text-main);
}

/* Node Positions - properly spaced across the canvas */
.node-kos { bottom: 16%; left: 5%; }
.node-savice { bottom: 16%; left: 22%; }
.node-cerpadlo { bottom: 16%; left: 39%; }
.node-hadice { bottom: 53%; left: 39%; }
.node-rozdelovac { bottom: 53%; left: 58%; }
.node-proud-levy { top: 14%; left: 78%; }
.node-proud-pravy { bottom: 16%; left: 78%; }

/* Diagram Connector Lines */
.diagram-connector {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.conn-kos-savice {
  bottom: calc(16% + 34px);
  left: calc(5% + 68px);
  width: calc(22% - 5% - 68px);
  height: 2px;
}

.conn-savice-cerp {
  bottom: calc(16% + 34px);
  left: calc(22% + 68px);
  width: calc(39% - 22% - 68px);
  height: 2px;
}

.conn-cerp-hadice {
  bottom: calc(16% + 68px);
  left: calc(39% + 34px);
  width: 2px;
  height: calc(53% - 16% - 68px);
}

.conn-hadice-rozdelovac {
  bottom: calc(53% + 34px);
  left: calc(39% + 68px);
  width: calc(58% - 39% - 68px);
  height: 2px;
}

.conn-roz-left {
  top: 36%;
  left: 68%;
  width: 12%;
  height: 2px;
  transform: rotate(-35deg);
}

.conn-roz-right {
  bottom: 37%;
  left: 68%;
  width: 12%;
  height: 2px;
  transform: rotate(35deg);
}

@media (max-width: 576px) {
  .diagram-node {
    width: 54px;
    height: 54px;
  }
  .node-icon {
    font-size: 1.1rem;
  }
  .node-label {
    font-size: 0.65rem;
    bottom: -18px;
  }
  .conn-kos-savice {
    bottom: calc(16% + 27px);
    left: calc(5% + 54px);
    width: calc(22% - 5% - 54px);
  }
  .conn-savice-cerp {
    bottom: calc(16% + 27px);
    left: calc(22% + 54px);
    width: calc(39% - 22% - 54px);
  }
  .conn-cerp-hadice {
    bottom: calc(16% + 54px);
    left: calc(39% + 27px);
    height: calc(53% - 16% - 54px);
  }
  .conn-hadice-rozdelovac {
    bottom: calc(53% + 27px);
    left: calc(39% + 54px);
    width: calc(58% - 39% - 54px);
  }
}

/* Glass Detail Card styling */
.position-detail-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.bg-glass {
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

.position-info-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.position-icon-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(229, 62, 62, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  font-size: 1.6rem;
  border: 1px solid rgba(229, 62, 62, 0.2);
}

.pos-title-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

#pos-detail-title {
  font-size: 1.5rem;
}

.pos-desc-box {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
  flex-grow: 1;
}

.member-reveal-box {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 20px;
  border-radius: var(--radius-sm);
}

.member-reveal-box h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.member-name-display {
  font-size: 1.2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--amber);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 20, 35, 0.85), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.gallery-item-overlay span {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 10, 18, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--glass-border);
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--primary);
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.lightbox-prev:hover, .lightbox-next:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

.lightbox-caption {
  position: absolute;
  bottom: 40px;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  background-color: rgba(15, 20, 35, 0.8);
  padding: 10px 24px;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
}

@media (max-width: 768px) {
  .lightbox-prev { left: 15px; width: 45px; height: 45px; }
  .lightbox-next { right: 15px; width: 45px; height: 45px; }
  .lightbox-close { top: 15px; right: 15px; }
}

/* Calculator Section */
.grid-calc-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
}

@media (max-width: 992px) {
  .grid-calc-layout { grid-template-columns: 1fr; }
}

.calc-form-card {
  padding: 30px;
}

.calc-form-card h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(229, 62, 62, 0.15);
}

/* Calculator Results */
.calc-results-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.result-item-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.result-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
}

.bg-red {
  background-color: rgba(229, 62, 62, 0.15);
  color: var(--primary);
  border: 1px solid rgba(229, 62, 62, 0.2);
}

.bg-amber {
  background-color: rgba(236, 201, 75, 0.1);
  color: var(--amber);
  border: 1px solid rgba(236, 201, 75, 0.15);
}

.result-details h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.result-value {
  font-size: 1.4rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-main);
}

.highlight-value {
  color: var(--amber);
}

.visual-comparison-card {
  padding: 30px;
}

.visual-comparison-card h3 {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.comparison-bar-group {
  margin-bottom: 20px;
}

.comparison-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.progress-bar-container {
  height: 8px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease-out;
}

.standard-bar {
  background-color: var(--text-muted);
}

.custom-bar {
  background: linear-gradient(90deg, var(--primary), var(--amber));
}

.comparison-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Quiz Section */
.quiz-questions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 992px) {
  .quiz-questions-grid { grid-template-columns: 1fr; }
}

.quiz-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.quiz-card h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
  display: flex;
  gap: 10px;
}

.quiz-q-num {
  color: var(--primary);
  font-weight: 800;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.9rem;
}

.quiz-option:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
}

.quiz-option input[type="radio"] {
  margin-right: 12px;
  accent-color: var(--primary);
  transform: scale(1.1);
  cursor: pointer;
}

/* Evaluated states for options */
.quiz-card.evaluated .quiz-option {
  pointer-events: none;
}

.quiz-card.evaluated .quiz-option.correct {
  background-color: rgba(56, 161, 105, 0.1);
  border-color: var(--success);
  color: #c6f6d5;
}

.quiz-card.evaluated .quiz-option.incorrect {
  background-color: rgba(229, 62, 62, 0.1);
  border-color: var(--primary);
  color: #fed7d7;
}

/* Submit Block */
.quiz-submit-box {
  margin-top: 50px;
  text-align: center;
}

/* Quiz Results Card */
.quiz-result-card {
  margin-top: 40px;
  padding: 40px;
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 2px solid var(--primary);
  box-shadow: 0 10px 40px rgba(229, 62, 62, 0.15);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.result-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 25px;
}

.result-percent {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--amber);
  background-color: rgba(236, 201, 75, 0.1);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--amber);
}

.result-text-summary h3 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.result-text-summary p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.quiz-feedback {
  font-size: 1.1rem;
  background-color: rgba(255, 255, 255, 0.02);
  padding: 20px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
  margin-bottom: 30px;
}

.quiz-results-action {
  display: flex;
  gap: 15px;
}

.hidden {
  display: none !important;
}

/* Contact & Grid Layout */
.grid-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 992px) {
  .grid-contact-layout { grid-template-columns: 1fr; }
}

.contact-card {
  padding: 40px;
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--primary);
}

.contact-method {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.contact-method:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-method h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.contact-method p, .contact-method a {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.contact-method a:hover {
  color: var(--primary);
}

.contact-form-card {
  padding: 40px;
}

.contact-form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

/* Footer Section */
.main-footer {
  background-color: var(--bg-darkest);
  border-top: 1px solid var(--glass-border);
  padding: 50px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo-img {
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--glass-border);
}

.footer-logo h4 {
  font-size: 1.1rem;
}

.footer-logo p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-credits {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-credits p {
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .footer-content { flex-direction: column; gap: 30px; text-align: center; }
  .footer-logo { flex-direction: column; }
  .footer-credits { text-align: center; }
}
