/* Global Styles ******************************************************************************/
* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  text-decoration: none;
  list-style: none;
  box-sizing: border-box;
}

/* Root Variables **********************************************************************/
:root {
--primary: #FF8C00; /* Strong orange color */
--secondary: #FFA500; /* Lighter shade of orange */
--text-color: #fff; /* White text color */
--color-primary: #11bceb;
--color-success: #00bf8e;
--color-warning: #f7c94b;
--color-danger: #11bceb;
--color-danger-variant: rgba(247, 88, 66, 0.4);
--color-white: #fff;
--color-light: rgba(255, 255, 255, 0.7);
--color-black: #000;
--color-bg: linear-gradient(135deg, #1f2641, #2e3267);
--color-bg1: linear-gradient(135deg, #2e3267, #907e42);
--color-bg2: linear-gradient(135deg, #907e42, #2cdee1);
--container-width-lg: 100%;
--container-width-md: 90%;
--container-width-sm: 94%;
--transition: all 400ms ease;
}

/* Typography */
h1, h2, h3, h4, h5 {
  line-height: 1.2;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1rem; }

a {
  color: var(--color-white);
}

/* Body Styles ***************************************************************************************/
body {
font-family: Georgia, serif;
margin: 0;
background-color: #52dee0;
display: flex;
flex-direction: column;
min-height: 100vh; /* Ensures full page height */
line-height: 1.7;
color: var(--color-white);
overflow-x: hidden; /* Hide horizontal overflow */
overflow-y: auto;   /* Show vertical scrollbar when needed */
}

/* Header Section *************************************************************************************************/
.window-scroll {
  background: linear-gradient(135deg, #001F3F, #004080);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.container {
  width: var(--container-width-lg);
  margin: 0 auto;
  background-color: #001F3F;
}

nav {
  background: transparent;
  width: 100vw;
  height: 5rem;
  position: fixed;
  top: 0;
  z-index: 11;
}

.nav__container {
height: 100%;
display: flex;
width: 100%;
justify-content: space-between;
align-items: center;
background-color: var(--color-primary);
}

nav button {
display: none;
}

.nav__menu {
display: flex;
align-items: center;
gap: 3rem;
list-style: none;
margin-right: 3rem;
}

.nav__menu a {
font-size: 0.9rem;
transition: var(--transition);
text-decoration: none;
font-size: medium;
color: rgb(11, 12, 26);
}

.nav__menu a:hover {
color: white;
}
.logo {
  display: flex;
  align-items: center; /* Align items in the center */
  gap: 3px; /* Reduce space between logo and text */
}

.logo img {
  height: 100px; /* Adjust based on your needs */
  width: auto; /* Maintain aspect ratio */
  max-width: 100%; /* Prevent overflow */
  margin-right: -20px; /* Negative margin to pull text closer */
}

.logo-text {
  font-size: 18px;
  font-weight: bold;
  color: #333; /* Adjust color */
  line-height: 1; /* Reduce extra spacing */
  margin-left: -15px; /* Negative margin to reduce space */
}

/* Hero Section *******************************************************************************************/
header {
  position:relative;
  width: 100%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  overflow: hidden;
  background: url("./Images/asset/photo_2024.png") no-repeat center center/cover; /* Initial image */
  transition: background-image 1s ease-in-out; /* Smooth transition */
}

.hero__left {
  position: absolute;
  bottom: 20px; /* Adjust this value as needed */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  text-shadow: 2px 2px 4px rgba(43, 42, 44, 0.5);
}
.hero__left h1, .hero__left p {
  color: rgb(1, 8, 41);
}
.hero__left .btn-primary {
  background: var(--color-danger);
  color: var(--color-white);
  padding: 0.6rem 1rem;
  }


/* About Section ************************************************************************/

.about__achievements {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: auto;
  padding: 50px 20px;
  background-color: rgb(227, 235, 236);
}

.about__content {
  flex: 1;
  max-width: 50%;
}
.about__content h2{color: #05035c;}

.about__content p {
  margin: 0.5rem 2rem 2rem;
  color: #080479;
}

.about__image {
  flex: 1;
  max-width: 50%;
  text-align: right;
}

.about__image img {
  width: 100%;
  max-width: 700px;
  border-radius: 10px;
}




/* Services Section *************************************************************************************/
.service {
  padding: 2rem;
  background: linear-gradient(135deg, #2cdee1, #060c2c);
}

.service h2 {
text-align: center;
margin-bottom: 2rem;
color: #05035c;
}

.courses__container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
}

.course {
background: var(--color-bg1);
text-align: center;
border: 1px solid transparent;
transition: var(--transition);
}

.course:hover {
background: transparent;
border-color: var(--color-primary);
}

.course__image img {
  width: 100%;
  height: 200px; /* Set a fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Prevents images from overflowing */
}

.course__info {
padding: 2rem;
}

.course__info p {
margin: 1.2rem 0 2rem;
font-size: 0.9rem;
}

.course__info .btn {
display: inline-block;
background: var(--color-white);
padding: 1rem 2rem;
color: var(--color-black);
border: 1px solid transparent;
font-weight: 500;
transition: var(--transition);
}

.course__info .btn:hover {
background: transparent;
color: var(--color-white);
border-color: var(--color-white);
}

.course__info .btn-primary {
background: var(--color-danger);
color: var(--color-white);
}

/* Footer Section ****************************************************************************************************/
footer {
  background: linear-gradient(135deg,  #11bceb,  #11bceb);
  padding: 3rem 0;
  font-size: 0.9rem;
  color: rgb(3, 3, 46);
  text-align: center;
  box-shadow: 0px -5px 15px rgba(0, 0, 0, 0.2);
}
.footer__container {
  display: flex;
  grid-template-columns: repeat(4, 1fr);
  gap: 10vw;
  background: #11bceb;
  align-items: center;
  justify-content: center;
  }
  
  .permalinks {
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  justify-content: center;
  align-items: center;
  }
  
  .footer__1 p {
  margin: 0 0 2rem;
  }
  
  .footer ul li {
  margin-bottom: 0.7rem;
  }
  
  .footer ul li a:hover {
  text-decoration: underline;
  }
  
  .footer__socials {
  display: flex;
  gap: 1rem;
  font-size: 1.2rem;
  margin-top: 2rem;
  }
  
  .footer__copyright {
  text-align: center;
  margin-top: 4rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--color-bg2);
  }

/*galllery page **************************************************************************************************/

body {
  display: flex;
  flex-direction: column;
}
.news {
  position: relative;
  padding: 20px;
  color: #000;
  margin-top: 100px;
  text-align: center;
}

.search-container {
  position: absolute;
  top: 10px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f1f1;
  padding: 8px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.search-container input {
  border: none;
  outline: none;
  padding: 8px;
  width: 200px;
  border-radius: 20px;
}

.search-container button {
  background: none;
  border: none;
  cursor: pointer;
}

.search-container i {
  font-size: 20px;
  color: #333;
}

.news-container {
  margin-top: 40px;
}

.news-item {
  background: #f2f4f6;
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: block;
  text-align: left;
  word-wrap: break-word; /* Ensures text doesn't overflow */
  max-width: 100%; /* Prevents text from overflowing container */
}

.news-item h3 {
  color: rgb(2, 2, 39);
}

.news-item p {
  color: rgb(2, 2, 39);
}


/* Service page ******************************************************************************************************/
main {
  padding: 20px;
}

#services {
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-in-out;
}

#services h2 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
  animation: slideInFromLeft 1s ease-in-out;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.service-container {
  background-color: #eaeef2;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: calc(33.333% - 40px);
  box-sizing: border-box;
  transition: transform 0.3s ease;
  animation: fadeInUp 1s ease-in-out;
}

.service-container:hover {
  transform: translateY(-10px);
}

.service-title {
  color: #021932;
  margin-bottom: 10px;
}

.service-container p {
  color: #946969;
}

.service-container img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 10px;
  animation: fadeIn 1s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

@keyframes slideInFromLeft {
  from {
      transform: translateX(-100%);
      opacity: 0;
  }
  to {
      transform: translateX(0);
      opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
      transform: translateY(20px);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}

/*Team page ********************************************************************************************************/
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Creates 3 equal columns */
  gap: 20px; /* Space between grid items */
  padding: 20px;
}

.member {
  text-align: center;
  background: #03033e;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.member img {
  width: 100%;
  max-width: 200px; /* Controls image size */
  height: auto;
  border-radius: 50%;
  object-fit: cover;
}


/* Add keyframes for the animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Apply the animation to the team members */
.team .member {
  opacity: 0;
  animation: fadeInUp 1s ease-in-out forwards;
}

/* Stagger the animations for each member */
.team .member:nth-child(1) {
  animation-delay: 0.2s;
}
.team .member:nth-child(2) {
  animation-delay: 0.4s;
}
.team .member:nth-child(3) {
  animation-delay: 0.6s;
}
.team .member:nth-child(4) {
  animation-delay: 0.8s;
}
.team .member:nth-child(5) {
  animation-delay: 1s;
}
.team .member:nth-child(6) {
  animation-delay: 1.2s;
}

/*contact page*********************************************************************************************/

.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.contact-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.contact-details {
  flex: 1;
  padding: 20px;
}

.map-container {
  flex: 1;
  max-width: 600px;
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}
.address p{color:black}
.cont-ways p{color:black}

/* media responsivness *********************************************************************************************/

/* GENERAL STYLES FOR SMALL SCREENS */
@media screen and (max-width: 1024px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1rem;
  }
}

/* TEAM SECTION GRID ADJUSTMENTS */
@media screen and (max-width: 1000px) {
  .team {
    grid-template-columns: repeat(2, 1fr); 
  }
  .team {
    margin-top: 70px;}
}

@media screen and (max-width: 600px) {
  .team {
    grid-template-columns: 1fr;
  }
  .team{
    margin-top: 50px;}
}

/* contact page--------------------------------------------------------------------*/
@media screen and (max-width: 768px) {

  .contact-container {
    flex-direction: column;
  }
  .contact-reason,
  .contact-info,
  .contact-form {
    border: none; 
    padding: 15px;
  }
  .contact-form {
    width: 270px;
  }

  #about {
    padding: 0;
  }
  .inner-container {
    padding: 50px;
  }}

/*----------------------------------------------head section-------------------------------*/
@media screen and (max-width: 768px) {

  .nav__container{
    width: 100%;
    margin-bottom: 10px;
  }
  .nav__menu {
    display: none; /* Hide menu by default */
    flex-direction: column;
    position: absolute;
    top: 4rem;
    left: 0;
    gap: 0.3rem;
    width: 100%;
    background-color: var(--color-primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  /* Show menu when active */
  .nav__menu.active {
    display: flex;
  }

  /* Ensure buttons are visible */
  #open-menu-btn, #close-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    z-index: 1000;
    color: #020009;
  }

  /* Hide close button initially */
  #close-menu-btn {
    display: none;
  }

  /* When menu is active, toggle button visibility */
  .nav__menu.active ~ #open-menu-btn {
    display: none;
  }

  .nav__menu.active ~ #close-menu-btn {
    display: block;
  }

    .logo img {
      height: 60px; /* Further reduced logo size */
      margin-right: -10px; /* Negative margin to pull text closer */
    }
  
    .logo-text {
      font-size: 14px; /* Adjust logo text size */
      margin-left: -15px; /* Negative margin to reduce space */
    }
  
    .nav__menu a {
      font-size: 1rem; /* Keep text readable */
      padding: 0; /* Reduce vertical padding */
      margin: 0; /* Remove extra margin */
  }
  }
/*-----------------------------about section---------------*/
@media screen and (max-width: 768px) {
  .about__achievements {
    flex-direction: column; /* Stack items vertically */
    text-align: left; /* Center-align text */
    padding: 15px 5px; /* Adjust padding */
    margin-left: 20px;
    margin-right: 20px;
  }

  .about__content {
    max-width: 100%; /* Full width for text */
  }

  .about__content h2 {
    font-size: 1.5rem; /* Adjust heading size */
  }

  .about__content p {
     /* Adjust margins */
    font-size: 0.85rem;
    margin: 0.5rem 0rem;
  }

  .about__image {
    max-width: 100%;
    text-align: center;
    padding: 0px;
  }

  .about__image img {
    max-width: 90%; /* Ensure image scales properly */
    height: auto;
  }
}

/*----------------------------------------service section--------------*/
@media screen and (max-width: 1024px) {
  .courses__container {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    gap: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .service {
    padding: 1.5rem;
  }

  .courses__container {
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 1rem;
  }

  .course {
    width: 100%; /* Ensure full width */
    padding: 1rem;
  }

  .course__image img {
    height: auto; /* Adjust height to maintain aspect ratio */
    max-width: 100%;
  }

  .course__info {
    padding: 1rem;
  }

  .course__info p {
    font-size: 0.85rem; /* Increase font size for better readability */
  }

  .course__info .btn {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
  }
}


/* MEDIA QUERY FOR MOBILE */
/*hero section---------------------------------------------------------------------------------*/

@media screen and (max-width: 768px) {
  header {
    height: auto; /* Allow the height to adjust based on content */
    display: flex;
    z-index: 1;
    overflow: hidden;
    width: 100%;
    padding: 5rem 2rem; /* Adds space inside the header */
    background-image: url("./Images/asset/photo_2024.png") !important; /* Keep only one image on mobile */
    background-image: none !important; /* Removes background */
    background-color: #074171;
    padding-bottom: 0rem; /* Reduce bottom padding */
  }

  .hero__left {
    position: relative; /* Prevents absolute positioning issues */
    width: 100%;
    max-width: 90%;
    margin-bottom: 0px;
  }

  .hero__left h1 {
    font-size: 1.4rem; /* Smaller heading */
    margin-top: 30px;
    color: white;
    text-align: center;
    
  }

  .hero__left p {
    color: white;
    font-size: 0.85rem; /* Adjust font size */
    text-align: left;
    margin: 1rem 1rem 1rem;
    margin-left: 0px;
    margin-right: 0px;
  }

  .hero__left .btn-primary {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    margin-bottom: 0;
  }
}

/*-----------------------------------------------------------------contact page------------------*/
@media screen and (max-width: 768px) {
  .contact-container {
    margin-top: 50px;
    flex-direction: column;
    padding: 15px;
    text-align: center;
  }

  .contact-content {
    flex-direction: column;
    align-items: center;
  }

  .contact-details {
    padding: 15px;
    width: 100%;
  }

  .map-container {
    width: 100%;
    max-width: 100%;
    height: 300px; /* Reduce height for better fit */
    margin-top: 15px; /* Add space above the map */
  }

  .map-container iframe {
    border-radius: 8px;
  }

  .address p,
  .cont-ways p {
    font-size: 1rem; /* Adjust text size */
  }
}
/*---------------------service page------------------------------*/
@media screen and (max-width: 768px) {
  main {
    padding: 10px; /* Reduce padding */
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }

  #services {
    padding: 15px;
    text-align:justify; /* Ensure content is centered */
    margin-left: 20px;
  }

  .services {
    flex-direction: column; /* Stack elements vertically */
    gap: 15px;
  }

  .service-container {
    width: 100%; /* Ensure full width */
    padding: 15px;
    box-sizing: border-box; /* Prevent width issues */
    overflow: hidden; /* Ensure text is fully visible */
  }

  .service-container p {
    word-wrap: break-word; /* Prevent text overflow */
    font-size: 0.85rem;
  }

  .service-title {
    font-size: 1rem;
    text-align: center; /* Center text if necessary */
  }
}

@media (max-width: 768px) { /* Adjust breakpoint as needed */
  .footer__3 {
    display: none;
  }
}

@media (max-width: 768px) {
  .news {
    padding: 15px;
  }

  /* Adjust the search bar position and layout on mobile */
  .search-container {
    position: relative; /* Move search below the title */
    top: auto;
    right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    justify-content: center; /* Center-align the search bar */
    width: 100%; /* Take full width */
  }

  .search-container input {
    width: 80%; /* Adjust input width for smaller screens */
    margin-bottom: 10px;
  }

  .news-container {
    margin-top: 20px;
  }

  .news-item {
    padding: 10px;
    margin: 8px 0;
  }
}
