/* Banner Starts  */
.header-container {
  font-family: "Traditional Arabic", "Arial", sans-serif;
  width: 100%;
  max-width: 900px;
  padding: 60px 40px;
  text-align: center;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
}

/* Demo content to show scrolling */
 .content {
  padding: 40px;
  max-width: 900px;
  width: 100%;
}

.content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #333;
}

.main-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.emblem {
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
}

.emblem-left {
  background: linear-gradient(135deg, #6b4fa3 0%, #8b6bb8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(107, 79, 163, 0.3);
}

.emblem-left::before {
  content: "⚜";
  font-size: 80px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.emblem-right {
  background: linear-gradient(135deg, #d4a528 0%, #f4c542 100%);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(212, 165, 40, 0.3);
}

.emblem-right::before {
  content: "⚜";
  font-size: 70px;
  color: #6b4fa3;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: -10px;
}

.text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.title-arabic {
  font-size: 32px;
  font-weight: bold;
  color: #6b4fa3;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.subtitle-arabic {
  font-size: 38px;
  font-weight: bold;
  color: #d4a528;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.decorative-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, #d4a528, transparent);
  margin-top: 40px;
}

@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    gap: 30px;
  }

  .emblem {
    width: 120px;
    height: 120px;
  }

  .title-arabic {
    font-size: 24px;
  }

  .subtitle-arabic {
    font-size: 28px;
  }
} 
/* Banner Ends  */

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  flex: 1;
  padding: 40px 0;
}

/* Footer Styles */
/* footer {
  background: linear-gradient(135deg, var(--primary), var(--secondary));

  color: #fff;
  padding: 40px 0px 0px 0px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.footer-logo {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

.footer-logo.left {
  order: 1;
}

.footer-logo.right {
  order: 3;
}

.logo-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.logo-img:hover {
  transform: translateY(-5px);
}

.logo-img img {
  width: 80%;
  height: auto;
}

.logo-text {
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
}

.footer-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  order: 2;
}

.footer-section {
  flex: 1;
  padding: 0 15px;
}

.footer-section h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background-color: #38b2ac;
}

.footer-section p {
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.footer-section.links ul {
  list-style: none;
}

.footer-section.links li {
  margin-bottom: 10px;
}

.footer-section.links a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.footer-section.links a:hover {
  color: #38b2ac;
  padding-right: 5px;
}

.footer-section.links i {
  margin-left: 8px;
  font-size: 0.8rem;
}

.footer-section.contact .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.footer-section.contact i {
  margin-left: 10px;
  margin-top: 5px;
  color: #38b2ac;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  font-weight: bolder;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f59e0b;
}

.social-icons {
  display: flex;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background-color: #fff;
  border-radius: 50%;
  margin: 0 5px;
  color: #7c3aed;
  text-decoration: none;
  transition: all 0.3s;
  margin-bottom: 10px !important;
  margin-left: 10px;
}

.social-icons a:hover {
  background-color: #7c3aed;
  transform: translateY(-3px);
}

@media (max-width: 1024px) {
  .footer-main {
    flex-direction: column;
  }

  .footer-logo {
    flex: 1;
    margin-bottom: 30px;
  }

  .footer-content {
    width: 100%;
    order: 2;
  }

  .footer-logo.left,
  .footer-logo.right {
    order: 1;
  }
} */

/* @media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }

  .footer-section {
    margin-bottom: 30px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .social-icons {
    margin-top: 15px;
  }
} */

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #73418a;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #faca44;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #fff;
}
@media (max-width: 480px) {
  body::-webkit-scrollbar {
    display: none;
  }
   .hide-on-mobile {
    display: none;
  }
}
/*---------------------- Test----------------------------- */

/* Tablet Styles */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 1.5rem;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .stats-section,
  .features-section,
  .latest-activities,
  .values-section,
  .video-section,
  .timeline-section,
  .mission-vision-section,
  .goals-section,
  .leadership-intro,
  .achievements-section {
    padding: 4rem 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .activities-slider-container {
    padding: 0 50px;
  }

  .activity-slide {
    min-width: calc((100% - 1.5rem) / 2);
  }

  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .video-features {
    grid-template-columns: 1fr;
  }

  .timeline-left .timeline-content,
  .timeline-right .timeline-content {
    margin: 0;
    text-align: right;
  }

  .mission-vision-grid {
    grid-template-columns: 1fr;
  }

  .goals-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .leadership-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .achievements-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    height: 300px;
  }

  .library-container {
    grid-template-columns: 1fr;
  }

  .library-sidebar {
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .faq-grid {
    gap: 1rem;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* .logo {
      font-size: 0.65rem;
  } */

  .nav-menu {
    position: fixed;
    right: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--card-bg);
    width: 100%;
    padding: 2rem;
    transition: 0.3s;
    align-items: flex-start;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0.5rem;
    margin-right: 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  /* Hero Slider - Keep Original */
  .hero-slider {
    height: auto;
    min-height: 100vh;
    padding-top: 30px;
  }

  .slide {
    height: auto;
    min-height: 100vh;
    padding: 1rem 0;
  }

  .slide-full-image {
    padding: 1.5rem 0.5rem;
    min-height: calc(100vh - 70px);
  }

  .slide-full-content {
    padding: 1rem 0.5rem;
    max-width: 100%;
  }

  .slide-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .slide-content {
    text-align: center;
    padding: 1rem;
  }

  .slide-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .slide-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .slide-btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
  }

  .slide-full-content h1 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
  }

  .slide-logos-inline {
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }

  .slide-inline-logo {
    width: 45px;
    height: 45px;
  }

  .slide-subtitle-large {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .slide-divider {
    width: 80px;
    margin: 0.8rem auto 1rem;
  }

  .slide-icon-large {
    font-size: 3.5rem;
    margin: 0.8rem 0;
  }

  .slide-description {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    padding: 0 0.5rem;
    line-height: 1.6;
  }

  .slide-features-mini {
    gap: 0.8rem;
    margin-bottom: 1.2rem;
  }

  .slide-mini-feature {
    padding: 0.8rem 1rem;
    min-width: 100px;
  }

  .slide-mini-icon {
    font-size: 1.8rem;
  }

  .slide-mini-feature span {
    font-size: 0.8rem;
  }

  .slide-stats {
    gap: 0.8rem;
    margin-bottom: 1rem;
  }

  .slide-stat-item {
    padding: 1rem 1.2rem;
    min-width: 110px;
  }

  .slide-stat-icon {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
  }

  .slide-stat-number {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
  }

  .slide-stat-label {
    font-size: 0.8rem;
  }

  .slide-actions {
    gap: 0.8rem;
    margin-top: 1rem;
  }

  .slide-motto {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
    line-height: 1.6;
  }

  .slide-full-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .scout-illustration {
    font-size: 8rem;
  }

  .slide-icon-grid {
    grid-template-columns: 1fr;
  }

  .slide-visual {
    height: 250px;
  }

  .scout-activity-showcase {
    flex-direction: column;
    gap: 1.5rem;
  }

  .activity-logo {
    width: 100px;
    height: 100px;
  }

  .activity-icon {
    font-size: 4rem;
  }

  .slider-dots {
    bottom: 1rem;
    gap: 0.6rem;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .dot.active {
    width: 30px;
  }

  /* General Responsive Styles */
  section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .section-title::after {
    width: 60px;
  }

  /* Page Banners */
  /* .page-banner {
    height: 300px;
    margin-top: 60px; 
  } */

  .page-banner-content h1 {
    font-size: 2.5rem;
  }

  .page-banner-content p {
    font-size: 1.1rem;
  }

  .page-banner-icon {
    font-size: 3.5rem;
  }

  /* Categories Grid */
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Stats Section */
  .stats-section {
    padding: 3rem 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-icon {
    font-size: 2.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.95rem;
  }

  /* Features Section */
  .features-section {
    padding: 3rem 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 2rem;
  }

  .feature-icon {
    font-size: 3rem;
  }

  .feature-card h3 {
    font-size: 1.5rem;
  }

  /* Activities Slider */
  .latest-activities {
    padding: 3rem 1rem;
  }

  .activities-slider-container {
    padding: 0 40px;
  }

  .activity-slide {
    min-width: 100%;
    height: auto;
  }

  .activity-slide-image {
    height: 220px;
  }

  .activity-slide-content {
    padding: 1.5rem;
  }

  .activity-slide-content h3 {
    font-size: 1.5rem;
  }

  .slider-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  /* Values Section */
  .values-section {
    padding: 3rem 1rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .value-card {
    padding: 1.5rem;
  }

  .value-emoji {
    font-size: 2.5rem;
  }

  .value-card h3 {
    font-size: 1.3rem;
  }

  /* Video Section */
  .video-section {
    padding: 3rem 1rem;
  }

  .video-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .video-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .video-feature {
    padding: 2rem;
  }

  .video-feature-icon {
    font-size: 3rem;
  }

  /* CTA Section */
  .cta-section {
    padding: 3rem 1rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  /* Timeline */
  .timeline-section {
    padding: 3rem 1rem;
  }

  .timeline::before {
    right: auto;
    left: 20px;
  }

  .timeline-left .timeline-content,
  .timeline-right .timeline-content {
    margin-left: 60px;
    margin-right: 0;
    text-align: right;
  }

  .timeline-year {
    font-size: 1.5rem;
  }

  .timeline-content h3 {
    font-size: 1.3rem;
  }

  /* Mission & Vision */
  .mission-vision-section {
    padding: 3rem 1rem;
  }

  .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mission-card,
  .vision-card {
    padding: 2rem;
  }

  .mv-icon {
    font-size: 3rem;
  }

  .mission-card h2,
  .vision-card h2 {
    font-size: 1.7rem;
  }

  /* Goals Section */
  .goals-section {
    padding: 3rem 1rem;
  }

  .goals-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .goal-item {
    padding: 2rem;
  }

  .goal-number {
    font-size: 2.5rem;
  }

  .goal-icon {
    font-size: 3rem;
  }

  .goal-item h3 {
    font-size: 1.3rem;
  }

  /* Leadership */
  .leadership-intro {
    padding: 3rem 1rem;
  }

  .leadership-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .leadership-text h2 {
    font-size: 2rem;
  }

  .leadership-stats {
    grid-template-columns: 1fr;
  }

  .leader-stat-number {
    font-size: 2.5rem;
  }

  /* Achievements */
  .achievements-section {
    padding: 3rem 1rem;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .achievement-card {
    padding: 2rem;
  }

  .achievement-icon {
    font-size: 3rem;
  }

  /* About Page */
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  .about-text p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .about-image {
    height: 250px;
    font-size: 8rem;
  }

  /* Fix About Page Button */
  .leadership-text button {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }

  /* Leaders Page */
  .filter-container {
    flex-direction: column;
    width: 100%;
  }

  .filter-btn {
    width: 100%;
  }

  #dateRangeFilter,
  #yearFilter,
  #publicYearFilter,
  #religiousYearFilter {
    width: 100%;
  }

  .leaders-grid {
    grid-template-columns: 1fr;
  }

  .leader-image {
    height: 180px;
  }

  .leader-image img {
    width: 120px;
    height: 120px;
  }

  .leader-content {
    padding: 1.5rem;
  }

  .leader-content h3 {
    font-size: 1.3rem;
  }

  /* Public & Religious Occasions Pages - Fixed Layout */
  #public-occasions .library-container,
  #religious-occasions .library-container {
    display: block;
  }

  #public-occasions .library-sidebar,
  #religious-occasions .library-sidebar {
    width: 100%;
    margin-bottom: 2rem;
    padding: 1.5rem;
  }

  #public-occasions .library-sidebar h3,
  #religious-occasions .library-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  #public-occasions .sidebar-item,
  #religious-occasions .sidebar-item {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }

  #public-occasions select,
  #religious-occasions select {
    width: 100%;
    padding: 0.8rem;
    font-size: 0.95rem;
    margin-top: 0.5rem;
  }

  /* Fix occasions grids */
  #publicOccasionsGrid,
  #religiousOccasionsGrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
  }

  #publicOccasionsGrid .activity-card,
  #religiousOccasionsGrid .activity-card {
    width: 100%;
    margin: 0;
  }

  .activity-card {
    margin: 0;
  }

  .activity-image {
    height: 220px;
  }

  .activity-content {
    padding: 1.2rem;
  }

  .activity-content h3 {
    font-size: 1.2rem;
  }

  /* Activity Detail */
  .detail-hero {
    height: 350px;
    margin-bottom: 1.5rem;
  }

  .detail-hero-content {
    bottom: 2rem;
    right: 1.5rem;
    left: 1.5rem;
  }

  .detail-hero-content h1 {
    font-size: 2rem;
  }

  .detail-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .detail-info-card {
    padding: 1.5rem 1rem;
  }

  .detail-info-card .icon {
    font-size: 2rem;
  }

  .detail-info-card .value {
    font-size: 1.1rem;
  }

  .detail-description {
    padding: 1.5rem;
  }

  .detail-description h2 {
    font-size: 1.7rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item {
    height: 220px;
  }

  /* Library Page */
  .library-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .library-sidebar {
    position: static;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }

  .library-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .sidebar-item {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }

  .library-content {
    padding: 1.5rem;
  }

  .library-content h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
  }

  .library-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.8rem;
  }

  .library-content p,
  .library-content li {
    font-size: 1rem;
    line-height: 1.8;
  }

  .library-content ul {
    padding-right: 1.5rem;
    margin: 1rem 0;
  }

  .library-content li {
    margin-bottom: 0.8rem;
    padding-right: 1.2rem;
  }

  .emblem-container {
    padding: 2rem 1rem;
    margin: 1.5rem 0;
  }

  .emblem-icon {
    font-size: 6rem;
    margin: 1.5rem 0;
  }

  .emblem-container h3 {
    font-size: 1.4rem;
  }

  /* Contact Page */
  .contact-info-section {
    padding: 2rem 1rem;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-info-card {
    padding: 1.5rem;
  }

  .contact-info-icon {
    font-size: 2.5rem;
  }

  .contact-main-section {
    padding: 2rem 1rem 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }

  .contact-form-wrapper h2 {
    font-size: 1.7rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-sidebar {
    gap: 1rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-card-icon {
    font-size: 2.5rem;
  }

  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  /* FAQ Section */
  .faq-section {
    padding: 3rem 1rem;
  }

  .faq-grid {
    margin-top: 2rem;
  }

  .faq-question {
    padding: 1rem 1.5rem;
  }

  .faq-question h3 {
    font-size: 1rem;
  }

  .faq-toggle {
    font-size: 1.5rem;
  }

  .faq-answer {
    padding: 0 1.5rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 1.5rem 1rem;
  }

  /* Map Section */
  .map-section {
    padding: 3rem 1rem;
  }

  .map-placeholder {
    padding: 3rem 2rem;
  }

  .map-icon {
    font-size: 4rem;
  }

  .map-placeholder h3 {
    font-size: 1.7rem;
  }

  /* Quick Contact */
  .quick-contact-section {
    padding: 3rem 1rem;
  }

  .quick-contact-content h2 {
    font-size: 2rem;
  }

  .quick-contact-content p {
    font-size: 1rem;
  }

  .whatsapp-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  /* Footer */
  footer {
    padding: rem 1rem;
  }

  .footer-main {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-logo {
    text-align: center;
  }

  .footer-logo.left,
  .footer-logo.right {
    order: 0;
  }

  .footer-content {
    flex-direction: column;
    order: 1;
  }

  .footer-section {
    margin-bottom: 2rem;
  }

  .footer-section h3 {
    font-size: 1.3rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .logo {
    font-size: 0.55rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  section {
    padding: 2.5rem 0.8rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .page-banner {
    height: 250px;
  }

  .page-banner-content h1 {
    font-size: 2rem;
  }

  .page-banner-content p {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 1.2rem;
  }

  .activities-slider-container {
    padding: 0 30px;
  }

  .slider-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .cta-content h2 {
    font-size: 1.7rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem 1rem;
  }

  .contact-card {
    padding: 1.2rem;
  }

  .whatsapp-btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }

  .detail-hero-content h1 {
    font-size: 1.7rem;
  }

  /* About Page Small Mobile */
  .about-text h2 {
    font-size: 1.7rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .about-image {
    height: 200px;
    font-size: 6rem;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .timeline-year {
    font-size: 1.3rem;
  }

  .timeline-content h3 {
    font-size: 1.2rem;
  }

  .mission-card,
  .vision-card {
    padding: 1.5rem;
  }

  .mv-icon {
    font-size: 2.5rem;
  }

  .mission-card h2,
  .vision-card h2 {
    font-size: 1.5rem;
  }

  .goal-item {
    padding: 1.5rem;
  }

  .goal-number {
    font-size: 2rem;
    top: 0.8rem;
    right: 1rem;
  }

  .goal-icon {
    font-size: 2.5rem;
  }

  .goal-item h3 {
    font-size: 1.2rem;
  }

  .leadership-text h2 {
    font-size: 1.7rem;
  }

  .leader-stat-card {
    padding: 1.5rem;
  }

  .achievement-card {
    padding: 1.5rem;
  }

  /* Library Page Small Mobile */
  .library-sidebar {
    padding: 1.2rem;
  }

  .library-sidebar h3 {
    font-size: 1.1rem;
  }

  .sidebar-item {
    padding: 0.7rem;
    font-size: 0.9rem;
  }

  .library-content {
    padding: 1.2rem;
  }

  .library-content h2 {
    font-size: 1.7rem;
  }

  .library-content h3 {
    font-size: 1.3rem;
  }

  .library-content p,
  .library-content li {
    font-size: 0.95rem;
  }

  .library-content ul {
    padding-right: 1.2rem;
  }

  .library-content li {
    padding-right: 1rem;
  }

  .emblem-container {
    padding: 1.5rem 0.8rem;
  }

  .emblem-icon {
    font-size: 5rem;
  }

  .emblem-container h3 {
    font-size: 1.2rem;
  }

  /* Public & Religious Occasions Small Mobile */
  #public-occasions .library-sidebar,
  #religious-occasions .library-sidebar {
    padding: 1.2rem;
  }

  #public-occasions .library-sidebar h3,
  #religious-occasions .library-sidebar h3 {
    font-size: 1.1rem;
  }

  #public-occasions .sidebar-item,
  #religious-occasions .sidebar-item {
    padding: 0.7rem;
    font-size: 0.9rem;
  }

  #public-occasions select,
  #religious-occasions select {
    padding: 0.7rem;
    font-size: 0.9rem;
  }

  #publicOccasionsGrid .activity-card,
  #religiousOccasionsGrid .activity-card {
    margin-bottom: 0;
  }

  #publicOccasionsGrid .activity-image,
  #religiousOccasionsGrid .activity-image {
    height: 200px;
  }

  #publicOccasionsGrid .activity-content,
  #religiousOccasionsGrid .activity-content {
    padding: 1rem;
  }

  #publicOccasionsGrid .activity-content h3,
  #religiousOccasionsGrid .activity-content h3 {
    font-size: 1.1rem;
  }

  #publicOccasionsGrid .activity-badge,
  #religiousOccasionsGrid .activity-badge {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
  }

  /* Detail Pages Small Mobile */
  .detail-hero {
    height: 300px;
  }

  .detail-hero-content {
    bottom: 1.5rem;
    right: 1rem;
    left: 1rem;
  }

  .detail-hero-content h1 {
    font-size: 1.5rem;
  }

  .detail-hero-content .activity-badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .detail-info-card .icon {
    font-size: 1.8rem;
  }

  .detail-info-card .label {
    font-size: 0.85rem;
  }

  .detail-info-card .value {
    font-size: 1rem;
  }

  .detail-description {
    padding: 1.2rem;
  }

  .detail-description h2 {
    font-size: 1.5rem;
  }

  .detail-description p {
    font-size: 0.95rem;
  }

  .gallery-item {
    height: 200px;
  }

  .back-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
}

/*-------------------------- Test today------------------------Nov - 8  */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  flex: 1;
  padding: 40px 0;
  text-align: center;
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, #1a3a5f 0%, #2c5282 100%);
  color: #fff;
  padding: 40px 0 20px;
  /* margin-top: 50px; */
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.footer-logo {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

.footer-logo.left {
  order: 1;
}

.footer-logo.right {
  order: 3;
}

.logo-img {
  width: 150px;
  height: 150px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.logo-img:hover {
  transform: translateY(-5px);
}

.logo-img img {
  width: 80%;
  height: auto;
}

.logo-text {
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
}

.footer-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  order: 2;
}

.footer-section {
  flex: 1;
  padding: 0 15px;
}

.footer-section h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background-color: #38b2ac;
}

.footer-section p {
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.footer-section.links ul {
  list-style: none;
}

.footer-section.links li {
  margin-bottom: 10px;
}

.footer-section.links a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.footer-section.links a:hover {
  color: #38b2ac;
  padding-right: 5px;
}

.footer-section.links i {
  margin-left: 8px;
  font-size: 0.8rem;
}

.footer-section.contact .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.footer-section.contact i {
  margin-left: 10px;
  margin-top: 5px;
  color: #38b2ac;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #cbd5e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-icons {
  display: flex;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin: 0 5px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
}

.social-icons a:hover {
  background-color: #38b2ac;
  transform: translateY(-3px);
}

/* Mobile Version - Centered Layout */
@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    flex: none;
    margin-bottom: 30px;
    width: 100%;
  }

  .footer-content {
    width: 100%;
    order: 2;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .footer-logo.left,
  .footer-logo.right {
    order: 1;
  }

  .footer-section {
    width: 100%;
    max-width: 500px;
    margin-bottom: 30px;
    padding: 0;
  }

  .footer-section h3::after {
    right: 50%;
    transform: translateX(50%);
  }

  .footer-section.links a {
    justify-content: center;
  }

  .footer-section.contact .contact-item {
    justify-content: center;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .social-icons {
    margin-top: 15px;
  }

  .logo-img {
    width: 200px;
    height: 200px;
  }
}




/* --------------------------------------Last Test for responsive version  ------------------------------*/

/* Force box-sizing on all elements */
*,
*::before,
*::after {
    box-sizing: border-box;
    max-width: 100%;
}

/* Prevent horizontal scroll */
.page,
.main-wrapper,
section,
.container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* CRITICAL: Force responsive layout on problematic pages */
@media (max-width: 768px) {
    /* About Page - Force mobile layout */
    #about .about-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
        width: 100% !important;
    }

    #about .about-text,
    #about .about-image {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Library Page - Force mobile layout */
    #scout-library .library-container {
        display: block !important;
        width: 100% !important;
    }

    #scout-library .library-sidebar {
        position: static !important;
        width: 100% !important;
        margin-bottom: 1.5rem !important;
    }

    #scout-library .library-content {
        width: 100% !important;
        padding: 1rem !important;
    }

    /* Public Occasions - Force mobile layout */
    #public-occasions .library-container {
        display: block !important;
        width: 100% !important;
    }

    #public-occasions .library-sidebar {
        position: static !important;
        width: 100% !important;
        margin-bottom: 1.5rem !important;
    }

    #public-occasions #publicOccasionsGrid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    /* Religious Occasions - Force mobile layout */
    #religious-occasions .library-container {
        display: block !important;
        width: 100% !important;
    }

    #religious-occasions .library-sidebar {
        position: static !important;
        width: 100% !important;
        margin-bottom: 1.5rem !important;
    }

    #religious-occasions #religiousOccasionsGrid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    /* Force all activity cards to full width */
    .activity-card,
    #publicOccasionsGrid .activity-card,
    #religiousOccasionsGrid .activity-card,
    #scoutActivitiesGrid .activity-card,
    #generalActivitiesGrid .activity-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* Force responsive images */
    .activity-image,
    .detail-hero,
    .about-image,
    img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .activity-image {
        height: 180px !important;
    }

    /* Force text wrapping */
    h1, h2, h3, h4, h5, h6, p, span, div {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
}