/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2C3E50;
    padding: 10px 20px;
    min-height: 80px;
    position: relative;
    z-index: 10000;
}

/* Logo Styles */
.logo img {
    width: 250px;
    height: auto;
}

/* Navigation Links */
.nav-links {
    list-style: none; /* Remove default list bullet points */
    display: flex;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
}

.nav-links a:hover {
    background-color: #1A2530;
    border-radius: 5px;
}

/* Down arrow for dropdowns */
.arrow-down {
    margin-left: 5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid white;
    display: inline-block;
    vertical-align: middle; /* Ensures the arrow is aligned with the text */
}

/* Dropdown Menu Styles */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2C3E50;
    padding: 0;
    min-width: 200px;
    box-shadow: none;
    z-index: 1000;
}

/* Remove default list-style (bullet points) */
.nav-links li, 
.dropdown-menu li {
    list-style-type: none; /* Ensures no bullet points on both the main nav and dropdown items */
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: #1A2530;
}

/* Hover behavior for dropdowns on desktop */
@media (min-width: 769px) {
    .nav-links li {
        margin: 12px 5px; /* Restore more spacing for desktop */
    }

    .dropdown-menu li {
        margin: 8px 0; /* Sub-item spacing for desktop */
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Mobile Menu Button (Hamburger Icon) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #2C3E50;
        position: absolute;
        top: 80px;
        left: 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 8px 0; /* Reduce margin for all items on mobile */
    }

    /* Remove default list-style bullet points */
    .nav-links li {
        list-style-type: none;
    }

    /* Flatten dropdown on mobile */
    .dropdown .dropdown-menu {
        display: block;
        position: static;
        width: 100%;
        background-color: transparent;
    }

    /* Remove down arrow on mobile */
    .arrow-down {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Bold the main menu items */
    .nav-links > li > a {
        font-weight: bold; /* Bold the main menu items */
    }

    /* Submenus are grey and centered, no bullets */
    .dropdown-menu li {
        color: #B0B0B0; /* Set grey color for sub-menu */
        padding-left: 0;
        text-align: center; /* Center-align the sub-menu items */
        margin: 5px 0; /* Less margin under sub-items on mobile */
    }

    /* Main items are still centered */
    .dropdown > a {
        width: 100%;
        justify-content: center;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }
}

/* Main Content Section Styles */
.main-content {
    padding: 20px 20px; /* Add some space around the content */
}

.main-content h1 {
    font-size: 32px;
    color: #333; /* Darker text color for the heading */
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

.main-content p {
    font-size: 18px;
    color: #666; /* Grey text for paragraph */
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

/* Chairman Welcome */

  .chairman-container {
    display: flex;
    flex-direction: row; /* Default: Side-by-side layout */
    align-items: center;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    gap: 20px; /* Space between image and text */
  }

  /* Image section */
  .chairman-photo {
    flex: 0 0 150px; /* Fixed width */
    height: 150px;
  }

  .chairman-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }

  /* Text section */
  .chairman-info {
    flex: 1; /* Takes remaining space */
    min-width: 300px; /* Prevents stacking */
  }

  .chairman-info h2 {
    margin: 0 0 10px;
    color: #333;
  }

  .chairman-info p {
    color: #555;
    line-height: 1.5;
    margin: 0;
  }

  .chairman-email {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
  }

  .chairman-email:hover {
    text-decoration: underline;
  }

  /* Mobile: Stack image BELOW heading but ABOVE text */
  @media (max-width: 600px) {
    .chairman-container {
      flex-direction: column; /* Stack content */
      text-align: center; /* Center-align content for better appearance */
    }

    .chairman-photo {
      flex: unset;
      width: 120px;
      height: 120px;
      margin-bottom: 10px;
    }

    .chairman-info {
      min-width: 100%; /* Allow text to fill full width */
    }
  }
  
/* Shared container style for all sections */
.section-container {
  background: #f9f9f9; /* Grey background */
  color: #333;
  text-align: center;
  padding: 30px;
  border-radius: 8px;
  margin: 30px auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Shared heading style */
.section-container h2 {
  margin-bottom: 15px;
  font-size: 24px;
}

/* Shared paragraph style */
.section-container p {
    color: #555;
    line-height: 1.5;
    margin: 0;
	margin-bottom: 20px;
  }

/* Shared button style */
.section-btn {
  background: #2C3E50; /* Blue button */
  color: white;
  border: 2px solid #2C3E50;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s ease;
  display: inline-block;
}

.section-btn:hover {
  background: #0056b3;
  border-color: #0056b3;
}

/* Responsive button width */
@media (max-width: 600px) {
  .section-btn {
    width: 80%; /* Buttons expand on mobile */
  }
}
  
/* Sponsor Section */
.sponsor-section {
    width: 100%;
    overflow: hidden;
    background-color: #f4f4f4;
    padding: 20px 0;
    text-align: center;
}

.sponsor-title p {
    font-size: 18px;
    font-style: italic;
    color: #333;
    margin-bottom: 20px;
}

.scrolling-logos {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.logos-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    animation: scroll 20s linear infinite;
    width: calc(200% + 30px); /* Adjust width for seamless scrolling */
}

.logos-container img {
    width: 150px;
    height: auto;
    margin: 0 15px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.logos-container img:hover {
    opacity: 1; /* Hover effect to highlight logos */
}

/* Keyframes for seamless scrolling */
@keyframes scroll {
    0% {
        transform: translateX(0); /* Start at the original position */
    }
    100% {
        transform: translateX(-50%); /* Move by half the container width for smooth repeat */
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .logos-container img {
        width: 100px; /* Adjust the size for mobile */
    }
}

/* Footer Styles */
.footer {
    background-color: #2C3E50;
    color: #fff;
    padding: 40px 20px;
    text-align: left;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px; /* Add some space between columns */
}

.footer-about,
.footer-links,
.footer-social {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

/* Equal margin under each footer title */
.footer-about h3,
.footer-links h3,
.footer-social h3 {
    color: #fff;
    margin-bottom: 12px; /* Add equal space under each title */
}

/* Style for the email link */
.footer-about a {
    color: #fff; /* Make the email link white */
    text-decoration: underline; /* Optional: add underline like other links */
}

.footer-about a:hover {
    color: #ccc; /* Optional: change color on hover */
}

.footer-about p, 
.footer-links p, 
.footer-social p {
    line-height: 1.6;
    margin: 10px 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: underline;
}

.footer-links ul li a:hover {
    color: #ccc;
}

.footer-social ul {
    list-style: none;
    padding: 0;
    display: flex;
}

.footer-social ul li {
    margin-right: 15px;
}

.footer-social ul li a img {
    width: 50px;
    height: 50px;
    transition: filter 0.3s ease;
}

.footer-social ul li a img:hover {
    filter: invert(0.5);
}

.footer-bottom {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}

/* Responsive Footer Design */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .logos-container {
        justify-content: space-around; /* Ensure logos are spaced evenly on smaller screens */
    }

    .footer-social ul {
        justify-content: center;
    }
}
