/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

@font-face {
    font-family: 'Amasis MT';
    src: url('fonts/Amasis MT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: #FBF4EC;
  }

.page-container {
    max-width: 1200px;
    margin: 120px auto 2rem auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1rem 2.5rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Header navigation bar */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 35px;
    background-color: #005862;
    position: fixed;
    width: 100%;
    height: 100px;
    top: 0px;
    left: 0;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(to right,#4F484F, #beb19f);
  }
/* navigation bar*/
nav {
    margin-top: 30px;
    margin-right: 50px;
    margin-bottom: 0px;
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    
  }
  nav ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  nav ul li {
    display: inline-block;
    white-space: nowrap;
  }
nav ul li a {
    color: white !important;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 0;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: bold;
    font-size: 13px;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  nav ul li a.active {
    color: white;
    font-weight: bold;
    background-color: #0D9D9E;
  }
  
  nav ul li a:hover {
    background-color: #0D9D9E;
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }
  

/*heading font style*/
.heading.paint-effect {
    margin-top: 50px;
    margin-bottom: 2rem;
    position: relative;

    /* solid block colour */
    background-color: #0D9D9E;

    /* text styling */
    color: #ffffff;                      /* white text for contrast */
    font-family: 'Amasis MT', Georgia, serif;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 8px;
    text-align: center;
    padding: 10px 0;

    /* remove any shadows */
    text-shadow: none;

    border-radius: 2px;
    overflow: hidden;

    animation: none !important;
}

/* Brush stroke animation layer */
  .heading.paint-effect::before {
    display: none !important;
    content: none !important;
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
  
    mix-blend-mode: multiply;
    animation: brush-sweep 5s linear infinite;
  }
  
  @keyframes brush-sweep {
    0% {
      left: -100%;
    }
    100% {
      left: 100%;
    }
  }
  
  
  /*
  .heading span.writer {
    position: relative;
    z-index: 2;
    animation: colorShift 4s infinite linear;
  }
  
  /* color changes
  @keyframes colorShift {
    0% { color: #2d3436; }
    25% { color: #0984e3; }
    50% { color: #6c5ce7; }
    75% { color: #00b894; }
    100% { color: #2d3436; }
  }
  */








.logo {
  display: flex;
  align-items: center;   /* vertically center image + text */
}


/* Logo mark */
.logo img {
    height: 90px;
    margin-left: 5px;
    transition: transform 0.3s ease;
    /* remove any left‐margin if you don’t want extra indent */
    margin-right: 12px !important;
}
.logo img:hover {
    transform: scale(1.1); /* Hover zoom effect */
  }

.logo .org-name {
  white-space: nowrap;
  font-size: 1.2rem;       /* tweak as needed */
  font-weight: bold;
  color: #ffffff;          /* or whatever contrasts your header */
  font-family: 'Amasis MT', Georgia, serif;
  letter-spacing: 0.05em;
}

/* background image */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('resource/lawschool.png');
    background-size: cover;
    background-position: center;
}


.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text overlay: Desktop default */
.overlay {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 30px 40px;
    border-radius: 10px;
    max-width: 80%;
    width: auto;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.overlay h1 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 15px;
    word-break: break-word;
    font-family: 'Amasis MT', Georgia, serif;
    letter-spacing: 0.05em;
}

.overlay p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20px;
    word-break: break-word;
    font-family: 'Amasis MT', Georgia, serif;
}

.about-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: 'Amasis MT', Georgia, serif;
    line-height: 1.8;
    color: #222;
}

.about-section h2 {
    margin-top: 2.5rem;
    font-size: 24px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 0.5rem;
    font-family: 'Amasis MT', Georgia, serif;
}

.about-intro {
    margin-top: 1rem;
    margin-left: 0;
    font-size: 17px;
    font-family: 'Amasis MT', Georgia, serif;
}

.about-subtitle {
    margin-top: 1rem;
    margin-left: 0;
    font-size: 17px;
    font-family: 'Amasis MT', Georgia, serif;
}

.about-list.level-1 {
    margin-left: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    list-style: decimal;
    font-family: 'Amasis MT', Georgia, serif;
}

.about-list.level-1 li {
    margin-bottom: 1.8rem;
    font-size: 16px;
    padding-left: 0.5rem;
    font-family: 'Amasis MT', Georgia, serif;
}

.about-list .about-detail {
    margin-top: 0.75rem;
    margin-left: 1.5rem;
    font-size: 15px;
    line-height: 1.6;
    font-family: 'Amasis MT', Georgia, serif;
}

.about-detail a {
    color: #0D9D9E;
    text-decoration: underline;
    font-family: 'Amasis MT', Georgia, serif;
}

.about-conclusion {
    margin-top: 2rem;
    font-size: 16px;
    color: #333;
    font-family: 'Amasis MT', Georgia, serif;
}


.contact-us {
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    font-family: 'Amasis MT', Georgia, serif;
    line-height: 1.8;
    color: #222;
}

.contact-us h2 {
    font-size: 24px;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ccc;
    padding-bottom: 0.5rem;
    font-family: 'Amasis MT', Georgia, serif;
}

.contact-us p {
    font-size: 16px;
    margin-top: 0;
    font-family: 'Amasis MT', Georgia, serif;
}

.contact-us a {
    color: #0D9D9E;
    text-decoration: underline;
    font-family: 'Amasis MT', Georgia, serif;
}


/* Subscription section */
.subscribe {
    padding: 50px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.subscribe-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 900px;
    width: 100%;
    justify-content: space-between;
}

.form-container {
    flex: 1;
    min-width: 300px;
    margin-right: 20px;
}

.form-container h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-container input {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-container button {
    width: 100%;
    padding: 10px;
    background-color: #54382A ;
    border: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 10px;
    color: white;
}

.form-container button:hover {
    background-color: #4F484F;
}

/* Info section */
.info-container {
    flex: 1;
    min-width: 300px;
    background-color: #f4ead7;
    padding: 20px;
    border-radius: 10px;
}

/* Ensure video appears above the post list */
.video {
    padding: 50px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;  /* Add spacing above the video section */
}

.video iframe {
    max-width: 900px;
    width: 100%;
    border-radius: 10px;
}


/* Center the entire post list */
#postList {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Center each post card */
.post-card {
  max-height: 350px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  cursor: pointer;
  flex: 0 0 450px;
  border: 1px solid #ccc;
  padding: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
    /*
    width: 80%;
    max-width: 800px;
    background: white;
    padding: 15px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: left;
    */
  



.post-card h3 {
    font-size: 15px;
    font-weight: bold;
    color: #222;
    margin-bottom: 5px;
  }
  
  .post-card p {
    margin: 2px 0;
    color: #555;
    font-size: 15px;
    line-height: 1.4;
  }
  
  .post-card img {
    max-width: 100%;
    height: auto !important;
    display: block;
    max-height: 150px;
    object-fit: cover;
    margin: 15px 0;
  }
  
  .post-card iframe {
    width: 100%;
    max-width: 100%;
    display:block;
    height: 200px;
    border: none;
    margin-top: 15px;
  }
  .post-card:hover {
    background-color: #0D9D9E;
    transform: scale(1.01);
    box-shadow: 0 12px 28px rgba(79, 72, 79, 0.15); 
  }
  .post-card:hover h3,
  .post-card:hover p {
    color: white;
  }


  .modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
  }

/* Scroll browsing */
  
  .scroll-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
  }
  .carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 0;
    
  }
  #upcomingEvents {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    gap: 20px;
    scrollbar-width: none; /* Firefox */
  }
  
  #upcomingEvents::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  
  .scroll-btn {
    position: absolute;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    background-color: #4F484F;
    color: white;
    border: none;
    font-size: 20px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    opacity: 0.8;
    transition: all 0.2s ease;
  }
  
  .scroll-btn:hover {
    opacity: 1;
  }
  
  .scroll-btn.left {
    left: 0;
  }
  
  .scroll-btn.right {
    right: 0;
  }
  


  .clone {
    opacity: 1;
  }

/* Event modal window */
/* Event detail modal */
.event-modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

.event-modal-content {
  position: relative;
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  max-width: 1200px;
  max-height: 85vh;
  width: 90%; /* ✅ Wider ratio, mobile responsive */
  overflow-y: auto;
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.close-event-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  cursor: pointer;
  color: #888;
  transition: color 0.3s;
}

.close-event-modal:hover {
  color: #000;
}

#modalEventDetail img,
#modalEventDetail iframe {
  max-width: 100%;
  height: auto;
}


  
  /* pop-up window*/
  
  .modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
  }
    /* bounce-text*/
    .bounce-color-text {
        display: inline-block;
        font-weight: 500;
        animation: bounceColor 2s ease-in-out infinite;
        font-size: 18px;
    }
  /* pop-up window*/
  .modal-content {
    background-color: rgb(255, 255, 255);
    padding: 35px;
    border-radius: 1px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    /* Fix: force vertical stacking */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* space between heading, text, and button */
}

.modal-content input {
    padding: 10px;
    margin-top: 10px;
    width: 80%;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.modal-content button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #54382A;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.modal-content button:hover {
    background-color: #4F484F;
}

.modal-content-buttons {
    display: flex;
    justify-content: space-between;
    width: 80%; /* Align with input box */
    gap: 10px;
    margin-top: 10px;
}

/* Display Login and Return buttons side-by-side */
.modal-content button#verifyAdmin,
.modal-content button#cancelAdmin {
    width: auto;
    padding: 10px 0;
    margin-top: 0;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}
/* Adjust button style and proportion individually */
.modal-content #verifyAdmin {
    flex: 2;
    background-color: #005862;
    color: white;
    border: none;
}

.modal-content #cancelAdmin {
    flex: 1;
    background-color: white;
    color: black;
    border: 2px solid black;
}

/* Hover effect */
.modal-content #verifyAdmin:hover {
    background-color: #0D9D9E;
}
.modal-content #cancelAdmin:hover {
    background-color: #f0f0f0;
}


@keyframes bounceColor {
    0%, 100% {
      transform: translateY(0);
      color: #000;
    }
    25% {
      transform: translateY(-4px);
      color: #e67e22; /* orange */
    }
    50% {
      transform: translateY(5px);
      color: #2980b9; /* blue */
    }
    75% {
      transform: translateY(-5px);
      color: #27ae60; /* green */
    }
  }/* footer*/
  .site-footer {
    border-top: 1px solid #ccc; /* 🔸 line above footer */
    background-color: #4F484F ;
    padding: 25px 0;
    margin-top: 60px;
    text-align: center;
  }
  
  .footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .footer-content p {
    margin: 0;
    font-size: 14px;
    color: white;
  }


  .modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 1000px;
  text-align: center;
  animation: bounceInModal 0.8s ease;
}

.close-btn {
  margin-top: 15px;
  background: #ccc;
  border: none;
  padding: 5px 12px;
  cursor: pointer;
  border-radius: 5px;
}

/* ✨ Bounce animation */
@keyframes bounceInModal {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    80% { transform: scale(0.95); }
    100% { transform: scale(1); }
  }

/* Password modal */
  .password-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 20px;
    background-color:#005862;
    border-radius: 10px;
    width: 300px;
    height: 380px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
  

  }

/* On hover: full white + floating effect */
  .password-login:hover {
    background-color: #ffffff;
    box-shadow: 0 10px 20px #4F484F;
    transform: translateY(-3px);
  }
  
  
  .password-login input {
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 250px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .password-login button {
    padding: 10px 16px;
    font-size: 16px;
    background-color:#0D9D9E;
    color: #2d3436;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }



/* Click to zoom effect */
.password-login:focus-within {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }

/* Add transition animation */
  .password-login {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 200;
}
.hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background-color: white;
  margin-bottom: 5px;
  border-radius: 2px;
  transition: all 0.3s ease;
}


@media (max-width: 1400px) {
  header {
    flex-direction: row;
    padding: 25px 35px;
    height: 100px;
  }
  .logo img {
    height: 90px;
    margin-bottom: 0;
  }
  /* Show hamburger button */
  .hamburger {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 22px;
    z-index: 200;
  }
  /* Side navigation initially hidden, remove margin-right */
  nav {
    position: fixed;
    top: 0;
    right: -250px;
    margin: 0;
    width: 250px;
    height: 100%;
    background: #005862;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    z-index: 150;
  }
  /* Open state */
  nav.open {
    right: 0;
  }
  nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
    nav ul li {
        width: 100%;
    }
    nav ul li a {
        display: block;
        width: 100%;
        box-sizing: border-box; /* Prevent from padding-caused line breaks */
        text-align: center;
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    nav ul li a:hover {
        background-color: #0D9D9E;
        transform: none;
        box-shadow: none;
    }

  /* Hamburger button animation */
  .hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}
@media (max-width: 1000px) {
    .overlay {
        width: 90%;
        padding: 16px 20px;
        max-height: 80vh;
        font-size: 14px;
    }

    .overlay h1 {
        font-size: 22px;
        line-height: 1.3;

    }

    .overlay p {
        font-size: 14px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
  header {
    padding: 10px 15px;
  }
  .hamburger {
    top: 15px;
    right: 15px;
    width: 25px;
    height: 18px;
  }
  nav {
    width: 200px;
  }
  nav ul li a {
    padding: 11px;
    font-size: 10px;
  }
    .logo .org-name {
        display: none;
    }
}

  
  

  
  
  

  
  