/* SCIFC - Styles.css */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* CSS Variables - Light Theme (Default) */
:root {
  --primary: hsl(265, 48%, 47%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(252, 47%, 33%);
  --secondary-foreground: hsl(0, 0%, 100%);
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(252, 40%, 20%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(252, 40%, 20%);
  --muted: hsl(265, 30%, 96%);
  --muted-foreground: hsl(252, 20%, 45%);
  --accent: hsl(280, 52%, 68%);
  --accent-foreground: hsl(0, 0%, 100%);
  --border: hsl(265, 25%, 88%);
  --input: hsl(265, 25%, 88%);
  --ring: hsl(265, 48%, 47%);
  --radius: 0.75rem;
  --hero-gradient: linear-gradient(135deg, hsl(265, 48%, 47%) 0%, hsl(252, 47%, 28%) 100%);
  --warm-gradient: linear-gradient(135deg, hsl(265, 48%, 47%) 0%, hsl(280, 52%, 68%) 100%);
  --shadow-sm: 0 2px 8px hsla(280, 52%, 68%, 0.1);
  --shadow-md: 0 8px 24px hsla(280, 52%, 68%, 0.15);
  --shadow-lg: 0 16px 48px hsla(280, 52%, 68%, 0.2);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

/* Dark Theme */
.dark {
  --primary: hsl(280, 52%, 68%);
  --primary-foreground: hsl(252, 40%, 8%);
  --secondary: hsl(265, 48%, 55%);
  --secondary-foreground: hsl(0, 0%, 100%);
  --background: hsl(252, 40%, 8%);
  --foreground: hsl(265, 20%, 92%);
  --card: hsl(252, 35%, 12%);
  --card-foreground: hsl(265, 20%, 92%);
  --muted: hsl(252, 30%, 15%);
  --muted-foreground: hsl(265, 25%, 70%);
  --accent: hsl(280, 52%, 68%);
  --accent-foreground: hsl(252, 40%, 8%);
  --border: hsl(252, 25%, 22%);
  --input: hsl(252, 25%, 22%);
  --ring: hsl(280, 52%, 68%);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Layout */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section-container {
    padding: 0 1.5rem;
  }

  .section-padding {
    padding: 6rem 0;
  }
}

/* Typography */
.heading-xl {
  font-size: 2.25rem;
  font-weight: 700;
}

.heading-lg {
  font-size: 1.875rem;
  font-weight: 700;
}

.heading-md {
  font-size: 1.5rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .heading-xl {
    font-size: 3rem;
  }

  .heading-lg {
    font-size: 2.25rem;
  }

  .heading-md {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .heading-xl {
    font-size: 3.75rem;
  }
}

/* Backgrounds */
.hero-gradient-bg {
  background: var(--hero-gradient);
}

.warm-gradient-bg {
  background: var(--warm-gradient);
}

.bg-background {
  background-color: var(--background);
}

.bg-muted {
  background-color: var(--muted);
}

.bg-card {
  background-color: var(--card);
}

.bg-primary {
  background-color: var(--primary);
}

/* Text Colors */
.text-foreground {
  color: var(--foreground);
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

.text-primary {
  color: var(--primary);
}

.text-primary-foreground {
  color: var(--primary-foreground);
}

.text-secondary {
  color: var(--secondary);
}

/* Cards */
.card {
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.shadow-soft {
  box-shadow: var(--shadow-sm);
}

.shadow-medium {
  box-shadow: var(--shadow-md);
}

.shadow-large {
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-md {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-xl {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-hero {
  background: var(--warm-gradient);
  color: white;
}

.btn-hero:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-hero-outline {
  background: transparent;
  border: 2px solid var(--primary-foreground);
  color: var(--primary-foreground);
}

.btn-hero-outline:hover {
  background: var(--primary-foreground);
  color: var(--primary);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  padding: 0;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.dark .header.scrolled {
  background: rgba(30, 25, 50, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text h1 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-toggle {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--foreground);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  border-radius: 0.5rem;
}

.mobile-menu a:hover {
  color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(139, 92, 246, 0.9), rgba(139, 92, 246, 0.7), rgba(139, 92, 246, 0.5));
}

.hero-content {
  position: relative;
  padding: 8rem 0 4rem;
}

.hero .badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 42rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Stats Section */
.stats-section {
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item svg {
  width: 2rem;
  height: 2rem;
  color: var(--secondary);
  margin: 0 auto 0.75rem;
}

.stat-item h3 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Program Cards */
.program-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.program-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.program-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s;
}

.program-card:hover img {
  transform: scale(1.05);
}

.program-card-content {
  padding: 1.5rem;
}

.program-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.program-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Testimonials */
.testimonial-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card .quote {
  position: absolute;
  top: -0.75rem;
  left: 2rem;
  font-size: 4rem;
  color: rgba(139, 92, 246, 0.2);
  font-family: serif;
}

.testimonial-card p {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.testimonial-author span {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer p,
.footer a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
  color: white;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  margin-top: 4rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Form Elements */
input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  transition: all 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

/* Tags/Badges */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary);
  border-radius: 9999px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

/* Page Hero (Inner Pages) */
.page-hero {
  padding: 8rem 0 4rem;
}

.page-hero .badge {
  display: inline-block;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.page-hero h1 {
  color: var(--primary-foreground);
  margin-bottom: 1.5rem;
}

.page-hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 48rem;
  line-height: 1.8;
}

/* Theme Toggle */
.theme-toggle {
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 0.5rem;
}

.theme-toggle:hover {
  background: var(--muted);
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--foreground);
}

/* Utilities */
.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.hidden {
  display: none;
}

@media (min-width: 640px) {
  .sm-block {
    display: block;
  }
}

.rounded-2xl {
  border-radius: 1rem;
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.pt-20 {
  padding-top: 5rem;
}

/* ========================================
   GLOBAL LAYOUT SYSTEM
   ======================================== */

/* Site-wide layout wrappers */
.site-container {
  width: 100%;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section-sm {
  padding: 40px 0;
}

.section-lg {
  padding: 96px 0;
}

/* Plugin embed wrappers */
.plugin-section {
  padding: 64px 0;
  background: var(--muted);
}

.plugin-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Contact page responsive layout */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-wrapper {
  max-width: 100%;
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Counselor cards grid fix */
.counselor-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 24px;
}

@media (min-width: 640px) {
  .counselor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .counselor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.counselor-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Normalize imported HTML - prevent margin collapse */
.entry-content>* {
  margin-bottom: 1rem;
}

.entry-content>*:last-child {
  margin-bottom: 0;
}

.entry-content section {
  margin-bottom: 0;
}

.entry-content main {
  padding-top: 0;
}

.entry-content .pt-20 {
  padding-top: 0;
}

/* Donation page specific */
.donate-info {
  line-height: 1.8;
}

.donate-info ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.donate-info li {
  margin-bottom: 0.5rem;
}

.bank-details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--muted);
}

/* Blog pagination styling */
.nav-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.nav-links a {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.nav-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.nav-links .current {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Footer widget areas */
.footer-widgets {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-widgets {
    grid-template-columns: repeat(3, 1fr);
  }
}

.widget {
  margin-bottom: 1.5rem;
}

.widget-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-foreground);
}

.widget ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.widget a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

.widget a:hover {
  color: white;
}