/* -------------------- Base -------------------- */
body {
    font-family: Arial, sans-serif;
    background-color: #fff8f0;
    color: #333;
}

header {
    background: radial-gradient(circle, #ffca3a, #fb8500, #ff3b7a, #f000ff);
    background-size: 400% 400%;
    animation: headerGradient 20s ease infinite;
    color: #fff;
    padding: 0.5rem 0;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@keyframes headerGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

header h1,
header p {
    color: #090808;
}

section h2 {
    color: #d32f2f;
}

/* -------------------- Navbar -------------------- */
/* Base Navbar */
/*.header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
  */

.site-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 75%;
  margin: 0 auto;
  padding: 10px 20px;
}

/* Logo */
.site-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 2px;
}

.site-logo {
  height: 80px;
  margin-right: 20px;
  width: auto;
}

.site-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #F5F5F5;
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: black;
    text-decoration: none;
    padding: 10px 10px;
    transition: background 0.3s ease;
}

.nav-links a:hover {
    background: #ffffff;
    border-radius: 4px;
    color: #2c3e50;
    text-transform: uppercase;
}


/* Dropdown */
.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    background: #081777;
    top: 100%;
    left: 0;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-content li {
    display: block;
    margin: 0;
    padding: 0;
}

.dropdown-content a {
    display: block;
    padding: 11px;
    color: #fff;
}

.dropdown-content a:hover {
    background: #1abc9c;
    border-radius: 4px;
}

.dropbtn::after {
    content: " ▼";
    font-size: 0.6rem;
    margin-left: 5px;
    color: #333;

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

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: none;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: 0.3s;
}

/* --- MOBILE STYLES --- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    overflow: hidden;

    /* For slide down animation */
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  .nav-links.active {
    max-height: 500px; /* enough height for menu */
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    padding: 10px;
    text-align: center;
  }

  /* Dropdown inside mobile */
  .dropdown-content {
    position: relative;
    box-shadow: none;
    background: #f0f0f0;
    
  }

  .dropdown:hover .dropdown-content {
    display: none; /* disable hover */
  }

  .dropdown .dropbtn::after {
    content: " ▸";
  }

  .dropdown.open .dropdown-content {
    display: block;
    margin-top: 10px;
    background: #22e4da;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  }
}


/* MAIN CONTENT */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
        /* centers horizontally */
    padding: 20px;
        /* gives spacing */
}

/*Index Page Design*/

.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 2rem;
}

.hero-bg {
  background: wheat;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  animation: zoomPan 40s infinite alternate ease-in-out;
}

@keyframes zoomPan {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.2) translate(-20px, -30px);
  }
}

.hero-section .hero-content {
  background: rgba(0, 0, 0, 0.5); /* subtle dark overlay for readability */
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 800px;
  line-height: 1.6;
}


/* -------------------- Footer -------------------- */

.site-footer {
    background-color: #121212;
    /* A very dark charcoal/off-black */
    color: #d8d8d8;
    /* This creates the gradient border on top */
    border-top: 4px solid;
    border-image-slice: 1;
    border-image-source: radial-gradient(circle, #ffca3a, #fb8500, #ff3b7a, #f000ff);
}

.site-footer h5 {
    margin-bottom: 1rem;
    color: #fff;
}

.social-icons a {
    transition: transform 0.3s ease, color 0.3s ease;
    font-size: 1.4rem;
    margin-right: 10px;
    color: #ccc;
}

.social-icons a:hover {
    transform: scale(1.2) rotate(5deg);
    color: #f39c12;
}

/* Make footer sticky */
html,
body {
    height: 100%;
    margin: 0;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
    /* push footer to bottom */
}

/* -------------------- Homepage -------------------- */
img {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 12px;
}

/*Index Page Link styles*/
.center-link {
    text-align: center;
    margin: 2rem 0;
}

.center-link a {
    text-decoration: none;
    /* remove underline */
    color: #d62828;
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s, text-decoration 0.3s;
}

.center-link a:hover {
    color: #f77f00;
}

/* Notice Board Section */
.notice-board {
    background: #fff4e6;
    border: 2px solid #f77f00;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 700px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.notice-item {
    display: flex;
    align-items: center;
    margin: 0.8rem 0;
    padding: 0.8rem;
    border-bottom: 1px dashed #f77f00;
}

.notice-item:last-child {
    border-bottom: none;
}

/*View all events button*/
.view-all-events {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #c0392b;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    text-align: center;
}

.view-all-events:hover {
    background: #a93226;
}

/* -------------------- Animations and Layouts -------------------- */
/* Home page sidebar styles */
.home-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin: 20px auto;
}

/* Sidebar styling */
.sidebar {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.event-list {
    list-style: none;
    padding: 0;
}

.event-list li {
    margin-bottom: 15px;
    padding: 10px;
    border-left: 4px solid #c0392b;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.event-list li:hover {
    transform: translateX(5px);
}

/* Responsive layout */
@media (max-width: 768px) {
    .home-container {
        grid-template-columns: 1fr;
    }
}


/* Additional design for home page sidebar section
for latest blog posts */
.sidebar-widget {
  background: #fff;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.sidebar-widget h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
    text-align: center;
    
}

.latest-blog li {
  list-style: none;
  margin-bottom: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    padding-left: 5px;

}

.latest-blog a {
  text-decoration: none;
  color: #000000;
}

.latest-blog a:hover {
  text-decoration: underline;
  color: #b33; /* match your theme */
}

.see-all {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9em;
  color: #0066cc;
    text-decoration: none;
}
.see-all:hover {
  size: 2em;
}



/* -------------------- Blog & Posts -------------------- */
.blog-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card h2 a {
    text-decoration: none;
    color: #b30059;
}

.blog-meta {
    font-size: 0.9rem;
    color: #666;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.page-link {
    background: #b30059;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
}

.page-link:hover {
    background: #800040;
}

.page-number {
    font-size: 0.9rem;
    color: #666;
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: #b30059;
    font-weight: bold;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Post container (main + sidebar) */
.post-container {
    display: flex;
    flex-direction: row;
    /* side-by-side by default */
    align-items: flex-start;
    gap: 20px;
    margin: 20px auto;
}

.post-main {
    flex: 3;
    background: #dbf7ec;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.6s ease-in-out;
    min-width: 900px;
    /* ensure enough width for content */
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.postheader {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #000000;
    padding-bottom: 1rem;
    text-align: left;
    animation: slideIn 0.6s ease-in-out;
}

.post-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.post-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.post-tags {
    margin-top: 0.5rem;
}

.post-tags .tag {
    display: inline-block;
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 0.3rem 0.7rem;
    margin-right: 0.4rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.post-tags .tag:hover {
    background-color: #3498db;
    color: #fff;
}

.post-sidebar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    animation: slideInRight 0.6s ease-in-out;
    min-width: 300px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.post-sidebar h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

.post-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-sidebar ul li {
    margin: 10px 0;
}

.post-sidebar ul li a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.2s;
}

.post-sidebar ul li a:hover {
    color: #0056b3;
}

@media (max-width: 768px) {
    .post-container {
        flex-direction: column;
    }
}

/* Gallery styles 
for all images click option
*/
/* Hover effect on gallery images */
.gallery-img {
    cursor: pointer;
    /* changes cursor to hand icon */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
    /* zoom in a bit */
    opacity: 0.85;
    /* dim slightly */
}

/* Lightbox overlay */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

/* Full image */
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

/* Close button */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}

/*Event page styles*/
.event-schedule {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.event-schedule th,
.event-schedule td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

.event-schedule th {
    background-color: #f7f7f7;
}

/* Two columns Events page design */

.events-page .main-content {
    margin-top: 100px;
    /* pushes events section down */
    display: flex;
    justify-content: center;
    /* ensures centered horizontally */
}
.events-container {
    display: flex;
    gap: 20px;
    margin: 20px auto;
    margin-top: 20px;
    max-width: 1000px;
    /* adjust width as needed */
    width: 100%;
        /* take full width but capped at 1000px */
    padding: 20px;
    /* some breathing space on small screens */
    background: #fff4e6;
    border: 2px solid #f77f00;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Left side list */
.events-list {
    flex: 1;
    max-width: 50%;
    border-right: 1px solid #ddd;
    padding-right: 10px;
    display: flex;
    align-items: center;
    margin: 0.8rem 0;
    padding: 0.8rem;
    
}

.events-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.events-list li {
    margin-bottom: 15px;
    padding: 10px;
    cursor: pointer;
    border-left: 4px solid #c0392b;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}
.events-list li.active {
    background: #e6f0ff;
    /* light blue highlight */
    font-weight: bold;
    border-left: 4px solid #3366cc;
    /* accent stripe */
}

.event-item {
    display: flex;
    align-items: center;
    border-bottom: 1px dashed #f77f00;
}
.events-list li:hover {
    background: #f7f7f7;
    transform: translateX(5px);

}

/* Right side details */
.event-details {
    flex: 2;
    padding-left: 10px;
    min-height: 200px;
    border-left: 1px solid #ddd;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #555;
    font-size: 1.1rem;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.date-badge {
    background: #d62828;
    color: #fff;
    font-weight: bold;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    margin-right: 1rem;
    min-width: 120px;
    text-align: center;
}
/* Hide details by default */
.event-detail {
    display: none;
}

.event-detail.active {
    display: block;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
    .events-container {
        flex-direction: column;
    }

    .events-list {
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-right: 0;
        padding-bottom: 10px;
    }
}

/* pdf design for blog posts */
.pdf-container {
    position: relative;
    padding-bottom: 75%;
    /* Aspect ratio (4:3) */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.pdf-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}