* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

.header {
  min-height: 550px;
  width: 100%;
  background-image: linear-gradient(rgba(22, 33, 58, 0.522), rgba(30, 14, 4, 0.702)),
    url("bg.png"); 
  background-position: center;
  background-size: cover;
  position: relative;
}
nav {
  display: flex;
  padding: 2% 6%;
  justify-content: space-between;
  align-items: center;
}
nav img {
  width: 200px;
}
.nav-links {
  flex: 1;
  text-align: right;
}
.nav-links ul li {
  list-style: none;
  display: inline-block;
  padding: 8px 12px;
  position: relative;
}
.nav-links ul li a {
  color: #fff;
  text-decoration: none;
}
.nav-links ul li::after {
  content: "";
  width: 0%;
  height: 2px;
  background: #dfb428;
  display: block;
  margin: auto;
  transition: 0.5s;
}
.nav-links ul li:hover::after {
  width: 100%;
}
.text-box {
  width: 90%;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  margin-top: 50px;
}
.text-box h1 {
  font-size: 62px;
}
.text-box h2 {
  text-transform: uppercase;
  font-size: 30px;
  color: #ffd2b7;
}
.text-box p {
  margin: 10px 0 40px;
  font-size: 14px;
  color: #fff;
}
.hero-btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  border: 1px solid #fff;
  padding: 12px 34px;
  font-size: 13px;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.hero-btn:hover {
  border: 1px solid #dfb428;
  background: #d89822f5;
  transition: 1s;
}
nav .fa-solid {
  display: none;
}

@media (max-width: 700px) {
  nav img {
    width: 120px;
  }
  .text-box h1 {
    font-size: 20px;
  }
  .nav-links ul li {
    display: block;
  }
  .nav-links {
    position: fixed;
    background: rgba(216, 152, 34, 0.962);
    height: 100vh;
    width: 200px;
    top: 0;
    right: -200px;
    text-align: left;
    z-index: 2;
    transition: 1s;
  }
  .nav-links ul li::after {
    content: "";
    width: 0%;
    height: 2px;
    background: #1e4530;
    display: block;
    margin: auto;
    transition: 0.5s;
  }
  nav .fa-solid {
    display: block;
    color: #fff;
    margin: 10px;
    font-size: 22px;
    cursor: pointer;
  }
  .nav-links ul {
    padding: 30px;
  }
}

/* --- Content Sections --- */
.content-section {
  /*background: linear-gradient(145deg, #fffffffa, #3f5a0ddb);*/
  background-color: #f2ca468e;
  padding: 50px 0;
  margin: 0;
}
.info-section {
  background-color: #fff;
  padding: 50px;
  margin: 40px auto;
  max-width: 1100px;
  border-radius: 20px;
  box-shadow: 10 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #0f4e74;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(167, 74, 24, 0.426);
}
.info-section h1 {
  color: rgb(167, 74, 24);
  margin-bottom: 20px;
  font-size: 2rem;
}
.info-section p {
  line-height: 1.7;
  font-size: 1rem;
}

/* --- Table Styling --- */
.table-container {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
thead th {
  background-color: #0f4e74;
  color: #fff;
  padding: 12px;
  font-weight: 600;
}
tbody td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}
tbody tr:hover {
  background-color: #0f4d74d8;
  transition: background-color 0.3s ease;
  color: #fff;
}

/* --- Animations --- */
.animate-text {
  animation: fadeSlideIn 1.2s ease-out forwards;
  opacity: 0;
}
.fade-in {
  animation: fadeIn 1.2s ease forwards;
  opacity: 0;
}
.slide-up {
  animation: slideUp 1.2s ease forwards;
  opacity: 0;
}
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */

/* Medium devices (tablets, 768px and up) */
@media screen and (max-width: 992px) {
  .introduction {
    flex-direction: column;
    margin: 50px;
    text-align: center;
  }

  div img {
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 10px;
  }

  .content {
    margin-top: 20px;
    padding: 0 10px;
  }

  .aims-objective,
  .courses-available {
    margin: 0px 50px 50px 50px;
    padding: 30px;
  }
}

/* Small devices (phones, 576px and down) */
@media screen and (max-width: 576px) {
  .introduction {
    margin: 30px 20px;
    padding: 20px;
  }

  .content h1,
  .aims-objective h1,
  .courses-available h1 {
    font-size: 1.5rem;
  }

  .aims-objective,
  .courses-available {
    margin: 0px 20px 50px 20px;
    padding: 20px;
  }

  /* Make table scrollable horizontally on small screens */
  .courses-available table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .courses-available table thead,
  .courses-available table tbody,
  .courses-available table tr,
  .courses-available table th,
  .courses-available table td {
    font-size: 14px;
  }

  .courses-available table {
    margin: 20px 0;
  }
}

/*  SUB HEADER  */
.sub-header {
  height: 100px;
  width: 100%;
  background: linear-gradient(to right, #2e8b57, #1e4530);
  background-position: center;
  background-size: cover;
  text-align: center;
  color: #fff;
  padding: 10px;
}

.sub-nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /*padding: 0 6%;*/
}

.sub-nav img {
  width: 100px;
}

.subnav-links {
  display: flex;
  align-items: center;
}

.subnav-links ul {
  display: flex;
  list-style: none;
}

.subnav-links ul li {
  margin: 0 12px;
  position: relative;
}

.subnav-links ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.subnav-links ul li::after {
  content: "";
  width: 0%;
  height: 2px;
  background: #d89822f5;
  display: block;
  margin: auto;
  transition: width 0.5s;
}

.subnav-links ul li:hover::after {
  width: 100%;
}

/* ===== MOBILE MENU ===== */
.menu-btn,
.close-btn {
  display: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .subnav-links {
    position: fixed;
    background: rgba(216, 152, 34, 0.962);
    height: 100vh;
    width: 200px;
    top: 0;
    right: -250px;
    text-align: left;
    z-index: 2;
    transition: 1s;
    align-items: flex-start;
  }

  .subnav-links ul li::after {
    content: "";
    width: 0%;
    height: 2px;
    background: #1e4530;
    display: block;
    margin: auto;
    transition: width 0.5s;
  }

  .subnav-links ul {
    flex-direction: column;
    width: 100%;
    padding-top: 60px;
  }

  .subnav-links ul li {
    margin: 15px 0;
    width: 100%;
  }

  .menu-btn,
  .close-btn {
    display: block;
  }

  .sub-nav {
    padding: 0 4%;
  }
}

footer {
  background: #222;
  padding: 40px 0;
  text-align: center;
}

footer .text-white {
  color: #fff;
}

footer a {
  color: #dfb428;
  text-decoration: none;
}

/* ABOUT US INTRODUCTION */
.about-us {
  height: 100%;
  background-image: url("background1.jpg"); /* Replace with your image file */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 40px;
}

.about-us .introduction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  background-color: rgba(249, 248, 247, 0.9);
  border-radius: 20px;
  padding: 30px;
  transition: box-shadow 0.3s ease-in-out;
}

.about-us .introduction:hover {
  box-shadow: 0 0 20px 0px #782905e8;
}

.about-us div img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  object-fit: cover;
}

.about-us .content {
  flex: 1;
  color: #7a2a05;
  text-align: justify;
}
.about-us .content h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-us .introduction {
    gap: 30px;
    padding: 20px;
  }

  .about-us .content h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .about-us .introduction {
    flex-direction: column;
    text-align: center;
  }

  .about-us .content {
    margin-top: 20px;
  }

  .about-us .content h1 {
    font-size: 1.5rem;
  }

  .about-us div img {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  body,
  html {
    height: 100%;
    margin: 0;
    padding: 0;
  }

  .about-us {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
  }

  .about-us .introduction {
    gap: 10px;
    max-width: 350px;
    width: 100%;
    align-items: center;
    flex-direction: column;
    text-align: center;
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
  }

  .about-us .content h1 {
    font-size: 1.3rem;
  }

  .about-us .introduction img {
    display: none; /* Keep image hidden */
  }

  /* Expand content full width */
  .about-us .content {
    width: 100%;
  }

  .about-us .content h1 {
    font-size: 1.3rem;
  }
}

/*------GALLERY----*/
.card {
  display: grid;
  place-items: center;
  padding: 5rem 1.5rem;
  background-image: linear-gradient(rgba(4, 9, 30, 0.6), rgba(4, 9, 30, 0.6)),
    url("bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.card-container {
  display: grid;
  row-gap: 3rem;
  animation: fadeInUp 1s ease-out;
}

.card-article {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.card-article:nth-child(odd) {
  animation-delay: 0.2s;
}
.card-article:nth-child(even) {
  animation-delay: 0.4s;
}

.card-img {
  width: 380px;
  border-radius: 20px;
  /*box-shadow: 0 8px 20px rgba(255, 255, 255, 0.821);*/
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-article:hover .card-img {
  transform: scale(1.07);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.9);
}

.card-data {
  width: 280px;
  background-color: #fff;
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 1rem;
  position: absolute;
  bottom: -9rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  opacity: 0;
  transition: all 0.5s ease;
  align-items: center;
  text-align: center;
}

.card-article:hover .card-data {
  transform: translateY(-10rem);
  opacity: 1;
}

.card-description {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #666;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.75rem;
}

.card-button {
  text-decoration: none;
  font-size: 1.2rem;
  margin: 0 0.5rem;
}

.card-button i {
  color: #7a2a05;
  transition: color 0.3s ease;
}
.card-button:hover i {
  color: #ff6600;
}

/* ------ Animations ------ */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (min-width: 768px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }
}

@media screen and (min-width: 1120px) {
  .card-container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
  .card-data {
    width: 316px;
  }
}

/* ABOUT US */

.about-us {
  background-image: url("background1.jpg"); /* Replace with your image file */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 50px 0; /* Adds vertical space */
}

.about-us .introduction {
  margin: 100px;
  gap: 50px;
  display: flex;
  background-color: #f9f8f7e3;
  border-radius: 20px;
}
.about-us .introduction:hover {
  box-shadow: 0 0 20px 0px #782905e8;
}

.about-us div img {
  width: 500px;
  padding: 20px;
}
.about-us .content {
  margin-top: 40px;
  color: #7a2a05;
}
.about-us .content h1 {
  text-align: center;
}

/* Contact Us */

.contact {
  width: 100%;
  height: 300px;
  background-image: linear-gradient(rgb(1 10 53 / 37%), rgb(1 10 53 / 36%)),
    url("bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.contact-body{
  background: linear-gradient(145deg, #fffffffa, #4496de83);
}
.contact h1 {
  font-size: 60px;
  font-weight: 500;
}

.location {
  padding-top: 50px;
  display: flex;
  justify-content: center;
}

.location iframe {
  max-width: 100%;
  width: 80%;
  height: 450px;
  border: 0;
}

.contact-us {
  width: 100%;
  padding: 50px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.contact-col {
  max-width: 500px;
}

.contact-col div {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
}

.contact-col div .fa-solid {
  font-size: 30px;
  color: #7a2a05cd;
}

.contact-col h5 {
  font-size: 20px;
  margin-bottom: 5px;
  color: #0f4e74;
  font-weight: 400;
}

.contact-col p {
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.contact-col input,
.contact-col textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 17px;
  border: 1px solid #0f4e74;
  outline: none;
}

/*Button*/
.hero2-btn {
  display: inline-block;
  text-decoration: none;
  color: #7a2a05;
  border: 1px solid #7a2a05;
  padding: 12px 34px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  cursor: pointer;
}
.hero2-btn:hover {
  border: 1px solid #7a2a05;
  background: #7a2a05b5;
  color: white;
  transition: 0.3s;
}

/* Responsive Queries */
@media screen and (max-width: 1000px) {
  .row {
    flex-direction: column;
    align-items: center;
    margin: auto;
    flex-wrap: wrap;
  }

  .contact-col {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .contact-col div {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .contact h1 {
    font-size: 40px;
  }

  .location iframe {
    width: 100%;
  }
}

@media screen and (max-width: 576px) {
  .contact {
    height: 200px;
  }

  .contact h1 {
    font-size: 32px;
  }

  .contact-col div {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-col div .fa-solid {
    margin-bottom: 8px;
  }
}
