/* GENERAL */
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #1e2a45;
  line-height: 1.4;
  width: 100%;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
}

p {
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

/* NAVBAR - Desktop Only - FIXED VISIBLE */
.navbar {
  background: white;
  padding: 12px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e2a45;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  flex-shrink: 0;
}

.logo-circle {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #1e2a45;
  color: white;
  font-weight: bold;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid #1e2a45;
}

.logo-text h2 {
  font-size: 20px;
  margin: 0px;
  padding: 0%;
  color: #1e2a45;
}

.logo-text p {
  font-size: 11px;
  letter-spacing: 1px;
  color: #666;
  padding: 0%;
  margin: 0px;
}

/* Desktop NAV LINKS */
nav.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav.desktop-nav a {
  color: #1e2a45;
  text-decoration: none;
  font-size: 20px;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

nav.desktop-nav a:hover {
  color: #e8b500;
}

nav.desktop-nav a.active {
  font-weight: 600;
}

nav.desktop-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e8b500;
}

/* Mobile Hamburger Menu Button - FIXED VISIBLE */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 25px;
  right: 20px;
  z-index: 1002;
  background: white;
  border: none;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid #1e2a45;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #1e2a45;
  margin: 4px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-btn.active {
  background: #1e2a45;
}

.mobile-menu-btn.active span {
  background-color: white;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Side Navigation */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100%;
  background: white;
  z-index: 1000;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-header {
  padding: 80px 25px 25px;
  border-bottom: 1px solid #eee;
  background: #1e2a45;
  color: white;
  text-align: center;
}

.mobile-nav-header h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: white;
}

.mobile-nav-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 0;
  letter-spacing: 1px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 0;
  flex-grow: 1;
}

.mobile-nav-links a {
  padding: 20px 25px;
  color: #1e2a45;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.mobile-nav-links a.active {
  background: #fdf8ee;
  color: #e8b500;
  font-weight: 600;
  border-left: 4px solid #e8b500;
}

/* HERO SECTION - ADJUSTED FOR FIXED NAVBAR */
.hero {
  padding: 160px 60px 100px;
  background: linear-gradient(135deg, #233753 0%, #35506a 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  min-height: calc(100vh - 80px);
  box-sizing: border-box;
  margin-top: 80px;
}

.tag {
  display: inline-block;
  background: #e8b500;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  color: #1e2a45;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 52px;
  margin: 20px 0;
  line-height: 1.2;
}

.highlight {
  color: #e8b500;
  position: relative;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(232, 181, 0, 0.3);
  z-index: -1;
}

.hero-text {
  max-width: 500px;
  margin: 20px 0 30px 0;
  font-size: 18px;
  opacity: 0.9;
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-yellow {
  background: #e8b500;
  color: #1e2a45;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-yellow:hover {
  background: #ffca28;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(232, 181, 0, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #f8f9fa;
  padding: 14px 28px;
  border-radius: 8px;
  color: #f8f9fa;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel {
  background: #f8f9fa;
  border: 2px solid #1e2a45;
  padding: 14px 28px;
  border-radius: 8px;
  color: #1e2a45;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* HERO IMAGE */
.hero-img-card {
  background: white;
  padding: 8px;
  border-radius: 8px;
  width: 340px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.hero-img-card img {
  width: 100%;
  border-radius: 8px;
  height: 400px;
  object-fit: contain;
}

.expertise-card {
  background: #f7f7f7;
  padding: 4px;
  border-radius: 12px;
  margin-top: 0px;
  text-align: center;
}

.expertise-card p {
  font-size: 16px;
  color: #666;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0px;
}

.expertise-card h3 {
  margin: 0px;
  padding: 0%;
  font-size: 20px;
  color: #1e2a45;
}

/* IMPACT SECTION */
.impact {
  padding: 100px 60px;
  background: #fdf8ee;
  text-align: center;
}

.section-title {
  font-size: 42px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  text-align: center;
  width: 100%;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #e8b500;
}

.impact-quote {
  max-width: 700px;
  margin: 40px auto 60px auto;
  font-size: 20px;
  font-style: italic;
  color: #2c3e66;
  position: relative;
  padding: 0 20px;
}

.impact-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.impact-card {
  background: white;
  padding: 20px 30px;
  border-radius: 20px;
  width: 100%;
  max-width: 300px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #1e2a45;
}

.impact-card h3 {
  margin: 0 0 15px 0;
  color: #1e2a45;
}

.impact-card p {
  color: #666;
  font-size: 16px;
  margin: 0px;
}

/* PUBLICATIONS */
.publications {
  padding: 100px 60px;
  background: white;
}

.pub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pub-content {
  display: flex;
  margin-top: 50px;
  gap: 60px;
  flex-wrap: wrap;
}

.pub-featured {
  position: relative;
  flex: 1;
  max-width: 400px;
  overflow: hidden;
  border-radius: 20px;
}

.pub-featured img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

.read-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s ease;
}

.read-link:hover {
  gap: 10px;
}

.pub-list {
  flex: 1;
  min-width: 300px;
  padding: 12px;
}

.pub-item {
  padding: 16px 0;
  border-bottom: 1px solid #1e2a45;
  transition: padding-left 0.3s ease;
}

.pub-item:last-child {
  border-bottom: none;
}

.year {
  background: #eef2f7;
  padding: 6px 15px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  color: #1e2a45;
  display: inline-block;
  margin-bottom: 10px;
}

.pub-item h4 {
  font-size: 18px;
  margin: 0px;
  color: #1e2a45;
}

/* BLOG SECTION - UPDATED FOR GRID LAYOUT */
.blog-content {
  padding: 160px 60px 100px;
  background: #f9f9f9;
  display: none;
  width: 100%;
  box-sizing: border-box;
  min-height: 80vh;
  margin-top: 80px;
}

.blog-content.active {
  display: block;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

/* Blog Posts Grid Layout */
.blog-posts-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
  width: 100%;
}

/* Blog Post Styling */
.blog-post {
  background: white;
  border-radius: 12px;
  padding: 25px;
  border: 1px solid #1e2a45;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.blog-post-preview {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-post-meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-post-title {
  font-size: 22px;
  color: #1e2a45;
  margin-bottom: 15px;
  line-height: 1.3;
  flex-grow: 0;
}

.blog-post-excerpt {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-post-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}

.blog-post-actions button {
  background: #e8b500;
  color: #1e2a45;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 140px;
}

.blog-post-actions button:hover {
  background: #ffca28;
  transform: translateY(-2px);
}

.view-comments-btn {
  background: #1e2a45 !important;
  color: white !important;
}

.view-comments-btn:hover {
  background: #2c3e50 !important;
}

.view-comments-btn.active {
  background: #e8b500 !important;
  color: #1e2a45 !important;
}

/* Full Post Content */
.blog-post-full {
  display: none;
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.blog-post-full-content {
  color: #333;
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-line;
  margin-bottom: 20px;
}

.show-less-btn {
  background: #1e2a45 !important;
  color: white !important;
  width: 100% !important;
}

.show-less-btn:hover {
  background: #2c3e50 !important;
}

/* Comments Section */
.comments-section-container {
  display: none;
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.comments-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.comments-title {
  color: #1e2a45;
  margin-bottom: 20px;
  font-size: 20px;
}

.comments-list {
  margin-bottom: 30px;
}

.comment {
  background: #f9f9f9;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #1e2a45;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.comment-author {
  color: #1e2a45;
  font-weight: 600;
}

.admin-badge {
  color: #1e2a45;
  font-size: 16px;
  margin-left: 4px;
  background-color: #e8b500;
  padding: 0px 4px;
  border-radius: 4px;
}

.comment-date {
  color: #666;
  font-size: 12px;
}

.comment-text {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}

.no-comments {
  color: #999;
  text-align: center;
  font-style: italic;
  padding: 20px;
}

.add-comment-container {
  text-align: center;
  margin-top: 20px;
}

.add-comment-btn {
  background: #e8b500;
  color: #1e2a45;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.add-comment-btn:hover {
  background: #ffca28;
  transform: translateY(-2px);
}

/* Blog Post Expanded State */
.blog-post.expanded {
  border-color: #e8b500;
  box-shadow: 0 5px 20px rgba(232, 181, 0, 0.2);
}

.blog-post.comments-open {
  border-color: #1e2a45;
  box-shadow: 0 5px 20px rgba(52, 152, 219, 0.2);
}

/* Coming Soon Placeholder */
.blog-coming-soon {
  background: white;
  padding: 20px 40px;
  border-radius: 20px;
  margin: 30px auto;
  border: 1px solid #1e2a45;
  text-align: center;
  max-width: 800px;
  display: none;
}

.blog-coming-soon-content h3 {
  font-size: 36px;
  color: #1e2a45;
  margin-bottom: 12px;
}

.blog-coming-soon-content p {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* CONTACT SECTION */
.contact-content {
  padding: 160px 60px 100px;
  background: white;
  display: none;
  width: 100%;
  box-sizing: border-box;
  min-height: 80vh;
  margin-top: 80px;
}

.contact-content.active {
  display: block;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.contact-info-col {
  flex: 1;
  min-width: 300px;
  background-color: #1e2a45;
  color: white;
  padding: 20px 40px;
  border-radius: 12px;
}

.contact-form-col {
  flex: 1.5;
  min-width: 400px;
  padding: 30px 0;
}

.contact-main-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ecf0f1;
  text-align: center;
  width: 100%;
}

.contact-description {
  font-size: 1.1rem;
  color: #bdc3c7;
  margin-bottom: 40px;
  max-width: 400px;
  line-height: 1.6;
  text-align: center;
}

.contact-details {
  margin-top: 40px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-detail-icon {
  background-color: rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
  color: #e8b500;
}

.contact-detail-content h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #ecf0f1;
  font-weight: 600;
}

.contact-detail-content p {
  color: #bdc3c7;
  font-size: 1rem;
  margin: 0;
}

.contact-divider-long {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 10px 0;
}

.social-links-contact {
  margin-top: 20px;
  width: 100%;
}

.social-icons-contact {
  display: flex;
  gap: 15px;
}

.social-icon-contact img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Contact Form Styles */
.contact-form-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #1e2a45;
  text-align: center;
  width: 100%;
}

.contact-form-description {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin-bottom: 40px;
  line-height: 1.6;
  text-align: center;
}

/* FIXED: Form row styling to prevent overlap in desktop */
.contact-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
  width: 100%;
}

.contact-form .form-group {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1e2a45;
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #1e2a45;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
  font-family: inherit;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #3498db;
}

.contact-form textarea {
  min-height: 150px;
  resize: none;
}

.contact-send-btn {
  background-color: #1e2a45;
  color: white;
  border: none;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
  max-width: 200px;
}

.contact-send-btn:hover {
  background-color: #2c3e50;
  transform: translateY(-2px);
}

.prefilled {
  background-color: #f8f9fa;
  color: #555;
  cursor: pointer;
}

/* FOOTER CONTACT SECTION */
.footer-contact {
  padding: 20px 60px;
  background: #1e2a45;
  color: white;
  display: block;
}

.footer-contact.hidden {
  display: none !important;
}

.footer-contact-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-contact-title {
  font-size: 36px;
  margin-bottom: 20px;
  color: white;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

.footer-contact-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #e8b500;
}

.footer-contact-text {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 40px;
  line-height: 1.8;
  text-align: center;
}

.footer-contact-divider {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0px;
}

.footer-contact-divider.short {
  width: 100px;
  height: 2px;
  background: #e8b500;
  margin: 0px auto 30px auto;
}

.footer-contact-info {
  margin-top: 20px;
  text-align: center;
}

.footer-contact-subtitle {
  font-size: 24px;
  margin-bottom: 15px;
  color: white;
}

.social-media-links a img {
  height: 50px;
  width: 50px;
  margin-left: 12px;
}

/* MODAL STYLES */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  margin: 20px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #e8b500;
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.modal-header h3 {
  font-size: 28px;
  color: #1e2a45;
  margin-bottom: 10px;
}

.modal-header p {
  color: #666;
  font-size: 16px;
}

/* NOTIFICATION STYLES */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #27ae60;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 3000;
  display: none;
  align-items: center;
  gap: 15px;
  animation: slideIn 0.3s ease;
}

.notification.active {
  display: flex;
}

.notification-icon {
  background: white;
  color: #27ae60;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.notification-text {
  font-weight: 500;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Admin Login Form Styles */
#adminLoginForm .form-group {
  margin-bottom: 20px;
}

#adminLoginForm label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1e2a45;
}

#adminLoginForm input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s;
}

#adminLoginForm input:focus {
  outline: none;
  border-color: #1e2a45;
  box-shadow: 0 0 0 2px rgba(30, 42, 69, 0.1);
}

/* Error state */
input.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.error-message {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.error-message.active {
  display: block;
}

/* Checkout Styles */
.checkout-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #1e2a45;
}

.checkout-title {
  font-size: 36px;
  color: #1e2a45;
  margin-bottom: 40px;
  text-align: center;
}

.checkout-form {
  width: 100%;
}

.checkout-form .form-group {
  margin-bottom: 25px;
}

.checkout-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1e2a45;
  font-size: 16px;
}

.checkout-form input {
  width: 100%;
  padding: 15px;
  border: 1px solid #1e2a45;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.checkout-form input:focus {
  outline: none;
  border-color: #e8b500;
  box-shadow: 0 0 0 2px rgba(232, 181, 0, 0.2);
}

.checkout-row {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.checkout-row .form-group {
  flex: 1;
}

.checkout-total {
  background: #fdf8ee;
  padding: 25px;
  border-radius: 12px;
  margin: 40px 0;
  text-align: center;
  border: 1px solid #e8b500;
}

.total-label {
  font-size: 18px;
  color: #666;
  margin-bottom: 10px;
}

.total-amount {
  font-size: 36px;
  color: #1e2a45;
  font-weight: 700;
}

.checkout-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.paystack-btn {
  background: #00c3a5;
  color: white;
  border: none;
  padding: 18px 50px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.paystack-btn:hover {
  background: #00a88c;
  transform: translateY(-2px);
}

.cancel-checkout-btn {
  background: #f0f0f0;
  color: #666;
  border: none;
  padding: 18px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-checkout-btn:hover {
  background: #e0e0e0;
}

/* Responsive for modals */
@media (max-width: 768px) {
  .modal-content {
    padding: 30px 20px;
    width: 95%;
    max-width: 400px;
    margin: 20px;
  }

  .modal-header h3 {
    font-size: 24px;
  }

  #adminLoginForm .form-actions {
    flex-direction: column;
  }

  .notification {
    left: 20px;
    right: 20px;
    top: 10px;
  }

  .checkout-row {
    flex-direction: column;
    gap: 0;
  }

  .checkout-actions {
    flex-direction: column;
  }

  .checkout-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 25px 15px;
    max-width: 350px;
  }

  .modal-header h3 {
    font-size: 22px;
  }

  .notification {
    padding: 12px 20px;
    font-size: 14px;
  }

  .checkout-container {
    padding: 25px 15px;
  }

  .checkout-title {
    font-size: 28px;
  }

  .total-amount {
    font-size: 28px;
  }
}

/* ======================================== */
/* MOBILE RESPONSIVE DESIGN */
/* ======================================== */

@media (max-width: 1024px) {
  .hero,
  .impact,
  .publications,
  .blog-content,
  .contact-content,
  .footer-contact {
    padding: 80px 40px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-img-card {
    width: 300px;
    margin: 0px;
  }

  .contact-container {
    gap: 40px;
  }
}

/* MOBILE VIEW - 768px and below */
@media (max-width: 768px) {
  /* Hide desktop navbar completely in mobile */
  .navbar {
    display: none;
  }

  /* Show mobile menu button */
  .mobile-menu-btn {
    display: block;
    top: 20px;
    right: 20px;
  }

  /* ===== ADJUST CONTENT PADDING TO ACCOUNT FOR MOBILE LOGO ===== */
  .home-content,
  .biography-content,
  .books-content,
  .articles-content,
  .blog-content,
  .contact-content {
    padding-top: 100px !important;
    margin-top: 0 !important;
  }

  .hero {
    padding: 120px 20px 60px !important;
    min-height: calc(100vh - 80px);
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0 !important;
  }

  /* ===== HERO SECTION MOBILE STYLING ===== */
  .hero h1 {
    font-size: 36px;
    margin: 15px 0;
    padding: 0 10px;
  }

  .hero-text {
    font-size: 16px;
    margin: 15px 0 25px;
    max-width: 100%;
    padding: 0 10px;
  }

  .tag {
    padding: 6px 14px;
    font-size: 11px;
  }

  /* ===== SECTION TITLES - ALL CENTERED ===== */
  .section-title,
  .blog-section-title,
  .contact-main-title,
  .contact-form-title,
  .footer-contact-title {
    font-size: 32px;
    text-align: center;
    width: 100%;
    padding: 0 10px;
  }

  .section-title::after,
  .blog-section-title::after,
  .footer-contact-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* ===== BLOG SECTION MOBILE STYLING ===== */
  .blog-content {
    padding: 80px 20px;
    min-height: 70vh;
    width: 100%;
    box-sizing: border-box;
  }

  .blog-container {
    padding: 0 10px;
  }

  /* Change blog grid to single column on mobile */
  .blog-posts-container {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .blog-post {
    padding: 20px;
  }

  .blog-post-title {
    font-size: 20px;
  }

  .blog-post-excerpt {
    font-size: 15px;
  }

  .blog-post-actions {
    flex-direction: column;
  }

  .blog-post-actions button {
    width: 100%;
    min-width: auto;
  }

  /* Coming Soon mobile styling */
  .blog-coming-soon {
    padding: 8px 20px;
    margin: 20px auto;
    width: 100%;
    box-sizing: border-box;
  }

  .blog-coming-soon-content h3 {
    font-size: 26px;
  }

  .blog-coming-soon-content p {
    font-size: 16px;
    padding: 0 10px;
  }

  /* ===== CONTACT SECTION MOBILE STYLING ===== */
  .contact-content {
    padding: 80px 20px;
    min-height: 70vh;
    width: 100%;
    box-sizing: border-box;
  }

  .contact-container {
    flex-direction: column;
    gap: 40px;
    width: 100%;
  }

  .contact-info-col,
  .contact-form-col {
    min-width: 100%;
    width: 100%;
    padding: 30px 20px;
    box-sizing: border-box;
  }

  .contact-info-col {
    border-radius: 12px;
    margin: 0;
  }

  .contact-form-col {
    padding: 0;
  }

  .contact-main-title,
  .contact-form-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
  }

  .contact-main-title {
    color: #ecf0f1;
  }

  .contact-form-title {
    color: #1e2a45;
  }

  .contact-description,
  .contact-form-description {
    font-size: 16px;
    text-align: center;
    max-width: 100%;
    margin-bottom: 30px;
    line-height: 1.6;
    padding: 0 10px;
  }

  /* Contact form fields */
  .contact-form .form-row {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
  }

  .contact-form .form-group {
    min-width: 100%;
    margin-bottom: 0;
  }

  .contact-form label {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 14px;
    font-size: 16px;
    border: 1px solid #1e2a45;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .contact-send-btn {
    width: 100%;
    max-width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
  }

  /* Contact details */
  .contact-detail-item {
    flex-direction: row;
    align-items: center;
    margin-bottom: 25px;
  }

  .contact-detail-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    flex-shrink: 0;
  }

  .contact-detail-content h3 {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .contact-detail-content p {
    font-size: 15px;
  }

  .social-icons-contact {
    justify-content: center;
    gap: 20px;
  }

  /* ===== OTHER SECTIONS MOBILE STYLING ===== */
  .impact,
  .publications,
  .footer-contact {
    padding: 60px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .impact-quote {
    font-size: 18px;
    margin: 30px auto 40px auto;
    padding: 0 20px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  /* Impact grid */
  .impact-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .impact-card {
    width: 100%;
    max-width: 100%;
    padding: 25px;
    box-sizing: border-box;
    margin: 0;
  }

  /* Publications */
  .pub-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    padding: 0px 10px;
  }

  .pub-content {
    flex-direction: column;
    gap: 40px;
    margin-top: 0px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .pub-featured {
    max-width: 100%;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .pub-featured img {
    height: 400px;
    object-fit: contain;
    width: 100%;
  }

  .pub-list {
    width: 100%;
    padding: 4px;
    box-sizing: border-box;
  }

  /* Hero buttons */
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .btn-yellow,
  .btn-secondary {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 16px 24px;
    font-size: 16px;
  }

  /* Footer contact */
  .footer-contact {
    padding: 20px;
    width: 100%;
  }

  .footer-contact-text {
    font-size: 16px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .footer-contact-content {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  /* Fix width issues for all sections */
  .home-content,
  .biography-content,
  .books-content,
  .blog-content,
  .contact-content {
    width: 100%;
    overflow-x: hidden;
  }

  .hero-left,
  .hero-right {
    width: 100%;
    padding: 0px;
    box-sizing: border-box;
  }

  .hero-img-card {
    width: 100%;
    box-sizing: border-box;
    padding: 4px;
  }

  /* Ensure all content stretches full width but with padding */
  body > * {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Add padding to expertise card */
  .expertise-card {
    padding: 12px;
    margin-top: 15px;
  }

  /* Adjust pub items for mobile */
  .pub-item {
    padding: 18px 0;
  }

  .year {
    font-size: 12px;
    padding: 5px 12px;
  }

  /* Adjust social media links */
  .social-media-links,
  .social-icons-contact {
    padding: 0 10px;
    gap: 20px;
    justify-content: center;
  }
}

/* SMALL MOBILE VIEW - 480px and below */
@media (max-width: 480px) {
  .hero {
    padding: 100px 15px 50px !important;
  }

  .hero h1 {
    font-size: 28px;
    padding: 0 5px;
  }

  .section-title,
  .blog-section-title,
  .contact-main-title,
  .contact-form-title,
  .footer-contact-title {
    font-size: 26px;
    padding: 12px 5px;
  }

  .impact-quote {
    font-size: 16px;
    padding: 0 15px;
  }

  .hero-img-card {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    margin: 0;
  }

  .hero-img-card img {
    height: 430px;
  }

  .expertise-card {
    padding: 10px;
  }

  .expertise-card p {
    font-size: 14px;
  }

  .expertise-card h3 {
    font-size: 18px;
  }

  .impact-card {
    padding: 20px;
  }

  .pub-item {
    padding: 15px 0;
  }

  .social-media-links,
  .social-icons-contact {
    gap: 15px;
  }

  .mobile-menu-btn {
    top: 15px;
    right: 15px;
    padding: 4px;
  }

  .mobile-menu-btn span {
    width: 22px;
    height: 2.5px;
    margin: 4px 0;
  }

  /* ===== BLOG SECTION SMALL MOBILE STYLING ===== */
  .blog-content {
    padding: 60px 15px;
    min-height: 65vh;
  }

  .blog-posts-container {
    gap: 15px;
  }

  .blog-post {
    padding: 15px;
  }

  .blog-post-title {
    font-size: 18px;
  }

  .blog-post-excerpt {
    font-size: 14px;
  }

  .blog-post-actions button {
    padding: 8px 16px;
    font-size: 13px;
  }

  .blog-coming-soon {
    padding: 10px 16px;
  }

  .blog-coming-soon-content h3 {
    font-size: 22px;
  }

  .blog-coming-soon-content p {
    font-size: 15px;
    padding: 0;
  }

  /* ===== CONTACT SECTION SMALL MOBILE STYLING ===== */
  .contact-content {
    padding: 60px 15px;
    min-height: 65vh;
  }

  .contact-info-col,
  .contact-form-col {
    padding: 25px 15px;
  }

  .contact-description,
  .contact-form-description {
    font-size: 15px;
    padding: 0 5px;
  }

  .contact-detail-item {
    flex-direction: row;
    gap: 10px;
  }

  .contact-detail-icon {
    width: 45px;
    height: 45px;
    margin-right: 12px;
  }

  .contact-detail-content h3 {
    font-size: 15px;
  }

  .contact-detail-content p {
    font-size: 14px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px;
    font-size: 15px;
  }

  .contact-send-btn {
    padding: 14px 20px;
    font-size: 15px;
  }

  /* Mobile menu adjustments */
  .mobile-nav {
    max-width: 280px;
  }

  .mobile-nav-header {
    padding: 60px 0px 10px;
  }

  .mobile-nav-links a {
    padding: 18px 20px;
    font-size: 18px;
  }

  /* Fix any remaining padding issues */
  .impact,
  .publications {
    padding-left: 15px;
    padding-right: 15px;
  }

  .footer-contact-text {
    padding: 0 5px;
  }

  /* Adjust button padding for very small screens */
  .btn-yellow,
  .btn-secondary {
    padding: 14px 20px;
    font-size: 15px;
  }

  /* Adjust hero text padding */
  .hero-text {
    padding: 0 8px;
  }

  /* Adjust impact quote padding */
  .impact-quote {
    padding: 0 12px;
  }
}

/* EXTRA FIXES FOR MOBILE WIDTH WITH PROPER PADDING */
@media (max-width: 768px) {
  /* Ensure all containers have proper padding */
  .hero-left,
  .hero-right,
  .impact,
  .publications,
  .blog-content,
  .contact-content,
  .footer-contact,
  .pub-header,
  .pub-content,
  .pub-featured,
  .pub-list,
  .impact-grid,
  .impact-card,
  .articles-grid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Add consistent padding to all inner elements */
  .hero-left > *,
  .hero-right > *,
  .impact > *,
  .publications > *,
  .blog-content > *,
  .contact-content > *,
  .footer-contact > * {
    box-sizing: border-box;
  }

  /* Ensure text has breathing room - matches all sections */
  .hero-text,
  .impact-quote,
  .footer-contact-text,
  .contact-description,
  .contact-form-description,
  .blog-description,
  .blog-coming-soon-content p,
  .impact-card p,
  .pub-item h4,
  .article-excerpt,
  .post-content {
    line-height: 1.5;
  }

  /* Add margin to bottom of sections */
  .hero,
  .impact,
  .publications {
    margin-bottom: 0;
  }
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.impact,
.publications,
.blog-content,
.contact-content,
.footer-contact {
  animation: fadeIn 0.8s ease-out;
}

/* SCROLL BEHAVIOR */
html {
  scroll-behavior: smooth;
}

/* UTILITY CLASSES */
.text-center {
  text-align: center;
}

.mt-40 {
  margin-top: 40px;
}

.mb-40 {
  margin-bottom: 40px;
}

/* PRINT STYLES */
@media print {
  .btn-yellow,
  .btn-secondary,
  .mobile-menu-btn,
  .contact-send-btn,
  .add-comment-btn,
  .paystack-btn {
    display: none;
  }

  .hero-img-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/*========================================*/
/* Biography Page Specific Styles */
.biography-content {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 80px 60px;
  display: none;
  width: 100%;
  box-sizing: border-box;
}

.biography-content.active {
  display: block;
}

/* About Section */
.about-section {
  margin-bottom: 60px;
  width: 100%;
}

.biography-section-title {
  font-size: 42px;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  width: 100%;
  text-align: center;
}

.biography-section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #e8b500;
}

.about-text {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 60px;
  width: 100%;
}

.about-text p {
  margin-bottom: 25px;
}

/* Profile and Expertise Grid */
.profile-expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 40px;
  width: 100%;
}

.profile-card {
  padding: 0px;
  border-radius: 8px;
  transition: transform 0.3s ease;
  text-align: center;
  width: 90%;
  box-sizing: border-box;
  border: 2px solid #1e2a45;
  background: white;
}

.profile-card img {
  width: 90%;
  border-radius: 8px;
  height: 400px;
  object-fit: contain;
  box-sizing: border-box;
  border: 2px solid #1e2a45;
}

.profile-expertise {
  background: #fdf8ee;
  padding: 10px;
  border-radius: 15px;
  border: 1px solid #e8b500;
  height: 500px;
  width: 100%;
  box-sizing: border-box;
}

.profile-expertise h3 {
  color: #1e2a45;
  margin-bottom: 8px;
  font-size: 22px;
}

.expertise-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expertise-list li {
  padding: 8px 0;
  border-bottom: 1px solid #fdf8ee;
  color: #555;
  font-size: 16px;
  position: relative;
  padding-left: 25px;
}

.expertise-list li:last-child {
  border-bottom: none;
}

.expertise-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #e8b500;
  font-weight: bold;
}

/* Story Sections */
.story-section {
  margin-bottom: 60px;
  margin-top: 80px;
  width: 100%;
}

.story-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  width: 100%;
}

.story-title {
  font-size: 28px;
  color: #1e2a45;
  margin: 0;
}

.story-content {
  font-size: 17px;
  line-height: 1.7;
  color: #444;
  padding-left: 80px;
  width: 100%;
  text-align: center;
}

.story-content p {
  margin-bottom: 20px;
}

/* Academic Excellence */
.academic-section {
  background: #f9f9f9;
  padding: 60px;
  border-radius: 20px;
  margin: 80px 0;
  width: 100%;
  box-sizing: border-box;
}

.academic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
  width: 100%;
}

.academic-card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #1e2a45;
  width: 100%;
  box-sizing: border-box;
}

.academic-card h4 {
  color: #1e2a45;
  margin-bottom: 15px;
  font-size: 20px;
}

.academic-degree {
  font-size: 18px;
  color: #e8b500;
  font-weight: 600;
  margin-bottom: 8px;
}

.academic-institution {
  color: #666;
  font-size: 16px;
  margin-bottom: 5px;
}

.academic-specialization {
  color: #888;
  font-size: 14px;
  font-style: italic;
}

/* Professional Impact */
.impact-highlight {
  background: #1e2a45;
  color: white;
  padding: 40px;
  border-radius: 15px;
  margin: 40px 0;
  font-style: italic;
  font-size: 18px;
  line-height: 1.8;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
  width: 100%;
}

.role-card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid #1e2a45;
  transition: transform 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.role-organization {
  color: #e8b500;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.role-title {
  color: #1e2a45;
  font-size: 22px;
  margin-bottom: 15px;
}

.role-description {
  color: #555;
  line-height: 1.6;
  font-size: 16px;
}

/* Books Section */
.books-content {
  padding: 160px 60px 100px;
  text-align: center;
  background: #f9f9f9;
  display: none;
  width: 100%;
  box-sizing: border-box;
  margin-top: 80px;
}

.books-content.active {
  display: block;
}

.books-section-title {
  font-size: 42px;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  width: 100%;
  text-align: center;
}

.books-section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #e8b500;
}

/* RESPONSIVE DESIGN FOR BIOGRAPHY */
@media (max-width: 1024px) {
  .profile-expertise-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .biography-content {
    padding: 100px 40px 60px;
    margin-top: 80px;
  }

  .academic-section {
    padding: 60px 40px;
  }
}

/* Biography Mobile Styling */
@media (max-width: 768px) {
  .biography-content {
    padding: 100px 20px 60px;
    width: 100%;
    margin-top: 0;
  }

  .biography-section-title {
    font-size: 32px;
    text-align: center;
    padding: 0 10px;
    margin-bottom: 30px;
  }

  .about-text {
    font-size: 16px;
    margin-bottom: 40px;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .about-text p {
    margin-bottom: 20px;
  }

  .profile-expertise-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .profile-card {
    padding: 4px;
    width: 100%;
  }

  .profile-card img {
    height: 400px;
    width: 100%;
  }

  .profile-expertise {
    padding: 25px;
    width: 100%;
  }

  .expertise-list li {
    font-size: 15px;
    padding: 10px 0 10px 22px;
  }

  .story-content {
    padding-left: 0;
    font-size: 16px;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .story-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .academic-section {
    padding: 40px 20px;
    margin: 60px 0;
    width: 100%;
  }

  .academic-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .academic-card {
    padding: 25px;
    width: 100%;
  }

  .role-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .impact-highlight {
    padding: 30px 20px;
    font-size: 16px;
    margin: 30px 0;
    width: 100%;
    box-sizing: border-box;
  }

  .role-card {
    padding: 25px;
    width: 100%;
  }

  .books-content {
    padding: 100px 20px 60px;
    width: 100%;
    margin-top: 0;
  }

  .books-section-title {
    font-size: 32px;
    text-align: center;
    padding: 0 10px;
  }

  .books-section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .biography-content {
    padding: 90px 15px 40px;
  }

  .biography-section-title {
    font-size: 26px;
    padding: 0 5px;
  }

  .about-text {
    padding: 0 5px;
    font-size: 15px;
  }

  .profile-card img {
    height: 350px;
  }

  .profile-expertise {
    padding: 20px;
  }

  .expertise-list li {
    font-size: 14px;
    padding: 8px 0 8px 20px;
  }

  .story-content {
    padding: 0 5px;
    font-size: 15px;
    text-align: center;
  }

  .academic-section {
    padding: 30px 15px;
  }

  .academic-card {
    padding: 20px;
  }

  .academic-degree {
    font-size: 16px;
  }

  .academic-institution {
    font-size: 14px;
  }

  .impact-highlight {
    padding: 25px 15px;
    font-size: 15px;
  }

  .role-card {
    padding: 20px;
  }

  .role-title {
    font-size: 18px;
  }

  .role-description {
    font-size: 14px;
  }

  .books-content {
    padding: 90px 15px 40px;
  }

  .books-section-title {
    font-size: 26px;
    padding: 0 5px;
  }
}

/* ARTICLES SECTION STYLING */
.articles-content {
  padding: 160px 60px 100px;
  background: #f8f9fa;
  width: 100%;
  box-sizing: border-box;
  margin-top: 80px;
}

.articles-column {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.article-item {
  background: white;
  border: 1px solid #1e2a45;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.article-item-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.article-title {
  margin: 0;
  color: #1e2a45;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.download-btn-container {
  width: 100%;
  margin-top: 10px;
}

.download-btn {
  background: #e8b500;
  color: #1e2a45;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.download-btn:hover {
  background: #d4a300;
}

/* Responsive Design for Articles */
@media (max-width: 768px) {
  .articles-content {
    padding: 100px 20px 60px;
    margin-top: 0;
  }

  .article-item {
    padding: 20px;
    margin-bottom: 20px;
  }

  .article-title {
    font-size: 18px;
  }

  .article-item .year {
    font-size: 14px;
  }

  .download-btn {
    padding: 8px 16px;
    font-size: 14px;
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }

  .article-item-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .articles-content {
    padding: 90px 10px 30px;
  }

  .article-item {
    padding: 15px;
    margin-bottom: 15px;
  }

  .article-title {
    font-size: 16px;
  }

  .article-item .year {
    font-size: 13px;
  }

  .download-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* Desktop-specific article layout */
@media (min-width: 769px) {
  .article-item-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .article-title {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
  }

  .download-btn-container {
    width: auto;
    margin-top: 0;
    flex-shrink: 0;
  }

  .download-btn {
    width: auto;
    white-space: nowrap;
  }
}

/* Medium screens - single column for blog posts */
@media (max-width: 992px) {
  .blog-posts-container {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ARTICLES SECTION RESPONSIVE STYLING TO MATCH BIOGRAPHY/BOOKS */
@media (max-width: 768px) {
  .articles-content {
    padding: 100px 20px 60px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
  }

  .articles-column {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }

  .article-item {
    padding: 25px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .article-title {
    font-size: 18px !important;
    line-height: 1.5 !important;
    margin-bottom: 4px !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .article-item-content {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .download-btn-container {
    width: 100% !important;
    margin-top: 4px !important;
  }

  .download-btn {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .articles-content {
    padding: 90px 15px 40px !important;
  }

  .articles-column {
    padding: 0 5px !important;
  }

  .article-item {
    padding: 20px !important;
    margin-bottom: 20px !important;
  }

  .article-title {
    font-size: 16px !important;
  }

  .download-btn {
    padding: 10px 16px !important;
    font-size: 15px !important;
  }
}