
/* Color Variables */
:root {
  --primary: #1a73e8; /* Existing blue */
  --secondary: #2ec4b6; /* Teal */
  --accent: #ff8c42; /* Orange */
  --dark: #1a1b41; /* Dark blue */
  --light: #f0f7ff; /* Light blue */
  --success: #4caf50; /* Green */
  --warning: #ff9800; /* Amber */
  --danger: #f44336; /* Red */
}

/* Base styles and reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Typography */
h1, h2, h3 {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-top: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.8;
}

/* Header styles */
header {
  text-align: center;
  padding: 1rem 0;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header img.middle {
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

header img.middle:hover {
  transform: scale(1.05);
}

/* Navigation */
nav {
  background-color: var(--primary);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0 0.5rem;
}

nav ul li a {
  color: white;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 500;
  display: block;
}

nav ul li a:hover, nav ul li a.active {
  background-color: var(--dark);
  transform: translateY(-2px);
}

/* Main content */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.hero {
  background: linear-gradient(135deg, var(--light), white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  border-left: 5px solid var(--accent);
}

.description {
  max-width: 800px;
  margin: 0 auto;
}

/* Image gallery */
.image-gallery {
  margin: 3rem 0;
}

.image-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-top: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.image-card {
  flex: 0 0 300px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 200px;
}

.image-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.feature-image {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.5s ease;
  object-fit: cover;
}

.image-card:hover .feature-image {
  transform: scale(1.05);
}

/* News section */
.news-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
  background: linear-gradient(to right, white 70%, var(--light));
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.news-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.news-item {
  flex: 0 1 350px;
  padding: 1.5rem;
  border-radius: 8px;
  background-color: #f8f9fa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.news-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-date {
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Footer */
footer {
  background: linear-gradient(to right, var(--primary), var(--dark));
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.contact-info, .footer-links {
  flex: 1;
  min-width: 300px;
  padding: 1rem;
}

footer h2 {
  color: white;
  text-align: left;
}

footer h2::after {
  background-color: white;
  left: 0;
  transform: none;
}

footer a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #b3d4fc;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 0.3rem 0;
    width: 100%;
    text-align: center;
  }
  
  .image-container, .news-container {
    gap: 1rem;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}

/* Keep existing gallery styles for other pages */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 250px; /* Fixed height for uniform gallery items */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* Form styles */
.forma {
  background-color: var(--light);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 2rem auto;
  border-top: 3px solid var(--accent);
}

/* Attractions grid for lankytinos vietos */
.attractions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.attraction-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.attraction-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.attraction-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.attraction-card:hover img {
  transform: scale(1.05);
}

.attraction-card figcaption {
  padding: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
}
