/* --- H.R.A.A. Custom Stylesheet --- */

/* * Color Theme Definition: 
 * Primary: Deep Violet (#4c1d95) - Represents authority, dignity, and depth.
 * Accent: Golden Amber (#f59e0b) - Represents hope, empowerment, and focus.
 */
:root {
    --color-primary: #4c1d95; /* Violet-800 */
    --color-primary-light: #6d28d9; /* Violet-700 for hover */
    --color-accent: #f59e0b; /* Amber-500 */
    --color-accent-dark: #d97706; /* Amber-600 for hover */
    --color-text-dark: #1f2937; /* Gray-800 */
    --color-text-light: #f9fafb; /* Gray-50 */
    
    /* New Gradients */
    --gradient-primary: linear-gradient(135deg, #4c1d95 0%, #370d74 100%); /* Violet gradient */
    --gradient-accent: linear-gradient(45deg, #f59e0b 0%, #fbbf24 100%); /* Amber gradient */

  /* ======================= ELECTRIC BORDER EFFECT ======================= */
  --electric-border-color: #dd8448;
  --electric-light-color: oklch(from var(--electric-border-color) l c h);
  --gradient-color: oklch(
    from var(--electric-border-color) 0.3 calc(c / 2) h / 0.4
  );
  --color-neutral-900: oklch(0.185 0 0);
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    /* Modern font stack using Inter */
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text-dark);
    background-color: var(--color-text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Utility Classes (for non-Tailwind elements or overrides) */
.text-primary { color: var(--color-primary); }
.bg-primary { background-color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.bg-accent { background-color: var(--color-accent); }
.bg-gradient-primary { background-image: var(--gradient-primary); }
.bg-gradient-accent { background-image: var(--gradient-accent); }

/* Buttons & Links */
.btn-primary {
    background-image: var(--gradient-primary);
    color: white;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px); /* Lift effect for gradient buttons */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-accent {
    background-image: var(--gradient-accent);
    color: var(--color-primary); /* Dark text on bright button */
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}
.btn-accent:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px); /* Lift effect for gradient buttons */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Navigation Overrides */
.nav-link {
    position: relative;
    padding-bottom: 0.4rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-primary);
}

/* Sticky header polish */
header.bg-white.shadow-lg.sticky {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(237, 233, 254, 0.5);
    transition: all 0.3s ease;
}

/* Card Hover Effects */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Scroll to Top Button */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--color-primary);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s, transform 0.3s;
}

#scrollToTopBtn:hover {
    background-color: var(--color-accent);
    transform: scale(1.1);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    header.bg-white.shadow-lg.sticky {
        background-color: #ffffff;
    }
}

/* Section Styling */
.section-title {
    color: var(--color-primary);
    font-size: 2.25rem; /* sm:text-4xl */
    font-weight: 800;
    line-height: 1.2;
}

/* Hero Section Specific Style: Removed fixed H1 size to prevent overlap */
#hero-content h1 {
    /* Relying on Tailwind responsive classes in index.php now */
}

/* Card Style (for clean maintenance) */
.custom-card {
    border: 1px solid #ede9fe; /* Light violet border */
    transition: all 0.3s;
}
.custom-shadow {
    box-shadow: 0 10px 15px -3px rgba(76, 29, 149, 0.1), 0 4px 6px -2px rgba(76, 29, 149, 0.05);
}
.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(76, 29, 149, 0.15), 0 10px 10px -5px rgba(76, 29, 149, 0.08);
}

/* --- JOIN FORM STYLING --- */
.join-section {
    background: linear-gradient(135deg, #f5f3ff 0%, #fef8f0 100%);
    padding: 3rem 0;
}

.join-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.join-header {
    text-align: center;
    margin-bottom: 3rem;
}

.join-header h1 {
    color: var(--color-primary);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(76, 29, 149, 0.1);
}

.join-header h1 i {
    margin-right: 0.5rem;
    color: var(--color-accent);
}

.join-header .subtitle {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
}

.form-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(76, 29, 149, 0.15);
    padding: 3rem;
    border: 2px solid #f5e6ff;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.form-grid.full {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.form-group label .required {
    color: #dc2626;
    margin-left: 0.25rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="date"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-size: 0.95rem;
}

/* Custom File Upload Styling */
.file-upload-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload-input {
    display: none;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 3px dashed var(--color-accent);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--color-primary);
    min-height: 120px;
}

.file-upload-label:hover {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(76, 29, 149, 0.05) 0%, rgba(76, 29, 149, 0.02) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 29, 149, 0.1);
}

.file-upload-label.has-file {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
    color: #10b981;
}

.file-upload-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
}

.file-upload-icon i {
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.file-upload-text {
    flex: 1;
    text-align: left;
}

.file-upload-text .file-name {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Rules & Regulations Section */
.rules-section {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #fff5f0 100%);
    border-radius: 15px;
    border-left: 5px solid var(--color-accent);
}

.rules-section h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.rules-section h3 i {
    margin-right: 0.75rem;
    color: var(--color-accent);
}

.rules-section ol {
    list-style: none;
    counter-reset: rules-counter;
    padding: 0;
    margin: 0;
}

.rules-section li {
    counter-increment: rules-counter;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--color-accent);
    display: flex;
    align-items: flex-start;
}

.rules-section li::before {
    content: counter(rules-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    color: var(--color-primary);
    border-radius: 50%;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.rules-section li p {
    margin: 0;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Submit Button */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    justify-content: center;
}

.btn-submit {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient-accent);
    color: var(--color-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit i {
    margin-right: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Alert Messages */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    border-left: 4px solid;
}

.alert i {
    margin-right: 0.5rem;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left-color: #dc2626;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border-left-color: #10b981;
}

.alert ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.alert li {
    margin-bottom: 0.25rem;
}

/* --- GLOBAL SECTION UTILITIES FOR PUBLIC PAGES --- */
.page-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.page-section-lg {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-heading {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
}

.section-subtitle {
    font-size: 1.05rem;
    color: #4b5563;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--color-accent-dark);
}

/* Impact strip on home / about */
.impact-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .impact-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.impact-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--color-primary-light);
}

.impact-card strong {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.impact-card span {
    display: block;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Get involved cards */
.get-involved-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .get-involved-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.get-involved-card {
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    background-color: #ffffff;
    border: 1px solid #ede9fe;
    box-shadow: 0 8px 20px rgba(76, 29, 149, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.get-involved-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(76, 29, 149, 0.13);
}

.get-involved-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.get-involved-card p {
    font-size: 0.95rem;
    color: #4b5563;
}

/* ======================= ELECTRIC BORDER EFFECT ======================= */

.eb-card-container {
  position: relative;
  background-color: #2a2a2a;
  background: linear-gradient(
      -30deg,
      var(--gradient-color),
      transparent,
      var(--gradient-color)
    ),
    linear-gradient(
      to bottom,
      var(--color-neutral-900),
      var(--color-neutral-900)
    );
  border-radius: 24px;
  padding: 2px;
  height: 100%;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.eb-card-container:hover {
    transform: translateY(-5px);
}

.eb-inner-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.eb-border-outer {
  border: 2px solid rgba(221, 132, 72, 0.5);
  border-radius: 24px;
  padding-right: 4px;
  padding-bottom: 4px;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.eb-main-card {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  border: 2px solid var(--electric-border-color);
  margin-top: -4px;
  margin-left: -4px;
  filter: url(#turbulent-displace);
}

.eb-glow-layer-1 {
  border: 2px solid rgba(221, 132, 72, 0.6);
  border-radius: 24px;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  filter: blur(1px);
}

.eb-glow-layer-2 {
  border: 2px solid var(--electric-light-color);
  border-radius: 24px;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  filter: blur(4px);
}

.eb-overlay-1 {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  opacity: 1;
  mix-blend-mode: overlay;
  filter: blur(16px);
  background: linear-gradient(
    -30deg,
    white,
    transparent 30%,
    transparent 70%,
    white
  );
  pointer-events: none;
}

.eb-overlay-2 {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  opacity: 0.5;
  mix-blend-mode: overlay;
  filter: blur(16px);
  background: linear-gradient(
    -30deg,
    white,
    transparent 30%,
    transparent 70%,
    white
  );
  pointer-events: none;
}

.eb-background-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  filter: blur(32px);
  opacity: 0.3;
  z-index: 0;
  background: linear-gradient(
    -30deg,
    var(--electric-light-color),
    transparent,
    var(--electric-border-color)
  );
  pointer-events: none;
}

.eb-content-container {
  position: relative;
  z-index: 10;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: white;
}

/* Overrides for content inside electric border card */
.eb-content-container .text-gray-900 {
    color: white !important;
}

.eb-content-container .text-gray-600 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.eb-content-container .bg-violet-50 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.eb-content-container .group-hover\:bg-primary:hover {
    background-color: var(--color-primary) !important;
}

.eb-content-container .group-hover\:text-white:hover {
    color: white !important;
}
