/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Logo Styling */
.navbar-brand img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

/* Hero Carousel */
#heroCarousel {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.carousel-item {
    height: 600px;
    background-color: #000;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    opacity: 0.7;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-caption h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.carousel-caption .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

/* Hymn Cards */
.hymn-card {
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.hymn-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hymn-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Featured Hymns */
.featured-hymns {
    padding: 50px 0;
}

/* Search Bar */
.search-bar {
    background-color: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 30px;
}

/* About Section */
.about-section {
    background-color: #f8f9fa;
}

.about-section img {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Call to Action */
.cta-section {
    background-color: #007bff;
    color: white;
    padding: 50px 0;
}

/* Footer */
.site-footer {
    position: relative;
    background: radial-gradient(circle at top right, #353a44 0%, #2a2e36 30%, #252930 100%);
    color: #cfd5de;
    margin-top: auto;
    overflow: hidden;
}

.site-footer-angle {
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 130px;
    background: #252930;
    transform: skewY(-5deg);
    transform-origin: top left;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #ffffff;
    font-size: 1.7rem;
    line-height: 1.1;
    margin: 0;
}

.footer-logo-accent {
    color: #f28d52;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #aeb6c2;
}

.site-footer .footer-top {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 2rem;
}

.site-footer .footer-top > div {
    min-width: 0;
}

.footer-title {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.92;
}

.footer-links {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.site-footer a {
    color: #c6ced9;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.site-footer a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.site-footer .social-links {
    display: flex;
    gap: 0.55rem;
}

.site-footer .social-links a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.site-footer .social-links a:hover {
    transform: translateY(-2px);
    background: rgba(242, 141, 82, 0.18);
    border-color: rgba(242, 141, 82, 0.42);
    color: #fff;
}

.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    color: #b7bfca;
    font-size: 0.95rem;
    line-height: 1.45;
}

.footer-contact i {
    width: 18px;
    min-width: 18px;
    margin-top: 0.18rem;
    color: #f28d52;
    opacity: 0.92;
}

.footer-subscribe {
    display: grid;
    gap: 0.6rem;
}

.footer-subscribe .form-control {
    border-radius: 10px;
    border: 1px solid #3a4250;
    background: #1f242c;
    color: #eef2f7;
    font-size: 0.9rem;
    min-height: 44px;
    padding: 0.6rem 0.8rem;
}

.footer-subscribe .form-control::placeholder {
    color: #9aa5b4;
}

.footer-subscribe .btn {
    border-radius: 10px;
    width: fit-content;
    min-width: 102px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: #f28d52;
    border-color: #f28d52;
    color: #fff;
    padding: 0.55rem 0.9rem;
}

.footer-subscribe .btn:hover {
    background: #eb7d3f;
    border-color: #eb7d3f;
}

.footer-note {
    color: #aab3bf;
    font-size: 0.84rem;
    line-height: 1.35;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.16);
    margin: 1.5rem 0 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.88rem;
    color: #aab3bf;
}

.footer-legal {
    display: flex;
    gap: 1.2rem;
}

.footer-legal a {
    font-size: 0.88rem;
    opacity: 0.95;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption .lead {
        font-size: 1.2rem;
    }

    .site-footer-angle {
        top: -44px;
        height: 74px;
    }

    .footer-brand-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer .footer-top {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .site-footer .footer-top {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        gap: 1.5rem;
    }
}

/* Hymn Detail Page */
.hymn-detail {
    padding: 30px 0;
}

.hymn-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.lyrics-content {
    white-space: pre-line;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Search Results */
.search-results {
    padding: 30px 0;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Donate Section */
.donate-section {
    text-align: center;
    padding: 50px 0;
}

.donate-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.donate-option {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    flex: 1;
    max-width: 300px;
}

/* Donate Button */
.donate-btn {
    background-color: #28a745;
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.donate-btn:hover {
    background-color: #218838;
    color: white !important;
}

/* MIDI Player Styles */
.midi-player {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.midi-player audio {
    width: 100%;
    margin-top: 10px;
} 

#subscription-popup {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
  }

  .popup-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    animation: slideUp 0.4s ease;
  }

  .popup-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .popup-content {
    padding: 20px;
    text-align: center;
  }

  .popup-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2d2d2d;
  }

  .popup-content p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #555;
  }

  .popup-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
  }

  .popup-content button {
    margin: 5px;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
  }

  #subscription-form button[type="submit"] {
    background-color: #1f8c3f;
    color: white;
  }

  #popup-close {
    background-color: #ddd;
    color: #333;
  }

  @keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }