/* --- GLOBAL RESET & BASE STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- NAVIGATION --- */
nav {
  background: #2c3e50; /* Midnight Blue */
  color: #ffffff;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #f1c40f;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

/* Gold Header Icons */
.social-icons i {
  margin: 0;
  font-size: 1.2rem;
  cursor: pointer;
  color: #f1c40f; /* Gold */
  transition: 0.3s;
}

.social-icons {
  display: flex; /* Forces children to align horizontally */
  flex-wrap: nowrap; /* STRICTLY prevents icons from jumping to a second row */
  align-items: center; /* Keeps them centered vertically */
  gap: 12px; /* Controls spacing between icons */
}

.social-icons i:hover {
  color: #ffffff;
  transform: scale(1.1);
}

#lang-switch {
  background: #e74c3c; /* Cinnabar Red */
  border: none;
  color: white;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s;
}

#lang-switch:hover {
  background: #c0392b;
}

/* --- HERO & BANNERS --- */
header {
  height: 45vh;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('assets/photos/eng-6.jpeg');
  /* Core background settings */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.cert-banner {
  background: #f1c40f;
  padding: 12px;
  text-align: center;
  font-weight: bold;
  font-size: 0.9rem;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- MAIN LAYOUT & SECTIONS --- */
main {
  max-width: 1200px;
  margin: 0 auto;
}

.breed-section {
  padding: 80px 5%;
}

.split-container {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.main-photo {
  flex: 1;
}

.main-photo img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: block;
}

.main-text {
  flex: 1;
}

.desktop-title h2 {
  color: #c0392b;
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.main-text h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  border-bottom: 2px solid #f1c40f;
  display: inline-block;
}

.main-text p {
  margin-bottom: 20px;
  text-align: justify;
}

.main-title-mobile {
  display: none; /* Desktop hidden */
}

hr {
  border: none;
  height: 1px;
  background: #eee;
  margin: 0 5%;
}

/* --- GALLERY --- */
.gallery-title {
  margin: 50px 0 25px;
  padding-left: 10px;
  border-left: 5px solid #e74c3c;
  text-transform: uppercase;
  font-size: 1.2rem;
  color: #2c3e50;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* .media-item {
  background: #f9f9f9;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #eee;
  overflow: hidden;
} */
/* The container for each gallery item */
.media-item {
  background: #f4f4f4;
  aspect-ratio: 1 / 1; /* Makes every item a perfect square */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #ddd;
  overflow: hidden; /* Important: hides the parts of the image that go outside the square */
}

/* The actual image or video inside the container */
.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This is the "magic" line: it fills the box without stretching */
  display: block;
}

/* --- CONTACT SECTION & FORM --- */
.section-header-simple {
  text-align: center;
  margin-bottom: 50px;
}

.section-header-simple h2 {
  font-size: 2.5rem;
  color: #2c3e50;
}

.contact-layout {
  align-items: stretch;
}

.contact-info {
  flex: 1;
}

.contact-details-box {
  margin-top: 30px;
  padding: 30px;
  background: #fcfcfc;
  border-radius: 8px;
  border-left: 5px solid #f1c40f;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-details-box p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.contact-details-box i {
  color: #c0392b;
  margin-right: 15px;
  width: 20px;
  text-align: center;
}

.contact-form-container {
  flex: 1;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2c3e50;
  box-shadow: 0 0 8px rgba(44, 62, 80, 0.1);
}

.submit-btn {
  background: #2c3e50;
  color: white;
  padding: 16px;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.2s;
}

.submit-btn:hover {
  background: #c0392b;
}

.submit-btn:active {
  transform: scale(0.98);
}

/* --- FOOTER --- */
footer {
  background: #34495e; /* Slate Grey */
  color: #ecf0f1;
  padding: 60px 5% 30px;
  text-align: center;
}

.footer-social {
  margin-bottom: 30px;
}

.footer-social a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1rem;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #f1c40f;
}

footer p {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* --- RESPONSIVE LOGIC --- */
@media (max-width: 850px) {
  /* Breed Section Stack: Title -> Image -> Text */
  .split-container {
    flex-direction: column;
    gap: 20px;
  }

  .main-title-mobile {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .main-title-mobile h2 {
    color: #c0392b;
    font-size: 2rem;
  }

  .desktop-title {
    display: none;
  }

  .main-photo {
    order: 2; /* Image second */
    width: 100%;
  }

  .main-text {
    order: 3; /* Text third */
    width: 100%;
  }

  /* Contact Section Stack: Form -> Details */
  .contact-layout {
    flex-direction: column;
  }

  .contact-form-container {
    order: 1;
    width: 100%;
    margin-bottom: 40px;
  }

  .contact-info {
    order: 2;
    width: 100%;
  }

  /* Navigation */
  .nav-links {
    display: none; /* Hamburger menu would normally go here */
  }

  header h1 {
    font-size: 1.8rem;
  }
}

/* Language Toggle visibility */
.bg {
  display: none;
}
