/* ============================================================ */
/*  POB - Pioneers of Biotechnology                             */
/*  STYLE.CSS - Main Stylesheet                                 */
/* ============================================================ */

/* Import Design System */
@import url('theme.css');
@import url('animations.css');
@import url('responsive.css');

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #041F1C 0%, #0A3D38 50%, #0C5F54 100%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(25,165,139,0.1) 0%, transparent 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 0 80px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(25,165,139,0.1);
  border: 1px solid rgba(25,165,139,0.3);
  border-radius: 50px;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 30px;
  font-family: var(--font-primary);
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #19A58B, #4FD1C5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.7);
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Hero outline buttons - visible on dark hero background */
.hero-actions .btn-pob-outline {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}

.hero-actions .btn-pob-outline:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  font-family: var(--font-secondary);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-primary);
}

/* ===== ABOUT PREVIEW ===== */
.about-preview {
  padding: 100px 0;
  position: relative;
}

.about-preview .about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-preview .about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-preview .about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(12,95,84,0.2), rgba(25,165,139,0.2));
}

.about-preview .about-content {
  padding: 40px;
}

.about-preview .about-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(25,165,139,0.1);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: var(--font-primary);
}

/* ===== VALUES SECTION ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  padding: 35px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-md);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.value-card .value-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
}

.value-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent), var(--primary));
  opacity: 0.3;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding: 20px 0;
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  align-self: flex-end;
  justify-content: flex-start;
  margin-left: 50%;
}

.timeline-item .timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 25px;
  max-width: 400px;
  position: relative;
  transition: var(--transition-md);
}

.timeline-item .timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent);
}

.timeline-item .timeline-dot {
  position: absolute;
  top: 30px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 20px rgba(25,165,139,0.3);
}

.timeline-item:nth-child(odd) .timeline-dot {
  left: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
  right: -8px;
}

.timeline-item .timeline-date {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
  font-family: var(--font-primary);
}

.timeline-item .timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.timeline-item .timeline-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ===== TEAM CARDS ===== */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-md);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.team-card .team-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.team-card .team-info {
  padding: 25px;
}

.team-card .team-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.team-card .team-role {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 15px;
  font-family: var(--font-primary);
}

.team-card .team-social {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.team-card .team-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.team-card .team-social a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-md);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition-md);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item .gallery-overlay h5 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.gallery-item .gallery-overlay p {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ===== PARTNER LOGOS ===== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  align-items: center;
}

.partner-item {
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-md);
  height: 120px;
}

.partner-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent);
}

.partner-item img {
  max-height: 60px;
  max-width: 100%;
  opacity: 0.5;
  transition: var(--transition-fast);
  filter: grayscale(100%);
}

.partner-item:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

/* ===== RESEARCH CARD ===== */
.research-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: var(--transition-md);
  height: 100%;
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent);
}

.research-card .research-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 20px;
}

.research-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.research-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.research-card .research-meta {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.research-card .research-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== DOWNLOAD CARD ===== */
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition-md);
}

.download-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent);
}

.download-card .download-icon {
  width: 50px;
  height: 50px;
  background: rgba(25,165,139,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}

.download-card .download-info {
  flex: 1;
}

.download-card .download-info h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.download-card .download-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.download-card .download-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.download-card .download-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(25,165,139,0.3);
}

/* ===== CONTACT FORM ===== */
.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form .form-control {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  transition: var(--transition-fast);
  width: 100%;
}

.contact-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(25,165,139,0.1);
  outline: none;
}

.contact-form textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-info-item .contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(25,165,139,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info-item h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ===== MAP CONTAINER ===== */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== JOIN SECTION ===== */
.join-countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
}

.countdown-item {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 30px;
  min-width: 100px;
}

.countdown-item .countdown-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  font-family: var(--font-secondary);
  display: block;
  line-height: 1;
}

.countdown-item .countdown-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-primary);
  margin-top: 8px;
  display: block;
}

/* ===== FAQ SEARCH ===== */
.faq-search {
  max-width: 500px;
  margin: 0 auto 40px;
}

.faq-search .input-group {
  position: relative;
}

.faq-search input {
  width: 100%;
  padding: 15px 20px 15px 50px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: var(--transition-fast);
  outline: none;
}

.faq-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(25,165,139,0.1);
}

.faq-search .search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  z-index: 1;
}

/* ===== 404 PAGE ===== */
.page-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 120px 20px;
  background: var(--dark-bg);
}

.page-404 .error-code {
  font-size: 12rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  font-family: var(--font-secondary);
}

.page-404 h2 {
  font-size: 2rem;
  color: var(--white);
  margin: 20px 0;
}

.page-404 p {
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  margin: 0 auto 30px;
}

/* ===== NEWSLETTER POPUP ===== */
.newsletter-popup {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 25px;
  max-width: 350px;
  z-index: 9999;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
  transform: translateY(120%);
  transition: var(--transition-md);
}

.newsletter-popup.show {
  transform: translateY(0);
}

.newsletter-popup .popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.newsletter-popup h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.newsletter-popup p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.newsletter-popup .popup-form {
  display: flex;
  gap: 10px;
}

.newsletter-popup .popup-form input {
  flex: 1;
  padding: 10px 15px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}

.newsletter-popup .popup-form button {
  padding: 10px 20px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 35px;
  text-align: center;
  transition: var(--transition-md);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.testimonial-card .testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-primary);
}

.testimonial-card .testimonial-text {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.8;
}

.testimonial-card .testimonial-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.testimonial-card .testimonial-role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

/* ===== EVENT CARDS ===== */
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-md);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent);
}

.event-card .event-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--dark-bg));
  position: relative;
}

.event-card .event-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-align: center;
  font-family: var(--font-primary);
}

.event-card .event-date .day {
  font-size: 1.3rem;
  display: block;
  line-height: 1;
}

.event-card .event-date .month {
  font-size: 0.75rem;
  text-transform: uppercase;
}

.event-card .event-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card .event-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.event-card .event-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 15px;
}

.event-card .event-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.event-card .event-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== ACHIEVEMENT BADGE ===== */
.achievement-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  margin: 0 auto 15px;
  box-shadow: 0 10px 30px rgba(25,165,139,0.3);
}

/* ===== BLOG/NEWS CARD ===== */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-md);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent);
}

.news-card .news-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  position: relative;
}

.news-card .news-category {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-primary);
}

.news-card .news-body {
  padding: 25px;
}

.news-card .news-body .news-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
}

.news-card .news-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.news-card .news-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.news-card .news-body .news-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ===== DEPARTMENT CARD ===== */
.dept-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 35px;
  text-align: center;
  transition: var(--transition-md);
  height: 100%;
}

.dept-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.dept-card .dept-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

.dept-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.dept-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.dept-card .dept-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.dept-card .dept-skills span {
  padding: 4px 12px;
  background: rgba(25,165,139,0.1);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* ===== PAGE HEADER OVERRIDES ===== */
.page-header {
  position: relative;
}

.page-header .page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 50%, rgba(25,165,139,0.15), transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(12,95,84,0.1), transparent 60%);
  pointer-events: none;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== LAZY LOAD ===== */
.lazy {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lazy.loaded {
  opacity: 1;
}

/* ===== SWIPER CUSTOMIZATION ===== */
.swiper-pob .swiper-slide {
  height: auto;
}

/* Search toggle styled like theme/lang toggles */
.search-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1.1rem;
}
.search-toggle:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ===== TA'TIL (تعطيل) LOCK TOGGLE ===== */
.taatil-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1.1rem;
}
.taatil-toggle:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.taatil-toggle.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(15, 122, 106, 0.4);
}

/* Locked navbar (ta'til enabled) - always visible, never hides on scroll */
.navbar-pob.navbar-locked {
  transform: translateY(0) !important;
  transition: none !important;
}

/* Navbar link icons */
.navbar-pob .nav-link i {
  margin-right: 6px;
  font-size: 0.85rem;
}
/* RTL: icons should appear on the opposite side of the text */
[dir="rtl"] .navbar-pob .nav-link i {
  margin-right: 0;
  margin-left: 6px;
}

/* ============================================================ */
/*  POB - ABOUT SECTION SLIDER                                  */
/*  Lightweight auto-fading carousel with Ken Burns effect      */
/* ============================================================ */
.pob-slider {
  position: relative;
  overflow: hidden;
}

.pob-slider .pob-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.pob-slider .pob-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.pob-slider .pob-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 7s ease-out;
}

.pob-slider .pob-slide.active img {
  transform: scale(1.1);
}

/* Overlay (keeps original radial gradient look) */
.pob-slider .pob-slider-overlay {
  z-index: 2;
  pointer-events: none;
}

/* Navigation arrows (appear on hover) */
.pob-slider .pob-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(4, 31, 28, 0.55);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease, background 0.35s ease, transform 0.35s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pob-slider:hover .pob-slider-arrow,
.pob-slider:focus-within .pob-slider-arrow {
  opacity: 1;
}

.pob-slider .pob-slider-arrow.prev { left: 15px; }
.pob-slider .pob-slider-arrow.next { right: 15px; }

.pob-slider .pob-slider-arrow:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.08);
}

/* Pagination dots */
.pob-slider .pob-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.pob-slider .pob-slider-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.pob-slider .pob-slider-dot.active {
  background: var(--accent);
  width: 26px;
  border-radius: 5px;
}

/* ============================================================ */
/*  POB - GALLERY SLIDER                                        */
/*  Full-width auto-advancing gallery slideshow with counter    */
/* ============================================================ */

/* Gallery slider container */
.gallery-slider {
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
}

.gallery-slider .pob-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Counter badge (e.g. "3 / 9") */
.pob-slider-counter {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  min-width: 64px;
  padding: 8px 14px;
  background: rgba(4, 31, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* Mobile: smaller counter, taller-ish slider handled by inline height */
@media (max-width: 767px) {
  .pob-slider-counter {
    top: 12px;
    right: 12px;
    min-width: 52px;
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}
