/* 
  Social Activist Website CSS
  Author: Antigravity
  Date: 2026-02-16
*/

/* -------------------------------------------------- */
/* 1. Variables & Reset */
/* -------------------------------------------------- */

:root {
  /* Colors */
  --primary-color: #0B1E3A;
  /* Navy Blue */
  --secondary-color: #7A1E1E;
  /* Maroon */
  --accent-color: #C9A227;
  /* Gold */
  --bg-color: #F4F6F9;
  /* Light Grey/White */
  --text-color: #222222;
  /* Dark Grey */
  --white: #ffffff;
  --light-grey: #e0e0e0;

  /* Typography */
  --font-main: 'Poppins', sans-serif;
  /* Fallback to sans-serif if Poppins fails */

  /* Spacing */
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 40px;
  --container-width: 1200px;

  /* Transitions */
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* -------------------------------------------------- */
/* 2. Utility Classes */
/* -------------------------------------------------- */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 10px auto 0;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #bfa030;
  color: var(--white);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 20px;
}

.mb-2 {
  margin-bottom: 20px;
}

/* -------------------------------------------------- */
/* 3. Header & Navigation */
/* -------------------------------------------------- */

header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

/* -------------------------------------------------- */
/* 4. Hero Section (Home) */
/* -------------------------------------------------- */

/* Transparent Header for Home Page */
header.header-transparent {
  background-color: transparent;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: none;
}

.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  /* Align to bottom */
  justify-content: flex-start;
  /* Align to left */
  text-align: left;
  /* Left align text */
  color: var(--white);
  overflow: hidden;
  padding-bottom: 50px;
  /* Add space at bottom */
}

/* Background Image styling */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

/* Dark Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 30, 58, 0.3);
  /* Lighter overlay */
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: auto;
  padding-left: 5%;
  padding-right: 20px;
  margin: 0;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 0px;
  color: var(--accent-color);
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  /* Removed auto margins for left alignment */
}

.hero-buttons {
  display: flex;
  gap: 20px;
  /* change justify-content to start for left alignment */
  justify-content: flex-start;
}

/* -------------------------------------------------- */
/* 5. Grid Systems & Cards */
/* -------------------------------------------------- */

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid var(--secondary-color);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.card h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.card-highlight {
  border: 2px solid var(--accent-color);
  background: linear-gradient(135deg, #fff 0%, #fffdf0 100%);
  transform: scale(1.05);
  /* Make it pop */
  box-shadow: 0 10px 30px rgba(201, 162, 39, 0.2);
  position: relative;
  overflow: hidden;
}

.card-highlight::before {
  content: 'KEY HIGHLIGHT';
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 5px 30px;
  transform: rotate(45deg);
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-highlight:hover {
  transform: scale(1.08);
}

/* -------------------------------------------------- */
/* 6. Specific Sections */
/* -------------------------------------------------- */

/* About Section */
.about-intro p {
  max-width: 800px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 1.1rem;
}

/* Organizations Scroll (Infinite Loop) */
.org-logos {
  overflow: hidden;
  padding: 30px 0;
  white-space: nowrap;
  position: relative;
  display: flex;
}

.org-logos:hover .logos-slide {
  animation-play-state: paused;
}

.logos-slide {
  display: flex;
  align-items: flex-start;
  animation: 10s slide infinite linear;
  flex-shrink: 0;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 40px;
  width: 200px;
  text-align: center;
}

.logo-item img {
  height: 80px;
  width: auto;
  margin-bottom: 10px;
  transition: var(--transition);
}

.logo-item p {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  white-space: normal;
}

.logo-item:hover img {
  transform: scale(1.1);
}

@keyframes slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* Message Section */
.message-box {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px;
  text-align: center;
  border-radius: 8px;
  position: relative;
}

.message-box::before {
  content: '“';
  font-size: 5rem;
  color: var(--accent-color);
  position: absolute;
  top: 20px;
  left: 20px;
  opacity: 0.3;
}

.message-box blockquote {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 20px;
}

/* Video Section */
.video-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.video-section video {
  display: block;
}

/* Profile Page */
.biography {
  display: flex;
  gap: 40px;
  align-items: center;
}

.bio-img {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.bio-text {
  flex: 2;
}

.positions-list {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
}

.positions-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--light-grey);
  display: flex;
  align-items: center;
}

.positions-list li:last-child {
  border-bottom: none;
}

.positions-list li::before {
  content: none;
}

.positions-list img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-right: 20px;
  border-radius: 50%;
  border: 1px solid var(--light-grey);
}

/* Certificates */
.cert-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
  cursor: pointer;
}

.cert-img:hover {
  transform: scale(1.05);
}

/* Gallery Page */
/* Gallery Page */
.masonry-grid {
  column-count: 3;
  column-gap: 20px;
}

@media (max-width: 1024px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .masonry-grid {
    column-count: 1;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  break-inside: avoid;
  /* Prevent items from splitting across columns */
  margin-bottom: 20px;
  /* Spacing between items vertically */
  display: block;
  /* Ensure it behaves as a block in columns */
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  /* Remove bottom space */
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-item i {
  color: var(--secondary-color);
  font-size: 1.5rem;
  width: 40px;
}

.appointment-note {
  background-color: #fff8e1;
  border-left: 5px solid var(--accent-color);
  padding: 20px;
  margin-top: 30px;
}

/* -------------------------------------------------- */
/* 7. Footer */
/* -------------------------------------------------- */

footer {
  background-color: #08162b;
  /* Darker than primary */
  color: var(--white);
  padding: 60px 0 20px;
  margin-top: 50px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

.copyright {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* -------------------------------------------------- */
/* 8. Responsive Design */
/* -------------------------------------------------- */

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 40px 0;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  /* Mobile Navigation */
  .hamburger {
    display: block;
    z-index: 1002;
    position: absolute;
    right: 20px;
    top: 20px;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    /* Below header */
    right: 20px;
    width: 200px;
    /* Small width */
    height: auto;
    /* Auto height based on content */
    background-color: var(--primary-color);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 0;
    border-radius: 8px;
    transform: scaleY(0);
    /* Hidden by default with scale */
    transform-origin: top;
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* Reset other props */
    right: 20px;
    left: auto;
  }

  .nav-links.active {
    transform: scaleY(1);
    /* Show menu */
  }

  .nav-links li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 5px 0;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .biography {
    flex-direction: column;
  }

  .bio-text {
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-content {
    padding-left: 20px;
    /* Adjust padding for very small screens */
  }

  .logo {
    font-size: 1.2rem;
  }
}