@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

* {
  font-family: "Noto Sans TC", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  transition: all 0.2s linear;
}

/* section {
  padding: 0;
} */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 1rem 0;
  background: #fff;
  border-bottom: 0.3rem solid #f1f1f1;
  z-index: 997;
}

.header .menu {
  display: none; 
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.6rem;
  background: #255d86;
  color: white;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.header .menu i {
  line-height: 0;
  font-size: 1.6rem;
}

.navbar-side {
  display: none;
}

.square {
  width: 100%;
  height: 650px;
  background-image: url("../imgs/banner.jpg");
  background-repeat: no-repeat;
  background-position: center center;
}
.square2 {
  width: 100%;
  height: 500px;
  background-image: url("../imgs/banner2.jpg");
  background-repeat: no-repeat;
  background-position: center center;
}
.square3 {
  width: 100%;
  height: 500px;
  background-image: url("../imgs/banner3.jpg");
  background-repeat: no-repeat;
  background-position: center center;
}
.square4 {
  width: 100%;
  height: 500px;
  background-image: url("../imgs/banner4.jpg");
  background-repeat: no-repeat;
  background-position: center center;
}
.square5 {
  width: 100%;
  min-height: 100vh;
  background-image: url("../imgs/billiards.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  display: flex;
  justify-content: center;
  align-items: center;
  /* max-width: 800px;
  height: 500px;
  background-color: #f1f1f1; */
}

/* Horizontal Navbar Container */
.navbar-horizontal {
  padding: 0 20px;
  z-index: 1000; 
}

/* Main Navigation Menu List */
.nav-menu {
  list-style: none; 
  padding: 0;
  margin: 0;
  display: flex; 
  justify-content: flex-start; 
  align-items: stretch;
  height: 60px; 
}

/* Individual Navigation Item */
.nav-item {
  position: relative;   
}

.nav-item > a {
  display: flex; 
  align-items: center;
  padding: 0 15px; 
  color: #000; 
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400; 
  height: 100%; 
  transition: background-color 0.3s ease;
}

.nav-item > a:hover,
.nav-item.open > a { 
  background-color: rgba(255, 255, 255, 0.1); 
}

/* Arrow icon for dropdown headers */
.has-dropdown > a::after {
  content: '▼'; 
  font-size: 10px;
  margin-left: 8px; 
  transition: transform 0.3s ease;
}

.nav-item.open > a::after {
  transform: rotate(180deg); 
}

  /* Dropdown Menu (Nested UL) - Desktop Specific */
.dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute; 
  top: 100%;
  left: 0;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  white-space: nowrap;
  z-index: 1001;
  border-radius: 4px;

  /* Controlled by JS via max-height for smooth animation */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out; /* Add opacity for smoother blend */
  opacity: 0;
}

/* Show Dropdown when parent .nav-item has 'open' class */
.nav-item.open .dropdown-menu {
  max-height: 300px; 
  opacity: 1;
}

/* Dropdown Menu Item Links */
.dropdown-menu li a {
  display: block; 
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
  background-color: #f0f0f0; 
  color: #007bff; 
}

/* Optional: Add a border between dropdown items */
.dropdown-menu li:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu i {
  transition: transform 0.3s ease;
}
.menu .bi-x {
  transform: rotate(180deg);
}

.table-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px; /*Limit the table width */
    overflow-x: auto; /* Enable horizontal scrolling for small screens */
}

table {
    width: 100%;
    border-collapse: collapse; /* Collapse borders for a cleaner look */
    /* margin-top: 20px; */
    table-layout: fixed;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd; /* Light border at the bottom of each row */
    word-wrap: break-word; /* Allows long words to break and wrap */
    /* text-overflow: ellipsis; */ /* Use this if you want to truncate long text with "..." */
    /* overflow: hidden; */      /* Use this in conjunction with text-overflow */
  }


th {
    background-color: #d0d1d0; /* Green header background */
    /* background-color: #4CAF50; Green header background */
    color: white; /* White text for headers */
    font-weight: bold;
    text-transform: uppercase; /* Uppercase header text */
}

/* Ensure these percentages add up to 100% */

.col-title {
    width: 22%; /* Example: Title column takes 25% */
}

.col-name {
    width: 22%; /* Example: Name column takes 20% of table width */
}

.col-email {
    width: 38%; /* Example: Email column takes 35% */
}

.col-website {
    width: 18%; /* Example: Website column takes 20% */
}

tr:nth-child(even) {
    background-color: #f2f2f2; /* Light gray for even rows */
}

tr:hover {
    background-color: #ddd; /* Darker gray on hover */
}

td a {
    color: #007bff; /* Blue link color */
    text-decoration: none; /* Remove underline from links */
}

td a:hover {
    text-decoration: underline; /* Underline links on hover */
}

/* Responsive adjustments */
@media (max-width: 600px) {
    th, td {
        padding: 8px 10px; /* Smaller padding on small screens */
        font-size: 14px; /* Smaller font size */
    }

    .table-container {
        padding: 0;
    }
    /* .chairman-ex {
      padding: 3rem 0;
    } */
}











.footer-container {
  display: flex;
  flex-direction: row;
}

.service-items {
  background-color: #d6d9da ;
  /* background-color: #f1f1f1 ; */
  padding: 6rem;
  flex: 50%;
}
/* .service-items div p {
  background-color: #e0e1e1 ;
} */

.service-items h2 {
  margin-bottom: 2rem;
  /* font-size: 1.6rem; */
  /* color: #0056b3; */
  border-left:8px solid red;
  padding-left:10px;
}
.service-items div h3 {
  font-size: 1.17rem;
}
.service-items div p {
  background-color: #e0e1e1 ;
  font-size: 0.9rem !important;
  padding:1rem;
  border-bottom: 1px solid #f1f1f1;
}
.service-items div .hart-value {
  background-color: #e0e1e1 ;
  font-size: 0.9rem !important;
  padding:1rem;
  border-bottom: 1px solid #f1f1f1;
}

.contact-info {
  background-color: #93b1c4;
  /* background-color: #d1dee6; */
  padding: 6rem;
  flex: 50%;
}
.contact-info img {
  margin-bottom: 2rem;
  width: 330px;
  height: auto;
}

a[href^="mailto:"] { 
  color: inherit; 
  text-decoration: none; 
}

a[href^="mailto:"]:hover {
  color: #0056b3; 
  text-decoration: underline; 
}

.copyright {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background: #d6d5d5;
}

.copyright span {
  padding-left:10px;
  color: #dca66d;
}

.article {
  height: 500px;
  padding: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;

  /* Animation properties */
  animation: fadeInSlideUp 1.5s ease-out forwards; /* Name, duration, timing function, fill mode */
}

.article .banner {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 3px;
  color: #fff;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

/* Define the animation */
@keyframes fadeInSlideUp {
  from {
    opacity: 0; /* Start completely transparent */
    transform: translateY(20px); /* Start 20px below its final position */
  }
  to {
    opacity: 1; /* End fully opaque */
    transform: translateY(0); /* End at its original position */
  }
}

.chairman-info {
  display: flex;
  margin: -300px 200px 0px;
  /* background-color: #f1f1f1; */
  background-color: rgb(241, 241, 241,0.9);
  animation: fadeInSlideUp 1.5s ease-out forwards; /* Name, duration, timing function, fill mode */
  border-radius: 10px;
}
.committee,.societies {
   display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr)); */
  grid-template-columns: repeat(2, 1fr);
  /* grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); */
  gap: 2rem;
  margin: -300px 200px 0px;
  /* background-color: #f1f1f1; */
  background-color: rgb(241, 241, 241,0.9);
  animation: fadeInSlideUp 1.5s ease-out forwards; /* Name, duration, timing function, fill mode */
  border-radius: 10px;
}
.chairman-info2 {
  display: flex;
  margin: 0px 200px 100px;
  /* margin: 0 200px; */
  /* background-color: #f1f1f1; */
  background-color: rgb(241, 241, 241,0.9);
  /* animation: fadeInSlideUp 1.5s ease-out forwards; Name, duration, timing function, fill mode */
  border-radius: 10px;
}
.chairman-info3 {
  display: flex;
  margin: 0px 200px 100px;
  /* margin: 0 200px; */
  /* background-color: #f1f1f1; */
  background-color: rgb(241, 241, 241,0.9);
  /* animation: fadeInSlideUp 1.5s ease-out forwards; Name, duration, timing function, fill mode */
  border-radius: 10px;
}

.chairman-img {
  padding: 6rem;
  text-align: center;
  flex: 50%;
}
.chairman-img img {
  max-width: 100%;
}
.chairman-ex {
  /* background-color: #d6d9da ; */
  /* background-color: #f1f1f1 ; */
  padding: 2rem 1rem;
  flex: 50%;
}
.chairman-expert {
  /* background-color: #d6d9da ; */
  /* background-color: #f1f1f1 ; */
  padding: 6rem 1rem;
  flex: 50%;
}

.item-title {
  font-size: 1.17rem;
  font-weight: 500;
}
.item-list {
  font-size: 1rem;
  font-weight: 300;
}

.registration {
  /* display: flex;
  justify-content: center;
  align-items: center; */
  margin: 30px;
  padding: 20px;
  border-radius: 8px;
  max-width: 800px;
  height: auto;
  background-color: #f1f1f1;
}

.form-container {
    background-color: #fff;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

/* h2 {
    text-align: center;
    color: #333;
    margin-bottom: 1.5em;
} */

.form-group {
    margin-bottom: 1em;
}

label {
    display: block;
    margin-bottom: 0.5em;
    color: #555;
    font-weight: bold;
}

input[type="text"],
input[type="tel"] {
    width: 100%;
    padding: 0.6em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

button[type="submit"] {
    width: 100%;
    padding: 0.6em;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Container for the video */
.video-container {
  
  /* This is the key to maintaining the aspect ratio */
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio (9 / 16 * 100) */
  height: 0; /* Ensures the container collapses while padding creates the height */
  overflow: hidden; /* Hides any content that might overflow */
  max-width: 800px; /* Optional: Sets a maximum width for the video on large screens */
  margin: 0 auto; /* Optional: Centers the container on the page */
}

/* The iframe itself */
.video-container iframe {
  position: absolute; /* Positions the iframe relative to its container */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.heading {
  margin: 20px 0;
}

.photos {
    max-width: 1300px;
    margin: 0px auto;
    background: #f1f1f1;
    padding: 30px 30px 100px;
    /* border-radius: 8px; */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /* border: 1px solid #1a1919; */
}

.photos .box-container {
  display: grid;
  /* grid-template-columns: auto auto auto ; */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 20px;
}

.photos .box-container .box {
  background: #fff;
  box-shadow: var(--box-shadow);
}

.photos .box-container .box img {
  width: 100%;
}

.photos .box-container .box p {
  font-size: 1rem;
  line-height: 2rem;
}

.box video {
  width: 100%;
  height: auto;
  display: block;
}


.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 20px 0;
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  margin-left: -60px;
  font-size:16px;
}
.tooltiptext p {
  width: 100%;
  color: #fff;
  text-align: center;
  padding: 10px;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}


#scroll-up {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 50px;
  height: 50px;
  text-align: center;
  background: #255d86;
  border-radius: 50%;
  display: none;
  animation: scrollup 2s ease-in-out;
}

#scroll-up i {
  font-size: 24px;
  line-height: 50px;
  color: #fff;
}

@keyframes scrollup {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#scroll-up:hover {
  transform: scale(1.05);
  /* opacity: 0.8; */
  cursor: pointer;
}

/* Responsive layout - makes a one column-layout instead of two-column layout */
@media (max-width: 800px) {
  .footer-container {
    flex-direction: column;
  }

  .service-items,.contact-info {
    /* margin: 0; */
    padding: 3rem 1rem; 
  }

  .chairman-container {
    flex-direction: column;
  }
}


@media (max-width: 1280px) {
  .article {
    padding:0;
  }
  .chairman-info {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: -300px 20px 100px;
  }
  .committee,.societies{
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr)); */
    grid-template-columns: 1fr;
    /* grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); */
    gap: 2rem;
    margin: -300px 20px 100px;
    /* background-color: #f1f1f1; */
    background-color: rgb(241, 241, 241,0.9);
    animation: fadeInSlideUp 1.5s ease-out forwards; /* Name, duration, timing function, fill mode */
    border-radius: 10px;
  }
  
  .chairman-img {
    padding: 1rem;
    text-align: center;
    /* flex: 50%; */
  }
  .chairman-img img {
    max-width: 100%;
  }
  /* .chairman-ex { 
    padding: 1rem;
  } */

  .navbar-horizontal {
    display: none;
  }
  .navbar-side {
    position: fixed;
    top: 0;
    left: -100%;
    width: 77%;
    height: 100%;
    background: #f1f1f1;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: space-between;
    padding: 3rem 2rem;
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 1002;
  }

  .content-link ,.social  {
    display: flex;
    flex-direction: column;
  }
  
  .content-link a,.social a {
    color: #130f40;
    padding: 10px;
  }

  .content-link a:hover,.social a:hover {
    color: #dca66d;
    /* letter-spacing: 2px; */
    font-weight: bold;
  }

  .navbar-side.active {
    left: 0;
  }

  .header .menu {
    position: relative;
    display: flex;
    z-index: 1003;
  }

  .accordion {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1rem;
  transition: 0.4s;
  border-bottom: var(--border);
  padding: 10px;
  }

  .active-acc,
  .accordion:hover {
    background-color: #ccc;
  }

  .accordion:after {
    float: right;
    content: '▼'; 
    font-size: 10px; 
    margin-left: 8px; 
    transition: transform 0.3s ease; 
  }

  .active-acc:after {
    transform: rotate(180deg);
  }

  .panel {
   
    background-color: white;
    max-height: 0;
    overflow: hidden;
    color: var(--light-color);
    font-size: 1rem;
    transition: max-height 0.2s ease-out;
  }

  .pay ul li {
    padding: 10px; 
    margin: 5px 0;  
    list-style:none;
  }
}

@media (max-width: 680px) {
 .header img {
    width: 330px;
    height: auto;
  } 
 
}
@media (max-width: 480px) {
  .article .banner {
    font-size:1.5rem;
  }
  .header img {
    width: 280px;
    height: auto;
  } 
 
}

@media (max-width: 360px) {

  .header img {
    width: 230px;
    height: auto;
  } 

  .contact-info img {
    width: 270px;
    height: auto;
  }
}