@import 'components.css';

/* Hero slider styles */
.hero-slider {
  position: relative;
  z-index: 1; /* Added to ensure proper stacking */
  overflow: hidden;
  max-width: 1200px;
  max-height: 600px;
  margin: 0 auto 40px;
  text-align: center;
  width: 100%;
  aspect-ratio: 2/1;
}

.hero-slider .slide {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  max-width: 1200px;
  max-height: 600px;
}

.hero-slider .slide-content {
  position: absolute; /* Ensure it overlays the image */
  z-index: 10; /* Ensure it is above the slide image */
  background: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
  padding: 20px;
  border-radius: 8px;
  color: #000077; /* Text color */
  width: auto;
  max-width: 90%; /* Responsive width */
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Adjust for centering */
  bottom: 1%; /* Position from the bottom */
}

.hero-slider .slide-content h2 {
  margin-top: 0;
  font-size: 1.8rem;
}

.hero-slider .slide-content p {
  font-size: 1rem;
  margin: 10px 0 20px;
}

.hero-slider .slide-content .cta {
  display: inline-block;
  background-color: #b21117;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.hero-slider .slide-content .cta:hover {
  background-color: #7a0e11;
}

/* Teasers */
.teasers {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.teaser {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  flex: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.teaser:last-child {
  margin-right: 0;
}

@media (max-width: 768px) {
  .teasers {
    flex-direction: column;
  }
  
  .teaser {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

.teaser:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.teaser h2 {
  margin-top: 0;
  color: #000077;
}

.teaser p {
  color: #444;
}

.teaser .cta {
  display: inline-block;
  margin-top: 15px;
  background-color: #b21117;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.teaser .cta:hover {
  background-color: #7a0e11;
}

/* Summary Sections */
.summary-products-news-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin: 60px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.summary-products, .summary-news, .summary-contact {
  background: #fff;
  border-radius: 10px;
  padding: 25px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.summary-products h2, .summary-news h2, .summary-contact h2 {
  color: #000077;
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 700;
}

.summary-products .product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
}

.summary-products-news-contact button.cta {
  background-color: #b21117;
  color: white;
  padding: 10px 20px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.summary-products-news-contact button.cta:hover {
  background-color: #7a0e11;
}

/* Counters */
.counters {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-bottom: 40px;
  text-align: center;
}

.counter {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  flex: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.counter .count-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  margin-bottom: 10px;
}

.counter .count {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000077;
  display: inline;
  margin-bottom: 0;
}

.counter .symbol {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000077;
  display: inline;
  line-height: 1;
}

/* Instagram feed */
.instagram-feed {
  background: #fff;
  padding: 40px 20px;
  margin: 40px auto 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 8px;
  max-width: 900px;
}

.instagram-feed h2 {
  color: #000077;
  margin-bottom: 20px;
  text-align: center;
}

/* Footer */
footer {
  background: #000077;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

footer a {
  color: #b21117;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .teasers {
    flex-direction: column;
  }
  .counters {
    flex-direction: column;
  }
  .hero-slider .slide-content {
    max-width: 90%;
    max-height: none;
    left: 50%;
    transform: translateX(-50%);
    bottom: 5%;
    padding: 15px;
    width: 85%;
  }
}

/* Fix menu covering hero-slider on mobile */
@media (max-width: 768px) {
  .hero-slider {
    margin-top: 80px; /* Add space for fixed header */
  }
  
  .hero-slider .slide-content {
    position: absolute;
    z-index: 5;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    width: 85%;
    max-width: 320px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 5%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .hero-slider .slide-content h2 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #000077;
  }
  
  .hero-slider .slide-content p {
    font-size: 0.9rem;
    margin: 8px 0 12px;
    line-height: 1.4;
    color: #333;
  }
  
  .hero-slider .slide-content .cta {
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 120px;
    border-radius: 6px;
  }
}

/* Mobile-first responsive styles for slide-content */
@media (max-width: 768px) {
  .hero-slider {
    max-height: 400px;
    aspect-ratio: 16/9;
    margin: 0 auto 30px;
  }
  
  .hero-slider .slide-content {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    width: 85%;
    max-width: 320px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .hero-slider .slide-content h2 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #000077;
  }
  
  .hero-slider .slide-content p {
    font-size: 0.9rem;
    margin: 8px 0 12px;
    line-height: 1.4;
    color: #333;
  }
  
  .hero-slider .slide-content .cta {
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 120px;
    border-radius: 6px;
  }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
  .hero-slider {
    max-height: 300px;
    aspect-ratio: 4/3;
    margin: 0 auto 20px;
  }
  
  .hero-slider .slide-content {
    width: 90%;
    max-width: 280px;
    padding: 12px;
    bottom: 5%;
    background: rgba(255, 255, 255, 0.98);
  }
  
  .hero-slider .slide-content h2 {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }
  
  .hero-slider .slide-content p {
    font-size: 0.8rem;
    margin: 6px 0 10px;
    line-height: 1.3;
  }
  
  .hero-slider .slide-content .cta {
    padding: 10px 18px;
    font-size: 0.85rem;
    min-width: 110px;
  }
}

/* Extra small devices (max-width: 375px) */
@media (max-width: 375px) {
  .hero-slider {
    max-height: 250px;
  }
  
  .hero-slider .slide-content {
    width: 92%;
    max-width: 260px;
    padding: 10px;
    bottom: 3%;
  }
  
  .hero-slider .slide-content h2 {
    font-size: 1rem;
    margin-bottom: 4px;
  }
  
  .hero-slider .slide-content p {
    font-size: 0.75rem;
    margin: 4px 0 8px;
  }
  
  .hero-slider .slide-content .cta {
    padding: 8px 16px;
    font-size: 0.8rem;
    min-width: 100px;
  }
}

/* Landscape orientation for tablets and phones */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-slider {
    max-height: 350px;
  }
  
  .hero-slider .slide-content {
    width: 70%;
    max-width: 400px;
    bottom: 10%;
  }
  
  .hero-slider .slide-content h2 {
    font-size: 1.4rem;
  }
  
  .hero-slider .slide-content p {
    font-size: 1rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-slider .slide-content {
    background: rgba(255, 255, 255, 0.97);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* 404 Error Page Styles */
.error-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fffbff 0%, #f0f0f0 100%);
    padding: 40px 20px;
    margin-top: 0;
}

.error-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.error-video-container {
    margin-bottom: 40px;
    position: relative;
}

.error-video {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #000;
}

.error-text h1 {
    font-size: 6rem;
    font-weight: 700;
    color: #000077;
    margin: 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-text h2 {
    font-size: 2rem;
    color: #b21117;
    margin: 10px 0 20px;
    font-weight: 600;
}

.error-text p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.error-actions {
    margin-bottom: 30px;
}

.home-button {
    display: inline-block;
    background: linear-gradient(135deg, #b21117 0%, #7a0e11 100%);
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(178, 17, 23, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 17, 23, 0.4);
    color: white;
}

.language-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.lang-btn {
    background: transparent;
    border: 2px solid #000077;
    color: #000077;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: #000077;
    color: white;
}

.lang-btn:hover {
    background: #000077;
    color: white;
}

/* Responsive 404 page */
@media (max-width: 768px) {
    .error-404 {
        padding: 20px 15px;
    }
    
    .error-text h1 {
        font-size: 4rem;
    }
    
    .error-text h2 {
        font-size: 1.5rem;
    }
    
    .error-text p {
        font-size: 1rem;
    }
    
    .home-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .error-video {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .error-text h1 {
        font-size: 3rem;
    }
    
    .error-video {
        max-width: 250px;
    }
}

/* Advantages Section */
.advantages {
  background-image: url('../../assets/images/o-proizvodu-background.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  margin: 60px 0;
  padding: 60px 0;
  text-align: center;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 768px) {
    .advantages {
        background-size: cover;
        background-attachment: scroll;
    }
}

.advantages > * {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}
.advantages h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
    position: relative;
}
.advantages h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #b21117;
    margin: 15px auto 0;
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: left;
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Animation for advantage items */
.advantage-item {
    padding: 25px 20px;
    box-sizing: border-box;
    color: #000;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.advantage-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
.advantage-item {
    padding: 20px 15px;
    box-sizing: border-box;
    color: #000;
    position: relative;
}
.red-bg {
    background-color: #b21117;
    color: #fff;
}
.white-bg {
    background-color: #f9f9f9;
}
.center-text {
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.advantage-item.red-bg::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}
.advantage-item.red-bg:nth-child(1)::before {
    top: 0;
    left: 0;
    border-width: 0 15px 15px 0;
    border-color: transparent #7a0e11 transparent transparent;
}
.advantage-item.red-bg:nth-child(3)::before {
    top: 0;
    right: 0;
    border-width: 0 0 15px 15px;
    border-color: transparent transparent #7a0e11 transparent;
}
.advantage-item.red-bg:nth-child(6)::before {
    bottom: 0;
    left: 0;
    border-width: 15px 15px 0 0;
    border-color: #7a0e11 transparent transparent transparent;
}
.advantage-item.red-bg:nth-child(8)::before {
    bottom: 0;
    right: 0;
    border-width: 15px 0 0 15px;
    border-color: #7a0e11 transparent transparent transparent;
}

/* Product Info Section */
.product-info {
    margin: 60px auto;
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
    font-family: 'Georgia', serif;
    color: #333;
}
.product-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #000077;
    margin-bottom: 20px;
}
.product-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    text-align: left;
}
.product-column {
    flex: 1;
    max-width: 300px;
    text-align: center;
}
.product-column img {
    max-width: 80px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}
.product-column h3 {
    font-style: italic;
    font-weight: 700;
    font-size: 1.2rem;
    color: #000077;
    margin-bottom: 10px;
}
.product-column p {
    font-size: 1rem;
    line-height: 1.4;
}

/* Product Category Images */
.category-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Product Category Sections */
.product-category {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-category h2 {
    color: #000077;
    margin-bottom: 15px;
    font-size: 1.8em;
    font-weight: 600;
}

.product-category p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-image {
        max-width: 100%;
        height: auto;
    }
    
    .product-category {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .product-category h2 {
        font-size: 1.5em;
    }
}

/* Products and News Page Styling */
.products .container,
.news .container {
    max-width: 1200px;
    margin: 120px auto 40px;
    padding: 0 20px;
}

.page-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #000077;
    margin-bottom: 40px;
    position: relative;
}

.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #b21117;
    margin: 10px auto 0;
}

.products .product-category,
.news article {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.products .product-category h2,
.news article h2 {
    color: #000077;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 600;
}

.products .product-category img,
.news article img {
    display: block;
    margin: 0 auto 20px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.products .product-category p,
.news article p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: left;
}

.news article h3 {
    color: #000077;
    margin: 20px 0 10px;
    font-size: 1.4em;
}

@media (max-width: 768px) {
    .products .container,
    .news .container {
        margin: 100px auto 20px;
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .products .product-category,
    .news article {
        padding: 20px;
        margin-bottom: 30px;
    }
}

/* New styles for summary-products-news-contact section */
.summary-products-news-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.summary-products, .summary-news, .summary-contact {
    background: #fff;
    border-radius: 10px;
    padding: 25px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.summary-products h2, .summary-news h2, .summary-contact h2 {
    color: #000077;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
}

.summary-products .product-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.product-item {
    width: 100%;
    max-width: 300px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.product-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 6px;
}

.product-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #000077;
    margin-bottom: 5px;
}

.product-item p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

.summary-news .news-item {
    margin-bottom: 20px;
    text-align: left;
}

.summary-news .news-item h3 {
    color: #000077;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.summary-news .news-item h4 {
    color: #b21117;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.summary-news .news-item p {
    color: #444;
    font-size: 0.9rem;
    line-height: 1.4;
}

.summary-news .news-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.summary-contact .contact-container {
    display: flex;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-map {
    flex: 1 1 300px;
    min-width: 280px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-info {
    flex: 1 1 300px;
    min-width: 280px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info p {
    margin: 8px 0;
    font-size: 1rem;
    color: #222;
}

.contact-info strong {
    color: #000077;
}

.summary-products-news-contact button.cta {
    background-color: #b21117;
    color: white;
    padding: 10px 20px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.summary-products-news-contact button.cta:hover {
    background-color: #7a0e11;
}

@media (max-width: 768px) {
    .summary-contact .contact-container {
        flex-direction: column;
        align-items: center;
    }
    .contact-info {
        text-align: center;
    }
}

/* Contact Form Styling */
.contact-form {
  background: #fff;
  padding: 30px 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(178, 17, 23, 0.2);
  max-width: 600px;
  margin: 20px auto;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #000077;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  padding: 10px 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: #b21117;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  background-color: #b21117;
  color: white;
  font-weight: 700;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #7a0e11;
}

.contact-form .errors {
  background-color: #ffe6e6;
  border: 1px solid #b21117;
  color: #b21117;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  list-style-type: none;
}

.contact-form .success {
  background-color: #e6ffe6;
  border: 1px solid #2ecc40;
  color: #2ecc40;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

/* New styles for contact-info section */
.contact-info {
  background: #f9f9f9;
  padding: 25px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 20px auto;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #333;
}

.contact-info h2 {
  color: #b21117;
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 700;
}

.contact-info p,
.contact-info ul {
  margin-bottom: 12px;
  line-height: 1.5;
}

.contact-info ul {
  padding-left: 20px;
  list-style-type: disc;
}

/* New styles for map section */
.map {
  max-width: 600px;
  margin: 30px auto 40px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(178, 17, 23, 0.2);
  overflow: hidden;
}

.map h2 {
  color: #b21117;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Overall page container styles */
.contact-page {
  padding: 40px 15px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #222;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-form {
    padding: 20px 15px;
    margin: 15px;
  }
  .contact-info {
    padding: 20px 15px;
    margin: 15px;
  }
  .map {
    margin: 20px 15px 30px 15px;
  }
}

/* New styles for contact-details-wrapper to place map left of contact-info */
.contact-details-wrapper {
  display: flex;
  gap: 30px;
  max-width: 1240px;
  margin: 0 auto 40px auto;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-details-wrapper .map,
.contact-details-wrapper .contact-info {
  flex: 1 1 45%;
  max-width: 600px;
  box-sizing: border-box;
}

/* Responsive adjustments for contact-details-wrapper */
@media (max-width: 768px) {
  .contact-details-wrapper {
    flex-direction: column;
    margin: 0 auto 30px auto;
  }
  .contact-details-wrapper .map,
  .contact-details-wrapper .contact-info {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* News Page Styles */
.news {
    padding: 2rem 0;
}

.news .page-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #000077;
}

.news-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.news-item .news-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.news-item .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item .news-image img:hover {
    transform: scale(1.05);
}

.news-item .news-content {
    padding: 2rem;
}

.news-item h2 {
    color: #000077;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.news-item .news-subtitle {
    color: #b21117;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.news-item .news-text {
    margin-bottom: 1.5rem;
}

.news-item .news-text p {
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
}

.news-item .news-meta {
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.news-item .news-meta time {
    font-style: italic;
}

/* Responsive design for news items */
@media (max-width: 768px) {
    .news-item .news-image {
        max-height: 250px;
    }
    
    .news-item .news-content {
        padding: 1.5rem;
    }
    
    .news-item h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .news-item .news-content {
        padding: 1rem;
    }
    
    .news-item h2 {
        font-size: 1.3rem;
    }
}

/* Enhanced News Image Styles for better responsiveness */
.news-item .news-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-item .news-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.news-item .news-image img:hover {
    transform: scale(1.02);
}

/* Ensure images maintain aspect ratio and fit containers */
.news-item .news-image img.news-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

/* Fallback for older browsers */
.news-item .news-image {
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-item .news-image img[src=""] {
    display: none;
}

/* Responsive adjustments for news images */
@media (max-width: 768px) {
    .news-item .news-image {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .news-item .news-image {
        max-height: 200px;
    }
}

/* Loading state for images */
.news-item .news-image.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 2000% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
