/* =====================================
   COLOR THEME VARIABLES
===================================== */
:root {
  --primary: #c62828;          /* Deep red (apple) */
  --secondary: #f57f17;        /* Sunrise orange */
  --accent: #ffeb3b;           /* Warm light yellow */
  --background: #fff;
  --text-color: #333;
  --header-bg: #fdecea;        /* Soft tint for header area */
  --card-bg: #fff7f3;
  --hover-dark: #8e0000;       /* Darker shade for hover */
  --shadow-color: rgba(198, 40, 40, 0.25);
}


/* =====================================
   GLOBAL RESET & BASE
===================================== */
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--background);  
  color: var(--text-color);
  line-height: 1.6;
  padding-top: 95px; /* top-bar + header height */
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Let content expand and push footer down */
body > *:not(footer) {
  flex-shrink: 0;
}

.content, main, .page-content {
  flex: 1;
}

/* =====================================
   TOP BAR
===================================== */
.top-bar {
  background: var(--primary);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 30px;
  font-size: 0.9rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}

.top-left span {
  margin-right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-left i,
.top-right a {
  color: #fff;
}

.top-right a {
  margin-left: 15px;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.top-right a:hover {
  color: var(--accent);
}

/* Hide left info on mobile */
@media (max-width: 768px) {
  .top-left {
    display: none;
  }
  .top-right {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

/* =========================
   HEADER
========================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--header-bg);
  color: #000;
  padding: 15px 30px;
}

.logo {
  font-weight: 600;
  font-size: 1.2rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

nav a.active,
nav a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  font-size: 1.5em;
  cursor: pointer;
}



/* =========================
   FIXED HEADER + SCROLL EFFECTS
========================= */

/* Make both fixed */
.top-bar,
header {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}

/* Top bar at very top */
.top-bar {
  top: 0;
}

/* Header sits below top bar */
header {
  top: 35px; /* height of top-bar */
  padding: 15px 30px;
  transition: all 0.4s ease;
}

/* Adjust body padding so content not hidden behind */
body {
  padding-top: 95px; /* top-bar + header height */
}

/* Scroll state (added via JS) */
.header-scrolled .top-bar {
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
}

.header-scrolled header {
  top: 0;
  padding: 8px 30px; /* shrink effect */
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px var(--shadow-color);
}

/* =========================
   MENU
========================= */

/* Desktop logo visible only on large screens */
.desktop-logo {
  display: block;
}

.mobile-header,
.mobile-logo,
.mobile-contact {
  display: none;
}

/* =====================
   MOBILE MENU STYLING
===================== */
@media (max-width: 768px) {


  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 75%;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
    align-items: flex-start;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease-in-out;
    overflow-y: auto;
    z-index: 5000; /* raised above overlay */
  }

  nav ul.show {
    right: 0;
  }

  .menu-toggle {
    display: block;
    font-size: 2rem;
    color: var(--primary, #e6007e);
    cursor: pointer;
    z-index: 6000;
  }

  /* --- Mobile header (logo + close) --- */
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 15px;
  }

  .mobile-logo {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary, #e6007e);
  } 

  .close-menu {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #000;
    cursor: pointer;
  }

  /* --- Menu links --- */
  nav ul li a {
    color: #000;
    font-weight: 500;
    text-decoration: none;
    padding: 0px 0;
    display: block;
    transition: color 0.3s ease, transform 0.2s ease;
  }

  nav ul li a:hover {
    color: var(--primary, #ff4da6);
    transform: translateX(5px);
  }

  /* --- Contact info (bottom of menu) --- */
  .mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    border-top: 1px solid rgba(0,0,0,0.15);
    padding-top: 15px;
    color: #000;
  }

  .mobile-contact a,
  .mobile-contact span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000;
    text-decoration: none;
  }

  .mobile-contact i {
    color: var(--primary, #e6007e);
  }

  /* Overlay */
  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 3000; /* lower than menu */
    display: none;
    transition: opacity 0.3s ease;
  }

  .menu-overlay.show {
    display: block;
  }
}

/* =========================
   LOGO STYLING
========================= */
.logo img,
.mobile-logo img {
  height: 70px; /* Adjust as needed */
  width: auto;
  display: block;
}

.mobile-logo img {
  height: 60px; /* Slightly smaller for mobile */
  margin-bottom: 10px;
}

/* Optional: center logo vertically if header is tall */
header .logo {
  display: flex;
  align-items: center;
}


/* =====================================
   HERO SECTION
===================================== */
.hero {
  position: relative;
  overflow: hidden;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.5s ease, opacity 1s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.5;
}

.hero .btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.hero .btn:hover {
  background: var(--hover-dark);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .hero {
    height: 320px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
}

/* =====================================
   SECTIONS & CARDS
===================================== */
section {
  padding: 50px 20px;
  text-align: center;
}

.programme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px var(--shadow-color);
}

.card-image {
  width: 100%;
  height: 220px;
  border-radius: 25px;
  overflow: hidden;
  margin-bottom: 15px;
  background: #fff;
  box-shadow: 0 6px 15px rgba(236, 64, 122, 0.25);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
  transition: transform 0.4s ease;
}

.card-image img:hover {
  transform: scale(1.05);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
}

/* =====================================
   BLOG LIST & SINGLE POST
===================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.blog-card img {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
}

.read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
}
.read-more:hover {
  text-decoration: underline;
}

/* Single post */
.blog-single {
  max-width: 95%;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.blog-single h2 {
  color: #222;
  font-size: 28px;
  line-height: 1.3;
}

.blog-single small {
  color: #777;
  margin-bottom: 20px;
  display: block;
}

.blog-single img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 25px;
}

.blog-single .ql-editor {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}

/* =====================================
   GALLERY & ALBUM
===================================== */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.album-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: 0.3s;
}

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

.album-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.btn-view {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-view:hover {
  background: var(--hover-dark);
}

/* Photo grid in album */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  overflow: hidden;
}

.lightbox-content {
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  animation: zoom 0.4s ease;
}

@keyframes zoom {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}

.prev, .next {
  position: absolute;
  top: 50%;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  padding: 16px;
  user-select: none;
  transition: 0.3s;
}
.next { right: 0; }
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.6);
}

/* =====================================
   CONTACT FORM & INFO
===================================== */
.contact-form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.contact-info {
  background: #FAEDF8;
  text-align: center;
  padding: 10px 30px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.info-card {
  color: #fff;
  border-radius: 20px;
  padding: 40px 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: 0.3s;
}

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

/* =====================================
   ADMIN AREA
===================================== */
.admin-header {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
}

.admin-form,
.login-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
}

.admin-form input,
.admin-form textarea,
.login-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
}

.login-box button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
}

.login-box button:hover {
  background: var(--hover-dark);
}

/* =====================================
   GO TO TOP BUTTON
===================================== */
#goTopBtn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: var(--background);
  color: var(--primary);
  border: var(--primary);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.2rem;
  display: none;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(236, 64, 122, 0.3);
  transition: 0.3s;
  z-index: 999;
}

#goTopBtn:hover {
  background: var(--header-bg);
  transform: translateY(-3px);
}

/* =====================================
   FOOTER
===================================== */
footer {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: auto; /* 👈 This pushes footer to bottom */
}

footer a {
  color: #00bcd4;
  text-decoration: none;
}

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

/* =====================================
   RESPONSIVE FIXES
===================================== */
@media (max-width: 768px) {
  .hero { padding: 70px 15px; }
  .card-image { height: 180px; }
}
