/* Unique Hero for Contact */
.hero-contact {
    height: 70vh;
    min-height: 600px;
    background: linear-gradient(135deg, rgba(108, 74, 182, 0.85), rgba(90, 58, 158, 0.85)),
        url('https://images.unsplash.com/photo-1521791055366-0d553872125f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 80px;
    overflow: hidden;
}

/* Contact Section Container */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.dark-mode .contact-section {
    background-color: var(--light-color);
}

/* Contact Grid Layout */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 991.98px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Contact Form */
.contact-form-container {
    background-color: var(--white-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .contact-form-container {
    background-color: var(--light-color);
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-form h3 {
    font-size: 1.75rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.dark-mode .contact-form h3 {
    color: var(--primary-light);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: var(--black-color);
}

.dark-mode .form-label {
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid rgba(108, 74, 182, 0.2);
    transition: var(--transition);
    background-color: var(--white-color);
    color: var(--black-color);
}

.dark-mode .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--dark-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 74, 182, 0.1);
    outline: none;
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

/* Contact Info */
.con-contact-info-container {
    background-color: var(--white-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .con-contact-info-container {
    background-color: var(--light-color);
    border-color: rgba(255, 255, 255, 0.1);
}

.con-contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.con-contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.dark-mode .con-contact-info h3 {
    color: var(--primary-light);
}

.con-contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 12px;
    transition: var(--transition);
    background-color: rgba(108, 74, 182, 0.03);
}

.dark-mode .con-contact-method {
    background-color: rgba(108, 74, 182, 0.1);
}

.con-contact-method:hover {
    background-color: rgba(108, 74, 182, 0.08);
}

.con-contact-icon {
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-method:hover .con-contact-icon {
    transform: rotate(5deg) scale(1.1);
}

.con-contact-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--black-color);
}

.dark-mode .con-contact-content h4 {
    color: var(--dark-color);
}

.con-contact-content p,
.con-contact-content a {
    color: var(--gray-color);
    margin-bottom: 0;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.7;
}

.dark-mode .con-contact-content p,
.dark-mode .con-contact-content a {
    color: rgba(255, 255, 255, 0.7);
}

.con-contact-content a:hover {
    color: var(--primary-color);
}

/* footer contact-icon */
/* Footer Styles */
.footer {
    background-color: #1a1a2e; /* Fixed dark color */
    color: #ffffff; /* Fixed white text */
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
  }
  
  .footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80")
      center/cover;
    opacity: 0.05;
    z-index: 0;
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
  }
  
  .footer-about {
    max-width: 300px;
  }
  
  .footer-logo {
    height: 40px;
    margin-bottom: 20px;
  }
  
  .footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.6;
  }
  
  .footer-social {
    display: flex;
    gap: 15px;
  }
  
  .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--dark-color) !important;
    transition: all 0.3s ease;
  }
  
  .footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
  }
  
  .footer-heading {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: #ffffff !important;
  }
  
  .footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
  }
  
  .footer-menu {
    list-style: none;
    padding: 0;
  }
  
  .footer-menu li {
    margin-bottom: 12px;
  }
  
  .footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    text-decoration: none;
  }
  
  .footer-menu a::before {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
  }
  
  .footer-menu a:hover {
    color: var(--white-color);
    transform: translateX(5px);
  }
  
  .footer-menu a:hover::before {
    width: 100%;
  }
  
  .con-contact-info {
    list-style: none;
    padding: 0;
  }
  
  .contact-info li {
    display: flex;
    align-items: flex-start;
    /* margin-bottom: 0px; */
  }
  
  .contact-icon {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 3px;
    font-size: 16px;
  }
  
  .contact-info span {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    /* margin-bottom: 0px; */
  }
  
  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
  }
  
  .copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .footer-legal {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all 0.3s ease;
  }
  
  .footer-legal a:hover {
    color: var(--primary-color);
  }
  
  .legal-separator {
    color: rgba(255, 255, 255, 0.3);
  }
  
  .footer-prayer {
    position: absolute;
    bottom: -20px;
    right: -20px;
    opacity: 0.1;
    z-index: 0;
  }
  
  .footer-prayer img {
    width: 150px;
    height: auto;
  }
  
  /* Dark Mode Adjustments */
  .dark-mode .footer {
    background-color: #1a1a2e !important; /* Force dark background */
    color: #ffffff !important; /* Force white text */
  }
  
  .dark-mode .footer-description,
  .dark-mode .footer-menu a,
  .dark-mode .contact-info span,
  .dark-mode .copyright,
  .dark-mode .footer-legal a {
    color: rgba(
      255,
      255,
      255,
      0.7
    ) !important; /* Force light text with opacity */
  }
  
  .dark-mode .footer-menu a:hover,
  .dark-mode .footer-legal a:hover {
    color: #ffffff !important; /* Force white text on hover */
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .footer-grid {
      grid-template-columns: 1fr;
      gap: 30px;
    }
  
    .footer-about {
      max-width: 100%;
    }
  
    .footer-heading {
      margin-bottom: 15px;
    }
  
    .footer-bottom {
      flex-direction: column;
      text-align: center;
    }
  
    .footer-legal {
      margin-top: 10px;
    }
  
    .footer-prayer {
      display: none;
    }
  }
  
  @media (max-width: 480px) {
    .footer {
      padding: 40px 0 20px;
    }
  
    .footer-legal {
      flex-direction: column;
      gap: 8px;
    }
  
    .legal-separator {
      display: none;
    }
  }
  

/* Map */
.map-container {
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 80px;
    border: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .map-container {
    border-color: rgba(255, 255, 255, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Staff Contacts */
.staff-section {
    margin-bottom: 80px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.staff-card {
    background-color: var(--white-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .staff-card {
    background-color: var(--light-color);
    border-color: rgba(255, 255, 255, 0.1);
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.staff-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.staff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.staff-card:hover .staff-image img {
    transform: scale(1.05);
}

.staff-details {
    padding: 25px;
    text-align: center;
}

.staff-name {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--black-color);
}

.dark-mode .staff-name {
    color: var(--dark-color);
}

.staff-position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 1rem;
}

.staff-bio {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.dark-mode .staff-bio {
    color: rgba(255, 255, 255, 0.7);
}

.staff-contact {
    color: var(--gray-color);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dark-mode .staff-contact {
    color: rgba(255, 255, 255, 0.6);
}

.staff-contact a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.dark-mode .staff-contact a {
    color: var(--primary-light);
}

.staff-contact a:hover {
    color: var(--primary-dark);
}

/* Hours */
.hours-container {
    background-color: var(--white-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 80px;
    border: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .hours-container {
    background-color: var(--light-color);
    border-color: rgba(255, 255, 255, 0.1);
}

.hours-header {
    margin-bottom: 30px;
}

.hours-title {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.dark-mode .hours-title {
    color: var(--primary-light);
}

.hours-description {
    color: var(--gray-color);
    max-width: 700px;
}

.dark-mode .hours-description {
    color: rgba(255, 255, 255, 0.7);
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table tr {
    border-bottom: 1px solid rgba(108, 74, 182, 0.1);
}

.dark-mode .hours-table tr {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.hours-table tr:last-child {
    border-bottom: none;
}

.hours-table th,
.hours-table td {
    padding: 15px;
    text-align: left;
}

.hours-table th {
    font-weight: 600;
    color: var(--black-color);
    width: 30%;
}

.dark-mode .hours-table th {
    color: var(--dark-color);
}

.hours-table td {
    color: var(--gray-color);
    font-weight: 500;
}

.dark-mode .hours-table td {
    color: rgba(255, 255, 255, 0.7);
}

.highlight-row {
    background-color: rgba(248, 180, 0, 0.1);
}

.dark-mode .highlight-row {
    background-color: rgba(248, 180, 0, 0.05);
}

/* Ad Space */
.ad-space {
    background-color: rgba(248, 180, 0, 0.1);
    border: 1px dashed var(--secondary-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 60px 0;
    color: var(--gray-color);
}

.dark-mode .ad-space {
    background-color: rgba(248, 180, 0, 0.05);
    border-color: var(--secondary-dark);
    color: rgba(255, 255, 255, 0.6);
}

.ad-space-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--black-color);
}

.dark-mode .ad-space-title {
    color: var(--dark-color);
}

.ad-space-text {
    max-width: 700px;
    margin: 0 auto 20px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .staff-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .hours-container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .hero-contact {
        height: 50vh;
        min-height: 400px;
        margin-bottom: 50px;
    }
    
    .contact-form-container,
    .contact-info-container {
        padding: 30px;
    }
    
    .map-container {
        height: 400px;
    }
    
    .staff-image {
        height: 240px;
    }
}

@media (max-width: 576px) {
    .hero-contact {
        height: 40vh;
        min-height: 300px;
    }
    
    .contact-form-container,
    .contact-info-container {
        padding: 25px;
    }
    
    .contact-method {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .map-container {
        height: 350px;
    }
    
    .staff-grid {
        grid-template-columns: 1fr;
    }
    
    .hours-table th,
    .hours-table td {
        padding: 12px 10px;
    }
    
    .ad-space {
        padding: 30px;
    }
}


/* Footer - Mobile */
@media (max-width: 767.98px) {
    .footer {
      padding: 40px 0 20px;
      text-align: center;
    }
    
    .footer-grid {
      grid-template-columns: 1fr;
      gap: 30px;
    }
    
    .footer-about {
      max-width: 100%;
    }
    
    .footer-social {
      justify-content: center;
    }
    
    .footer-menu {
      margin-bottom: 20px;
    }
    
    .footer-menu li {
      margin-bottom: 8px;
    }
    
    .contact-info li {
      justify-content: center;
      text-align: center;
    }
    
    .footer-bottom {
      padding-top: 20px;
      margin-top: 30px;
    }
    
    .footer-legal {
      flex-direction: column;
      gap: 8px;
    }
    
    .legal-separator {
      display: none;
    }
  }
  
  /* Theme Toggle - Mobile */
  @media (max-width: 767.98px) {
    .theme-toggle {
      bottom: 20px;
      right: 20px;
    }
    
    .btn-theme {
      width: 45px;
      height: 45px;
      font-size: 18px;
    }
    
    .back-to-top {
      width: 45px;
      height: 45px;
      font-size: 18px;
    }
  }
  

  /* ============================================= */
/* MOBILE RESPONSIVE STYLES (0-767.98px) */
/* ============================================= */
@media (max-width: 767.98px) {
    /* Contact Hero Section */
    .hero-contact {
      height: 50vh !important;
      min-height: 400px !important;
      margin-bottom: 40px;
      background-attachment: scroll !important;
      background-position: center center !important;
    }
  
    /* Contact Section Container */
    .contact-section {
      padding: 50px 0;
    }
  
    /* Contact Grid Layout */
    .contact-container {
      grid-template-columns: 1fr;
      gap: 30px;
      margin-bottom: 40px;
    }
  
    /* Contact Form */
    .contact-form-container {
      padding: 25px;
      margin-bottom: 30px;
    }
  
    .contact-form h3 {
      font-size: 1.5rem;
      margin-bottom: 20px;
      padding-bottom: 10px;
    }
  
    .form-group {
      margin-bottom: 20px;
    }
  
    .form-control {
      padding: 12px 15px;
      font-size: 15px;
    }
  
    textarea.form-control {
      min-height: 150px;
    }
  
    /* Contact Info */
    .contact-info-container {
      padding: 25px;
    }
  
    .contact-info h3 {
      font-size: 1.5rem;
      margin-bottom: 20px;
      padding-bottom: 10px;
    }
  
    .contact-method {
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 20px;
      margin-bottom: 20px;
    }
  
    .contact-icon {
      margin-right: 0;
      margin-bottom: 15px;
      width: 50px;
      height: 50px;
      font-size: 20px;
    }
  
    /* Map */
    .map-container {
      height: 300px;
      margin-bottom: 40px;
      border-radius: 8px;
    }
  
    /* Staff Contacts */
    .staff-section {
      margin-bottom: 40px;
    }
  
    .staff-grid {
      grid-template-columns: 1fr;
      gap: 25px;
      margin-top: 30px;
    }
  
    .staff-image {
      height: 250px;
    }
  
    .staff-details {
      padding: 20px;
    }
  
    .staff-name {
      font-size: 1.3rem;
    }
  
    .staff-contact {
      align-items: center;
    }
  
    /* Hours */
    .hours-container {
      padding: 25px;
      margin-bottom: 40px;
    }
  
    .hours-title {
      font-size: 1.5rem;
      margin-bottom: 12px;
    }
  
    .hours-table {
      display: block;
      overflow-x: auto;
      white-space: nowrap;
    }
  
    .hours-table th,
    .hours-table td {
      padding: 12px 15px;
      min-width: 120px;
    }
  
    /* Ad Space */
    .ad-space {
      padding: 25px 20px;
      margin: 40px 0;
    }
  
    .ad-space-title {
      font-size: 1.3rem;
      margin-bottom: 12px;
    }
  
    /* Footer */
    .footer {
      padding: 40px 0 20px;
    }
  
    .footer-grid {
      grid-template-columns: 1fr;
      gap: 30px;
    }
  
    .footer-about {
      max-width: 100%;
      text-align: center;
    }
  
    .footer-social {
      justify-content: center;
    }
  
    .footer-menu {
      text-align: center;
    }
  
    .footer-heading::after {
      left: 50%;
      transform: translateX(-50%);
    }
  
    .con-contact-info {
      text-align: center;
    }
  
    .con-contact-info li {
      justify-content: center;
    }
  
    /* Theme Toggle */
    .theme-toggle {
      bottom: 20px;
      right: 20px;
    }
  
    .btn-theme,
    .back-to-top {
      width: 45px;
      height: 45px;
      font-size: 18px;
    }
  }
  
  /* ============================================= */
  /* SMALL MOBILE DEVICES (0-575.98px) */
  /* ============================================= */
  @media (max-width: 575.98px) {
    /* Contact Hero Section */
    .hero-contact {
      height: 40vh !important;
      min-height: 350px !important;
    }
  
    /* Contact Form */
    .contact-form h3,
    .con-contact-info h3,
    .hours-title {
      font-size: 1.4rem;
    }
  
    /* Staff Cards */
    .staff-image {
      height: 220px;
    }
  
    /* Form Inputs */
    .form-control {
      font-size: 16px; /* Prevent iOS zoom */
    }
  }
  
  /* ============================================= */
  /* ORIENTATION SPECIFIC STYLES */
  /* ============================================= */
  @media (max-width: 767.98px) and (orientation: landscape) {
    .hero-contact {
      height: 60vh !important;
      min-height: 350px !important;
    }
    
    .map-container {
      height: 250px;
    }
  }
  
  /* ============================================= */
  /* TOUCH DEVICE SPECIFIC STYLES */
  /* ============================================= */
  @media (hover: none) and (pointer: coarse) {
    /* Enhance touch targets */
    .form-control,
    .con-contact-method,
    .staff-card {
      min-height: 44px;
    }
  
    /* Disable hover effects on touch devices */
    .contact-method:hover,
    .staff-card:hover {
      transform: none !important;
      box-shadow: var(--shadow-md) !important;
    }
  
    .contact-method:hover .contact-icon,
    .staff-card:hover .staff-image img {
      transform: none !important;
    }
  }
  
  /* ============================================= */
  /* UTILITY CLASSES FOR MOBILE */
  /* ============================================= */
  @media (max-width: 767.98px) {
    .mobile-stack {
      flex-direction: column !important;
    }
    
    .mobile-full-width {
      width: 100% !important;
    }
    
    .mobile-text-center {
      text-align: center !important;
    }
    
    .mobile-mt-20 {
      margin-top: 20px !important;
    }
    
    .mobile-px-15 {
      padding-left: 15px !important;
      padding-right: 15px !important;
    }
    
    .mobile-hidden {
      display: none !important;
    }


    @media (max-width: 767.98px) {
      .hero-contact {
        height: auto;
        min-height: 10vh;
        padding: 80px 0 60px;
        text-align: center;
        background-attachment: scroll !important;
      }
    
      .hero-content {
        max-width: 800px;
        padding: 0 20px;
        z-index: 2;
      }

      .hero-title{
        margin-top: 40px;
        font-weight: 700;
        font-size: 1.8rem;
      }
    
      .hero-blog-content h1 {
        /* font-family: 'Playfair Display', serif;
        font-weight: 700;
        font-size: 1.8rem; */
        margin-top: 30px;
        /* margin-bottom: 15px;
        text-shadow: 0 2px 5px rgba(0,0,0,0.3); */
      }
    
      .dark-mode .hero-blog-content h1 {
        color: var(--white-color);
      }
    }
    
  }

  
  