/* Basic Reset & Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
   /* overflow: hidden;*/ /* Clears floats */
}

a {
    color: #3a5e9b; /* Muted blue */
    text-decoration: none;
}

a:hover {
    color: #2a487a;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    color: #1a386a; /* Darker blue */
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
}

/* Header */
header {
    background: #fff;
    color: #1a386a;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    position: sticky; /* Make header sticky */
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a386a;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 1.5rem;
}

header nav ul li a {
    color: #1a386a;
    padding: 0.5rem;
    transition: color 0.3s ease;
    
}

header nav ul li a:hover,
header nav ul li a.active { /* Add 'active' class via JS/PHP later if needed */
    color: #8c7b75; /* Muted brown/taupe */
}

header .donate-nav {
    background-color: #4CAF50; /* Green */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
header .donate-nav:hover {
    background-color: #45a049;
    color: white;
}

.mobile-nav-toggle {
    display: none; /* Hidden by default */
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content Area */
main {
   /* padding: 2rem 0;*/
    min-height: 70vh; /* Ensure footer stays down */
}

.page-section {
    background: #fff;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Homepage Specific */
.slider {
    position: relative;
    width: 100%;
    height: 400px; /* You can adjust height as needed */
    overflow: hidden;
    margin-bottom: 2rem;
    background-color: #eee;
    border-radius: 5px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the box and crops nicely */
    display: block;
    object-position: bottom center;
}


.slide-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    font-size: 1.2rem;
}

.intro-section {
    display: flex;
    gap: 2rem;
    align-items: flex-start; /* Align items at the top */
}

.welcome-text {
    flex: 2; /* Takes more space */
}

.daily-verse {
    flex: 1; /* Takes less space */
    background-color: #e9eef7; /* Light blue background */
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 5px solid #3a5e9b;
    font-style: italic;
}
.daily-verse h3 {
    font-style: normal;
    margin-bottom: 0.5rem;
}
.daily-verse p {
    margin-bottom: 0.5rem;
}
.daily-verse .verse-ref {
    text-align: right;
    font-weight: bold;
    font-style: normal;
}

.resource-cards-container {
    display: flex;
    gap: 1.5rem;
    justify-content: space-around;
    margin-top: 2rem;
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
}

.resource-card {
    position: relative;
    width: 300px;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #fff;
}

/* Transparent overlay behind the text */
.card-content {
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent black */
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.resource-card h3,
.resource-card p,
.resource-card a {
    margin: 6px 0;
    color: #fff;
}

.resource-card h3{
background: rgba(0, 0, 0, 0.5);
}
    


.resource-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.resource-card a:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55); /* transparent dark layer */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.card-overlay h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
    line-height: 1.3;
}

.card-overlay p {
    margin: 0 0 10px;
    font-size: 0.95em;
    line-height: 1.4;
}

.card-overlay a {
    display: inline-block;
    margin-top: 10px;
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.resource-card img {
    width: 80px;
    /* Adjust icon/image size */
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.resource-card h3 {
    margin-bottom: 0.5rem;
}

.resource-card a {
    display: inline-block;
    margin-top: 1rem;
    background: #3a5e9b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.resource-card a:hover {
    background: #2a487a;
    color: white;
}
/* Background images */
.bg-songs {
    background-image: url('../images/bg-songs.jpg');
}

.bg-bible {
    background-image: url('../images/bg-bible.jpg');
}

.bg-sermons {
    background-image: url('../images/bg-sermons.jpg');
}

.bg-video {
    background-image: url('../images/naeemgill.png');
}

/* Contact Form */
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    background: #4CAF50;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background: #45a049;
}

/* Resource Pages (Songs, Bible, Sermons) */
.resource-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #ccc;
}
.resource-section:last-child {
    border-bottom: none;
}

.resource-section h3 {
    color: #8c7b75; /* Muted brown/taupe */
}
.resource-section ul {
    list-style: disc;
    margin-left: 2rem;
}
.resource-section ul li {
    margin-bottom: 0.5rem;
}

/* FAQ Page */
.faq-item {
    margin-bottom: 1.5rem;
}
.faq-item h3 { /* Question */
    color: #3a5e9b;
    margin-bottom: 0.5rem;
}
.faq-item p { /* Answer */
    padding-left: 1rem;
    border-left: 3px solid #eee;
}

/* Donate Page */
.donate-button {
    display: inline-block;
    background: #ff9800; /* Orange */
    color: white;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}
.donate-button:hover {
    background: #f57c00;
    color: white;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer .footer-nav a {
    color: #ccc;
    margin: 0 0.5rem;
}

footer .footer-nav a:hover {
    color: #fff;
}

footer .mission-snippet {
    font-style: italic;
    color: #aaa;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav ul {
        display: none; /* Hide main nav */
        flex-direction: column;
       /* width: 100%;*/
        margin-top: 1rem;
        width: 300px;
    }

     header nav ul.active {
        display: flex; /* Show nav when active */
    }

    header nav ul li {
        margin: 0.5rem 0;
        /*text-align: center;*/
        width: 100%;
    }
    header nav ul li a {
        display: block;
        padding: 0.8rem;
        border-top: 1px solid #eee;
      /*  width: 346px;*/
    }
     header nav ul li:last-child a {
        border-bottom: none;
    }

    .mobile-nav-toggle {
        display: block; /* Show hamburger */
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .intro-section {
        flex-direction: column;
    }

    .resource-cards-container {
        flex-direction: column;
        align-items: center;
    }
    .resource-card {
        flex-basis: 80%; /* Take more width */
        margin-bottom: 1.5rem;
    }
}
.player-container {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 2px solid #ccc;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 20px;
}

.radioplayer-container {
 /*   position: sticky;
    bottom: 0;*/
    background: #fff;
    border-top: 2px solid #ccc;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 20px;
}

.player-container button {
    background: #eee;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
}

.song-list ul {
    list-style: none;
    padding-left: 0;
}

.song-list li {
    margin-bottom: 10px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 6px;
}

.song-list a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.song-list a:hover {
    text-decoration: underline;
}

.pagination  {
 
    text-align: center;
}

.pagination a {
    margin: 0 4px;
    text-decoration: none;
    padding: 5px 10px;
    background: #4a6fa5;
    border: 1px solid #ccc;
    color: white;

}

.pagination a:hover {
    background-color: #0f5fc0;
}
.song-list {
    margin-bottom: 30px;
}
.song-header, .song-row {
    display: flex;
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
    align-items: center;
}
.song-header {
    background-color: #f8f8f8;
    font-weight: bold;
}
.song-row:hover {
    background-color: #f1f1f1;
}
.col-title {
    flex: 3;
}
.col-singer {
    flex: 2;
}
.col-plays {
    flex: 1;
    text-align: right;
}
.play-song {
    color: #007BFF;
    text-decoration: none;
    font-weight: 500;
}
.play-song:hover {
    text-decoration: underline;
}

/* Player styles */
.player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 2px solid #ccc;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.player-container button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

#player {
    width: 60%;
}
.mobile-subinfo {
    display: none;
    font-size: 14px;
    color: #555;
    margin-top: 4px;
}

/* Responsive stacking for mobile */
/* Small screen styling */
@media screen and (max-width: 768px) {
    .song-list {
        padding: 0 10px;
    }

    .song-row {
        display: block;
        background-color: #f9f9f9;
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 12px 15px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
            margin-left: -30px;
    width: 316px;
    }

    .col-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 6px;
        color: #2c3e50;
    }

    .col-title a {
        text-decoration: none;
        color: #1a73e8;
    }

    .col-title a:hover {
        text-decoration: underline;
    }

    .mobile-subinfo {
        font-size: 14px;
        color: #666;
    }

    .pagination {
        text-align: center;
        margin: 20px 0;
    }

    .pagination a {
        display: inline-block;
        padding: 8px 12px;
        margin: 3px;
       background: #4a6fa5;
        color: white;
        border-radius: 4px;
        text-decoration: none;
        font-size: 14px;
        border: 1px solid #ccc;
    }

    .pagination a:hover {
        background-color: #0f5fc0;
    }

    form input[type="text"], form button {
        width: 100%;
        margin-bottom: 10px;
        font-size: 16px;
        padding: 10px;
    }

    form button {
        background-color: #1a73e8;
        color: white;
        border: none;
        cursor: pointer;
        border-radius: 4px;
    }

    form button:hover {
        background-color: #0f5fc0;
    }

    #audio-player {
        padding: 10px 10px 0 10px;
    }

    #player {
        width: 100%;
    }
    /* Hide the plays count on small screens */
    .plays-count {
        display: none;
    }
}
.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    background: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-form input[type="text"] {
    flex: 1 1 200px;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.2s;
}

.search-form input[type="text"]:focus {
    border-color: #1a73e8;
    outline: none;
}

.search-form button {
    padding: 10px 20px;
    background-color: #1a73e8;
    border: none;
    color: white;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-form button:hover {
    background-color: #155ab6;
}
/* Make parent li relative for positioning context */
header nav ul li {
    position: relative;
}

/* Style the submenu */
header nav ul .submenu {
    display: none;
    /* Hidden by default */
    position: absolute;
    /* Position relative to parent li */
    top: 100%;
    /* Position directly below the parent */
    left: 0;
    background-color: #ffffff;
    /* White background */
    min-width: 200px;
    /* Minimum width */
    list-style: none;
    padding: 0.5rem 0;
    /* Padding top/bottom */
    margin: 0;
    /* Reset margin */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    /* Drop shadow */
    border-radius: 0 0 5px 5px;
    /* Optional: Rounded bottom corners */
    z-index: 1010;
    /* Ensure it's above other elements */
    border-top: 3px solid #3a5e9b;
    /* Optional: Top border color */
}

/* Show submenu on hover over the parent li */
header nav ul li.has-dropdown:hover>.submenu {
    display: block;
}

/* Style submenu list items and links */
header nav ul .submenu li {
    margin-left: 0;
    /* Reset any inherited margin */
    width: 100%;
}

header nav ul .submenu li a {
    display: block;
    /* Make the entire area clickable */
    padding: 0.8rem 1.5rem;
    /* Padding inside links */
    color: #333;
    /* Link color */
    white-space: nowrap;
    /* Prevent wrapping */
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: none;
    /* Remove any underline/border from main nav */
}

/* Hover effect for submenu links */
header nav ul .submenu li a:hover {
    background-color: #f0f5fc;
    /* Light blue background on hover */
    color: #1a386a;
    /* Darker blue text on hover */
}


/* === ADJUST MOBILE MENU FOR SUBMENU === */
@media (max-width: 768px) {

    /* Reset submenu positioning for mobile */
    header nav ul .submenu {
        position: static;
        display: block;
        /* Always show within the mobile nav flow */
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        min-width: auto;
        border-radius: 0;
        border-top: none;
        /* Remove top border */
        margin-top: 0.5rem;
        /* Add some space above submenu items */
    }

    /* Style submenu items within mobile nav */
    header nav ul .submenu li {
        /* Optional: Add indentation */
         padding-left: 1rem; 
    }

    header nav ul .submenu li a {
        color: #1a386a;
        /* Match other mobile link colors */
        padding: 0.6rem 1.5rem 0.6rem 2.5rem;
        /* Indent text more */
      /*  border-bottom: 1px dotted #eee;*/
        /* Subtle separator */
        font-size: 0.95em;
        /* Slightly smaller */
    }

    header nav ul .submenu li:last-child a {
        border-bottom: none;
        /* Remove border from last item */
    }

    header nav ul .submenu li a:hover {
        background-color: #e9eef7;
        /* Simple hover background */
    }

    /* Ensure hover doesn't trigger display:block on mobile */
    /* (Not strictly needed as display:block is set above, but good practice) */
    header nav ul li.has-dropdown:hover>.submenu {
        /* No change needed here if display: block is already set above */
    }
}

/* ============================ */
/* YouTube-Like Video Watch Page Styles */
/* ============================ */

/* Basic page setup */
 :root {
     --primary-color: #4a6fa5;
     --secondary-color: #166d67;
     --light-bg: #f8f9fa;
     --dark-text: #212529;
     --light-text: #6c757d;
     --border-color: #dee2e6;
     --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
 }
  .form-container {
      max-width: 900px;
      margin: 2rem auto;
      padding: 2rem;
      background: white;
      border-radius: 8px;
      box-shadow: var(--shadow);
  }

  .form-header {
      margin-bottom: 2rem;
      text-align: center;
  }

  .form-header h1 {
      color: var(--secondary-color);
      font-weight: 600;
      margin-bottom: 0.5rem;
  }

  .form-header p {
      color: var(--light-text);
  }

  .form-group {
      margin-bottom: 1.5rem;
  }

  .form-label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 500;
      color: var(--dark-text);
  }

  .form-control {
      width: 100%;
      padding: 0.75rem;
      font-size: 1rem;
      border: 1px solid var(--border-color);
      border-radius: 4px;
      transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }

  .form-control:focus {
      border-color: var(--primary-color);
      outline: 0;
      box-shadow: 0 0 0 0.2rem rgba(74, 111, 165, 0.25);
  }

  .form-row {
      display: flex;
      gap: 1rem;
  }

  .form-col {
      flex: 1;
  }

  .ck-editor__editable {
      min-height: 400px;
      border-radius: 4px !important;
      border: 1px solid var(--border-color) !important;
  }

  .btn {
      display: inline-block;
      font-weight: 400;
      text-align: center;
      white-space: nowrap;
      vertical-align: middle;
      user-select: none;
      border: 1px solid transparent;
      padding: 0.75rem 1.5rem;
      font-size: 1rem;
      line-height: 1.5;
      border-radius: 4px;
      transition: all 0.15s ease-in-out;
      cursor: pointer;
  }

  .btn-primary {
      color: white;
      background-color: var(--primary-color);
      border-color: var(--primary-color);
  }

  .btn-primary:hover {
      background-color: #3a5a8c;
      border-color: #354f7a;
  }

  .btn-block {
      display: block;
      width: 100%;
  }

  .file-upload {
      position: relative;
      display: inline-block;
      width: 100%;
  }

  .file-upload-input {
      position: absolute;
      left: 0;
      top: 0;
      opacity: 0;
      width: 100%;
      height: 100%;
      cursor: pointer;
  }

  .file-upload-label {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.5rem;
      border: 2px dashed var(--border-color);
      border-radius: 4px;
      background-color: var(--light-bg);
      text-align: center;
      cursor: pointer;
      transition: all 0.3s ease;
  }

  .file-upload-label:hover {
      border-color: var(--primary-color);
      background-color: rgba(74, 111, 165, 0.05);
  }

  .file-upload-icon {
      font-size: 2rem;
      color: var(--primary-color);
      margin-bottom: 0.5rem;
  }

  .file-upload-text {
      color: var(--light-text);
  }

  .file-upload-text strong {
      color: var(--primary-color);
  }

  .preview-image {
      max-width: 100%;
      max-height: 200px;
      margin-top: 1rem;
      border-radius: 4px;
      display: none;
  }
  /* Embedded alert styling */
  .alert {
      padding: 1rem;
      border-radius: 4px;
      font-weight: bold;
      text-align: center;
  }

  .alert-success {
      background-color: #d4edda;
      color: #155724;
      border: 1px solid #c3e6cb;
  }

  .alert-danger {
      background-color: #f8d7da;
      color: #721c24;
      border: 1px solid #f5c6cb;
  }

  @media (max-width: 768px) {
      .form-row {
          flex-direction: column;
          gap: 0;
      }

      .form-container {
          padding: 1.5rem;
          margin: 1rem;
      }
  }
 .back-button {
     margin: 1rem 0rem;
     padding: 0.5rem 1rem;
     background-color: #f1f1f1;
     border: none;
     border-radius: 2px;
     cursor: pointer;
 }

 .read-more {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #686868;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
}

 .read-more:hover {
        background-color: black;
        color: white;
    }