/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */
@font-face {
  font-family: "MoonTime";
  src: url("/assets/fonts/moontime.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "League Spartan", sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ============================================
   ANIMATIONS & KEYFRAMES
   ============================================ */

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   FLOATING ACTION BUTTON
   ============================================ */

.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #2563eb;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: width 0.3s ease, background 0.3s ease;
  overflow: hidden;
  z-index: 1000;
}

.floating-btn i {
  flex-shrink: 0;
  z-index: 2;
}

.floating-btn .btn-text {
  position: absolute;
  left: 60px; /* start just outside the button */
  white-space: nowrap;
  opacity: 0;
  font-weight: 900;
  transition: opacity 0.3s ease, left 0.3s ease;
  font-size: 1rem;
  padding-right: 20px;
}

.floating-btn:hover {
  width: 160px; /* Increase width instead */
  background-color: #1d4ed8;
  justify-content: flex-start;
  padding-left: 20px;
}

.floating-btn:hover .btn-text {
  opacity: 1;
  left: 65px; /* Adjust text position */
}

/* ============================================
   HEADER SECTION
   ============================================ */

.header {
  background: transparent !important;
  box-shadow: none;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease; /* Add smooth transition */
  height: 80px; /* Define explicit height for calculations */
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  height: 50px;
}

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

.nav-links a {
  text-decoration: none;
  color: #333; /* Darker color for better contrast */
  font-weight: 500;
  transition: color 0.3s ease;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7); /* Light text shadow */
}

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

/* Dropdown base */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; /* Below PRODUCTS */
  left: 0;
  background: #fff;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background: #f5f5f5;
  color: #2563eb;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Header Responsive Design */
@media (max-width: 768px) {
  .header {
    background: transparent !important;
    box-shadow: none;
  }

  .nav-links {
    display: none;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.background-img-container {
  background-image: url("../assets/bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: min(100vh, 900px);
  margin-top: 0;
  padding-top: 80px; /* Account for fixed header */
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0; /* Allow shrinking */
  padding: 2rem 0; /* Add some padding for breathing room */
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 45% 55%;
  /* gap: 3rem; */
  align-items: center;
  width: 100%;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 1rem;
  margin-left: 80px;
}

.hero-content .welcome {
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 300;
  font-family: "MoonTime", sans-serif;
  font-style: italic;
  margin-bottom: 1rem;
  color: #666;
}

.hero-content .brand-name {
  font-family: "League Spartan", sans-serif;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.hero-btn {
  background: #2563eb;
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 2rem;
  margin-left: 80px;
  text-decoration: none;
  display: inline-block;
}

.hero-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* Hero Image & Slider */
.hero-image {
  width: 100%;
  position: relative;
  text-align: center;
}

.tractor-slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  max-height: 70vh;
  width: 100%;
}

.tractor-slide {
  display: none;
  animation: slideIn 0.5s ease-in-out;
}

.tractor-slide.active {
  display: block;
}

.tractor-slide img {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: clamp(250px, 45vh, 600px);
  object-fit: contain;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.dot {
  width: clamp(12px, 1.5vw, 18px);
  height: clamp(12px, 1.5vw, 18px);
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #2563eb;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent !important;
  border: 0px;
  width: clamp(40px, 5vw, 60px);
  height: clamp(40px, 5vw, 60px);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  transition: all 0.3s ease;
  color: #000000; /* icon color */
}

.slider-nav.prev {
  left: clamp(20px, 3vw, 40px);
}

.slider-nav.next {
  right: clamp(20px, 3vw, 40px);
}

/* Hero Brand Section */
.parent-container {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
  width: 100%;
  flex-shrink: 0;
  margin-top: auto; /* Push to bottom */
}

.brand-logo {
  height: 40px;
  font-weight: bold;
  justify-content: center;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Section Responsive Design */
@media (max-width: 768px) {
  .background-img-container {
    height: min(100vh, 700px); /* Limit height on mobile */
    padding-top: 60px; /* Account for smaller header */
  }

  .hero {
    padding: 1rem 0; /* Reduce padding on mobile */
  }

  .hero-container {
    grid-template-columns: 1fr;
    /* gap: 1rem; */
    text-align: center;
    padding: 0 1rem;
  }

  .hero-content h1 {
    margin-left: 0px;
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .hero-content .welcome {
    font-family: "MoonTime", sans-serif;
    font-size: clamp(1.5rem, 6vw, 1.8rem);
    margin-bottom: 0.5rem;
  }

  .hero-btn {
    margin-left: 0px;
    padding: 0.8rem 2rem;
    margin-top: 1rem;
  }

  .tractor-slide img {
    height: clamp(150px, 25vh, 250px);
  }

  .parent-container {
    padding: 1rem 0;
  }

  .brand-logo {
    height: 30px;
    font-size: 0.9rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .background-img-container {
    height: min(100vh, 600px); /* Even stricter limit for small phones */
    padding-top: 60px;
  }

  .hero {
    padding: 0.5rem 0;
  }

  .hero-container {
    padding: 0 1rem;
  }

  .hero-content h1 {
    margin-left: 0px;
    font-size: clamp(3rem, 8vw, 4rem);
  }

  .hero-content .welcome {
    font-family: "MoonTime", sans-serif;
    font-size: clamp(2rem, 8vw, 5rem);
  }

  .tractor-slide img {
    margin-left: 0px;
    height: clamp(120px, 20vh, 200px);
  }

  .slider-nav {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .slider-nav.prev {
    left: 10px;
  }

  .slider-nav.next {
    right: 10px;
  }
}

/* Tall devices with narrow width - prevent excessive height */
@media (max-width: 480px) and (min-height: 800px) {
  .background-img-container {
    height: 600px; /* Fixed height for very tall narrow devices */
  }
}

@media (max-width: 768px) and (min-height: 900px) {
  .background-img-container {
    height: 700px; /* Fixed height for tall tablets in portrait */
  }
}

/* Large screens - enhance carousel size */
@media (min-width: 1200px) {
  .hero-container {
    grid-template-columns: 30% 70%;
    /* gap: 4rem; */
  }

  .hero {
    padding: 3rem 0; /* More padding on larger screens */
  }

  .tractor-slider {
    max-height: 75vh;
  }

  .tractor-slide img {
    height: clamp(400px, 50vh, 700px);
  }
}

@media (min-width: 1600px) {
  .hero-container {
    max-width: 1600px;
    grid-template-columns: 25% 75%;
    /* gap: 5rem; */
  }

  .hero {
    padding: 4rem 0; /* Even more padding for ultra-wide screens */
  }

  .tractor-slider {
    max-height: 80vh;
  }

  .tractor-slide img {
    height: clamp(500px, 55vh, 800px);
  }

  .slider-nav {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .slider-nav.prev {
    left: 40px;
  }

  .slider-nav.next {
    right: 40px;
  }
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
  padding: 6rem 0;
  background: white;
  margin-top: 0; /* Remove any negative margin */
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: #1f2937;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 1.5rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
}

/* About Section Responsive Design */
@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */

.products {
  padding: 6rem 0;
  background: #f8f9fa;
}

.products-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section Header Row (Our Products + View All) */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: "League Spartan", sans-serif;
  font-size: 3rem;
  margin: 0;
  color: #1f2937;
}

.view-all {
  font-family: "League Spartan", sans-serif;
  font-size: 1rem;
  text-decoration: none;
  color: #2563eb;
  font-weight: 600;
  transition: color 0.3s ease;
}

.view-all:hover {
  color: #1d4ed8;
}

/* Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* ================= CARD DESIGN ================= */

.card-wrap {
  width: 360px;
  margin: 0 auto;
}

/* Core card */
.product-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 22px 22px 26px 22px;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card * {
  box-sizing: border-box;
}

.product-inner {
  background: #fff;
  border-radius: 12px;
  padding: 0;
}

.image-area {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.image-area img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
}

/* Model banner */
.model-banner {
  margin-top: 14px;
  background: linear-gradient(#e8f1fb, #dfeefb);
  height: 56px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #0f1724;
  letter-spacing: 0.5px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.03);
  white-space: nowrap;
}

/* Footer */
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-left: 6px;
  padding-right: 6px;
}

.left-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #222;
}

.meta-sub {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

/* CTA Button */
.cta {
  background: #0b60c7;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  box-shadow: 0 6px 18px rgba(11, 96, 199, 0.18);
  cursor: pointer;
  white-space: nowrap;
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.cta:active {
  transform: translateY(1px);
}

/* Responsive */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .card-wrap {
    width: 92%;
  }
  .model-banner {
    height: 52px;
  }
}
/* =============== CONTACT (Modern, Royal Blue) =============== */
:root{
  --brand:#004aad;
  --ink:#0f172a;
  --muted:#475569;
  --border:#e5e7eb;
  --bg:#ffffff;
  --soft:#f8fafc;
  --ring: 0 0 0 3px rgba(0,74,173,.18);
}

.contact{
  padding: 72px 0;
  background: var(--bg);
}

.contact-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px){
  .contact-container{ grid-template-columns: 1fr; gap: 32px; }
}

/* Left column */
.contact-info h2{
  font-size: clamp(2rem, 2.4vw + 1rem, 3rem);
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: .2px;
}

.contact-kicker{
  color: var(--muted);
  margin-bottom: 24px;
}

.contact-card{
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

/* Items */
.contact-item{
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
}

.contact-icon{
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--brand);
  background: rgba(0,74,173,.06);
  border: 1px solid rgba(0,74,173,.14);
  font-size: 1.1rem;
}

.contact-item strong{ color: var(--ink); }
.contact-item a{
  color: var(--ink);
  text-decoration: none;
}
.contact-item a:hover{ text-decoration: underline; }

/* Quick actions row */
.quick-actions{
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px;
}
.btn-chip{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--brand); color: var(--brand); background: #fff;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-chip:hover{ background: rgba(0,74,173,.06); transform: translateY(-1px); }
.btn-chip i{ font-size: .95rem; }

/* Right column (form) */
.contact-form{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
}

.form-group{ margin-bottom: 16px; }
.form-label{
  display:block; margin-bottom: 8px; font-weight: 700; color: var(--ink);
}

.input, .textarea{
  width: 100%;
  padding: 14px 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
  background: #fff;
}
.input:focus, .textarea:focus{
  outline: none; border-color: var(--brand); box-shadow: var(--ring);
}
.textarea{ height: 132px; resize: vertical; }

.helper{
  font-size: .85rem; color: var(--muted); margin-top: 6px;
}

/* Submit */
.submit-btn{
  background: var(--brand);
  color: #fff; border: none;
  padding: 14px 18px; border-radius: 12px;
  font-size: 1.05rem; font-weight: 700; cursor: pointer;
  width: 100%;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.submit-btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,74,173,.28); }
.submit-btn:disabled{ opacity:.6; cursor: not-allowed; box-shadow:none; }

/* Accessibility */
.contact a:focus-visible, .btn-chip:focus-visible, .submit-btn:focus-visible{
  outline: 2px solid var(--brand); outline-offset: 2px;
}

/* ============================================
   FOOTER SECTION
   ============================================ */
/* Enhanced Footer */
.footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #059669, transparent);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: start;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #059669;
  border-radius: 1px;
}

.footer-section p {
  color: #cbd5e1;
  margin-bottom: 0.8rem;
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.footer-section ul li a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-map iframe {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  border: 2px solid #334155;
  transition: border-color 0.3s ease;
}

.footer-map iframe:hover {
  border-color: #059669;
}

.footer-section .location-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.footer-section .location-item i {
  color: #059669;
  margin-right: 12px;
  width: 16px;
}

.footer-bottom {
  border-top: 1px solid #334155;
  margin-top: 3rem;
  padding: 2rem 0;
  text-align: center;
  color: #94a3b8;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .products-header {
    padding: 2rem 0;
  }
}
/* Gallery container padding tightened a bit */
.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px;
}

/* Denser, responsive grid */
.gallery-grid {
  display: grid;
  grid-auto-flow: dense;                 /* fills holes more intelligently */
  gap: 12px;                             /* tighter spacing */
  grid-template-columns: repeat(2, 1fr); /* default: 2 columns = mobile grid */
}

/* Scale up columns by breakpoints */
@media (min-width: 600px){
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px){
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px){
  .gallery-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Tiles: only squares & landscapes, no weird gaps */
.tile {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(2,6,23,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(2,6,23,.10); }

/* Enforce aspect ratios so rows align nicely */
.tile.is-square { aspect-ratio: 1 / 1; }
.tile.is-landscape { aspect-ratio: 16 / 9; }

/* Images fill tiles with no letterboxing */
.tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Edge-to-edge look on very small screens */
@media (max-width: 420px){
  .gallery-container { padding: 40px 12px; }
  .gallery-grid { gap: 10px; }
}
/* Grid stays responsive */
.gallery-grid {
  display: grid;
  grid-auto-flow: dense;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px){
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px){
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px){
  .gallery-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Image tiles */
.tile {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(2,6,23,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(2,6,23,.10);
}
.tile.is-square { aspect-ratio: 1 / 1; }
.tile.is-landscape { aspect-ratio: 16 / 9; }
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text blocks – modern, minimal, theme-colored */
.gallery-text {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: transparent;   /* removed background */
  box-shadow: none;          /* no card shadow */
}

.gallery-text h3 {
  font-size: clamp(1.3rem, 0.8vw + 0.8rem, 2.2rem);
  font-weight: 100;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #004aad;            /* royal blue theme color */
  margin: 0;
  text-align: center;
}

/* Make text blocks span wider for emphasis */
@media (min-width: 768px) {
  .gallery-text {
    grid-column: span 1;      /* take 2 columns on tablets+ */
    aspect-ratio: auto;       /* height adjusts naturally */
    min-height: 180px;
  }
}


/* ============================================
   ACHIEVEMENTS SECTION - HORIZONTAL SCROLL (SQUARE CARDS)
   ============================================ */
/* Wrapper + header polish */
.achievements { padding: 56px 16px; background: #f8fafc; }
.achievements-container { max-width: 1100px; margin: 0 auto; }
.achievements-header { margin-bottom: 18px; }
.achievements-title { margin: 0; font-size: clamp(1.25rem, 1.2vw + 1rem, 1.6rem); color:#0f172a; }
.achievements-underline { width: 64px; height: 3px; background:#004aad; border-radius: 2px; margin-top: 8px; }

/* Rail with nav buttons + fades */
.achievements-rail { position: relative; }
.achievements-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: #fff; box-shadow: 0 6px 16px rgba(2,6,23,.12);
  display: grid; place-items: center; cursor: pointer; z-index: 2;
}
.achievements-nav i { color:#0f172a; font-size: 16px; }
.achievements-nav.prev { left: -4px; }
.achievements-nav.next { right: -4px; }
.achievements-nav:focus-visible { outline: 2px solid #004aad; outline-offset: 2px; }

.achievements-fade {
  position: absolute; top: 0; bottom: 0; width: 48px; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, #f8fafc 0%, rgba(248,250,252,0) 100%);
}
.achievements-fade.right { right: 0; transform: scaleX(-1); }
.achievements-fade.left { left: 0; }

/* Scroll strip */
.achievements-scroll {
  display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
  padding: 8px 8px 12px; scroll-snap-type: x mandatory;
}
.achievements-scroll:focus { outline: none; }
.achievements-scroll::-webkit-scrollbar { height: 8px; }
.achievements-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* Cards */
.achievement-card {
  flex: 0 0 auto;
  width: clamp(240px, 36vw, 300px);
  background: #fff; border-radius: 14px;
  box-shadow: 0 8px 20px rgba(2,6,23,.08);
  padding: 14px;
  text-align: center;
  display: grid; gap: 10px;
  scroll-snap-align: start;
  transition: transform .2s ease, box-shadow .2s ease;
}
.achievement-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(2,6,23,.12); }
.achievement-card:focus-within { outline: 2px solid #004aad; outline-offset: 2px; }

.achievement-media { margin: 0; }
.achievement-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 10px; display: block;
}

.achievement-title {
  font-size: 0.98rem; font-weight: 500; color: #1f2937; line-height: 1.45;
  margin: 0;
}

/* Motion sensitivity */
@media (prefers-reduced-motion: reduce) {
  .achievements-scroll { scroll-behavior: auto; }
  .achievement-card { transition: none; }
}

/* Tighten on very small screens */
@media (max-width: 380px){
  .achievement-card { width: 86vw; }
}


.container {
  margin: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-auto-rows: 200px;
  grid-gap: 5px;
  grid-auto-flow: dense;
}
.container img {
   width: 100%;
   height: 100%;
}.horizontal{
    grid-column: span 2;
}
.vertical {
    grid-row: span 2;
}
.big{
    grid-column: span 2;
    grid-row: span 2;
}


/* Base */
:root{
  --brand:#004aad;
  --ink:#0f172a;
  --muted:#475569;
  --bg:#f8fafc;
  --card:#ffffff;
  --radius:16px;
  --shadow:0 8px 24px rgba(2,6,23,.06);
}

*{box-sizing:border-box}
img{max-width:100%;display:block}
h1,h2,h3{color:var(--ink);margin:0 0 .4rem}
p{color:var(--muted);line-height:1.7;margin:0}

/* Section wrapper */
.about{
  background:var(--bg);
  padding:48px 16px;
}
.about + .about{padding-top:0}

/* Constrained width & grid */
.about__inner{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  gap:28px;
  align-items:center;
}

/* Two-column on wider screens for the first section */
@media (min-width: 768px){
  .about__inner{
    grid-template-columns:1.2fr 1fr;
  }
}

/* Force vertical stack for the "Why Choose" section title + list */
.about__inner--stack{
  grid-template-columns:1fr;
}

/* Media (image) card */
.about__media{
  margin:0;
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.about__img{
  width:100%;
  height:100%;
  object-fit:cover;
  aspect-ratio: 16/10; /* keeps a nice crop across devices */
}

/* Text block */
.about__content{
  padding:8px 4px;
}
.section-title{
  font-size:clamp(1.4rem, 2.2vw + 1rem, 2rem);
  display:flex;
  align-items:center;
  gap:.6rem;
}
.section-text{
  margin-top:.6rem;
  font-size:clamp(.98rem, .4vw + .9rem, 1.05rem);
}

/* Features grid */
.features{
  list-style:none;
  margin:16px 0 0;
  padding:0;
  display:grid;
  gap:16px;
}

@media (min-width: 640px){
  .features{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}
@media (min-width: 1024px){
  .features{
    grid-template-columns:repeat(4, minmax(0,1fr));
  }
}

/* Feature card */
.feature{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:12px;
  align-items:flex-start;
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(2,6,23,.10);
}

.feature__icon{
  width:42px; height:42px;
  border-radius:12px;
  display:grid; place-items:center;
  background:rgba(0,74,173,.08);
  flex-shrink:0;
}
.feature__icon i{
  color:var(--brand);
  font-size:18px;
}

.feature__title{
  font-size:1rem;
  margin:0 0 .25rem;
}
.feature__text{
  font-size:.95rem;
}

/* Accessibility: larger tap targets on small screens */
@media (max-width: 480px){
  .feature{padding:16px}
  .feature__icon{width:44px;height:44px}
}
.mission {
  padding: 56px 16px;
  background: #ffffff; /* pure clean background */
}

.mission__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .mission__inner {
    grid-template-columns: 1fr 1fr; /* two-column layout on larger screens */
  }
}

.mission__block {
  padding: 20px;
}

.mission__title {
  font-size: clamp(1.3rem, 2vw + 1rem, 1.8rem);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.6rem;
}

.mission__title i {
  color: var(--brand);
}

.mission__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}


/* ============================================
         Gallery Styling 
============================================ */
.gallery {
  padding: 40px 10%;
  background-color: #f9fafb;
}

.achievements-header {
  text-align: center;
  margin-bottom: 30px;
}

.gallery-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.gallery-underline {
  width: 80px;
  height: 4px;
  background-color: #007bff;
  margin: 0 auto;
  border-radius: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid figure:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .gallery {
    padding: 30px 4%;
  }
  .gallery-title {
    font-size: 1.75rem;
  }
  .gallery-grid {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}