/* Base Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    color: #333;
}

header {
  background: #0d47a1;
  color: #fff;
  padding: 15px 20px;
  display: flex;              /* logo + nav side by side */
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-left img {
  height: 70px;
  margin-right: 15px;
}

.header-text h1 {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
}

.header-text p {
  margin: 0;
  font-size: 14px;
  color: #ddd;
}

.motto h2 {
  margin: 5px 0 0 0;
  font-size: 16px;
  font-weight: bold;
  color: #ffeb3b;
}

header nav {
  display: flex;
  gap: 15px;
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}


/* Logo + Title + Subtitle */
.top {
    position: absolute; /* pins it inside header */
    top: 10px;          /* distance from top */
    left: 10px;         /* distance from left */
    display: flex;      /* logo + text side by side */
    align-items: center;
}

.top img {
    height: 80px;
    margin-right: 15px;
}

.top h1 {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
}

.top p {
    margin: 0;
    font-size: 14px;
    color: #ddd;
}

/* Motto Styling */
.motto h2 {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

/* Navigation Bar */
nav {
    background: #1565c0;
    padding: 12px;
    text-align: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 12px;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 120px 40px;        /* taller section */
  text-align: center;
  color: #fff;                /* white text for contrast */
  background: url("images/webbg-photo.jpg") no-repeat center center;
  background-size: 100% 100%;     /* stretch image to fill */
}

/* Add a semi-transparent overlay */
.hero::before {
content: "";
position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); /* dark overlay for readability */
  z-index: 1;
}

/* Make sure text sits above overlay */
.hero h2, .hero p, .hero a {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
}


/* Buttons */
.btn {
    background: #ff9800;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
}

button.btn {
    background: #ff9800;
    color: white;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    transition: 0.2s;
}

button.btn:hover {
    background: #e68a00;
    cursor: pointer;
}

/* Sections */
section {
    padding: 40px 8%;
}

/* Cards Layout */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.card {
    padding: 25px;
    background: #f4f4f4;
    border-radius: 8px;
    text-align: center;
}

/* Footer */
footer {
    background: #0d47a1;
    color: white;
    padding: 15px;
    text-align: center;
}

/* Form Styling */
input {
    padding: 10px;
    margin: 6px 0;
    width: 300px;
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 15px; /* adjust spacing between cards */
}

.card {
  flex: 1 1 200px; /* makes cards responsive */
  margin: 0;       /* remove extra margins */
}
.gallery{
    max-width:1200px;
    margin:40px auto;
    padding:20px;
}

.gallery h2{
    text-align:center;
    margin-bottom:25px;
    color:#333;
}

.gallery-container{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.gallery-container img{
    width:100%;
    height:250px;
    object-fit:cover;
    display:block;
    border-radius:8px;
}

.gallery-container img:hover{
    transform:scale(1.03);
    transition:0.3s;
}

@media(max-width:768px){
    .gallery-container{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:480px){
    .gallery-container{
        grid-template-columns:1fr;
    }
}
