/* ========== FONT DEFINITIONS ========== */
@font-face {
  font-family: 'ArabicFont';
  src: url('../images/font/ArabDances.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'HeadlineFont';
  src: url('../images/font/helvetica-rd.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'BodyFont';
  src: url('../images/font/Roboto-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}



/* Home Page Styles */
.timetable-overlap {
    margin-top: -50px;
    position: relative;
    z-index: 1000;
}

.timetable-box {
    border-radius: 15px;
    border: none;
    max-width: 800px;
    margin: 0 auto;
}

.big-div {
    padding: 60px 0;
}

.big-div h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 300;
}

.big-div p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-btn.facebook {
    background: #1877f2;
    color: white;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

.social-btn.whatsapp {
    background: #25D366;
    color: white;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

/* Card hover effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Carousel adjustments */
.carousel-item video,
.carousel-item img {
    max-height: 500px;
    object-fit: cover;
}

/* ========== GLOBAL STYLES ========== */
:root {
  --primary-color: #414d66;
  --secondary-color: #3498db;
  --accent-color: #2e7d32;
  --light-bg: #7f7991;
  --dark-text: #918d8d;
  --light-text: #1d1919;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

body {
  font-family: 'BodyFont', sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
  padding-top: 100px; /* Space for fixed navbar */
}

h1, h2, h3, h4, h5, h6, p {
  font-family: 'HeadlineFont', sans-serif;
  color: var(--primary-color);
}

.section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
}

/* ========== NAVBAR STYLES ========== */
.navbar {
  background-color: var(--light-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  font-family: 'HeadlineFont', sans-serif;
  transition: var(--transition);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-right: 0;
  padding: 5px 0;
  flex-direction: row;
}

.navbar-logo {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
  flex-shrink: 0;
}

.site-name {
  display: flex;
  flex-direction: column;
  font-family: 'ArabicFont', sans-serif;
  font-size: 2.8rem;
  font-weight: bold;
  margin-left: 0.8rem;
  color: var(--primary-color);
  line-height: 1.2;
}

.site-name-wrapper {
  display: flex;
  flex-direction: column;
}

.site-name-primary,
.site-name-secondary {
  display: block;
  font-family: 'ArabicFont', sans-serif;
  line-height: 1.2;
}

.site-name-primary {
  font-size: 2.6rem;
  font-weight: bold;
  color: var(--accent-color);
}

.site-name-secondary {
  font-size: 2.2rem;
  color: var(--primary-color);
}

.navbar-nav .nav-item {
  margin: 0 5px;
}

.nav-link {
  color: var(--primary-color) !important;
  font-weight: 600;
  padding: 0.8rem 1.2rem !important;
  position: relative;
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--secondary-color) !important;
  background-color: rgba(52, 152, 219, 0.1);
}

.nav-link.active {
  color: var(--accent-color) !important;
  font-weight: 600;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ========== HEADER/CAROUSEL STYLES ========== */
#bannerCarousel {
  margin-top: 20px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.carousel-item {
  height: 500px;
}

.carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.6);
  padding: 25px;
  border-radius: var(--border-radius);
  bottom: 30%;
  left: 10%;
  right: 10%;
  text-align: left;
}

.carousel-caption h5 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.carousel-caption p {
  font-size: 1.2rem;
  max-width: 600px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

/* ========== MAIN CONTENT STYLES ========== */
.main-content {
  padding: 40px 0;
}

.big-div {
  min-height: 500px; /* Adjust this value for your desired height */
  padding: 50px;     /* Extra padding for better spacing */
  background-image: url('../images/background.jpg'); /* Use your desired background */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: right;
  padding-top: 100px;
}

/* ========== TIMETABLE STYLES ========== */

.prayer-card {
            border-radius: 20px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            overflow: hidden;
        }
        
        .prayer-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(108, 198, 233, 0.418) !important;
        }
        
        .prayer-icon {
            filter: drop-shadow(0 4px 8px rgba(57, 145, 218, 0.418));
        }
        
        .time-display {
            text-shadow: 0 2px 4px rgba(25, 119, 173, 0.432);
        }
        
        .today-timetable {
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Ensure text is readable on light backgrounds */
        .card-body.text-dark {
            color: #333 !important;
        }
        
        .card-body.text-dark .opacity-75 {
            opacity: 0.85 !important;
            color: #ffffff !important;
        }


    
.table {
  font-size: 0.9rem;
}

.table-responsive {
  overflow-x: auto;
}

.table th,
.table td {
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.timetable-overlap {
  position: relative;
  margin-top: -250px; /* pulls it into the space between banner and welcome */
  z-index: 10;
}

.timetable-box {
  border-radius: 10px;
  background-color: #ffffff;
  margin-top: -250px;
  margin: 0 auto;
  max-width: 800px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.timetable-box:hover {
  transform: translateY(-5px);
}

.table thead th {
  background-color: var(--primary-color, #3498db);
  color: #fff;
  font-weight: 500;
  padding: 15px;
}

.table tbody td {
  padding: 12px 15px;
  vertical-align: middle;
}

.table tbody tr:nth-child(even) {
  background-color: rgba(0,0,0,0.02);
}

.table tbody tr:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

tr .text-natural {
  color: #6c757d;
  font-style: italic;
}

.swipe-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  touch-action: pan-x;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  border-radius: 8px;
}

.swipe-container::-webkit-scrollbar {
  height: 6px;
}

.swipe-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.swipe-container::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ========== SOCIAL BUTTONS ========== */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 25px;
  border-radius: 50px;
  color: #ac0404;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  margin: 10px 5px;
  min-width: 180px;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  opacity: 0.95;
}

.social-btn i {
  font-size: 1.4rem;
}

.social-btn.facebook {
  background-color: #3b5998;
}

.social-btn.facebook:hover {
  background-color: #2d4373;
}

.social-btn.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-btn.instagram:hover {
  opacity: 0.85;
}

.social-btn.threads {
  background-color: #000000;
}

.social-btn.threads:hover {
  background-color: #333333;
}

.social-btn.whatsapp {
  background-color: #25D366;
}

.social-btn.whatsapp:hover {
  background-color: #1ebe57;
}

/* ========== NEWS FEEDS========== */
/* Facebook News Card Styles */
.facebook-card {
  background: linear-gradient(120deg, #f8fafc 60%, #e0e7ff 100%);
}

.facebook-logo {
  height: 60px;
  width: auto;
}

.facebook-title {
  font-size: 2rem;
  font-weight: 700;
  color: #007bff;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.facebook-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: #333;
  opacity: 0.85;
}

.facebook-body {
  min-height: 650px;
  background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
}

.facebook-embed-container {
  min-width: 750px;
  text-align: center;
  padding: 20px;
}

.facebook-btn {
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 10px 40px;
  border-radius: 50px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  border: 2px solid #1877f3;
  color: #1877f3;
  background-color: #fff;
  transition: all 0.3s ease;
}

.facebook-btn:hover {
  background-color: #1877f3;
  color: #fff;
}

/* ========== admin FORM STYLES ========== */
.time-input {
  width: 90px;
}

.jummah-col {
  background-color: #e6f4ea;
}

/* ========== FOOTER STYLES ========== */
footer {
  background-color: var(--primary-color);
  color: #160f0f;
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 25px;
  color: #fff;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--accent-color);
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--accent-color);
  min-width: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 992px) {
  .navbar-logo {
    max-height: 120px;
  }

  .site-name-primary {
    font-size: 1.5rem;
  }

  .site-name-secondary {
    font-size: 1rem;
  }

  .carousel-item {
    height: 400px;
  }

  .timetable-overlap {
    margin-top: -70px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .navbar-logo {
    max-height: 60px;
  }

  .site-name-primary {
    font-size: 1.5rem;
  }

  .site-name-secondary {
    font-size: 1rem;
  }

  .nav-link {
    padding: 0.7rem 1rem !important;
  }

  .timetable-overlap {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    margin-top: 20px;
  }
.timetable-box {
        margin: 0 15px;
    }
  .table th,
  .table td {
    font-size: 0.75rem;
    padding: 0.3rem 0.4rem;
  }

  h3, h1 {
    font-size: 1.5rem;
  }

  .carousel-item {
    height: 350px;
  }

  .carousel-caption {
    bottom: 20%;
    padding: 15px;
  }

  .carousel-caption h5 {
    font-size: 1.8rem;
  }

  .timetable-overlap {
    margin-top: -30px;
  }
   .social-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

  .big-div {
    padding: 30px;
  }

  footer {
    text-align: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links a {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    flex-wrap: wrap; /* Allow wrapping on small screens */
    flex-direction: row;
    align-items: center;
  }

  .navbar-logo {
    max-height: 50px;
  }

  .site-name-primary {
    font-size: 1.1rem;
  }

  .site-name-secondary {
    font-size: 0.8rem;
  }

  .carousel-item {
    height: 300px;
  }

  .carousel-caption {
    bottom: 10%;
    left: 5%;
    right: 5%;
  }

  .carousel-caption h5 {
    font-size: 1.5rem;
  }

  .carousel-caption p {
    font-size: 1rem;
    display: none; /* Hide description on small screens */
  }

  .social-btn {
    width: 100%;
    margin: 5px 0;
  }

  .table th,
  .table td {
    font-size: 0.8rem;
    padding: 0.3rem;
  }
}
