/*
Theme Name: ISDMA Premium
Theme URI: https://isdma.com
Author: Harry Zahavi and CodeRigi
Description: Custom premium theme for Ikot Ekpene Senatorial District Media Advocates.
Version: 1.0
Text Domain: isdma
*/

:root {
  --primary-color: #1a4d2e; /* Forest Green */
  --primary-light: #2d7a4b;
  --accent-color: #d4af37; /* Gold */
  --text-dark: #121212;
  --text-light: #f5f5f5;
  --text-muted: #555555;
  --bg-color: #f4f9f5; /* Very subtle off-white-green */
  --bg-card: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(26, 77, 46, 0.1); /* Subtle green border instead of gray */
  --shadow-sm: 0 4px 6px rgba(26, 77, 46, 0.05);
  --shadow-md: 0 10px 15px rgba(26, 77, 46, 0.08);
  --shadow-lg: 0 20px 25px rgba(26, 77, 46, 0.12);
  
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  font-family: var(--font-sans);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  border-radius: 12px;
}

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

/* Micro-animations */
.fade-in {
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Article Card */
.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.article-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.article-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.article-excerpt {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.article-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* Team Card */
.team-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.team-image-wrapper {
  margin: 0 auto 1.5rem auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-color);
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--accent-color);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Page Specific Styles */
.hero-section {
  padding: 4rem 1rem;
  margin: 2rem auto 4rem auto;
  max-width: 1000px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  border-radius: 12px;
}

.hero-tag {
  display: inline-block;
  background: var(--accent-color);
  color: #000;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #e0e0e0;
  margin-bottom: 1.5rem;
}

.hero-description {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-color);
  color: #121212;
}

.btn-primary:hover {
  background: #e6c555;
  color: #121212;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.text-center {
  text-align: center;
  display: block;
}

.capitalize {
  text-transform: capitalize;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.about-content {
  padding: 3rem;
  margin-bottom: 4rem;
  background: var(--bg-card);
  border-radius: 12px;
}

.about-content h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.about-content h2 {
  font-size: 1.75rem;
  color: var(--primary-light);
  margin-top: 2rem;
}

.about-content p {
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
}

.single-article {
  max-width: 800px;
  margin: 0 auto 4rem auto;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: 12px;
}

.article-hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 400px;
}

.single-article-content {
  padding: 3rem;
}

.article-title-main {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.article-meta-info {
  display: flex;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.markdown-content p {
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.logo-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
  line-height: 1.2;
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-weight: 500;
}

.nav-links a {
  white-space: nowrap;
}

.dropdown {
  position: relative;
  cursor: pointer;
}

.dropdown-trigger {
  padding: 0.5rem 0;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  padding: 0.5rem 0;
  flex-direction: column;
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

.dropdown-content a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text-dark);
}

.dropdown-content a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--primary-light);
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 3rem 0;
  background: var(--primary-color);
  color: #ffffff;
  text-align: center;
}

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

/* Brand Landing Page Styles */
.brand-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(26,77,46,0.9) 0%, rgba(45,122,75,0.85) 100%), url('assets/images/logo.jpeg') center/cover no-repeat;
  color: white;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
  margin-top: -2rem; /* Pull up behind navbar if sticky, or just connect to top */
}

.brand-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.brand-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
}

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

.brand-subtitle {
  font-size: 1.25rem;
  color: #e0e0e0;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.brand-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}
.btn-outline:hover {
  background: var(--accent-color);
  color: #121212;
}

/* Pillars Section */
.pillars-section {
  padding: 6rem 1rem;
  background: var(--bg-card);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.pillar-card {
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 16px;
  background: var(--bg-color);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.pillar-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  color: var(--accent-color);
}

.pillar-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* About Snippet */
.about-snippet {
  padding: 6rem 1rem;
  background: var(--bg-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  aspect-ratio: 4/3;
}

.about-text h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
  padding: 6rem 1rem;
  text-align: center;
  background: var(--primary-color);
  color: white;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Event Promo */
.event-promo-section {
  margin: 3rem auto;
  padding: 0 1rem;
  max-width: 900px;
}

/* ISDMA Executive Council Team Styles */
.exec-page-wrapper {
  background: #a9d06b; /* The light green background from the flyer */
  padding: 4rem 1rem;
  min-height: 100vh;
}
.exec-container {
  background: white;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 10px solid #e3f0ce; /* inner border illusion */
}
.exec-title {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: #121212;
}

.exec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 1.5rem;
}
.exec-grid.president-row {
  grid-template-columns: 1fr;
  justify-content: center;
  margin-bottom: 3rem;
}

.exec-card {
  text-align: center;
}

.exec-image-wrapper {
  position: relative;
  width: 160px;
  margin: 0 auto 1rem auto;
  aspect-ratio: 3/4;
}
.president-row .exec-image-wrapper {
  width: 220px;
}

.exec-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  border: 6px solid #458232; /* The green color */
  border-bottom: none;
  border-radius: 90px 90px 0 0;
  overflow: hidden;
  z-index: 2;
  background: white;
}
.president-row .exec-image-container {
  border-radius: 120px 120px 0 0;
}

.exec-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.exec-image-accent {
  position: absolute;
  bottom: 15px;
  left: -8px;
  right: -8px;
  height: 40%;
  background-color: #d67a2a; /* The orange color */
  z-index: 1;
}

.exec-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: #121212;
  margin-bottom: 0.1rem;
  font-family: var(--font-serif);
}

.exec-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Pagination */
.pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.2s ease;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

@media (max-width: 1024px) {
  .exec-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 12px 12px;
    border: 1px solid var(--glass-border);
    border-top: none;
    align-items: flex-start;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    display: none;
  }
  .dropdown:hover .dropdown-content,
  .dropdown:active .dropdown-content {
    display: flex;
  }
}

@media (max-width: 768px) {
  .article-page {
    grid-template-columns: 1fr !important;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .brand-title {
    font-size: 2.5rem;
  }
  .brand-hero {
    min-height: 60vh;
  }
  .exec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .exec-container {
    padding: 2rem 1rem;
  }
}
