/* 
 * Church Website - Golden Jubilee Edition
 * Theme: Premium Gold, Warm White & Deep Royal
 */

:root {
  /* Primary: Deep, Royal Navy for contrast with Gold */
  --primary: #0f172a;

  /* Golden Jubilee Palette */
  --gold-dark: #b45309;
  --gold-main: #d97706;
  --gold-light: #fbbf24;
  --gold-cream: #fffbeb;

  /* Accents */
  --accent: #d97706;
  --accent-light: #fbbf24;
  --accent-glow: rgba(251, 191, 36, 0.5);

  /* Backgrounds */
  --white: #ffffff;
  --bg-light: #fffbeb;
  /* Warm Cream */
  --bg-white: #ffffff;

  /* Text */
  --text-dark: #1c1917;
  /* Warm Stone Dark */
  --text-light: #44403c;
  /* Warm Stone Light */

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows - Gold Tinted */
  --shadow-sm: 0 1px 3px rgba(180, 83, 9, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(180, 83, 9, 0.15);
  --shadow-lg: 0 10px 15px -3px rgba(180, 83, 9, 0.25);
  --shadow-gold: 0 0 20px var(--accent-glow);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Base Adjustments */
body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Premium Marquee */
.marquee-wrapper {
  background: #e0f2fe;
  color: #0c4a6e;
  padding: 0.2rem 0;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #bae6fd;
  z-index: 900;
  margin-top: 98px; /* offset for fixed navbar */
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-weight: 500;
  font-size: 1.1rem;
  /* Standard readable size */
  padding-left: 100%;
  padding-top: 0.1rem;
  font-family: 'Inter', sans-serif;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Navigation - Jubilee Style */
.navbar {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  /* border-bottom: 1px solid var(--gold-light); Removed for cleaner look with marquee */
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  /* Explicitly set font */
  font-size: 2.4rem;
  /* Increased size for readability */
  color: var(--primary);
  font-weight: 800;
  /* Boldest weight */
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--gold-dark);
  /* text-transform: uppercase; Removed to allow 'Church' */
  letter-spacing: 1px;
  /* Reduced spacing slightly since it's not all caps */
  font-size: 1em;
  /* Restore size match */
}

/* Footer Specific Logo */
footer .logo {
  color: var(--gold-light);
  font-size: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

footer .logo span {
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  background-color: var(--gold-main);
  height: 3px;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
}

/* Hero Section - Premium Cinematic Redesign */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;

  /* Parallax Background */
  background: url('images/site/hero-bg.jpeg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

/* Cinematic Overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Darker vignette for focus */
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 1rem;
  max-width: 1000px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 1s ease-out forwards 0.5s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Floating Logo Badge */
.hero-badge-wrapper {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.hero-logo-badge {
  width: 120px;
  /* Refined size */
  height: auto;
  filter: drop-shadow(0 0 20px rgba(217, 119, 6, 0.4));
  animation: float 4s ease-in-out infinite;
}

/* Gold Foil Title */
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  line-height: 1.1;

  /* Gold Gradient Text */
  background: linear-gradient(to bottom, #FCEABB 0%, #F8B500 50%, #FCEABB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* Text Shadow for depth against dark bg */
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5));
}

.text-highlight {
  display: block;
  /* Stack visually on mobile, or keep inline on desktop if preferred. Block feels grander here. */
  font-size: 4.5rem;
  background: linear-gradient(to bottom, #ffffff 0%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Elegant Subtitle */
.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 6px;
  /* Wide premium spacing */
  margin-top: 1.5rem;
  position: relative;
  display: inline-block;
}

.hero-subtitle .hero-years {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.5rem;
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  letter-spacing: 2px;
  font-weight: 700;
}

/* Ornate Divider lines for subtitle */
.hero-subtitle::before,
.hero-subtitle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light));
}

.hero-subtitle::before {
  right: 100%;
  margin-right: 15px;
}

.hero-subtitle::after {
  left: 100%;
  margin-left: 15px;
  background: linear-gradient(90deg, var(--gold-light), transparent);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .text-highlight {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 3px;
  }

  .hero-subtitle::before,
  .hero-subtitle::after {
    display: none;
  }

  /* Hide lines on small screens */
}

/* Buttons - Premium Gold Gradient */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #fbbf24 100%);
  color: white;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(217, 119, 6, 0.6);
  background: linear-gradient(135deg, #d97706 0%, #fbbf24 50%, #d97706 100%);
}

/* Page Header - Shared across all inner pages */
.page-header {
  background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)),
    url('images/site/hero-bg.jpeg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--white);
  padding: 10rem 0 5rem;
  text-align: center;
}

.page-header h1 {
  font-size: 3.5rem;
  color: var(--gold-light);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.75rem;
}

.page-header p {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--gold-cream);
  font-style: italic;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-top: 0.5rem;
}

/* Mass Schedule Section */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 3rem;
  display: block;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Cards - Elegant Borders */
.card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(217, 119, 6, 0.1);
  border-top: 4px solid var(--gold-main);
  text-align: center;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-light);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--gold-main);
  background: var(--bg-light);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--gold-light);
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.time-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
}

.time-list li:last-child {
  border-bottom: none;
}

.time-list span {
  font-weight: 600;
  color: var(--primary);
}

/* Gallery Section Headings */
.gallery-section-title {
  text-align: center;
  color: var(--gold-dark);
  margin-bottom: 1rem;
  font-size: 3.5rem;
}

.gallery-section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.5rem;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-family: var(--font-heading);
}

/* About Page - History Milestones */
.milestones {
  list-style: none;
  margin: 2rem 0 3rem;
  padding: 0;
}

.milestones li {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(217, 119, 6, 0.12);
  align-items: flex-start;
}

.milestones li:last-child {
  border-bottom: none;
}

.milestone-year {
  min-width: 60px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-dark);
  padding-top: 0.15rem;
}

.milestone-text {
  color: var(--text-dark);
  line-height: 1.6;
}

.milestone-text strong {
  color: var(--primary);
}

/* About Page - Section headings */
.about-h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold-light);
}

.about-h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* Mission / Blockquote Box */
.mission-box {
  margin: 3rem 0;
  padding: 2rem;
  background-color: var(--bg-light);
  border-left: 4px solid var(--accent);
}

.mission-box h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.mission-box p {
  margin-bottom: 0;
  font-style: italic;
}

/* Gallery Preview */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  height: 250px;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  /* Ensure images are bright */
  filter: brightness(1.05);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Sticker Competition Gallery - Full View */
#sticker-gallery .gallery-item {
  height: auto;
  min-height: 250px;
  /* Minimum height for consistency */
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(217, 119, 6, 0.1);
}

#sticker-gallery .gallery-item img {
  height: auto;
  max-height: 100%;
  object-fit: contain;
  /* Show full image */
  transform: none;
  /* Disable zoom on hover to keep text readable */
}

#sticker-gallery .gallery-item:hover img {
  transform: scale(1.02);
  /* Slight zoom for interaction */
}

/* Footer - Jubilee */
footer {
  background: linear-gradient(to bottom, var(--primary), #000);
  color: var(--white);
  padding: 4rem 0 0;
  border-top: 5px solid var(--gold-main);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.footer-col p {
  margin-bottom: 1rem;
  color: #f1f5f9;
  /* White/Slate-100 for better visibility */
  font-size: 1.05rem;
  /* Slightly larger */
}

.footer-col ul li {
  margin-bottom: 0.5rem;
  color: #f1f5f9;
  /* Ensure list items are also bright white */
  font-size: 1.05rem;
  /* Match paragraph size */
}

.footer-col ul li a {
  color: #f1f5f9;
  /* White/Slate-100 */
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: var(--gold-light);
  padding-left: 5px;
  /* subtle interaction */
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  color: #cbd5e1;
  /* Lighter grey */
  font-size: 0.875rem;
}

/* Team / Leadership Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
  justify-items: center;
}

.team-member {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-white);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(217, 119, 6, 0.1);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.team-member img {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 1rem;
  border: 3px solid var(--gold-main);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.team-member h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-family: 'Noto Sans Malayalam', 'Inter', sans-serif;
}

.team-member p {
  color: var(--gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 0;
}

/* Jubilee News Slider */
.news-section {
  padding: 4rem 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid rgba(217, 119, 6, 0.1);
}

.news-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 5rem 3rem;
  /* Darker, richer background integration */
  background: url('images/site/50-logo-1.jpg') no-repeat center center/cover;
  border-radius: 20px;
  /* Glowing Gold Border */
  border: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(217, 119, 6, 0.1);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
}

/* Dark Gradient Overlay for Contrast */
.news-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Deep Navy/Black Gradient to make Gold pop */
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(44, 11, 14, 0.9));
  z-index: -1;
  transition: opacity 0.5s ease;
}

.news-container:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(217, 119, 6, 0.3);
  border-color: var(--gold-light);
}

/* Make text inside pop against dark bg */
.news-container .section-title {
  color: var(--gold-light);
  text-shadow: 0 2px 10px rgba(217, 119, 6, 0.3);
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

/* Premium Countdown Styles */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  min-width: 100px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.countdown-item:hover {
  transform: translateY(-5px);
  border-color: var(--gold-light);
  box-shadow: 0 0 20px rgba(217, 119, 6, 0.3);
}

.countdown-item span:first-child {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.countdown-item .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
}

@media (max-width: 600px) {
  .countdown-container {
    gap: 0.8rem;
  }

  .countdown-item {
    min-width: 70px;
    padding: 0.8rem 0.5rem;
  }

  .countdown-item span:first-child {
    font-size: 1.8rem;
  }

  .countdown-item .label {
    font-size: 0.7rem;
  }
}

.news-slider {
  position: relative;
  height: 180px;
  /* Increased height for elegance */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  opacity: 0;
  transition: all 0.6s ease-in-out;
  pointer-events: none;
  filter: blur(5px);
  transform: translate(-50%, -40%);
  /* Slide up effect */
}

.news-item.active {
  opacity: 1;
  pointer-events: auto;
  filter: blur(0);
  transform: translate(-50%, -50%);
}

.news-date {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-light);
  border: 1px solid var(--gold-light);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.news-text {
  font-size: 1.5rem;
  /* Larger, more readable */
  color: #f1f5f9;
  /* White-ish */
  font-family: var(--font-heading);
  line-height: 1.5;
  font-weight: 500;
  max-width: 80%;
  margin: 0 auto;
}

.news-nav {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.news-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.news-dot:hover {
  background-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.news-dot.active {
  background-color: var(--gold-light);
  box-shadow: 0 0 10px var(--gold-main);
  transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .nav-toggle {
    display: block;
  }

  /* Logo scaling on mobile */
  .logo {
    font-size: 1.35rem;
    gap: 0.4rem;
    letter-spacing: -0.3px;
  }

  .logo img {
    height: 42px !important;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    clip-path: circle(0% at 100% 0);
    transition: all 0.5s ease-in-out;
  }

  .nav-links.active {
    clip-path: circle(150% at 100% 0);
  }

  /* Fix iOS Safari parallax bug */
  .hero,
  .page-header {
    background-attachment: scroll;
  }
}