/*********************************
 PART 1: Bootstrap-like Layout
*********************************/

.about-link {
  color: #ffffff;
}

.about-link a {
  color: #ffffff;
}

.about-link:hover {
  font-size: 120%;
}

/*********************************
 PART 2: Header & Navigation
*********************************/

/* Site Name - Desktop */
.pkp_site_name {
  font-size: 48px !important;
  padding: 24px 0 !important;
  margin-bottom: 15px !important;
  display: block !important;
  line-height: 1.2;
}

.pkp_site_name a {
  font-size: inherit;
  color: #ffffff !important;
  text-decoration: none;
  display: inline-block !important;
}

/* Navigation Background */
.pkp_site_nav_menu,
header.pkp_site_nav_menu {
  background: #4B0082;
  width: 100% !important;
}

/* Mobile Toggle Button */
.pkp_site_nav_toggle {
  z-index: 9999;
  position: relative;
  cursor: pointer;
}

/* Navigation Menu */
.pkp_navigation_primary {
  background: #4B0082;
}

.pkp_navigation_primary a:hover {
  background-color: #3C0068;
  color: #ffffff;
}

/*********************************
 PART 6: Mobile Responsive Styles
*********************************/

@media (max-width: 768px) {
  /* Site Name - Mobile */
  .pkp_site_name {
    font-size: 22px;
    padding: 10px 0;
    text-align: center;
    line-height: 1.3;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 8px 0 !important;
    white-space: normal !important;
  }

  .pkp_site_name a {
    font-size: inherit;
    display: block;
    text-align: center;
    color: #ffffff;
  }

  /* Header adjustments */
  .pkp_site_header {
    padding: 10px 0;
    background: #4B0082;
    overflow: visible;
  }

  .pkp_site_header .pkp_site_branding {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Hide desktop site name in favor of mobile title */
  .pkp_site_header_title {
    display: block;
    visibility: visible;
    opacity: 1;
    text-align: center;
    padding: 8px 12px;
  }

  .pkp_site_header_title h1,
  .pkp_site_header_title h2 {
    display: block;
    font-size: 20px;
    line-height: 1.3;
    margin: 0;
    color: #ffffff;
    white-space: normal;
  }

  /* Navigation - Mobile */

  .pkp_site_nav_menu {
    background: #4B0082;
  }

  .pkp_navigation_primary ul,
  .pkp_navigation_user ul {
    display: block;
  }

  .pkp_navigation_primary li,
  .pkp_navigation_user li {
    width: 100%;
  }

  .pkp_navigation_primary a,
  .pkp_navigation_user a {
    display: block;
    padding: 12px 16px;
  }

  /* Hero Section - Mobile */
  .hero {
    padding: 60px 15px;
    background-attachment: scroll;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 16px;
  }

  /* Footer - Mobile */
  .custom-modern-footer {
    padding: 40px 0 20px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-section h3 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .pkp_site_name {
    font-size: 22px;
    padding: 5px 10px;
  }

  .hero {
    padding: 40px 15px;
    min-height: 250px;
  }

  .hero h1 {
    font-size: 28px;
  }
}

/*********************************
 PART 4: Hero Section
*********************************/
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("/public/site/images/hero.jpg"), #3C0068;
  background-blend-mode: overlay, normal;
  padding: 100px 20px;
  color: #fff;
  text-align: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero h1 {
  font-size: 42px;
}

/*********************************
 PART 5: Modern Footer
*********************************/

/* Hide default footer */
.pkp_brand_footer {
  display: none;
}

/* Main footer structure */
.pkp_structure_footer {
  background: #4B0082;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* Remove any grey backgrounds */
.pkp_structure_footer_wrapper,
footer[role="contentinfo"] {
  background: #4B0082;
  padding: 0;
  margin: 0;
}

/* Custom footer */
.custom-modern-footer {
  background: #4B0082;
  color: #ffffff;
  padding: 50px 0 20px 0;
  margin-top: 0;
  width: 100%;
  font-family: "Poppins", Arial, sans-serif;
}

/* Footer Container */
.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* Footer Sections */
.footer-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
  display: inline-block;
  padding: 2px 0;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(5px);
  text-decoration: underline;
}

/* Contact Info */
.footer-contact p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-contact a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Social Media */
.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  color: #ffffff;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
  color: #ffffff;
}

/* Fallback for very stubborn elements */
body > footer,
body > .pkp_page_footer {
  background: #4B0082;
  color: #ffffff;
}

/* Fix row display (was incorrectly set to 'block' in your original) */
.row {
  display: flex;
  flex-wrap: wrap;
}
