:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --text-light: #fff;
  
  /* New variables for spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  /* Typography scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f9f9f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: var(--text-base);
}

/* Content box styles from jatstyle.css */
.content-box {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  border-radius: 8px;
  background-color: var(--light-color);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.content-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.content-box-1 {
  background-color: #e3f2fd;
}

.content-box-2 {
  background-color: #c8e6c9;
}

/* Button styles from jatstyle.css */
.btn {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 4px;
  transition: all var(--transition-normal);
}

.btn:hover {
  background-color: var(--dark-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Image Gallery Styles */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.caption {
  padding: 1rem;
  background: rgba(0,0,0,0.7);
  color: white;
  text-align: center;
  font-size: var(--text-sm);
}

/* Header styles */
header {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-list li {
  margin: 0.5rem 1rem;
}

.nav-list a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-list a:hover {
  background-color: rgba(255,255,255,0.1);
}

.nav-list a.active {
  background-color: var(--secondary-color);
}

.logo {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Search bar styles */
.search-bar {
  display: flex;
  align-items: center;
  background-color: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.search-bar:hover {
  background-color: rgba(255,255,255,0.2);
}

.search-bar input {
  background: transparent;
  border: none;
  color: var(--text-light);
  padding: 0.5rem 1rem;
  width: 200px;
}

.search-bar input::placeholder {
  color: rgba(255,255,255,0.7);
}

.search-bar button {
  background-color: var(--secondary-color);
  color: var(--text-light);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-bar button:hover {
  background-color: #2980b9;
}

/* Main content styles */
main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* Footer styles */
footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding: 1.5rem;
  margin-top: auto;
}

footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

/* Contact Form styles */
.contact-form {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.submit-btn {
  background-color: var(--secondary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* History Page styles */
.history-hero {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('jat-history.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.history-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-text {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
  padding-left: 50px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--secondary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-date {
  position: absolute;
  left: -50px;
  top: 0;
  width: 100px;
  padding: 0.5rem;
  background: var(--primary-color);
  color: white;
  text-align: center;
  border-radius: 4px;
  font-weight: bold;
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-color);
  line-height: 1.6;
}

/* Explore More Section */
.explore-more {
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  margin: 2rem 0;
}

.explore-more h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.explore-more h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary-color);
}

.explore-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.explore-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  width: 320px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.explore-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.explore-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.explore-icon img {
  width: 50px;
  height: 50px;
  filter: brightness(0) invert(1);
}

.explore-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.explore-card p {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.explore-card .btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: var(--secondary-color);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.explore-card .btn:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
  header {
    padding: 0.5rem 1rem;
  }

  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
  }

  .nav-list li {
    margin: 0;
  }

  .nav-list a {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
  }

  .logo {
    height: 40px;
  }

  .search-bar {
    margin: 0.5rem auto;
    width: 90%;
  }

  .search-bar input {
    padding: 0.5rem;
  }

  main {
    padding: 0 1rem;
  }
}

