/*
Theme Name: Mangalore Church Tunes
Author: Mangalore Church Tunes
Description: Custom theme for the Mangalore Church Tunes hymn library.
Version: 1.0
*/

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f7f8f5;
    color: #222;
}

/* =========================
   HEADER
========================= */

.site-header {
    background: #063653;
    padding: 18px 0 10px;
    position: relative;
    z-index: 20;
}

.header-container {
    width: min(1180px, 94%);
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    flex-shrink: 0;
}

.site-brand img {
    width: 420px;
    max-width: 90vw;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    color: white;
    font-size: 22px;
    line-height: 1.1;
}

.brand-text span {
    color: #e7edf1;
    font-size: 11px;
    margin-top: 4px;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
}

.main-navigation a:hover {
    color: #f1c75b;
    border-bottom-color: #f1c75b;
}

.main-navigation .search-link {
    font-size: 18px;
    border-bottom: none;
}
.site-main {
    width: min(1100px, 92%);
    margin: 50px auto;
}

article {
    background: white;
    padding: 40px;
    border-radius: 12px;
}

h1 {
    margin-top: 0;
    color: #14532d;
}

.site-footer {
    margin-top: 60px;
    padding: 30px 0;
    background: #14532d;
    color: white;
    text-align: center;
}

/* =========================
   HYMN PAGE
========================= */

.hymn-page {
    max-width: 900px;
    margin: 0 auto;
}

.hymn-header {
    text-align: center;
    margin-bottom: 35px;
}

.hymn-number {
    display: inline-block;
    padding: 7px 16px;
    background: #14532d;
    color: white;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.hymn-header h1 {
    font-size: 42px;
    margin: 10px 0;
}

.hymn-first-line {
    font-size: 18px;
    color: #666;
    margin: 0;
}

.hymn-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 45px;
}

.hymn-details > div {
    background: #f1f5f2;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.hymn-details strong {
    display: block;
    color: #14532d;
    font-size: 14px;
    margin-bottom: 7px;
}

.hymn-details span {
    font-size: 16px;
}

.hymn-lyrics {
    margin-top: 30px;
}

.hymn-lyrics h2,
.hymn-section h2 {
    color: #14532d;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.hymn-lyrics .content {
    font-size: 18px;
    line-height: 1.8;
}

.hymn-section {
    margin-top: 40px;
}

.hymn-section a {
    display: inline-block;
    background: #14532d;
    color: white;
    padding: 12px 20px;
    border-radius: 7px;
    text-decoration: none;
}

.hymn-section a:hover {
    background: #166534;
}

audio {
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 700px) {

    .hymn-header h1 {
        font-size: 32px;
    }

    .hymn-details {
        grid-template-columns: 1fr;
    }

    article {
        padding: 25px;
    }
}

/* =========================
   HYMN NAVIGATION
========================= */

.hymn-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.hymn-navigation a {
    display: inline-block;
    color: #14532d;
    text-decoration: none;
    font-weight: 600;
}

.hymn-navigation a:hover {
    text-decoration: underline;
}

.nav-previous {
    text-align: left;
}

.nav-index {
    text-align: center;
}

.nav-next {
    text-align: right;
}

@media (max-width: 700px) {

    .hymn-navigation {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nav-previous,
    .nav-index,
    .nav-next {
        text-align: center;
    }
}

/* =========================
   HYMN ARCHIVE
========================= */

.hymn-archive {
    max-width: 900px;
    margin: 0 auto;
}

.archive-header {
    text-align: center;
    margin-bottom: 35px;
}

.archive-header h1 {
    margin-bottom: 10px;
}

.archive-header p {
    color: #666;
}

.hymn-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hymn-list-item {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: center;
    gap: 20px;

    background: white;
    padding: 20px 24px;
    border-radius: 10px;

    text-decoration: none;
    color: #222;

    border: 1px solid #e5e7eb;

    transition: transform 0.15s ease,
                box-shadow 0.15s ease;
}

.hymn-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.hymn-list-number {
    font-size: 22px;
    font-weight: 700;
    color: #14532d;
    text-align: center;
}

.hymn-list-content h2 {
    margin: 0 0 5px;
    font-size: 19px;
    color: #14532d;
}

.hymn-list-content p {
    margin: 0;
    color: #666;
}

.hymn-list-arrow {
    font-size: 24px;
    color: #14532d;
    text-align: right;
}

.hymn-archive .nav-links {
    margin-top: 35px;
    text-align: center;
}

@media (max-width: 700px) {

    .hymn-list-item {
        grid-template-columns: 55px 1fr 25px;
        padding: 16px;
        gap: 12px;
    }

    .hymn-list-number {
        font-size: 18px;
    }

    .hymn-list-content h2 {
        font-size: 17px;
    }
}

/* =========================
   HOMEPAGE
========================= */

.home-page {
    margin: 0;
}

.home-container {
    width: min(1150px, 92%);
    margin: 0 auto;
}

/* HERO */

.hero {
    min-height: 560px;
    background-image: url("images/hero.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    min-height: 560px;
    background: linear-gradient(
        90deg,
        rgba(4, 31, 52, 0.88) 0%,
        rgba(4, 31, 52, 0.65) 45%,
        rgba(4, 31, 52, 0.15) 100%
    );

    display: flex;
    align-items: center;
}

.hero-content {
    width: min(1150px, 92%);
    margin: 0 auto;
    color: white;
}

.hero-content h1 {
    color: white;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.05;
    margin: 0 0 20px;
}

.hero-content p {
    max-width: 600px;
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-search {
    display: flex;
    max-width: 650px;
    background: white;
    padding: 5px;
    border-radius: 40px;
}

.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 40px;
}

.hero-search button {
    border: none;
    background: #d9a227;
    color: white;
    font-weight: 700;
    padding: 0 28px;
    border-radius: 30px;
    cursor: pointer;
}

/* LIBRARY */

.library-section {
    background: #f7f4ec;
    padding: 45px 0;
    margin-top: -1px;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
}

.library-card {
    min-height: 180px;
    padding: 22px 12px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    transition: transform .2s ease;
}

.library-card:hover {
    transform: translateY(-5px);
}

.library-card h2 {
    color: white;
    font-size: 17px;
    line-height: 1.25;
    margin: 10px 0;
}

.library-card p {
    margin: 0 0 10px;
    font-size: 13px;
}

.card-icon {
    font-size: 35px;
}

.library-card span {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-green {
    background: #12633e;
}

.card-blue {
    background: #14779b;
}

.card-red {
    background: #8c1747;
}

.card-orange {
    background: #b94f1c;
}

.card-tunes {
    background: #17679c;
}

.card-purple {
    background: #59427f;
}

.card-teal {
    background: #17635f;
}

/* FEATURES */

.features {
    background: #f7f4ec;
    padding: 20px 0 35px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    border-right: 1px solid #ddd8cc;
}

.feature:last-child {
    border-right: none;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border: 2px solid #b8c1c5;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 23px;
    color: #174d70;
}

.feature strong {
    display: block;
    color: #174d70;
}

.feature p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #666;
}

/* QUOTE */

.home-quote {
    background: #f7f4ec;
    text-align: center;
    padding: 15px 20px 45px;
}

.home-quote p {
    color: #174d70;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 20px;
    line-height: 1.4;
}

/* MOBILE */

@media (max-width: 1000px) {

    .library-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .header-container {
        flex-direction: column;
        gap: 8px;
    }

    .site-brand {
        justify-content: center;
    }

    .brand-text {
        text-align: left;
    }

    .main-navigation {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .main-navigation a {
        font-size: 12px;
        padding: 5px 0;
    }

    .hero,
    .hero-overlay {
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-search {
        flex-direction: column;
        background: transparent;
        gap: 8px;
    }

    .hero-search input,
    .hero-search button {
        min-height: 50px;
    }

    .library-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature {
        border-right: none;
        border-bottom: 1px solid #ddd8cc;
    }

}

/* =========================
   HYMN BOOK PAGE
========================= */

.hymn-book-page {
    background: #f7f4ec;
    min-height: 600px;
}

/* BOOK HERO */

.book-hero {
    min-height: 260px;
    background-image: url("images/hero.jpg");
    background-size: cover;
    background-position: center;
}

.book-hero-overlay {
    min-height: 260px;
    background: linear-gradient(
        90deg,
        rgba(4, 31, 52, 0.88),
        rgba(4, 31, 52, 0.35)
    );

    display: flex;
    align-items: center;
}

.book-hero-content {
    width: min(1150px, 92%);
    margin: 0 auto;
    color: white;
    position: relative;
}

.book-hero-content h1 {
    color: white;
    font-family: Georgia, serif;
    font-size: 46px;
    margin: 15px 0 5px;
}

.book-hero-content p {
    margin: 0;
    font-size: 18px;
}

.back-home {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.back-home:hover {
    color: #f1c75b;
}

.total-hymns {
    position: absolute;
    right: 0;
    bottom: 5px;

    background: rgba(0, 0, 0, 0.45);
    padding: 15px 20px;
    border-radius: 10px;

    font-weight: 700;
}

/* RANGE */

.hymn-ranges {
    display: flex;
    gap: 8px;
    padding: 25px 0 18px;
    flex-wrap: wrap;
}

.hymn-ranges span {
    background: white;
    border: 1px solid #d7d7d7;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 13px;
}

.hymn-ranges .active {
    background: #075078;
    color: white;
    border-color: #075078;
}

/* TABLE */

.hymn-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e2e2;
    margin-bottom: 50px;
}

.hymn-table-header,
.hymn-table-row {
    display: grid;
    grid-template-columns: 70px 1fr 110px 50px;
    align-items: center;
}

.hymn-table-header {
    background: #f0f2f3;
    color: #31556b;
    font-size: 13px;
    font-weight: 700;
    padding: 13px 18px;
}

.hymn-table-row {
    padding: 13px 18px;
    border-top: 1px solid #eeeeee;
    text-decoration: none;
    color: #222;
    transition: background 0.15s ease;
}

.hymn-table-row:hover {
    background: #f7fafb;
}

.hymn-number-cell {
    font-weight: 700;
    color: #31556b;
}

.hymn-title-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hymn-title-cell strong {
    color: #234f69;
    font-size: 15px;
}

.hymn-title-cell small {
    color: #777;
    font-size: 12px;
}

.hymn-tune-cell {
    font-size: 13px;
    color: #555;
}

.hymn-arrow-cell {
    width: 28px;
    height: 28px;
    border: 1px solid #cbd4d9;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #075078;
    font-weight: 700;
}

.no-hymns {
    padding: 30px;
}

@media (max-width: 650px) {

    .book-hero-content h1 {
        font-size: 34px;
    }

    .total-hymns {
        position: static;
        display: inline-block;
        margin-top: 20px;
    }

    .hymn-table-header,
    .hymn-table-row {
        grid-template-columns: 45px 1fr 65px 35px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .hymn-title-cell strong {
        font-size: 14px;
    }

}

/* =========================================
   SINGLE HYMN PAGE
========================================= */

.single-hymn-page {
    background: #f5f6f3;
    min-height: 700px;
    padding: 45px 20px 60px;
}

.hymn-container {
    width: min(1100px, 100%);
    margin: 0 auto;
    background: white;
    border-radius: 14px;
    padding: 38px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

/* TOP */

.hymn-top {
    text-align: center;
    margin-bottom: 35px;
}

.hymn-badge {
    display: inline-block;
    background: #12633e;
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hymn-top h1 {
    color: #075b3b;
    font-size: 42px;
    line-height: 1.15;
    margin: 0 0 10px;
}

.hymn-first-line {
    color: #666;
    font-size: 18px;
    margin: 0;
}

/* DETAILS */

.hymn-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.hymn-details > div {
    background: #f0f4f1;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.hymn-details strong {
    display: block;
    color: #075b3b;
    font-size: 14px;
    margin-bottom: 7px;
}

.hymn-details span {
    display: block;
    color: #333;
    font-size: 16px;
}

/* BUTTONS */

.hymn-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.hymn-button {
    display: inline-block;
    background: white;
    border: 1px solid #cbd5d9;
    color: #075078;
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.hymn-button:hover {
    background: #075078;
    color: white;
    border-color: #075078;
}

.hymn-button.play-button {
    background: #075078;
    color: white;
    border-color: #075078;
}

.hymn-button.play-button:hover {
    background: #063653;
}

/* CONTENT */

.hymn-content-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
    margin-top: 15px;
}

.lyrics-section h2,
.notation-section h2 {
    color: #075b3b;
    font-size: 25px;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dce3df;
}

.lyrics-content {
    font-size: 17px;
    line-height: 1.9;
    color: #222;
}

.lyrics-content p {
    margin-bottom: 18px;
}

/* NOTATION */

.notation-box {
    background: #fafafa;
    border: 1px solid #e1e5e3;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.notation-box img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* NAVIGATION */

.hymn-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}

.hymn-navigation > div {
    display: flex;
}

.hymn-navigation a {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px 15px;
    border: 1px solid #d8dfe2;
    border-radius: 8px;
    color: #075078;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    background: white;
}

.hymn-navigation a:hover {
    background: #075078;
    color: white;
    border-color: #075078;
}

.nav-previous {
    justify-content: flex-start;
}

.nav-index {
    justify-content: center;
}

.nav-next {
    justify-content: flex-end;
}


/* MOBILE */

@media (max-width: 750px) {

    .single-hymn-page {
        padding: 25px 12px 40px;
    }

    .hymn-container {
        padding: 25px 20px;
    }

    .hymn-top h1 {
        font-size: 32px;
    }

    .hymn-details {
        grid-template-columns: 1fr;
    }

    .hymn-content-grid {
        grid-template-columns: 1fr;
    }

    .hymn-navigation {
        grid-template-columns: 1fr;
    }

    .nav-previous,
    .nav-index,
    .nav-next {
        justify-content: stretch;
    }

}

/* =========================================
   OLD MCT INTERACTIVE NOTATION TEST
========================================= */

#mct-notation-player {
    position: relative;
    width: 100%;
    min-height: 650px;
    background: #fff;
    overflow: hidden;
}

#mct-notation-player #buttons {
    position: relative;
    min-height: 85px;
}

#mct-notation-player #meddiv {
    text-align: center;
    min-height: 70px;
}

#mct-notation-player #aud {
    height: 32px;
    width: 300px;
}

#mct-notation-player #crediv {
    font-size: 13px;
    margin-top: 8px;
}

#mct-notation-player #speed {
    width: 65px;
}

#mct-notation-player #notation {
    width: 100%;
    overflow: auto;
    min-height: 500px;
}

#mct-notation-player #notation svg {
    display: block;
    max-width: 100%;
}

#mct-notation-player #sync {
    position: absolute;
    right: 10px;
    top: 5px;
    z-index: 10;
}

#mct-notation-player #menu {
    background: #eee;
    font-size: 12px;
}

#mct-notation-player #mbar {
    padding: 5px 10px;
    cursor: pointer;
}

#mct-notation-player #menu label {
    display: none;
    padding: 4px 8px;
}

#mct-notation-player #err {
    display: none;
}

#mct-notation-player .dlog {
    display: none;
}

#mct-notation-player #streep {
    position: absolute;
    height: 10px;
    width: 100%;
    opacity: 0;
}

#mct-notation-player #rollijn {
    position: absolute;
    height: 30px;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

#mct-notation-player .dashed {
    border-bottom: 1px dashed #aaa;
}


/* INTERACTIVE MUSIC NOTATION */

.interactive-notation {
    width: 100%;
    background: #fff;
    border: 1px solid #e1e5e3;
    border-radius: 10px;
    overflow: hidden;
}

.interactive-notation iframe {
    display: block;
    width: 100%;
    min-height: 520px;
    border: 0;
}

.hymn-content-grid.lyrics-only {
    grid-template-columns: 1fr;
}

/* Full-width layout for interactive notation */

.hymn-content-grid.has-notation {
    grid-template-columns: 1fr;
}

.notation-section {
    width: 100%;
    margin-top: 20px;
}

.interactive-notation iframe {
    width: 100%;
    height: 700px;
    min-height: 700px;
}

/* =========================================
   NEW HYMN NOTATION + DETAILS LAYOUT
========================================= */

.hymn-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr);
    gap: 28px;
    align-items: start;
    margin-top: 20px;
}

.hymn-main-left {
    min-width: 0;
}

.hymn-main-left .notation-section {
    width: 100%;
    margin-top: 0;
}


/* RIGHT SIDE HYMN DETAILS */

.hymn-info-panel {
    background: #f5f8f6;
    border: 1px solid #dce5df;
    border-radius: 10px;
    overflow: hidden;
}

.hymn-info-panel h2 {
    margin: 0;
    padding: 17px 20px;
    background: #075b3b;
    color: white;
    font-size: 20px;
    border: 0;
}

.hymn-info-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 18px;
    border-bottom: 1px solid #dce5df;
}

.hymn-info-row span {
    color: #68756d;
    font-size: 13px;
}

.hymn-info-row strong {
    color: #163e2b;
    font-size: 14px;
    text-align: right;
}

.hymn-info-row.info-stacked {
    display: block;
}

.hymn-info-row.info-stacked span {
    display: block;
    margin-bottom: 6px;
}

.hymn-info-row.info-stacked strong {
    display: block;
    text-align: left;
    line-height: 1.5;
}


/* PDF BUTTON */

.hymn-pdf-button {
    display: block;
    margin: 18px;
    padding: 12px 15px;
    background: #075078;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
}

.hymn-pdf-button:hover {
    background: #063653;
    color: white;
}


/* LYRICS BELOW */

.full-lyrics-section {
    margin-top: 35px;
}

.full-lyrics-section h2 {
    color: #075b3b;
    font-size: 25px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dce3df;
}


/* RESPONSIVE */

@media (max-width: 850px) {

    .hymn-main-layout {
        grid-template-columns: 1fr;
    }

    .hymn-info-panel {
        order: 2;
    }

}

/* =========================================
   HYMN AUDIO PLAYLIST
========================================= */

.hymn-audio-tracks {
    margin-top: 0;
    padding: 0;
    background: #242927;
    border-top: 1px solid #dce5df;
}

.hymn-audio-tracks h3 {
    margin: 0;
    padding: 16px 18px;
    background: #f5f8f6;
    color: #163e2b;
    font-size: 20px;
}

/* Main audio control */

.hymn-audio-tracks audio {
    display: block;
    width: 100% !important;
    height: 48px;
    border-radius: 0;
    background: #303533;
}


/* Track list */

.hymn-track-list {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.hymn-track-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    margin: 0;
    border: 0;
    border-top: 1px solid #464c49;
    border-radius: 0;
    background: #303533;
    color: #ffffff;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hymn-track-button:hover {
    background: #3d4541;
}

.hymn-track-button.active {
    background: #075b3b;
}

.hymn-track-button .track-number {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    font-size: 11px;
    font-weight: 700;
}

.hymn-track-button .track-name {
    flex: 1;
}


/* Loop */

.hymn-loop-button {
    width: 100%;
    padding: 11px 14px;
    margin: 0;
    border: 0;
    border-top: 1px solid #464c49;
    border-radius: 0;
    background: #242927;
    color: #ffffff;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.hymn-loop-button:hover {
    background: #343a37;
}

.hymn-loop-button.active {
    background: #075b3b;
}

/* =========================================
   AUDIO PLAYLIST BUTTON OVERRIDE
========================================= */

.hymn-audio-tracks .hymn-track-list {
    display: block;
    width: 100%;
}

.hymn-audio-tracks button.hymn-track-button {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;

    margin: 0;
    padding: 11px 14px;

    border: 0;
    border-top: 1px solid #4a504d;
    border-radius: 0;

    background: #303533;
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;

    cursor: pointer;
}

.hymn-audio-tracks button.hymn-track-button:hover {
    background: #3c4440;
    color: #ffffff;
}

.hymn-audio-tracks button.hymn-track-button.active {
    background: #075b3b;
    color: #ffffff;
}

.hymn-audio-tracks .track-number {
    display: inline-flex;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;

    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: rgba(255,255,255,0.15);

    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.hymn-audio-tracks .track-name {
    display: block;
    flex: 1;
    color: inherit;
}


/* LOOP BUTTON */

.hymn-audio-tracks button.hymn-loop-button {
    appearance: none;
    -webkit-appearance: none;

    display: block;
    width: 100%;

    margin: 0;
    padding: 11px 14px;

    border: 0;
    border-top: 1px solid #4a504d;
    border-radius: 0;

    background: #242927;
    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;

    cursor: pointer;
}

.hymn-audio-tracks button.hymn-loop-button:hover {
    background: #343b37;
}

.hymn-audio-tracks button.hymn-loop-button.active {
    background: #075b3b;
    color: #ffffff;
}

/* =========================================
   AUDIO PREVIOUS / NEXT CONTROLS
========================================= */

.hymn-player-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    background: #242927;
    border-top: 1px solid #464c49;
    border-bottom: 1px solid #464c49;
}

.hymn-audio-tracks .hymn-player-controls button {
    appearance: none;
    -webkit-appearance: none;

    margin: 0;
    padding: 10px 8px;

    border: 0;
    border-radius: 0;

    background: #242927;
    color: #ffffff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.hymn-audio-tracks .hymn-player-controls button:first-child {
    border-right: 1px solid #464c49;
}

.hymn-audio-tracks .hymn-player-controls button:hover {
    background: #075b3b;
    color: #ffffff;
}

/* =========================================
   MOBILE MENU BUTTON
========================================= */

.mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {

    .mobile-menu-toggle {
        display: block;
        margin: 0;
        padding: 8px 12px;

        border: 1px solid rgba(255,255,255,0.35);
        border-radius: 6px;

        background: transparent;
        color: #ffffff;

        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

}

@media (max-width: 768px) {

    .header-container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

    .site-brand {
        flex: 1;
        min-width: 0;
    }

    .mobile-menu-toggle {
        flex: 0 0 auto;
        margin-left: 12px;
    }

}
@media (max-width: 768px) {

    .main-navigation {
        display: none;
    }

}

@media (max-width: 768px) {

    .main-navigation.is-open {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

}

@media (max-width: 768px) {

    .main-navigation.is-open {
        margin-top: 10px;
        background: #063653;
        border-top: 1px solid rgba(255,255,255,0.18);
    }

    .main-navigation.is-open a {
        display: block;
        width: 100%;
        padding: 13px 10px;
        font-size: 14px;
        text-align: left;

        border-bottom: 1px solid rgba(255,255,255,0.12);
    }

    .main-navigation.is-open a:hover {
        background: rgba(255,255,255,0.08);
        border-bottom-color: rgba(255,255,255,0.12);
    }

/* Hymn book range links */
.hymn-ranges a {
    display: inline-block;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid #d7dde1;
    border-radius: 6px;
    text-decoration: none;
    color: #075b84;
    font-weight: 500;
}

.hymn-ranges a:hover {
    background: #eef4f7;
    text-decoration: none;
}

.hymn-ranges a.active {
    background: #075b84;
    color: #ffffff;
    border-color: #075b84;
}

    .main-navigation.is-open .search-link {
        text-align: left;
    }

}

/* =========================================
   HYMN LYRICS READABILITY
========================================= */

.lyrics-content {
    line-height: 1.9;
}

.lyrics-content p {
    margin-bottom: 1.25em;
}

/* Hymn book range links */
.hymn-ranges a {
    display: inline-block;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid #d7dde1;
    border-radius: 6px;
    text-decoration: none;
    color: #075b84;
    font-weight: 500;
}

.hymn-ranges a:hover {
    background: #eef4f7;
    text-decoration: none;
}

.hymn-ranges a.active {
    background: #075b84;
    color: #ffffff;
    border-color: #075b84;
}

/* =========================================
   HYMN BOOKS LANDING PAGE
========================================= */

.hymn-books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 40px 0;
}

.hymn-book-card {
    display: block;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #dfe4e7;
    border-radius: 10px;
    text-decoration: none;
    color: #12354a;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hymn-book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.10);
    text-decoration: none;
}

.hymn-book-card h2 {
    margin: 0 0 8px;
    color: #075b84;
    font-size: 24px;
}

.hymn-book-card p {
    margin: 0 0 22px;
    color: #68777f;
}

.hymn-book-count {
    display: inline-block;
    padding: 6px 12px;
    background: #eef5f2;
    border-radius: 20px;
    color: #075b3b;
    font-size: 13px;
    font-weight: 600;
}

.hymn-book-open {
    display: block;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e8ea;
    color: #075b84;
    font-weight: 600;
}

@media (max-width: 700px) {
    .hymn-books-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 25px 0;
    }

    .hymn-book-card {
        padding: 22px;
    }
}

/* Tunes Index link styling */

.hymn-info-row a {
    color: #075985;
    text-decoration: none;
    font-weight: 600;
}

.hymn-info-row a:hover {
    color: #003b5c;
    text-decoration: underline;
}
/* Header Search Box */

.header-search-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-search-form input[type="search"] {
    width: 180px;
    padding: 8px 12px;
    border: 1px solid #d5e0e8;
    border-radius: 6px;
    background: #ffffff;
    color: #17324d;
    font-size: 13px;
}

.header-search-form input[type="search"]:focus {
    outline: 2px solid #64b5d9;
    outline-offset: 1px;
}

.header-search-form button {
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    background: #075985;
    color: white;
    cursor: pointer;
}

.header-search-form button:hover {
    background: #0876a8;
}

@media (max-width: 768px) {
    .header-search-form {
        width: 100%;
    }

    .header-search-form input[type="search"] {
        width: 100%;
        min-width: 0;
    }
}
/* Search results — hymn first line */

.search-first-line {
    color: #64748b;
    font-size: 14px;
    font-style: italic;
    line-height: 1.6;
    margin-top: 5px;
}
/* Search results layout */

.search-results .hymn-info-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    column-gap: 20px;
    align-items: start;
}

.search-results .hymn-info-row > strong {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
}

.search-results .search-first-line {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .search-results .hymn-info-row {
        grid-template-columns: 85px 1fr;
        column-gap: 12px;
    }
}
/* Floating header search dropdown */

.header-search-dropdown {
    position: relative;
    flex-shrink: 0;
}

.header-search-dropdown summary {
    list-style: none;
    cursor: pointer;
    color: white;
    font-size: 18px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search-dropdown summary::-webkit-details-marker {
    display: none;
}

.header-search-dropdown form {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 310px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 8px;
    z-index: 9999;
}

.header-search-dropdown input[type="search"] {
    width: 100%;
    min-width: 0;
    padding: 9px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
}

.header-search-dropdown button {
    background: #075985;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 9px 12px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .header-search-dropdown form {
        width: min(310px, 85vw);
        right: 0;
    }
}
/* HOMEPAGE BIBLE VERSES */

.home-quote .verse-reference {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    color: #8a6b35;
    margin-top: 8px;
}

.home-bible-verse {
    max-width: 850px;
    margin: 35px auto 0;
    padding: 30px 20px 10px;
    border-top: 1px solid #d8c9aa;
}

.home-bible-verse > p:first-child {
    color: #7a3342;
    font-family: Georgia, serif;
    font-size: 22px;
    font-style: italic;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 600px) {
    .home-bible-verse {
        margin-top: 25px;
        padding: 25px 10px 5px;
    }

    .home-bible-verse > p:first-child {
        font-size: 18px;
    }
}
/* Kannada Bible verse image */

..kannada-bible-verse {
    max-width: 1000px;
    margin: 25px auto 0;
    text-align: center;
    background: transparent;
    padding: 0;
}
}

.kannada-bible-verse img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
/* Fix John 3:17 image on mobile */

@media (max-width: 600px) {

    .home-bible-verse {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .kannada-bible-verse {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .kannada-bible-verse img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

}
/* Center John 3:17 image on desktop */

@media (min-width: 769px) {

    .home-bible-verse {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .kannada-bible-verse {
        width: 100%;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .kannada-bible-verse img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }

}
/* HYMN TABLE OF CONTENTS */

.hymn-topic-group {
    margin: 25px 0 35px;
}

.hymn-topic-group h3 {
    color: #0b4d70;
    font-size: 21px;
    margin-bottom: 15px;
}

.hymn-topic-group a {
    display: block;
    width: fit-content;
    padding: 9px 0;
    color: #174d70;
    text-decoration: none;
    border-bottom: 1px solid #e0d8c8;
}

.hymn-topic-group a:hover {
    color: #a56b24;
    text-decoration: underline;
}
/* HYMN TOPIC INDEX - TWO COLUMN LAYOUT */

@media (min-width: 769px) {

    .hymn-topics {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 50px;
    }

    .hymn-topics > h2,
    .hymn-topics > p {
        grid-column: 1 / -1;
    }

}
/* IMPROVE HYMN TOPIC GRID SPACING */

@media (min-width: 769px) {

    .hymn-topics {
        align-items: start;
        row-gap: 10px;
    }

    .hymn-topic-group {
        margin-top: 10px;
        margin-bottom: 15px;
    }

}
/* HYMN TOPIC INDEX - CLEAN LINK STYLING */

.hymn-topic-group {
    background: #ffffff;
    padding: 20px 25px;
    border: 1px solid #e5dfd3;
    border-radius: 8px;
}

.hymn-topic-group h3 {
    color: #0b4d70;
    font-size: 20px;
    margin
}
/* ALIGN TOPIC NAMES AND HYMN RANGES */

.hymn-topic-group a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.topic-name {
    flex: 1;
}

.topic-range {
    white-space: nowrap;
    color: #0b4d70;
    font-weight: 600;
}
/* FIX TOPIC NUMBER ALIGNMENT */

.hymn-topic-group a {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
}

.hymn-topic-group .topic-name {
    flex: 1;
    min-width: 0;
}

.hymn-topic-group .topic-range {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}
/* COMPACT HYMN TOPIC LAYOUT */

@media (min-width: 769px) {

    .hymn-topics {
        display: block;
        columns: 2;
        column-gap: 30px;
    }

    .hymn-topics > h2,
    .hymn-topics > p {
        column-span: all;
    }

    .hymn-topic-group {
        display: inline-block;
        width: 100%;
        box-sizing: border-box;
        break-inside: avoid;
        margin: 0 0 20px;
        vertical-align: top;
    }

}
/* TUNE INDEX TABLE */

.tune-index-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    margin-bottom: 35px;
    font-size: 15px;
}

.tune-index-table th {
    background-color: #302009;
    color: #ffffff;
    padding: 14px 10px;
    text-align: center;
    border: 1px solid #b88b52;
}

.tune-index-table td {
    padding: 10px;
    border: 1px solid #e4b47c;
}

.tune-index-table tbody tr:nth-child(odd) {
    background-color: #fff5ec;
}

.tune-index-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.tune-index-table td:nth-child(-n+3) {
    text-align: center;
}

.tune-index-table td:first-child {
    background-color: #302009;
    color: white;
    font-weight: bold;
}
/* TUNE INDEX HYMN LINKS */

.tune-index-table .tune-hymn-number a {
    color: #176b36;
    font-weight: bold;
    text-decoration: underline;
}

.tune-index-table .tune-hymn-number a:hover {
    color: #b36b00;
    text-decoration: none;
}
/* MOBILE-FRIENDLY TUNE INDEX */

.tune-search-container {
    margin: 20px 0;
}

#tune-search {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.tune-accordion-list {
    margin: 20px 0;
}

.tune-accordion-item {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.tune-accordion-item summary {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    cursor: pointer;
    background: #f5f5ef;
    color: #14532d;
    font-weight: bold;
}

.tune-accordion-item summary:hover {
    background: #e9f1e9;
}

.tune-number {
    min-width: 45px;
    font-weight: bold;
}

.tune-name {
    flex: 1;
}

.tune-accordion-content {
    padding: 15px;
    line-height: 1.8;
}

.tune-accordion-content p {
    margin: 5px 0;
}
/* TUNE INDEX - MOBILE IMPROVEMENTS */

@media (max-width: 600px) {

    .tune-accordion-item summary {
        padding: 14px 12px;
        gap: 10px;
        font-size: 15px;
    }

    .tune-number {
        min-width: 35px;
        flex-shrink: 0;
    }

    .tune-name {
        overflow-wrap: anywhere;
    }

    .tune-accordion-content {
        padding: 12px;
        font-size: 14px;
    }

    .tune-accordion-content a {
        display: inline-block;
        padding: 3px 5px;
    }

    #tune-search {
        width: 100%;
        font-size: 16px;
        box-sizing: border-box;
    }
}
/* TUNE INDEX - SEARCH RESULTS */

.tune-count {
    margin: 15px 0;
    font-size: 15px;
    color: #555;
}

.tune-count strong {
    color: #176b36;
    font-size: 18px;
}

#tune-no-results {
    background: #f5f5ef;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    color: #555;
    font-size: 15px;
}
/* TUNE INDEX - EXPAND AND COLLAPSE ARROWS */

.tune-accordion-item summary {
    list-style: none;
}

.tune-accordion-item summary::-webkit-details-marker {
    display: none;
}

.tune-accordion-item summary::after {
    content: "⌄";
    font-size: 24px;
    font-weight: bold;
    color: #176b36;
    margin-left: auto;
    transition: transform 0.2s ease;
}

.tune-accordion-item[open] summary::after {
    transform: rotate(180deg);
}
/* TUNE INDEX - HYMN LINKS */

.tune-accordion-content a {
    color: #176b36;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tune-accordion-content a:hover {
    color: #b36b00;
}

.tune-accordion-content a:focus-visible {
    outline: 2px solid #176b36;
    outline-offset: 3px;
    border-radius: 3px;
}
/* COMPACT HEADER SPACING */

.site-header .site-brand {
    margin-bottom: 0;
}

.site-header .main-navigation {
    margin-top: 0;
}
/* Hymn Topic Page */

.hymn-topic-page {
    padding: 35px 0 55px;
}

.hymn-topic-page h1 {
    margin-bottom: 12px;
}

.hymn-topic-range {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
}

.hymn-topic-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.hymn-topic-item:hover {
    background: #f0f7f2;
}

.hymn-topic-item a {
    display: block;
    padding: 15px 20px;
    color: #07537a;
    text-decoration: none;
    font-size: 17px;
}

.hymn-topic-item a:hover {
    color: #14532d;
}

.back-to-hymns {
    margin-top: 30px;
}

.back-to-hymns a {
    color: #14532d;
    font-weight: 600;
    text-decoration: none;
}

.back-to-hymns a:hover {
    text-decoration: underline;
}
/* Hymn Topic - Tune Number Styling */

.hymn-topic-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.hymn-topic-tune {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: auto;
}

@media (max-width: 600px) {
    .hymn-topic-item a {
        flex-wrap: wrap;
    }

    .hymn-topic-tune {
        font-size: 13px;
    }
}
/* DOWNLOADS PAGE */

.downloads-page {
    padding: 50px 20px 70px;
    background: #f7f7f4;
}

.downloads-content h1 {
    color: #075b3d;
    font-size: 32px;
    margin-bottom: 12px;
}

.downloads-content > p {
    color: #666;
    margin-bottom: 30px;
}

/* Download cards */

.download-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.download-card {
    background: #ffffff;
    border: 1px solid #e1e7e3;
    border-radius: 12px;
    padding: 30px 22px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.download-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.download-card h3 {
    color: #075b3d;
    font-size: 20px;
    margin-bottom: 10px;
}

.download-card p {
    color: #555;
    margin-bottom: 15px;
}

.download-file-info {
    display: block;
    color: #777;
    font-size: 13px;
    margin-bottom: 20px;
}

.download-button {
    display: inline-block;
    background: #075b3d;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
}

/* Mobile layout */

@media (max-width: 768px) {
    .download-cards {
        grid-template-columns: 1fr;
    }
}
/* DOWNLOAD PRINTING INSTRUCTIONS */

.download-instructions {
    margin-top: 35px;
    padding: 25px 30px;
    background: #f0f4f2;
    border-left: 4px solid #075b3d;
    border-radius: 8px;
}

.download-instructions h3 {
    color: #075b3d;
    font-size: 20px;
    margin-bottom: 15px;
}

.download-instructions p {
    color: #444;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.download-instructions p:last-child {
    margin-bottom: 0;
}
/* CHOIRS PAGE */

.choirs-page {
    padding: 50px 20px 70px;
    background: #f7f7f4;
    min-height: 500px;
}

.choirs-content h1 {
    color: #075b3d;
    font-size: 32px;
    margin-bottom: 15px;
}

.choirs-content > p {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}
/* CHOIR LIST */

.choir-list {
    margin-top: 30px;
    max-width: 850px;
    border: 1px solid #e1e7e3;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.choir-item {
    padding: 18px 22px;
    font-size: 16px;
    color: #075b3d;
    border-bottom: 1px solid #e1e7e3;
}

.choir-item:last-child {
    border-bottom: none;
}

.choir-item:nth-child(even) {
    background: #f7f9f7;
}

.choir-item:hover {
    background: #eaf3ed;
}
/* Choir Navigation Buttons */

.choir-navigation a {
    display: inline-block;
    background-color: #166534;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.choir-navigation a:hover {
    background-color: #14532d;
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 700px) {
    .choir-navigation a {
        min-width: 180px;
        text-align: center;
    }
}
/* Choir Index Link Styling */

.choir-list .choir-item a {
    color: #14532d;
    text-decoration: none;
    font-weight: 600;
    display: block;
}

.choir-list .choir-item a:visited {
    color: #14532d;
}

.choir-list .choir-item a:hover {
    color: #15803d;
    text-decoration: underline;
}

.choir-list .choir-item {
    transition: background-color 0.2s ease;
}

.choir-list .choir-item:hover {
    background-color: #dcfce7;
}


/* HOMEPAGE HERO APPEARANCE IMPROVEMENT */

@media (min-width: 769px) {

    .home-page .hero,
    .home-page .hero-overlay {
        min-height: 480px;
    }

    .home-page .hero-content h1 {
        font-size: clamp(38px, 4.5vw, 58px);
        line-height: 1.12;
        margin-bottom: 18px;
    }

    .home-page .hero-content p {
        font-size: 18px;
        line-height: 1.7;
        margin-bottom: 26px;
    }

    .home-page .hero-search {
        max-width: 620px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    }

    .home-page .hero-search button:hover {
        background: #bd8618;
    }
}

/* HOMEPAGE LIBRARY CARDS IMPROVEMENT */

@media (min-width: 1001px) {

    .home-page .library-grid {
        gap: 16px;
    }

    .home-page .library-card {
        min-height: 205px;
        padding: 24px 10px;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
        transition: transform 0.25s ease,
                    box-shadow 0.25s ease;
    }

    .home-page .library-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.20);
    }

    .home-page .library-card h2 {
        font-size: 16px;
        line-height: 1.35;
        margin: 12px 0 8px;
    }

    .home-page .library-card p {
        font-size: 12px;
        line-height: 1.5;
    }

    .home-page .card-icon {
        font-size: 32px;
    }
}

/* HOMEPAGE FEATURE SECTION IMPROVEMENT */

.home-page .features {
    padding: 30px 0 45px;
}

.home-page .feature {
    gap: 14px;
    padding: 18px 16px;
}

.home-page .feature-icon {
    flex: 0 0 48px;
}

.home-page .feature strong {
    font-size: 15px;
    line-height: 1.4;
}

.home-page .feature p {
    font-size: 13px;
    line-height: 1.5;
    margin-top: 5px;
}

/* HOMEPAGE BIBLE VERSE IMPROVEMENT */

.home-page .home-quote {
    padding-top: 25px;
    padding-bottom: 50px;
}

.home-page .home-quote > p:first-child {
    font-family: Georgia, serif;
    font-size: clamp(22px, 2.5vw, 28px);
    font-style: italic;
    line-height: 1.6;
    color: #174d70;
    margin-bottom: 8px;
}

.home-page .home-quote .verse-reference {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

@media (max-width: 600px) {
    .home-page .home-quote {
        padding-top: 20px;
        padding-bottom: 35px;
    }
}

/* HEADER NAVIGATION APPEARANCE IMPROVEMENT */

@media (min-width: 769px) {

    .main-navigation {
        gap: 26px;
    }

    .main-navigation a {
        font-size: 15px;
        font-weight: 500;
        letter-spacing: 0.2px;
        transition: color 0.2s ease,
                    border-color 0.2s ease;
    }

    .main-navigation a:hover {
        color: #f1c75b;
        border-bottom-color: #f1c75b;
    }
}

/* WEBSITE FOOTER APPEARANCE IMPROVEMENT */

.site-footer {
    margin-top: 0;
    padding: 32px 20px;
    background: #14532d;
    color: #ffffff;
    text-align: center;
    border-top: 3px solid #d9a227;
}

.site-footer p {
    font-size: 14px;
    line-height: 1.7;
    margin: 6px 0;
}

.site-footer a {
    color: #f1d78b;
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* HOMEPAGE LIBRARY CARDS - READABILITY */

@media (min-width: 1001px) {

    .home-page .home-container {
        width: min(1350px, 94%);
    }

    .home-page .library-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 16px;
    }

    .home-page .library-card {
        min-height: 210px;
        padding: 22px 12px;
    }

    .home-page .library-card h2 {
        font-size: 17px;
        line-height: 1.35;
    }

    .home-page .library-card p {
        font-size: 13px;
        line-height: 1.5;
    }
}


/* HOMEPAGE SEARCH BOX IMPROVEMENT */

.home-page .hero-search {
    transition: box-shadow 0.25s ease;
}

.home-page .hero-search:focus-within {
    box-shadow: 0 0 0 3px rgba(241, 199, 91, 0.55),
                0 8px 24px rgba(0, 0, 0, 0.18);
}

.home-page .hero-search input {
    min-width: 0;
}

.home-page .hero-search input::placeholder {
    color: #64748b;
    opacity: 1;
}

.home-page .hero-search button {
    transition: background 0.2s ease;
}

@media (max-width: 600px) {
    .home-page .hero-search input {
        width: 100%;
        background: white;
    }
}

/* HYMN BOOK CARDS - APPEARANCE IMPROVEMENT */

.hymn-books-grid {
    gap: 28px;
}

.hymn-book-card {
    padding: 34px;
    border-radius: 14px;
    border: 1px solid #dce5e9;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease,
                border-color 0.25s ease;
}

.hymn-book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #b5cbd5;
}

.hymn-book-card h2 {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.hymn-book-card p {
    font-size: 15px;
    line-height: 1.6;
}

.hymn-book-count {
    padding: 8px 15px;
    font-size: 14px;
}

.hymn-book-open {
    font-size: 15px;
}

@media (max-width: 700px) {
    .hymn-book-card {
        padding: 24px;
    }

    .hymn-book-card h2 {
        font-size: 22px;
    }
}

/* HYMN BOOK CARDS - COLORED TOP ACCENT */

.hymn-book-card {
    border-top: 4px solid #12633e;
}

.hymn-book-card:hover {
    border-top-color: #d9a227;
}

/* HYMN BOOK CARDS - OPEN LINK IMPROVEMENT */

.hymn-book-card .hymn-book-open {
    color: #075b84;
    font-weight: 700;
    transition: color 0.2s ease;
}

.hymn-book-card:hover .hymn-book-open {
    color: #b47a19;
}

.hymn-book-card .hymn-book-open::after {
    content: " →";
    display: inline-block;
    transition: transform 0.2s ease;
}

.hymn-book-card:hover .hymn-book-open::after {
    transform: translateX(5px);
}

/* FIX DUPLICATE ARROW ON HYMN BOOK CARDS */

.hymn-book-card .hymn-book-open::after {
    content: none;
}

/* HYMN BOOK CARD TITLE IMPROVEMENT */

.hymn-book-card h2 {
    color: #075b3b;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

.hymn-book-card:hover h2 {
    color: #a66b17;
}

/* CENTER FIFTH HYMN BOOK CARD ON DESKTOP */

@media (min-width: 701px) {
    .hymn-books-grid > .hymn-book-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc((100% - 28px) / 2);
        justify-self: center;
    }
}

/* HYMN BOOK TABLE OF CONTENTS READABILITY */

.hymn-topics .hymn-topic-group h3 {
    font-size: 21px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.hymn-topics .hymn-topic-group a {
    font-size: 15px;
    line-height: 1.6;
    padding: 10px 0;
}

.hymn-topics .hymn-topic-group {
    margin-bottom: 22px;
}

/* HYMN TOPIC CARDS - APPEARANCE IMPROVEMENT */

.hymn-topics .hymn-topic-group {
    border-radius: 12px;
    transition: box-shadow 0.25s ease,
                border-color 0.25s ease;
}

.hymn-topics .hymn-topic-group:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: #b7cfc1;
}

.hymn-topics .hymn-topic-group a:hover {
    color: #a66b17;
}

/* HYMN TABLE OF CONTENTS - HEADING ACCENT */

.hymn-topics .hymn-topic-group h3 {
    color: #075b3b;
    border-bottom: 2px solid #dce9df;
    padding-bottom: 10px;
}

.hymn-topics .hymn-topic-group:hover h3 {
    border-bottom-color: #d9a227;
}

/* HYMN TABLE OF CONTENTS - LINK HIGHLIGHT */

.hymn-topics .hymn-topic-group a {
    border-radius: 5px;
    transition: background-color 0.2s ease,
                color 0.2s ease;
}

.hymn-topics .hymn-topic-group a:hover {
    background-color: #f0f6f1;
    color: #a66b17;
}

.hymn-topics .hymn-topic-group a:focus-visible {
    outline: 2px solid #d9a227;
    outline-offset: 2px;
}

/* HYMN TOPIC RESULTS - ROW APPEARANCE */

.hymn-topic-results a {
    transition: background-color 0.2s ease,
                border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.hymn-topic-results a:hover {
    background-color: #f0f7f2;
    border-color: #b8d3c1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* HYMN TOPIC RESULTS - TEXT READABILITY */

.hymn-topic-results a {
    font-size: 16px;
    line-height: 1.6;
}

.hymn-topic-results a:focus-visible {
    outline: 2px solid #d9a227;
    outline-offset: 2px;
}

/* HYMN TOPIC PAGE - BACK LINK */

.hymn-topic-results + a {
    display: inline-block;
    margin-top: 20px;
    padding: 11px 18px;
    background: #eaf3ed;
    color: #075b3b;
    border: 1px solid #c9dfd0;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.hymn-topic-results + a:hover {
    background: #d5e9db;
    color: #075b3b;
}

/* HYMN TOPIC PAGE - BACK BUTTON */

.back-to-hymns a {
    display: inline-block;
    padding: 12px 20px;
    background: #eaf3ed;
    color: #075b3b;
    border: 1px solid #c9dfd0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease,
                border-color 0.2s ease;
}

.back-to-hymns a:hover {
    background: #d5e9db;
    border-color: #d9a227;
    color: #075b3b;
}

/* SINGLE HYMN PAGE - LYRICS READABILITY */

.single-hymn-page .lyrics-content {
    font-size: 19px;
    line-height: 2;
    color: #26352c;
}

.single-hymn-page .full-lyrics-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .single-hymn-page .lyrics-content {
        font-size: 18px;
        line-height: 1.9;
    }
}

/* SINGLE HYMN - NOTATION HEIGHT ADJUSTMENT */

.single-hymn-page .interactive-notation iframe {
    height: 550px;
    min-height: 550px;
}

/* SINGLE HYMN - DETAILS PANEL READABILITY */

.single-hymn-page .hymn-info-row {
    padding: 16px 18px;
}

.single-hymn-page .hymn-info-row span {
    font-size: 14px;
    line-height: 1.5;
}

.single-hymn-page .hymn-info-row strong {
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.single-hymn-page .hymn-info-panel h2 {
    font-size: 20px;
    line-height: 1.4;
}

/* SINGLE HYMN - NAVIGATION BUTTON IMPROVEMENT */

.single-hymn-page .hymn-navigation a {
    border-radius: 9px;
    border: 1px solid #cbded2;
    background: #f5faf6;
    color: #075b3b;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 16px;
    transition: background-color 0.2s ease,
                border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.single-hymn-page .hymn-navigation a:hover {
    background: #075b3b;
    color: #ffffff;
    border-color: #075b3b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.single-hymn-page .hymn-navigation a:focus-visible {
    outline: 2px solid #d9a227;
    outline-offset: 3px;
}
/* Larger Mangalore Church Tunes logo */

.site-header .site-brand img {
    width: 520px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Keep logo responsive on mobile */

@media (max-width: 600px) {
    .site-header .site-brand img {
        width: 300px;
        max-width: 100%;
    }
}

/* =====================================
   Mangalore Church Tunes - Help Page
===================================== */

.mct-help-page {
    background: #f4f6f4;
    padding: 45px 20px 65px;
}

.mct-help-page .help-container {
    max-width: 1000px;
    margin: 0 auto;
}

.mct-help-page h1 {
    color: #006747;
    font-size: 36px;
    text-align: center;
    margin-bottom: 18px;
}

.mct-help-page .help-intro {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    color: #555;
    max-width: 800px;
    margin: 0 auto 35px;
}

.mct-help-page .help-section {
    background: #ffffff;
    padding: 25px 30px;
    margin-bottom: 18px;
    border-radius: 12px;
    border-left: 5px solid #006747;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.mct-help-page .help-section h2 {
    color: #006747;
    font-size: 23px;
    margin: 0 0 12px;
}

.mct-help-page .help-section p {
    color: #444;
    font-size: 17px;
    line-height: 1.8;
    margin: 0;
}

/* Mobile layout */

@media (max-width: 600px) {
    .mct-help-page {
        padding: 25px 15px 45px;
    }

    .mct-help-page h1 {
        font-size: 28px;
    }

    .mct-help-page .help-intro {
        font-size: 16px;
    }

    .mct-help-page .help-section {
        padding: 20px;
    }

    .mct-help-page .help-section h2 {
        font-size: 20px;
    }

    .mct-help-page .help-section p {
        font-size: 16px;
    }
}

/* Help Page Navigation Links */

.mct-help-page .help-page-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #006747;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease,
                transform 0.2s ease;
}

.mct-help-page .help-page-link:hover {
    background-color: #004d35;
    color: #ffffff;
    transform: translateY(-2px);
}

.mct-help-page .help-page-link:focus-visible {
    outline: 3px solid #e0ad42;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .mct-help-page .help-page-link {
        font-size: 15px;
        padding: 10px 16px;
    }
}

/* Help Page - Frequently Asked Questions */

.mct-help-page .help-faq details {
    background: #f8faf8;
    border: 1px solid #dce8df;
    border-radius: 8px;
    margin-top: 12px;
    overflow: hidden;
}

.mct-help-page .help-faq summary {
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 600;
    color: #006747;
    cursor: pointer;
}

.mct-help-page .help-faq summary:hover {
    background: #edf5ef;
}

.mct-help-page .help-faq details[open] {
    border-color: #006747;
}

.mct-help-page .help-faq details p {
    padding: 0 20px 18px;
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

@media (max-width: 600px) {
    .mct-help-page .help-faq summary {
        font-size: 16px;
        padding: 14px 16px;
    }

    .mct-help-page .help-faq details p {
        padding: 0 16px 16px;
    }
}

/* About Mangalore Church Tunes */

.mct-about-page {
    background: #f4f6f4;
    padding: 40px 20px 60px;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-container h1 {
    color: #176b3a;
    text-align: center;
    margin-bottom: 10px;
}

.about-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.about-section {
    background: #ffffff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    border-left: 5px solid #21804a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.about-section h2 {
    color: #176b3a;
    margin-bottom: 20px;
}

.about-section p {
    line-height: 1.9;
    margin-bottom: 18px;
    font-size: 17px;
}

.about-kannada p {
    line-height: 2.2;
    overflow-wrap: break-word;
}

.about-bible-verse {
    background: #f0f7f1;
    border-left: 4px solid #21804a;
    padding: 20px 25px;
    margin: 30px 0 10px;
    border-radius: 6px;
}

.about-bible-verse strong {
    color: #176b3a;
}

.about-bible-verse p {
    margin: 10px 0 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .mct-about-page {
        padding: 25px 12px 40px;
    }

    .about-section {
        padding: 20px;
    }

    .about-section p {
        font-size: 16px;
    }
}

/* Hymn Topic - Two Column Layout */

.hymn-topic-layout {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 30px;
    align-items: start;
}

.hymn-topic-main {
    min-width: 0;
}

.hymn-topic-bible {
    background: #ffffff;
    padding: 22px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    line-height: 1.7;
    font-size: 15px;
}

.hymn-topic-bible h2 {
    color: #14532d;
    font-size: 21px;
    margin-bottom: 20px;
}

.hymn-topic-bible-reading {
    margin-bottom: 25px;
}

.hymn-topic-bible-reading h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #07537a;
}

/* Mobile Layout */

@media (max-width: 768px) {
    .hymn-topic-layout {
        grid-template-columns: 1fr;
    }
}

/* Two-column hymn lyrics on desktop only */
@media (min-width: 1024px) {
    .lyrics-content {
        column-count: 2;
        column-gap: 40px;
        column-rule: 1px solid #e5e5e5;
    }
}

/* Keep hymn lyrics in one column on mobile and tablets */
@media (max-width: 1023px) {
    .lyrics-content {
        column-count: 1;
    }
}