/* ==========================================================================
   ವೀರಶೈವ ಲಿಂಗಾಯತ್ ಪಂಚಮಸಾಲಿ ನೌಕರರ ಕ್ಷೇಮಾಭಿವೃದ್ಧಿ ಸಂಘ
   Official Website CSS Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Kannada:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Color Palette */
  --primary: #8B1E0F;
  --primary-hover: #6E150A;
  --primary-light: #FDF2F2;
  --primary-dark: #581007;
  
  --secondary: #1E293B;
  --accent: #D4AF37;
  --accent-warm: #C59B27;
  --accent-light: #FFFBEB;
  
  /* Text Colors */
  --text-main: #1E293B;
  --text-muted: #475569;
  --text-light: #64748B;
  --text-white: #FFFFFF;
  
  /* Background Colors */
  --bg-body: #FAFAF7;
  --bg-card: #FFFFFF;
  --bg-alt: #F4F3EE;
  --bg-dark: #16120E;
  
  /* UI Elements */
  --border-color: #E2E8F0;
  --border-light: #F1F5F9;
  --border-accent: #E5D5A5;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 16px 32px rgba(139, 30, 15, 0.12);
  
  /* Layout & Transitions */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Noto Sans Kannada', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1200px;
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a:hover {
  color: var(--primary-hover);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

.section-tagline {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  background-color: var(--primary-light);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(139, 30, 15, 0.15);
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  position: relative;
  display: inline-block;
  color: var(--primary-dark);
}

.section-heading h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-heading p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0.75rem auto 0;
  font-size: 1.05rem;
}

/* Header & Grand Branding Layout */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 3px solid var(--accent);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

/* Header Top Branding Bar with Maroon Background, Emblems & White Text */
.header-brand-bar {
  background: linear-gradient(135deg, #581007 0%, #8B1E0F 50%, #581007 100%);
  padding: 0.6rem 1.5rem;
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-brand-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-side-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-emblem {
  height: 75px;
  width: 75px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
  border-radius: 50%;
  border: 3px solid var(--accent);
}

.brand-emblem:hover {
  transform: scale(1.05);
}

.brand-title-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}

.brand-main-heading {
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  margin: 0;
}

.brand-sub-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  margin-top: 0.2rem;
}

/* Lower Navigation Menu Bar */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.5rem;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.mobile-brand-compact {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.35rem 0.85rem;
  list-style: none;
  width: auto;
  margin: 0 auto;
}

.nav-link {
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text-main);
  padding: 0.5rem 0.35rem;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.nav-btn {
  padding: 0.45rem 1.15rem;
  font-size: 0.92rem;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0.35rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 10px rgba(139, 30, 15, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(139, 30, 15, 0.35);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: #1E1202;
  font-weight: 700;
}

.btn-accent:hover {
  background-color: var(--accent-warm);
  transform: translateY(-2px);
}

.btn-outline-light {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

/* Mobile Toggle Hamburger */
.hamburger-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.hamburger-bar {
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section with Dual Flanking Symbols */
.hero {
  position: relative;
  background: linear-gradient(rgba(18, 12, 8, 0.84), rgba(30, 15, 8, 0.9)), url('../images/hero.jpg') center/cover no-repeat;
  color: var(--text-white);
  padding: 5rem 1.5rem 6rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.hero-content {
  max-width: 950px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-emblem-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero-flank-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--accent);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-flank-badge img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.hero-flank-badge span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: #FFFFFF;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
}

.hero-tagline {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #F1F5F9;
  max-width: 780px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* General Section Layouts */
.section-padding {
  padding: 5rem 0;
}

.bg-alt {
  background-color: var(--bg-alt);
}

.bg-white {
  background-color: #FFFFFF;
}

/* Card Grid Styles */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-accent);
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(139, 30, 15, 0.2);
}

.feature-card h3 {
  color: var(--primary-dark);
  margin-bottom: 0.85rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Main Purpose Highlight Banner */
.highlight-card {
  background: linear-gradient(135deg, #FFFFFF, var(--accent-light));
  border-left: 6px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
  border-top: 1px solid var(--border-accent);
  border-right: 1px solid var(--border-accent);
  border-bottom: 1px solid var(--border-accent);
}

.highlight-card p {
  font-size: 1.2rem;
  color: var(--text-main);
  line-height: 1.85;
  font-weight: 500;
  text-align: center;
}

/* Visual Pillars Section */
.pillars-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-light);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.pillar-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.pillar-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.25rem;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 2rem;
}

.pillar-card h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Certificate Preview Section */
.certificate-preview-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.certificate-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  background-color: #F8FAFC;
  cursor: pointer;
}

.certificate-img-wrapper img {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.certificate-img-wrapper:hover img {
  transform: scale(1.02);
}

.watermark-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(139, 30, 15, 0.9);
  color: #FFFFFF;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Lightbox Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 12, 10, 0.9);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background-color: var(--primary-dark);
  color: #FFFFFF;
}

.modal-header h3 {
  color: #FFFFFF;
  font-size: 1.15rem;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.5rem;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  text-align: center;
  flex: 1;
  background-color: #F1F5F9;
}

.modal-body img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Office Bearers Grid */
.office-bearer-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.office-bearer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-accent);
}

.bearer-img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 4rem;
  border-bottom: 3px solid var(--accent);
}

.bearer-info {
  padding: 1.4rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.bearer-name {
  font-size: 1.2rem;
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.bearer-designation {
  font-size: 0.98rem;
  color: var(--accent-warm);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.bearer-org {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.45;
  margin-top: 0.15rem;
}

/* Community CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #FFFFFF;
  padding: 4.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-heading {
  font-size: 2.25rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.15rem;
  color: #F8FAFC;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

/* Internal Page Hero Banner */
.page-banner {
  background: linear-gradient(rgba(22, 18, 14, 0.85), rgba(40, 20, 10, 0.9)), url('../images/hero.jpg') center/cover no-repeat;
  color: #FFFFFF;
  padding: 4rem 1.5rem 4.5rem;
  text-align: center;
  border-bottom: 4px solid var(--accent);
}

.banner-content h1 {
  font-size: 2.5rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.banner-content p {
  color: var(--accent-light);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

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

.breadcrumb span {
  color: var(--accent);
}

/* Forms (Contact & Membership) */
.form-container {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  max-width: 750px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  background-color: #FAFAFA;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(139, 30, 15, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-error {
  color: #DC2626;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
  font-weight: 500;
}

.form-control.is-invalid {
  border-color: #DC2626;
  background-color: #FEF2F2;
}

.form-control.is-invalid + .form-error {
  display: block;
}

.form-success-message {
  display: none;
  background-color: #DEF7EC;
  border: 1px solid #31C48D;
  color: #03543F;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.05rem;
}

/* Enhanced Grid Form Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.required-star {
  color: #DC2626;
  font-weight: 700;
  margin-left: 2px;
}

/* Radio Options Grid */
.radio-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 0.75rem 1rem;
  background-color: #FAFAFA;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 0.35rem;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-main);
  user-select: none;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* File Upload Button & Preview */
.file-upload-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.file-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin: 0;
}

.file-name-display {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  word-break: break-all;
}

.photo-preview-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Commitment Declaration Container */
.commitment-box {
  background: var(--accent-light);
  border: 1.5px solid var(--border-accent);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

/* PDF Viewer Frame */
.pdf-viewer-container {
  width: 100%;
  height: 600px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: 1.5rem;
  box-shadow: var(--shadow-md);
}

.pdf-viewer-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* News Cards */
.news-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.news-date {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: inline-block;
  background-color: var(--primary-light);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
}

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

.news-card p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: #94A3B8;
  padding: 4.5rem 0 2rem;
  margin-top: auto;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-title {
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.footer-greeting {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-tagline {
  color: #CBD5E1;
  font-size: 0.95rem;
}

.footer-title {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #94A3B8;
}

.footer-credit {
  color: #CBD5E1;
  font-size: 0.88rem;
}

.footer-credit strong {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Scroll To Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: 2px solid var(--accent);
  font-weight: 700;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-4px);
}

/* Scroll Animation Helper Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1350px) {
  .nav-menu {
    gap: 0.3rem 0.65rem;
  }
  .nav-link {
    font-size: 0.88rem;
    padding: 0.45rem 0.25rem;
  }
  .nav-btn {
    padding: 0.4rem 0.95rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 1180px) {
  .nav-menu {
    gap: 0.22rem 0.42rem;
  }
  .nav-link {
    font-size: 0.82rem;
    padding: 0.4rem 0.16rem;
  }
  .nav-btn {
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 1024px) {
  .hero-title { font-size: 2.25rem; }
  .pillars-wrapper { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .hamburger-toggle { display: flex; }
  .mobile-brand-compact { display: flex; }
  
  .header-brand-bar {
    padding: 0.5rem 0.75rem;
  }
  
  .header-brand-container {
    gap: 0.5rem;
  }

  .brand-main-heading {
    font-size: 1.2rem;
  }

  .brand-sub-heading {
    font-size: 0.82rem;
  }

  .brand-emblem {
    height: 52px;
    width: 52px;
  }
  
  .nav-menu {
    position: fixed;
    top: 110px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 110px);
    background-color: #FFFFFF;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.35s ease;
    overflow-y: auto;
    gap: 1rem;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
    white-space: normal;
  }
  
  .nav-btn {
    width: 100%;
    margin-top: 1rem;
    margin-left: 0;
  }
  
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 4rem 1.25rem; }
  .hero-title { font-size: 1.85rem; }
  .hero-tagline { font-size: 1.1rem; }
  .hero-emblem-header { flex-direction: column; gap: 0.75rem; }
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 0;
  }
  .radio-options-grid {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .header-brand-bar { padding: 0.35rem 0.5rem; }
  .header-brand-container { gap: 0.35rem; }
  .brand-emblem { height: 42px; width: 42px; }
  .brand-main-heading { font-size: 0.95rem; line-height: 1.15; }
  .brand-sub-heading { font-size: 0.68rem; line-height: 1.2; margin-top: 0.1rem; }
  .hero-title { font-size: 1.55rem; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; }
  .cta-buttons { flex-direction: column; width: 100%; }
  .cta-buttons .btn { width: 100%; }
  .section-padding { padding: 3.5rem 0; }
  .form-container { padding: 1.5rem; }
}

/* ==========================================================================
   Responsive Office Bearers Table Styles
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin: 0 auto;
}

.office-bearers-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 1.05rem;
}

.office-bearers-table th {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #FFFFFF;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  border-bottom: 3px solid var(--accent);
  white-space: nowrap;
}

.office-bearers-table th:first-child {
  border-top-left-radius: var(--radius-lg);
  text-align: center;
  width: 90px;
}

.office-bearers-table th:last-child {
  border-top-right-radius: var(--radius-lg);
}

.office-bearers-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.office-bearers-table td:first-child {
  text-align: center;
  font-weight: 700;
  color: var(--primary);
}

.office-bearers-table tbody tr:nth-child(even) {
  background-color: #F8FAFC;
}

.office-bearers-table tbody tr:hover {
  background-color: var(--accent-light);
  transition: background-color 0.2s ease;
}

.office-bearers-table .bearer-name-cell {
  font-weight: 600;
  color: var(--primary-dark);
}

.office-bearers-table .bearer-designation-cell {
  font-weight: 500;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .office-bearers-table th, 
  .office-bearers-table td {
    padding: 0.85rem 0.75rem;
    font-size: 0.95rem;
  }
}
