/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Container */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

/* Header */
header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin-bottom: 10px;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    text-decoration: underline;
}

/* Sections */
.section {
    padding: 80px 20px;
}

.home-section {
    background: #f0f8ff;
}

.about-section {
    background: #fff;
}

..courses {
  text-align: center;
  padding: 60px 20px;
  background-color: #f8f9fa;
}

.course-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.course-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
}

.course-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.gallery-section {
    background: #f5f5f5;
}

/* Contact Section - Two Column Layout */
.contact-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 25px 20px;
  border: 2px solid #000; /* notebook style border */
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-container h2 {
  margin-top: 0;
  color: #000;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: left;
}

.contact-columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.left-column,
.right-column {
  width: 48%;
}

.left-column p,
.right-column p {
  margin: 8px 0;
  font-size: 1.05em;
  color: #222;
  font-weight: 500;
}

.contact-container a {
  color: #28a745;
  text-decoration: none;
  font-weight: bold;
}

.contact-container a:hover {
  text-decoration: underline;
}

/* Responsive for mobile */
@media (max-width: 600px) {
  .contact-columns {
    flex-direction: column;
  }
  .left-column,
  .right-column {
    width: 100%;
  }
}

/* Headings */
h2 {
    color: #333;
    margin-bottom: 20px;
}

/* Paragraphs */
p {
    color: #555;
    max-width: 700px;
    margin: auto;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Button */
button {
    padding: 12px 25px;
    background-color: #2a5298;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

button:hover {
    background-color: #1e3c72;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.course-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 3px 10px rgba(0,0,0,0.1);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    background-color: #ddd;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    font-weight: bold;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

input, textarea {
    width: 80%;
    max-width: 400px;
    padding: 12px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

textarea {
    height: 120px;
}

/* Footer */
footer {
    background: #1e3c72;
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}
/* Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 25px;
  padding: 0 15px;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Lightbox (Popup View) */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

#caption {
  text-align: center;
  color: #fff;
  padding: 10px;
  font-size: 18px;
}

/* Close Button */
.close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover {
  color: #ffcc00;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery img { height: 180px; }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  .gallery img { height: 160px; }
}