:root {
  --primary-color: #0F172A;
  /* Deep Navy similar to Slate 900 */
  --secondary-color: #C5A059;
  /* Elegant Gold */
  --text-color: #334155;
  /* Slate 700 */
  --light-bg: #F8FAFCA;
  /* Slate 50 */
  --white: #ffffff;
  --transition-speed: 0.3s;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

/* Reset & Basics */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-bg);
  color: var(--text-color);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  /* Changed to primary (dark blue) */
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--primary-color);
  /* Changed to primary */
  transition: all var(--transition-speed);
  cursor: pointer;
}

.btn:hover {
  background-color: transparent;
  color: var(--primary-color);
  /* Changed to primary */
}

/* Navigation */
.navbar {
  background-color: rgba(224, 242, 254, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
  /* Reduced padding slightly to accommodate large logo */
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand on the Right */
.brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  /* Increase gap slightly for larger elements */
  font-family: var(--font-heading);
  font-size: 3rem;
  /* Reduced by 25% from 4rem */
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  height: 120px;
  /* Reduced by 25% from 160px */
  width: auto;
}

/* Links on the Left */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  /* Remove margin */
}

.nav-links a {
  font-weight: 500;
  color: var(--primary-color);
}

.nav-links a:hover {
  color: var(--secondary-color);
}

/* Hero Section - Refactored for centered layout */
.hero {
  position: relative;
  min-height: 85vh;
  /* Increase height slightly */
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a2942 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Ensure horizontal center */
  overflow: hidden;
  padding-top: 80px;
}

.hero .container {
  display: flex;
  flex-direction: column;
  /* Stack vertically to center */
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: auto;
  /* Allow growth */
  min-height: 100%;
  text-align: center;
  width: 100%;
  /* Ensure container takes full width */
  padding-bottom: 2rem;
}

.hero-content {
  z-index: 10;
  color: var(--text-color);
  max-width: 800px;
  width: 90%;

  /* Normal Flow Positioning */
  position: relative;
  order: 1;
  /* Text Above */
  margin-bottom: 2rem;

  /* White Background Box - Changed to Bright Blue */
  background-color: rgba(224, 242, 254, 0.95);
  /* Bright Blue */
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  order: 2;
  /* Image Below */
  margin-bottom: 1rem;
}

.hero-image {
  max-width: 100%;
  max-height: 70vh;
  /* Limit height so it fits on screen somewhat */
  width: auto;
  height: auto;
  object-fit: contain;
  /* Ensure full visibility */
  border-radius: 4px;
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4);
}

.hero h1 {
  color: var(--primary-color);
  /* Changed to primary (dark blue) */
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
  /* Center the text block */
}

/* Ukraine Card Design */
.card.ukraine-card {
  position: relative;
  border-top: 4px solid #0057B7;
  border-bottom: 4px solid #FFDD00;
}

.ukraine-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 50px 50px 0;
  border-color: transparent #0057B7 transparent transparent;
  opacity: 0.1;
  pointer-events: none;
}

.ukraine-card .card-tags {
  color: #0057B7;
}

.ukraine-card:hover {
  box-shadow: 0 10px 20px -5px rgba(0, 87, 183, 0.15), 0 10px 20px -5px rgba(255, 221, 0, 0.15);
}

/* Banner Image */
.banner-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 4rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.image-fully-visible {
  width: 50%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 4rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero-content {
    padding: 0 1rem;
    margin-bottom: 15rem;
    /* Increased margin to prevent overlap on mobile */
  }

  .hero-image-container {
    max-height: 50vh;
  }

  .nav-links {
    display: none;
  }


  /* Simplified mobile handling for now */
}

/* News/Cards Grid */
.news-section {
  padding: 4rem 0;
  background-color: rgba(224, 242, 254, 0.95);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header span {
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 3.75rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 700;
  display: block;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  display: flex;
  flex-direction: column;
  border-bottom: 4px solid #000;
  /* Black bar for standard cards */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  /* Light gray background for letterboxing */
}

.card-image img {
  width: 100%;
  height: auto;
  object-fit: unset;
  transition: transform 0.5s;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-tags {
  color: var(--secondary-color);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.card-excerpt {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-link {
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-link:hover {
  color: var(--secondary-color);
}

/* Content Pages */
.page-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 6rem 0 3rem;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.5rem;
}

.page-content {
  padding: 4rem 0;
  background: var(--white);
  margin-bottom: 4rem;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #333;
}

.article-body p {
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.footer a {
  color: #94a3b8;
}

.footer a:hover {
  color: var(--secondary-color);
}

.copyright {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  width: 100%;
}

.footer-logo-card {
  background-color: rgba(255, 255, 255, 0.1);
  /* Transparent white */
  padding: 1rem 2rem;
  border-radius: 12px;
  display: inline-block;
  backdrop-filter: blur(5px);
  transition: background-color var(--transition-speed);
}

.footer-logo-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  /* Simplified mobile handling for now */
}

/* Christmas Wish */
.christmas-wish {
  font-family: 'Mountains of Christmas', cursive, var(--font-heading);
  color: #D42426;
  /* Christmas Red */
  text-align: center;
  margin: 2rem 0 3rem;
  font-size: 2rem;
  line-height: 1.6;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% {
    opacity: 0.9;
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(212, 36, 38, 0.4);
  }

  100% {
    opacity: 0.9;
  }
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto 2rem;
  overflow: hidden;
  border-radius: 4px;
}

.carousel-slide {
  display: none;
  width: 100%;
}

.carousel-slide.active {
  display: block;
  animation: fade 0.5s;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  margin: 0 auto;
}

.carousel-prev,
.carousel-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.3);
}

.carousel-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

@keyframes fade {
  from {
    opacity: .4
  }

  to {
    opacity: 1
  }
}

.font-standard {
  font-family: var(--font-body) !important;
  font-weight: 600;
  animation: none !important;
  /* Removes the shine animation */
  color: var(--primary-color) !important;
  /* Uses the specific site blue */
  text-shadow: none !important;
}