/* Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Crimson+Pro:wght@500;600&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    padding-top: 109px; /* offset for fixed header (34px) + navbar (75px) with no gap */
}
html { overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }

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

/* Header Styles - Elegant Deep Blue */
.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
}

/* Navigation Styles - Clean White Bar */
.navbar {
    background-color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    position: fixed;
    top: 34px; /* sits below fixed header */
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Reduced from 20px to 15px for more space */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

/* Mobile nav toggle - vertical 3-bar burger (no square background) */
.nav-toggle { display:none; background:transparent; border:0; width:44px; height:44px; border-radius:8px; align-items:center; justify-content:center; cursor:pointer; box-shadow:none; padding:0; gap:6px; }
.nav-toggle span { display:block; width:3px; height:18px; background:#2c3e50; margin:0; border-radius:9999px; transition:transform .2s ease, opacity .2s ease; }
@media (max-width: 768px){
  .nav-toggle{display:flex; transform: rotate(90deg); transform-origin: center; margin-left: auto; z-index: 1001;}
  .nav-toggle span{background:#ff7a00;}
}

/* Adjust body offset on small screens where navbar height reduces */
@media (max-width: 768px) {
  .header { font-size: 12px; padding: 6px 10px; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
  body { padding-top: 96px; }
  .navbar { top: 32px; }
  .temple-name { font-size: 20px; }
  .temple-subtitle { font-size: 20px; }
  /* Reduce white space after the history image */
  .history-section { padding-bottom: 36px !important; }
  /* Kanike page hero (reuse contact hero) - ensure full cover and proper focus */
  .contact-hero-photo { height: 64vh; }
  .contact-hero-image { object-position: center -10px; }
  /* Kanike bank details card spacing */
  .bank-details { padding: 22px !important; }
  .bank-details h2 { font-size: 1.6rem !important; }
  .bank-details table td { padding: 12px !important; }
  .donation-section .container { padding-left: 14px; padding-right: 14px; }
}

/* Nav link active polish */
.nav-link.active { color:#0ea5e9; }
.nav-link:focus-visible, .dropdown-link:focus-visible, .live-btn:focus-visible, .contact-btn:focus-visible, .map-link:focus-visible { outline:3px solid #0ea5e9; outline-offset:2px; border-radius:6px; }


.nav-left {
    display: flex;
    align-items: center;
    gap: 15px; /* Reduced from 20px to 15px for more space */
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.25);
    border: 2px solid #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.temple-title {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.temple-name {
    color: #2c3e50;
    font-size: 30px;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    font-family: 'Crimson Pro', serif;
    display: inline;
}

.temple-subtitle {
    color: #2c3e50; /* match Mangaluru (black/dark) */
    font-size: 30px; /* equal to .temple-name */
    font-weight: 800; /* equal weight */
    margin: 0;
    line-height: 1.1;
    letter-spacing: 0;
    font-family: 'Crimson Pro', serif; /* updated font */
    display: inline;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px; /* Reduced from 30px to 25px for tighter spacing */
    align-items: center;
}

/* Add breathing space between site title and first menu item on laptops/desktops */
@media (min-width: 1024px) {
  .nav-menu { margin-left: 35px; } /* Reduced from 48px to 35px for more space */
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 10px 15px; /* Reduced from 18px to 15px for tighter spacing */
    border-radius: 6px;
    transition: color .2s ease, background .2s ease, transform .2s ease;
    font-size: 14px;
    position: relative;
}

.nav-link:hover { background-color: #f3f6fb; color: #3498db; transform: translateY(-2px); }

.nav-link.active { background: linear-gradient(135deg, #3498db, #2980b9); color: white; box-shadow: 0 3px 8px rgba(52, 152, 219, 0.25); }

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Keep top-nav labels on one line on tablet/desktop */
@media (min-width: 768px) {
  .nav-link, .dropdown-toggle { white-space: nowrap; }
}

/* Ensure E-SEVA/KANIKE text doesn't wrap on any screen size */
.nav-link {
  white-space: nowrap;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 9px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 6px 0;
    margin-top: 4px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 18px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color .2s ease, background .2s ease;
    border-left: 3px solid transparent;
}

.dropdown-link:hover { background-color: #f3f6fb; color: #3498db; border-left-color: #3498db; }

.dropdown-link:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.dropdown-link:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Seva List Dropdown Styles */
.seva-menu {
    min-width: 320px;
    max-width: 400px;
}

/* Ensure goddess head is fully visible in Historical Journey image on desktop */
@media (min-width: 1024px) {
  /* Nudge image upward so the crown tip sits near the top border */
  .history-media img { object-position: center -70px; }
}

.seva-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    white-space: nowrap; /* force single line */
}

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

.seva-name {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}

.seva-price {
    font-size: 14px;
    font-weight: 700;
    color: #c0392b;
    margin-left: 10px;
    white-space: nowrap;
    background: #fdecea;
    border: 1px solid #f3b0a9;
    padding: 4px 10px;
    border-radius: 8px; /* square box */
    line-height: 1;
    min-width: 70px;
    text-align: center;
}

.seva-item:hover .seva-name {
    color: #3498db;
}

.seva-item:hover .seva-price {
    color: #c0392b;
    background: rgba(231, 76, 60, 0.12);
    border-color: rgba(231, 76, 60, 0.35);
}

.seva-item.special {
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
    border-left: 3px solid #e74c3c;
}

.seva-item.special .seva-name {
    color: #c0392b;
    font-weight: 600;
}

.seva-item.special .seva-price {
    color: #a93226;
    font-weight: 800;
    background: rgba(169, 50, 38, 0.10);
    border-color: rgba(169, 50, 38, 0.35);
}

.live-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.25);
}

.live-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Hero Slideshow Section - Elegant Dark Theme */
.hero-slideshow {
    position: relative;
    height: 68vh;
    overflow: hidden;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity .8s ease, transform .8s ease;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 4%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    /* Slight zoom to eliminate any letterboxing present in source images */
    transform: scale(1.04);
    transform-origin: center center;
}

/* Specific tweaks to keep heads visible on slides 3 and 4 */
.slideshow-container .slide:nth-child(3) .slide-image { object-position: center 35%; }
.slideshow-container .slide:nth-child(4) .slide-image { object-position: center 37%; }

/* Navigation Controls - Elegant Blue Theme */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(52, 152, 219, 0.2);
    border: 2px solid rgba(52, 152, 219, 0.4);
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-nav:hover {
    background: rgba(52, 152, 219, 0.3);
    border-color: rgba(52, 152, 219, 0.6);
    transform: translateY(-50%) scale(1.05);
}

.prev-slide {
    left: 30px;
}

.next-slide {
    right: 30px;
}

/* Photo Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    min-height: 80vh;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-header h1 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem; 
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: .5px;

    /* Orange → Gold gradient */
    background: linear-gradient(90deg, #ff7a00, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    /* Warm golden glow */
    text-shadow: 0px 0px 8px rgba(255, 200, 100, 0.5);
}




.gallery-header p {
    color: #5b6470;
    font-size: 1rem; /* reduced */
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

.gallery-header h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff7a00, #ffb703);
    border-radius: 2px;
    margin: 14px auto 0;
}

/* Tabs for year navigation */
.gallery-tabs { display:flex; justify-content:center; gap:12px; margin: 10px 0 24px; }
.gallery-tabs .tab-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    padding: 10px 18px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #ff7a00, #ff9e2c);
    box-shadow: 0 8px 18px rgba(255,122,0,.25);
    border: 0;
    cursor: pointer;
    letter-spacing: .3px;
}
.gallery-tabs .tab-link:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(255,122,0,.3); }
.gallery-tabs .tab-link.is-active { background: linear-gradient(135deg, #ff9e2c, #ff7a00); box-shadow: 0 12px 26px rgba(255,122,0,.35); }

/* Simple centered year headings within gallery sections */
.year-heading {
    text-align: center;
    margin: 36px 0 14px;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Featured video heading block */
.video-intro { text-align:center; max-width: 1100px; margin: 0 auto 18px; color:#2c3e50; }
.video-intro h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: .3px; }
.video-intro .sub { margin-top: 6px; font-size: 18px; font-weight: 800; color:#e76f51; }
.video-intro .divider { width: 54px; height: 3px; background:#e76f51; border-radius:2px; margin:10px auto 0; opacity:.9; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
    background: white;
    content-visibility: auto;
    contain-intrinsic-size: 250px 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover { transform: translateY(-8px); box-shadow: 0 22px 46px rgba(0,0,0,0.22); }

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
    display: block;
    vertical-align: top;
    line-height: 0;
}

/* Rotate specific portrait shots */
.rotate90 { transform: rotate(90deg); transform-origin: center center; }
.contain-image { object-fit: contain; background: #0b1220; }
.rotate90-fit { height: 250px; width: 100%; object-fit: contain; object-position:  center; background:#0b1220; transform: rotate(90deg); transform-origin: center center; }
.center-fit { display:flex; align-items:center; justify-content:center; }

/* Emphasize top area (faces) for specific image */
.focus-top { object-position: center top; }

/* Rotate inline video 90deg and fit */
.rotate-video-90 { width: 100%; height: 250px; object-fit: cover; transform: rotate(90deg); transform-origin: center center; }


.lucky-draw-section { padding: 40px 0; background: linear-gradient(135deg, #fff7e8, #fde9cf); }
.lucky-draw-section .container { text-align: center; }
.lucky-title { margin: 0 0 10px; font-size: 28px; font-weight: 900; letter-spacing: .6px; color: #7a2222; }
.lucky-sub { margin: 0 0 18px; color: #7a2222; font-weight: 700; }
.lucky-draw-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 820px; margin: 0 auto; }
.lucky-card { 
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(120% 140% at 10% 10%, #7a2222 0%, #5b1717 60%, #4a1111 100%);
  border: 2px solid #d4a326; box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.lucky-card::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.12), rgba(255,255,255,0));
}
.lucky-label { font-size: 22px; font-weight: 800; color: #ffffff; letter-spacing: .3px; }
.lucky-value { font-size: 46px; font-weight: 900; color: #f7c437; text-shadow: 0 3px 0 rgba(0,0,0,.18); }

/* Hero band + deity image (styled like poster) */
.lucky-hero { margin: 6px 0 14px; }
.lucky-band { display: inline-block; padding: 10px 20px; border-radius: 999px; background: #7a2222; color: #fff; font-weight: 800; letter-spacing: .3px; box-shadow: 0 8px 20px rgba(0,0,0,.18), inset 0 0 0 3px #ffffff20; }
.lucky-image { width: 120px; height: 120px; object-fit: cover; object-position: center top; display: block; margin: 12px auto 2px; border-radius: 50%; border: 5px solid #d4a326; box-shadow: 0 10px 26px rgba(0,0,0,.22); }

/* Plaque style with gold pointers similar to artwork */
.lucky-plaques { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 840px; margin: 10px auto 0; }
.plaque { position: relative; padding: 18px 28px; background: radial-gradient(120% 140% at 10% 10%, #7a2222 0%, #5b1717 60%, #4a1111 100%); color: #fff; border-radius: 16px; border: 2px solid #d4a326; box-shadow: 0 10px 26px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: space-between; }
.plaque::before { left: -18px; }
.plaque::after { right: -18px; transform: translateY(-50%) skewX(18deg); }
.plaque .plaque-label { font-size: 22px; font-weight: 800; letter-spacing: .3px; }
.plaque .plaque-value { font-size: 48px; font-weight: 900; color: #f7c437; text-shadow: 0 3px 0 rgba(0,0,0,.18); }

@media (max-width: 640px) {
  .lucky-image { width: 160px; height: 160px; }
  .plaque { padding: 16px 20px; }
  .plaque .plaque-value { font-size: 40px; }
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    display: none;
}

/* Placeholder Items */
.gallery-item.placeholder {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.placeholder-content {
    text-align: center;
    color: #999;
}

.placeholder-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.placeholder-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #666;
}

.placeholder-content p {
    font-size: 0.9rem;
    color: #999;
}

/* Content Section - Elegant Theme */
.content-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    text-align: center;
}

/* Contact Hero (contact.html) */
.contact-hero { display:none; }
.contact-hero-photo { background: linear-gradient(135deg, #0b1220, #111827); padding: 0; overflow: hidden; position: relative; height: 88vh; }
/* Remove container padding within banner so image touches edges */
.contact-hero-photo .container { padding: 0; max-width: none; }
/* Full-bleed cover image only for Contact Us */
.contact-hero-image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center -240px;
  display: block; border-radius: 0; box-shadow: none;
}

/* Kanike page only (desktop): raise goddess slightly to hide bottom items */
@media (min-width: 1024px) {
  .kanike-hero .contact-hero-image { object-position: center -300px; }
}

/* Mobile-only: remove banner background, keep image full, and overlay arrow */
@media (max-width: 768px) {
  .contact-hero-photo { background: none; height: 76vh; }
  .contact-hero-image { object-position: center -160px; }
  .contact-hero-photo .down-arrow { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); margin-top: 0; }
}
/* history-hero styles consolidated below */
.down-arrow { display:flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:50%; border:2px solid rgba(255,255,255,.6); color:#fff; text-decoration:none; position: relative; left: 50%; transform: translateX(-50%); margin-top: 14px; background: rgba(255,255,255,.12); backdrop-filter: blur(2px); box-shadow: 0 10px 26px rgba(0,0,0,.35); font-size:26px; transition: transform .2s ease, background .2s ease; }
.down-arrow:hover { transform: translateY(2px); background: rgba(255,255,255,.2); }

/* Contact Cards */
.contact-cards { background: linear-gradient(135deg, #f8f9fa, #e9ecef); padding: 18px 0 54px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; align-items: stretch; }
.contact-card a.contact-mail { word-break: break-word; }
.contact-card { background:#fff; border-radius: 14px; padding: 24px 22px; text-align:center; box-shadow: 0 14px 36px rgba(0,0,0,.10); border:1px solid rgba(0,0,0,.06); }
.contact-icon { width:64px; height:64px; margin: 0 auto 12px; border-radius: 50%; display:flex; align-items:center; justify-content:center; background: linear-gradient(135deg, #ff7a00, #ff9e2c); color:#fff; font-size:30px; box-shadow: 0 12px 24px rgba(255,122,0,.30); }
.contact-brand { width: 30px; height: 30px; display:block; }
.contact-icon-link { text-decoration:none; }
.contact-card h3 { color:#2c3e50; margin-bottom: 10px; }
.contact-card p { color:#5e6b7a; line-height: 1.6; }
.contact-mail { color:#2563eb; text-decoration:none; font-weight:600; }
.contact-mail:hover { text-decoration: underline; }
.contact-address { color:#2c3e50; text-decoration:none; }
.contact-address:hover { text-decoration: underline; }

/* Contact Us Section (legacy banner) */
.contact-us-section {
    background: #2b2b2b;
    padding: 50px 0 60px 0;
    text-align: center;
}

.contact-heading {
    color: white;
    font-size: 2rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.contact-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff7a00, #ff9e2c);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #ff9800, #ffb84d);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(255, 122, 0, 0.35);
}

/* Pressed state for clear click feedback */
.contact-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 16px rgba(255, 122, 0, 0.25);
}

.content-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.content-section p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Footer - Elegant Dark Theme */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 50px 0 20px 0;
    font-size: 14px;
}

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

.footer-section h3 {
    color: #3498db;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section p {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #ecf0f1;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-logo {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.social-logo:hover {
    transform: scale(1.1);
}

.email-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.email-link:hover {
    transform: translateY(-2px);
}

.email-link:hover .email-with-logo {
    color: #3498db;
}

.email-with-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    transition: color 0.3s ease;
}

.gmail-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.email-link:hover .gmail-icon {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 13px;
    line-height: 1.5;
}

/* Logo Modal Styles - Full Image Display */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: transparent;
    margin: 2% auto;
    padding: 0;
    width: 60%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal navigation arrows */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 28px;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
    z-index: 2002;
}
.modal-nav:hover { background: rgba(255,255,255,0.25); transform: translateY(-50%) scale(1.06); }
.modal-nav.prev { left: 8px; }
.modal-nav.next { right: 8px; }

.modal-image-container {
    width: 100%;
    height: 80vh;
    overflow: hidden;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 15px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Modal Text for Gallery */
.modal-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px;
    text-align: center;
}

.modal-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile hamburger visibility and menu toggle
       Note: Desktop/tablet layouts remain unchanged */
    .nav-toggle { display: flex; }
    .nav-right .nav-menu { display: none; }
    .navbar.open .nav-right .nav-menu { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 8px; background: transparent; border-top: none; }
    .nav-right { width: auto; position: static; }
    .nav-container { position: relative; }
    .navbar.open .nav-right .nav-menu { position: absolute; top: 64px; left: 12px; right: 12px; max-width: calc(100vw - 24px); background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.12); padding: 10px; }
    .nav-menu > li { border-bottom: 1px solid #f1f5f9; }
    .nav-menu > li:last-child { border-bottom: none; }
    /* Equal spacing for menu items */
    .nav-menu > li { padding: 0; }
    .nav-menu > li > .nav-link, .nav-menu > li > .dropdown > .nav-link, .nav-menu > li .dropdown-toggle { display:block; padding:16px 18px; line-height: 1.3; }
    /* Make LIVE button align and fit card width */
    .navbar.open .nav-right .nav-menu .live-btn { display:block; width:100%; text-align:center; margin:10px 0 4px; padding:12px 16px; border-radius:10px; }
    .nav-container { flex-direction: row; align-items: center; justify-content: space-between; height: 64px; padding: 10px 14px; gap: 10px; }
    
    .nav-left { flex-direction: row; align-items: center; gap: 10px; text-align: left; }
    .nav-right { width: auto; }
    
    /* Mobile: make logo snug and titles equal size */
    .logo { width: 40px; height: 40px; border-width: 1.5px; margin-top: 8px; }
    .logo-image { object-position: center 60%; }
    .temple-name { font-size: 18px; }
    .temple-subtitle { font-size: 18px; }
    
    .nav-menu { flex-wrap: nowrap; gap: 0; justify-content: flex-start; width: 100%; align-items: stretch; }
    
    .nav-link { padding: 14px 16px; font-size: 15px; text-align: left; width: 100%; border-radius: 8px; }
    .dropdown-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; }
    .dropdown.active .dropdown-toggle::after { transform: rotate(180deg); }
    
    .dropdown-toggle { cursor: pointer; }
    .dropdown-menu { position: static; display: none; transform: none; box-shadow: 0 10px 24px rgba(0,0,0,.06); background: #ffffff; margin-top: 8px; border-radius: 8px; border: 1px solid #e5e7eb; }
    .dropdown.active .dropdown-menu { display: block; }
    
    .dropdown:hover .dropdown-menu {
        transform: none;
    }
    
    .seva-menu {
        min-width: 280px;
        max-width: 100%;
    }
    
    .seva-item {
        padding: 10px 15px;
    }
    
    .seva-name {
        font-size: 12px;
    }
    
    .seva-price {
        font-size: 13px;
    }
    
    .gallery-header h1 {
        font-size: 2.5rem;
    }
    
    .gallery-header p {
        font-size: 1.1rem;
    }
    
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
    .gallery-image { height: 200px; }
    .gallery-item { box-shadow: 0 6px 16px rgba(0,0,0,.12); }
    .gallery-item:hover { transform: none; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
    
    .hero-slideshow {
        height: 55vh;
    }
    
    .slide-nav {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    
    .prev-slide {
        left: 20px;
    }
    
    .next-slide {
        right: 20px;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .content-section p {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
    
    .footer-section h3 {
        font-size: 1rem;
    }
    
    .modal-content {
        width: 90%;
        margin: 5% auto;
    }
    
    .modal-image-container { height: 70vh; }
    /* Stack history box then image then content on mobile */
    .history-grid { grid-template-columns: 1fr !important; gap: 22px !important; }
    .history-media { order: 2; }
    .history-content { order: 3; padding-left: 0 !important; }
    .temple-history-section h2 { font-size: 1.6rem; }

    /* Donation: place form below bank details on mobile */
    .donation-grid { grid-template-columns: 1fr !important; gap: 22px !important; }
    .bank-details { order: 1; }
    .donation-form { order: 2; }

    /* Donation form fields: stack one per line on mobile */
    .donation-form form > div[style*='grid-template-columns'] { grid-template-columns: 1fr !important; }
    /* Ensure comfortable text size in inputs on mobile */
    .donation-form input, .donation-form textarea { font-size: 16px; }
    /* Captcha row: keep in a single line on mobile */
    .donation-form form > div[style*='display: flex'] { flex-direction: row; align-items: center; gap: 12px; justify-content: center; }

    /* History page: stack all cards vertically on mobile to avoid horizontal scroll */
    .history-cards { grid-template-columns: 1fr !important; gap: 18px !important; }
    /* History heading scale down on tablets/phones */
    .history-section h1 { font-size: 32px !important; line-height: 1.2 !important; }
    .history-section h2 { font-size: 20px !important; }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
        gap: 12px;
    }
    
    .logo {
        width: 45px;
        height: 45px;
    }
    
    .seva-menu {
        min-width: 250px;
    }
    
    .seva-item {
        padding: 8px 12px;
    }
    
    .seva-name {
        font-size: 11px;
    }
    
    .seva-price {
        font-size: 12px;
    }
    
    .gallery-header h1 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-image {
        height: 180px;
    }
    
    .hero-slideshow {
        height: 45vh;
    }
    
    .slide-nav {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
    
    .prev-slide {
        left: 15px;
    }
    
    .next-slide {
        right: 15px;
    }
    
    .content-section h2 {
        font-size: 1.6rem;
    }
    
    .content-section p {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .footer-section p {
        font-size: 13px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-image-container {
        height: 60vh;
    }
    /* Reduce big welcome heading on mobile */
    .temple-history-section h1 { font-size: 1.5rem !important; line-height: 1.15 !important; letter-spacing: .3px; word-break: keep-all; overflow-wrap: normal; hyphens: manual; }
    .temple-history-section h1 br { display: none; }
    /* History page: further reduce on small phones */
    .history-section h1 { font-size: 28px !important; }
    .history-section h2 { font-size: 18px !important; }
}/* ===== Visual Refresh Overrides ===== */
html { scroll-behavior: smooth; }
:root {
    --brand-primary: #2b6cb0;       /* deep blue */
    --brand-accent: #0ea5e9;        /* sky */
    --brand-gold: #f59e0b;          /* amber */
    --ink: #2c3e50;                 /* dark ink */
    --soft-ink: #5e6b7a;            /* secondary text */
}/* Header refinement */
.header { letter-spacing: .4px; font-weight: 600; }

/* Navbar polish */
.navbar { background: rgba(255,255,255,0.92); backdrop-filter: saturate(120%) blur(6px); box-shadow: 0 6px 24px rgba(0,0,0,0.06); }
.nav-link { color: var(--ink); font-weight: 600; }
/* Keep dropdown caret on .dropdown-toggle::after. Use ::before for underline to avoid conflict */
.nav-link::after { content: none; }
.nav-link::before { content: ""; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 2px; background: linear-gradient(90deg, var(--brand-accent), #4f46e5); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; border-radius: 2px; }
.nav-link:hover::before, .nav-link.active::before { transform: scaleX(1); }

/* Dropdown polish */
.dropdown-menu { box-shadow: 0 16px 40px rgba(0,0,0,.12); border: 1px solid rgba(0,0,0,.06); }
.dropdown-link { color: var(--ink); }
.dropdown-link:hover { background: rgba(14,165,233,0.08); }

/* Hero enhancement */
.hero-slideshow { position: relative; }
.hero-slideshow::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.10) 100%); }
.slide-image { border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }

/* Buttons */
.live-btn { letter-spacing: .5px; box-shadow: 0 8px 24px rgba(231,76,60,.32); }
.live-btn:hover { transform: translateY(-2px); }
.contact-btn { box-shadow: 0 10px 24px rgba(255,122,0,.35); }

/* Content section typography */
.content-section h2 { letter-spacing: .5px; }
.content-section p { color: var(--soft-ink); }

/* Footer cards */
.footer { background: linear-gradient(135deg, #1f2937, #0f172a); }
.footer-section { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 14px 16px; }
.footer-section h3 { color: #93c5fd; border: none; padding-bottom: 0; }
.footer-section p { color: #e5e7eb; }
.map-link { text-decoration: none; display: inline-block; }
.map-link p { transition: color .2s ease; }
.map-link:hover p { color: #93c5fd; }
.footer-bottom { color: #9ca3af; }

/* Email row */
.email-with-logo { font-size: 15px; }

/* Social icons as round badges */
.social-logo { width: 34px; height: 34px; border-radius: 50%; background: #ffffff; padding: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.15); }

/* Contact banner tweak */
.contact-us-section { background: linear-gradient(135deg, #111827, #1f2937); }
.contact-heading { text-transform: uppercase; letter-spacing: 1.2px; }

/* Seva list rows hover */
.seva-item { background: transparent; }
.seva-item:hover { background: rgba(14,165,233,0.06); }

/* Gallery cards hover depth and alignment fixes */
.gallery-item { 
    transition: transform .25s ease, box-shadow .25s ease; 
    height: 250px; /* Fixed height for consistent alignment */
}
.gallery-item:hover { transform: translateY(-8px); box-shadow: 0 20px 46px rgba(0,0,0,.22); }

/* Ensure all gallery images are perfectly aligned */
.gallery-grid .gallery-item {
    align-self: start; /* Align all items to the top of their grid cell */
}

.gallery-grid .gallery-image {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

/* Specific fixes for Old Photos section alignment */
#yold + .gallery-grid {
    align-items: start !important;
}

#yold + .gallery-grid .gallery-item {
    height: 250px !important;
    align-self: start !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#yold + .gallery-grid .gallery-image {
    height: 250px !important;
    object-fit: cover !important;
    object-position: center center !important;
    vertical-align: top !important;
    line-height: 0 !important;
    display: block !important;
}

/* History Page Gallery - Fix White Lines */
.history-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    align-items: start;
}

.history-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    cursor: pointer;
    background: #000;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.history-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.history-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    vertical-align: top;
    line-height: 0;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

/* Keep Seva list static (no hover/focus highlight) */
.seva-menu .dropdown-link:hover { background: transparent; color: inherit; border-left-color: transparent; }
.seva-menu .seva-item:hover { background: transparent; }
.seva-menu .dropdown-link:focus, .seva-menu .dropdown-link:focus-visible { outline: none; }
/* Keep inner texts static too */
.seva-menu .seva-item:hover .seva-name { color: inherit; }
.seva-menu .seva-item:hover .seva-price { color: #c0392b; background: #fdecea; border-color: #f3b0a9; }
/* Non-interactive cursor to feel static */
.seva-menu .dropdown-link, .seva-menu .seva-item { cursor: default; }

/* Desktop-only adjustments for main slideshow images */
@media (min-width: 1024px) {
    .hero-slideshow { height: 72vh; }
    /* Desktop: fill frame edge-to-edge, align like history banner */
    .slide-image { object-fit: cover; object-position: center -60px; transform: scale(1.06); }
}

/* Desktop: hide down-arrow only on contact and donation hero banners */
@media (min-width: 1024px) {
    .contact-hero-photo .down-arrow { display: none; }
    .contact-hero-photo { padding: 0 0 12px; height: 72vh; }
    .contact-hero-image { object-position: center -100px; }
}

/* Desktop-only: adjust Contact Us hero image without affecting Kanike */
@media (min-width: 1024px) {
  .contact-hero-photo:not(.kanike-hero) .contact-hero-image { object-position: center -180px; }
}

/* History banner: full-bleed, no side gaps */
.history-hero {
  margin: 0 0 24px;
  overflow: hidden;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  border-radius: 0;
  box-shadow: none; /* remove background frame */
  padding: 0;       /* kill inner padding coming from older rule */
  background: none; /* no gradient background */
}

.history-hero img { width:100%; height:72vh; object-fit:cover; object-position: center -60px; display:block; }


/* Nudge image slightly to the right on mobile to reveal head better */
@media (max-width: 768px) {
  .history-hero img { object-position: 40% center; }
}

/* ===== Slide 3 (Home slideshow) – separate desktop vs mobile control ===== */
/* Mobile/tablet: keep original framing */
@media (max-width: 768px) {
  .slideshow-container .slide:nth-child(3) .slide-image { object-position: center 35%; }
}

/* Desktop: independent positioning for Slide 3 only (safe to tweak) */
@media (min-width: 1024px) {
  .slideshow-container .slide:nth-child(3) .slide-image { object-position: center 20px; }
}

/* Desktop-only: make history cards in each row equal height */
@media (min-width: 1024px) {
  .history-cards { align-items: stretch !important; }
  .history-cards > div { height: 100%; }
}

/* Announcements Content Section */
.announcements-content {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 50px 0;
}

.announcements-header {
    text-align: center;
    margin-bottom: 40px;
}

.announcements-header h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.announcements-header p {
    color: #e76f51;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.event-header {
    margin-bottom: 16px;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 12px;
}

.event-header h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.event-datetime {
    color: #ff6b35;
    font-weight: 600;
    font-size: 0.95rem;
    background: #fff5f3;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
}

.event-content {
    color: #555;
    line-height: 1.7;
}

.event-content p {
    margin: 0 0 12px 0;
}

.event-content p:last-child {
    margin-bottom: 0;
}

.sanskrit-verse {
    background: #faf7f0;
    border-left: 4px solid #ff6b35;
    padding: 12px 16px;
    margin: 0 0 16px 0;
    font-family: 'Noto Sans Devanagari', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #8b4513;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .announcements-content {
        padding: 30px 0;
    }
    
    .announcements-header h2 {
        font-size: 1.8rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }
    
    .event-card {
        padding: 20px;
    }
    
    .event-header h3 {
        font-size: 1.2rem;
    }
    
    .sanskrit-verse {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
}

/* Announcements Page - Invitation Images Specific Styling */
/* Fix white space and improve image positioning for all invitation images */
.announcements-page .gallery-section .gallery-image {
    object-fit: cover;
    object-position: center center;
    height: 320px; /* Increased height to cover white space better */
}

/* Mobile-only: Adjust invitation images to not cover god's head */
@media (max-width: 768px) {
    .announcements-page .gallery-section .gallery-image {
        object-position: center 30%; /* Focus on middle-upper area to avoid covering head */
        height: 280px; /* Increased height for mobile to cover white space */
    }
}
/* Fix white line/space after invitation images */
.announcements-page .gallery-section .gallery-item {
    line-height: 0; /* Remove line height that causes white space */
    overflow: hidden; /* Ensure clean container */
}

.announcements-page .gallery-section .gallery-image {
    display: block; /* Remove inline spacing */
    margin: 0; /* Remove default margins */
    padding: 0; /* Remove default padding */
    width: 100%;
}


/* PDF Invitations Section - Enhanced Design */
.pdf-invitations-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.pdf-invitations-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ff7a00" fill-opacity="0.03"><path d="M30 0c16.569 0 30 13.431 30 30S46.569 60 30 60 0 46.569 0 30 13.431 0 30 0z"/></g></g></svg>') repeat;
    z-index: 1;
    pointer-events: none;
}

.pdf-invitations-section .container {
    position: relative;
    z-index: 2;
}

.pdf-invitations-header {
    text-align: center;
    margin-bottom: 50px;
}

.pdf-invitations-header h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
}

.pdf-invitations-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff7a00, #ffd700);
    border-radius: 2px;
}

.pdf-invitations-header p {
    font-size: 1.1rem;
    color: #64748b;
    margin-top: 10px;
    font-weight: 400;
}

.pdf-invitations-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.pdf-invitation-card {
    flex: 1 1 350px;
    max-width: 400px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.1),
        0 8px 16px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.7);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.pdf-invitation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff7a00, #ffd700, #ff8c42);
    border-radius: 20px 20px 0 0;
    
}

.pdf-invitation-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.15),
        0 12px 24px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

.pdf-invitation-card h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a202c;
    position: relative;
}

.pdf-invitation-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #ff7a00, #ffd700);
    border-radius: 1px;
}

.pdf-thumb {
    position: relative;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    
}

.pdf-thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.pdf-thumb img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
    display: block;
    background: #f8fafc;
}


.pdf-open-btn {
    background: linear-gradient(135deg, #ff7a00 0%, #ff8c42 100%);
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.3);
}

.pdf-open-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.pdf-open-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 122, 0, 0.4);
    background: linear-gradient(135deg, #ff8c42 0%, #ff7a00 100%);
}

.pdf-open-btn:hover::before {
    left: 100%;
}

.pdf-open-btn:active {
    transform: translateY(-1px);
}

/* Mobile responsiveness for PDF section */
@media (max-width: 768px) {
    .pdf-invitations-section {
        padding: 40px 0;
    }
    
    .pdf-invitations-header h2 {
        font-size: 2rem;
        
    }
    
    .pdf-invitations-header p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .pdf-invitations-grid {
        gap: 25px;
        padding: 0 15px;
    }
    
    .pdf-invitation-card {
        flex: 1 1 100%;
        max-width: none;
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .pdf-invitation-card h3 {
        font-size: 1.2rem;
    }
    
    .pdf-thumb img {
        height: 300px;
        object-fit: contain;
    }
    
    .pdf-open-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
        min-width: 120px;
    }
}
  
  /* PDF Viewer */
  .pdf-viewer {
    display: none;
    margin-top: 30px;
  }
  
  .pdf-viewer iframe {
    width: 100%;
    height: 80vh;
    border-radius: 10px;
  }
  
  .pdf-back-btn {
    background: #ff7a00;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
  }

  .live-video-container {
    position: relative;
    width: 100%;
    max-width: 420px;   /* card size width */
    height: 240px;      /* fixed height (like screenshot) */
    margin: 40px auto;  /* center with spacing */
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  }
  
  .live-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }
  
  /* Mobile - make it card size */
@media (max-width: 768px) {
    .live-video-container {
      max-width: 380px;  /* similar to your screenshot */
      padding-top: 210px; /* fixed height instead of auto aspect ratio */
      margin: 20px auto;  /* center it with spacing */
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
  }
  
  /* Announcement note - centered pill */
.announcement-note { padding: 6px 0 0; background: linear-gradient(145deg, #f8eedc, #f5e4c7); }
.announcement-note .container { display: flex; justify-content: center; }
.announcement-note .note-box {
  display: inline-block;
  text-align: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: #7a2222;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 10px 22px rgba(0,0,0,.15);
}
