* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
}

.page-with-sticky-footer {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
  
.page-with-sticky-footer main {
    flex: 1;
    width: 100%;
    margin: 0;
    max-width: none;
    padding: 2%;    
    
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
  .container {
    margin: 12px 8px;     /* less space on small screens */
    padding: 6px;         /* slightly tighter */
    border-radius: 6px;    /* optional: softer look */
  }
}

@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px;   /* prevents zoom on iOS */
    padding: 12px;
  }

  button {
    padding: 14px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

body {
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

.container {
  background: white;
  padding: 25px;
  max-width: 600px;
  margin: 0 auto; 
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h1 a {
  text-decoration: none;
  color: inherit;
}

h1 a:hover {
  opacity: 0.8;
  text-decoration: none;
}

.h1-small {
  font-size: 2rem;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 15px;
  font-weight: bold;
}

input, select, textarea {
  padding: 10px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

button {
  margin-top: 20px;
  padding: 12px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

header {
  background: #111827;
  color: white;
  padding: 3rem 2rem;
  text-align: left;
}

.line {
  display: flex;
  justify-content: space-between;
  font-size: clamp(0.5rem, 1vw, 1rem);
}

.line-page-with-sticky-footer {
  display: flex;
  justify-content: space-between;
  font-size: clamp(0.5rem, 1vw, 1rem);
}

@media (max-width: 768px) {
  .h1-page-with-sticky-footer {
    font-size: 98x;
  }
}

@media (max-width: 768px) {
  .line-page-with-sticky-footer {
    font-size: 36x;
  }
}

main {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1rem;
}

section {
  background: white;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

h2 {
  margin-bottom: 0.5rem;
}

ul {
  list-style: none;
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  background: #929493;
  text-align: center;
  padding: 2rem;
  color: #666;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px; 
  padding: 20px;
}

/* Card container */
.card {
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 10px;
  background-color: #fff;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

/* Title */
.card h3 {
  margin: 10px 0;
  font-size: 1.2rem;
  color: #333;
}

/* Image */
.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Hover effect */
.grid-item:hover .card {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Remove link underline */
.grid-item {
  text-decoration: none;
  color: inherit;
}

/* 📱 Phone view */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
.layout {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

.wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr; /* images left, text right */
  gap: 20px;
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* IMAGE GRID */
.image-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

/* Big vertical image */
.big {
  grid-row: span 2;
}

.big img {
  aspect-ratio: 2 / 3; /* vertical */
}

/* Small horizontal images */
.small img {
  aspect-ratio: 2 / 1; /* horizontal */
}

/* Shared image styles */
.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* TEXT */
.text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text h2 {
  margin-bottom: 10px;
}

.text p {
  color: #555;
  line-height: 1.5;
}

/* 📱 Responsive */
@media (max-width: 900px) {
  .wrapper {
    grid-template-columns: 1fr; /* stack everything */
  }

  .text {
    margin-top: 10px;
  }
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #4CAF50, #2e7d32);
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Hover effect */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Click effect */
.btn:active {
  transform: scale(0.97);
}
