/* Header styles */
header {
    min-height: 100px;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    overflow: hidden; /* For float if flex is not supported */
 
	  border-bottom: 2px solid #000; /* Adjust thickness and color as needed */
      padding-bottom: 10px;           /* Adds space between the text and the line */
}

/* Logo styles */
#logo {
    float: left; /* To deal with flex */
    flex-shrink: 0;
    margin: right; /* Center the logo horizontally */
    width: 100px; /* Adjust logo size */
    height: 100px;
}


/* Navigation styles */
nav {
    float: right;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
	
}

li {
    float: left;
}

li a {
    display: block;
    color: #214457;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    border-radius: 5px; /* Add softer corners to navigation links */
	transition: border-radius 0.5s;
}

li a:hover {
    background-color: #E0DDFF;
}

/* Header styles (same as before) */

/* Main content styles */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    font-size: 24px;
    color: #333;
}

p {
    font-size: 18px;
    color: #666;
}

form {
    margin-top: 20px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #111;
}

/* General styles */

li a, .dropbtn {
    display: inline-block;
    color: #214457;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
	    border-radius: 5px; /* Add softer corners to navigation links */
}

li a:hover, .dropdown:hover .dropbtn {
    background-color:#ffffff ;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff ;
    min-width: 160px;
    box-shadow: ;
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #ffffff;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

        .main-content img {
            float: left;
            padding: 0 20px 20px 0;
            max-width: 100%;
            height: auto;
			border-radius: 5px; 
        }
        .main-content h1,
        .main-content p {
            margin: 0;
			border-radius: 5px;
        }
		
    /* Grid CSS */
    .grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: repeat(2, 1fr);
      gap: 10px;
      width: 500px;
      height: 500px;
      margin: 20px auto; /* Provides spacing from the header */
    }
    .grid-item {
      overflow: hidden;
      position: relative;
    }
    .grid-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
      display: block;
    }
    .grid-item:hover img {
      transform: scale(1.1);
    }
    
    /* Media Query for Mobile: one column grid */
    @media only screen and (max-width: 600px) {
      .grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        width: 90%;
        height: auto;
      }
    }
	
footer {
  border-top: 2px solid #000;  /* Line above the footer */
  padding-top: 10px;
  text-align: center;           /* Centers inline elements */
}

.footer-content {
  display: flex;
  justify-content: center;      /* Centers items horizontally */
  align-items: center;          /* Vertically centers items */
  gap: 20px;                    /* Space between the logo and the text */
  flex-wrap: wrap;              /* Wrap items on smaller screens */
}

/* Ensure the logo is sized appropriately */
#logo2 {
  width: 100px;
  height: auto;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;     /* Stack items vertically on small screens */
  }
  #logo2 {
    width: 70px;                /* Smaller logo on mobile devices */
  }
  .footer-info {
    text-align: center;         /* Center text on mobile */
  }
}

.plain-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease-in-out;
}



/* Training Section Flex Layout */
.training-section {
  margin: 20px 0;
}

.training-section h1 {
  margin-bottom: 10px;
}

.training-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  border-radius: 5px;
  padding: 10px;
}

.training-content img {
  width: 50%;
  max-width: 300px;
  height: auto;
  border-radius: 5px;
  margin-right: 20px;
  margin-bottom: 10px;
}

.training-text {
  flex: 1;
  font-size: 18px;
  line-height: 1.6;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
  .training-content {
    flex-direction: column;
  }
  .training-content img {
    width: 100%;
    margin-right: 0;
  }
}
