@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --main-beige: #FFF4EC;
  --card-beige: #FFF8F1;
  --soft-red: #B52435;
  --soft-green: #2F4A32; /* #6b8e65; */
  --udem-blue: #002d62;
}

/* --- General --- */
body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  background-color: var(--main-beige);
  color: #222;
  line-height: 1.6;
}

/* --- Navbar --- */
header {
    background-color: var(--main-beige);
    padding: 15px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img {
    height: 80px;
    width: auto;
}

/* Menu */
nav .menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav .menu li a {
    text-decoration: none;
    color: var(--udem-blue);
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s;
}

nav .menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: var(--soft-red);
    transition: width 0.3s ease;
}
nav .menu li a:hover::after,
nav .menu li a.active::after {
    width: 100%;
}

nav .menu li a:hover,
nav .menu li a.active {
    color: var(--soft-red);
}

/* Language button */
nav .lang a {
    display: inline-block; 
    padding: 6px 14px;
    border-radius: 6px;
    background-color: var(--udem-blue);
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}
nav .lang a:hover {
    background-color: var(--soft-red);
    transform: translateY(-2px);
}

/* Responsive menu */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav .menu {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-top: 12px;
    }

    nav .lang {
        margin-top: 12px;
    }
}

header {
    transition: transform 0.3s ease;
}


/* --- Page Section --- */
.page {
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
  text-align: center;
}

.page h1 {
  color: var(--soft-red);
  font-weight: 700;
  font-size: 2.2em;
  margin-bottom: 40px;
}

.page h2 {
  color: var(--soft-green);
  font-weight: 600;
  font-size: 1.5em;
  margin-top: 50px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}
.page h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 25%;
  width: 50%;
  height: 3px;
  background-color: var(--soft-green);
  border-radius: 2px;
}

/* --- Upcoming Events --- */
.page ul {
  list-style: none;
  padding-left: 0;
  max-width: 700px;
  margin: 30px auto;
}

.page ul li {
  background-color: var(--card-beige);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-left: 5px solid var(--soft-red);
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  font-weight: 500;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}
.page ul li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}


/* --- paste events  */
/* Cards */
.past-card .card-title {
  font-size: 1.15em;
  font-weight: 600;
  color: var(--soft-red);
  margin-bottom: 4px;
  text-align: center;
  line-height: 1.3;
}

.past-card .card-date {
  font-size: 0.9em;
  color: #555;
  opacity: 0.85;
  text-align: center;
  font-style: italic;
}
.past-events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.past-card {
  background: #FFF8F1;
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.past-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  background: white;
  margin: 6% auto;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  max-height: 80vh;        
  overflow-y: auto;        
}

.modal-content h3 {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--soft-red);
  margin-bottom: 12px;
  text-align: center;
}

.modal-content p {
  font-size: 1em;
  line-height: 1.6;
  color: #333;
  margin-bottom: 16px;
  text-align: justify; /* Nice clean block text */
  text-justify: inter-word;
}

.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
}

.modal-img {
  width: 100%;
  margin-top: 14px;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}


/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* dons box */
.don-box {
  margin: 50px auto;
  padding: 25px 30px;
  max-width: 400px;
  background: linear-gradient(135deg, #FFF8F1, #ffe6d1, #fff3e6);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.don-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.don-box:hover::before {
  opacity: 1;
}

.don-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.don-box p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.95;
  color: #4a3f3f;
  text-align: center;
}

.don-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #B52435, #e33c4a);
  color: white;
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.don-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 80%);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.don-btn:hover::after {
  opacity: 1;
}

.don-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}



/* --- Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.gallery img {
  width: 100%;
  height: 220px; /* fixed height for uniform look */
  object-fit: cover; /* crop edges, keeps center */
  object-position: center 22%;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 25px 20px;
  background-color: var(--main-beige);
  color: var(--soft-green);
  font-size: 0.95em;
  margin-top: 50px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}

footer a {
  color: var(--soft-red);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

html {
  scroll-behavior: smooth;
}
