/* ================= BASE STYLES ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: white;
    color: #0D1B2A;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ================= LAYOUT ================= */
.outer-container {
    width: 90%;
    margin: 0 auto;
    padding-top: 120px;
    flex: 1;
    padding-bottom: 20px;
}

/* ================= HEADER ================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    height: 100px;
    width: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo img {
    padding-top: 20px;
    /* height: 100%; */
    max-height: 250px;
    width: auto;
}

/* ================= NAVBAR ================= */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* flex: 1; */
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu .nav-item.dropdown.nav-button-byso + .nav-button-donate {
    margin-left: 1rem;
}

.nav-menu li {
    position: relative;
}

.nav-button {
    text-decoration: none;
    color: #0D1B2A;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    display: inline-block;
}

.nav-button:hover {
    color: white;
    background-color: #0D1B2A;
}

/* Donate button - visually highlighted */
.nav-button-donate {
    background-color: #415A77;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    border: 2px solid #415A77;
}

/* BYSO button in navbar */
.nav-button-byso {
    background: none;
    border: none;
    cursor: grab;
}

.nav-button-donate:hover {
    background-color: #0D1B2A;
    border-color: #0D1B2A;
    color: white;
}

/* Mobile elements - hidden on desktop */
.menu-icon-container,
.menu-icon,
.header-back-button,
.mobile-only {
    display: none !important;
}

.nav-item.dropdown {
    position: relative;
}


/* ================= WELCOME SECTION ================= */
.welcome-section {
    padding-left: 1rem;
    display: flex;
    align-items: stretch;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* LEFT IMAGE */
.refresh-image {
    flex: 1;
    display: flex;
}

.carousel {
    position: relative;
    width: 50%;
    height: 620px; /* Exact 50x620 - never changes */
    width: 650px; /* Exact 50x650 - never changes */
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 27, 42, 0.7);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn:hover {
    background: rgba(13, 27, 42, 0.9);
}

/* RIGHT SCHEDULE */
.week-schedule {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
}

.week-schedule h2 {
    color: #415A77;
    margin-bottom: 1rem;
    font-size: 1.7rem;
    padding: 4px 0;
}

.schedule-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.schedule-details p {
    margin: 0.3rem 0;
    font-size: 1.2rem;
    line-height: 1.5;
}

.schedule-details span {
    color: #415A77;
    font-weight: bold;
}

.schedule-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

/* ================= BUTTONS ================= */
.button.front {
    background-color: #415A77;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.button.front:hover {
    background-color: #0D1B2A;
}

/* ================= FOOTER ================= */
.footer {
    background-color: #f8f9fa;
    color: #0D1B2A;
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: auto;
    border-top: 1px solid #e0e0e0;
}

.booya {
    color: #f8f9fa;
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer a {
    color: #415A77;
    text-decoration: underline;
    transition: color 0.3s;
}

.footer a:hover {
    color: #0D1B2A;
}

.admin-login-link {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.admin-login-link:hover {
    color: #415A77;
}

/* ================= PAGE SECTIONS ================= */
.about-box,
.visitors,
.community,
.info,
.events,
.halachos,
.shabbos,
.subscribe-form {
    margin-bottom: 2.5rem;
}

.about-box h2,
.visitors h2,
.community h2,
.info h2,
.events h2,
.halachos h2,
.shabbos h2 {
    color: #415A77;
    margin-bottom: 1rem;
}

.about-box p,
.visitors p,
.community p,
.info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ================= BUTTON LISTS ================= */
.visitors-buttons ul,
.community-buttons ul,
.info-buttons ul,
.info-Divrei-buttons ul,
.halachos ul,
.shabbos-Divrei-buttons ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.link-style,
.nav-button-events,
.nav-button-comm {
    background-color: #415A77;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: inline-block;
}

.link-style:hover,
.nav-button-events:hover,
.nav-button-comm:hover {
    background-color: #0D1B2A;
    color: white;
}

.link-style.active {
    background-color: #0D1B2A;
}

/* ================= FORM STYLES ================= */
.subscribe-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.subscribe-form h2 {
    color: #415A77;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subscribe-form > p {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #666;
}

.ctct-form-field {
    margin-bottom: 1rem;
}

.ctct-form-label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #415A77;
}

.ctct-form-element {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.ctct-form-element:focus {
    outline: none;
    border-color: #415A77;
}

.ctct-form-button {
    background-color: #415A77;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    margin-top: 1rem;
}

.ctct-form-button:hover:not(:disabled) {
    background-color: #0D1B2A;
}

.ctct-form-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#gdpr_text {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #666;
}

#gdbr_text .permission {
    line-height: 1.5;
}

/* ================= SPOTIFY EMBEDS ================= */
.spotify-embed,
.share-embed {
    margin: 1rem 0;
}

.spotify-embed iframe,
.share-embed iframe {
    border-radius: 10px;
    max-width: 100%;
}

/* ================= COLLAPSIBLE CONTENT ================= */
.collapsible {
    background-color: #415A77;
    color: white;
    cursor: pointer;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s;
}

.collapsible:hover {
    background-color: #0D1B2A;
}

.collapsible.active {
    background-color: #0D1B2A;
    border-radius: 5px 5px 0 0;
}

.content {
    display: none;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0 0 5px 5px;
}

.content.show {
    display: block;
}

/* ================= SEPARATOR SECTIONS ================= */
.separate,
.separate-index,
.separate-community,
.separate-info,
.separate-events,
.separate-Divrei,
.separate-halachos {
    padding: 1rem;
}

/* ================= GOOGLE MAP ================= */
iframe[src*="google.com/maps"] {
    border-radius: 5px;
    margin-top: 1rem;
    max-width: 100%;
}

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 1024px) {
    .nav-button {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .nav-button-donate {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .dropdown-menu:not(.dropdown-education) {
        position: static;
    }
}

/* ================= STAFF PAGE ================= */

/* Staff layout - about box top, photos row below */


.staff-photos {
    display: flex;
    flex-direction: row;
    gap: 5rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.staff-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: fit-content;
}

.staff-card:hover {
    transform: translateY(4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.staff-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 200px;
}

.staff-photo {
    width: 300px;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.staff-card-rav {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: fit-content;
}

.staff-photo-rav {
    position: relative;   /* needed for pseudo-element */
    width: 325px;
    height: 425px;
    border-radius: 12px;
    overflow: hidden;
}

.staff-photo-rav {
    width: 325px;
    height: 425px;
    padding: 12px; /* 👈 THIS creates visible space */
    border-radius: 16px;

    /* background: radial-gradient(
        circle at center,
        rgba(65, 90, 119, 0.76),
        rgba(65, 90, 119, 0.76),
        transparent
    ); */

    box-shadow: 0 6px 18px         rgba(65, 90, 119, 0.76);
}

.staff-photo-rav img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.staff-name {
    margin-top: 0.75rem;
    text-align: center;
    flex-shrink: 0;
}

.staff-name h3 {
    color: #0D1B2A;
    font-size: 1.1rem;
    margin: 0 0 0.25rem 0;
    font-weight: 700;
}

.staff-title {
    color: #415A77;
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
}

.staff-bio {
    flex: 1;
    margin: 0;
}

.staff-bio p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.staff-bio-box {
    max-width: 800px;
    margin: 2rem auto 3rem;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.staff-bio-box h2 {
    color: #415A77;
    margin-bottom: 1.5rem;
    font-size: 1.7rem;
}

.staff-bio-box p {
    color: #666;
    line-height: 1.7;
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
}

.staff-bio-box p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* Responsive - stack on tablet/mobile */
@media screen and (max-width: 900px) {
    .staff-photos {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .staff-card {
        max-width: 350px;
        flex-direction: row;
    }
}


/* Section heading for Administration */
.separate-community .about-box h2 {
    font-size: 1.7rem;
    letter-spacing: 0.5px;
    color: #415A77;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.separate-community .about-box h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #415A77;
}

/* ================= MAP CONTAINER ================= */
.map-container {
    margin-top: 1.5rem;
    max-width: 100%;
}

/* ================= TWO COLUMN LAYOUT ================= */
.two-column-sections {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.two-column-sections .visitors,
.two-column-sections .community {
    flex: 1;
    margin-bottom: 0;
}

/* ================= BUTTON LIST ================= */
.button-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.button-list .link-style {
    margin: 0;
}

/* Mobile responsive */
@media screen and (max-width: 1170px) {
    .two-column-sections {
        flex-direction: column;
    }
}

/* ================= CARD GRID ================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-image {
    width: 405px;
    height: 200px;
    object-fit: cover;
}

/*sponsorship card - white background for logo area */
.card:has(img[alt*="Sponsor"]) .card-image {
    object-fit: cover;
    object-position: top;
    background-color: white;
}

/* School page - logos fit inside card without cropping */
.school-card-grid .card-image {
    object-fit: contain;
    background-color: #f8f9fa;
}

/* Community page - logos fit inside card without cropping */
.separate-community .card-image {
    object-fit: cover;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

/* NCSY card - black background for logo area */
.card-bytc .card-image {
    background-color: black;
}

/* MN Kosher logo - use contain to avoid cropping */
.card:has(img[alt*="Minnesota Kosher"]) .card-image {
    object-fit: contain;
}

/* Minnesota Guide logo - use contain to avoid cropping */
.card:has(img[alt*="Minnesota Guide"]) .card-image {
    object-fit: contain;
}

.card-ncsy .card-image {
    background-color: white;
}

/* Bikur Cholim image - drop down 1px */
.card:has(img[alt*="Bikur Cholim"]) .card-image {
    transform: translateY(1px);
}

/* Eiruv Map image - show entire image filling card container */
.card:has(img[alt*="Eiruv"]) .card-image {
    object-fit: fill;
    object-position: center 60%;
    background-color: #6489bc;
}

.card:has(img[alt*="Camps"]) .card-image {
    object-fit: cover;
    object-position: center 60%;
    background-color: white;
}

.card:has(img[alt*="CampAshira"]) .card-image {
    object-fit: fill;
    object-position: center 60%;
    background-color: white;
}

.card:has(img[alt*="Minnesota Guide"]) .card-image {
    object-fit: fill;
    object-position: center 60%;
    background-color: white;
}
.card:has(img[alt*="Minneapolis Jewish Federation"]) .card-image {
    object-fit: contain;
    object-position: center 60%;
    background-color: white;
}

.card .link-style {
    width: 100%;
    text-align: center;
    border-radius: 0;
    padding: 15px 20px;
}

/* Tablet: 2 columns */
@media screen and (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 column */
@media screen and (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= EDUCATION DROPDOWN - CLICK-BASED ================= */
ul.dropdown-education {
    max-height: 0;
    overflow: hidden;
    background-color: #f8f9fa !important;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    border-radius: 5px;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 1001;
}

ul.dropdown-education.show {
    display: block !important;
    max-height: 500px;
    opacity: 1;
    padding: 0.5rem 0;
}

ul.dropdown-education li {
    margin: 0;
    display: block !important;
    width: 100%;
}

ul.dropdown-education li a.nav-button {
    color: #0D1B2A;
    display: block;
    padding: 0.5rem 1rem;
    width: 100%;
    text-align: left;
    border-radius: 0;
    font-size: 0.9rem;
    background: transparent !important;
    font-weight: 500;
    text-decoration: none;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ================= EDUCATION DROPDOWN HOVER ================= */

ul.dropdown-education li a.nav-button:hover {
    background-color: #0D1B2A !important;
    color: white !important;
}

.dropdown-menu:not(.dropdown-education) {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #f8f9fa;
    border-radius: 5px;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); */
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 1001;
}

.dropdown-menu:not(.dropdown-education).show {
    opacity: 1;
    max-height: 500px;
    padding: 0.5rem 0;
}

.dropdown-menu:not(.dropdown-education) li {
    display: block;
    width: 100%;
}

.dropdown-menu:not(.dropdown-education) .nav-button {
    color: #0D1B2A;
    display: block;
    padding: 0.5rem 1rem;
    width: 100%;
    text-align: left;
    border-radius: 0;
    font-size: 0.9rem;
    background: transparent !important;
    font-weight: 500;
    text-decoration: none;
}

.dropdown-menu:not(.dropdown-education) [data-folder="BYSO"] {
    color: #0D1B2A !important;
    /* font-weight: 600; */
}

.dropdown-menu:not(.dropdown-education) .nav-button:hover {
    background-color: #0D1B2A !important;
    color: white !important;
}

a.nav-button-education.active {
    background-color: #0D1B2A !important;
    color: white !important;
}

/* ================= PROGRAM BOXES ================= */
.program-boxes-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

.program-box {
    flex: 1;
    background: white;
    border: none;
    border-radius: 12px;
    padding: .75rem;
    min-height: 180px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.program-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.program-box h3 {
    color: #0D1B2A;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.program-box .box-content {
    color: #666;
    text-align: center;
    line-height: 1.6;
    min-height: 60px;
}

/* Section heading styling for Programs page */
.separate .info h2 {
    font-size: 1.7rem;
    letter-spacing: 0.5px;
    color: #415A77;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.separate .info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #415A77;
}

.separate .info p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 700px;
}

/* Responsive: stack boxes on mobile */
@media screen and (max-width: 1170px) {
    .program-boxes-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .program-box {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .program-box h3 {
        font-size: 1.2rem;
    }
}


/* .header-back-button {
    display: block !important;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    color: #0D1B2A;
    transition: all 0.3s ease;
}

.header-back-button:hover {
    background-color: #415A77;
    color: white;
} */


/* ================= Divrei TORAH PAGE STYLES ================= */

/* Page fade-in animation */
.separate-Divrei {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content width and spacing */
.separate-Divrei {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.separate-Divrei .info {
    margin-bottom: 3.5rem;
    padding: 2rem;
    background: white;
}

.separate-Divrei .info:last-child {
    margin-bottom: 0;
}

/* Section heading styling */
.separate-Divrei .info h2 {
    font-size: 1.7rem;
    letter-spacing: 0.5px;
    color: #415A77;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.separate-Divrei .info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #415A77;
}

/* Improve readability */
.separate-Divrei .info p {
    line-height: 1.7;
}


/* ================= Divrei TORAH BUTTON GRID ================= */
.Divrei-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.Divrei-list li {
    margin: 0;
}

.Divrei-list .link-style {
    width: 100%;
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    color: #415A77;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.Divrei-list .link-style:hover {
    background-color: #415A77;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.Divrei-list .link-style.active {
    background-color: #0D1B2A;
    color: white;
}


/* ================= COLLAPSIBLE AUDIO CARDS ================= */
.halacha-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.halacha-list > li {
    margin-bottom: 1rem;
}

.halacha-list > li:last-child {
    margin-bottom: 0;
}

/* Card container for each collapsible item */
.audio-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #415A77;
    transition: all 0.25s ease;
}

.audio-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Collapsible button styling */
.audio-card .collapsible {
    background-color: transparent;
    color: #0D1B2A;
    padding: 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    transition: color 0.25s ease;
    letter-spacing: 0.3px;
}

.audio-card .collapsible::before {
    content: '\25B6';
    font-size: 0.6rem;
    margin-right: 0.6rem;
    color: #415A77;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.audio-card .collapsible:hover {
    background-color: transparent;
    color: #415A77;
}

.audio-card .collapsible:hover::before {
    transform: translateX(3px);
}

/* Active state */
.audio-card .collapsible.active {
    background-color: transparent;
    color: #0D1B2A;
    border-radius: 0;
}

.audio-card .collapsible.active::before {
    content: '\25BC';
    font-size: 0.55rem;
    transform: translateY(1px);
}

/* Content panel */
.audio-card .content {
    display: none;
    padding: 0.75rem 0 0;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.audio-card .content.show {
    display: block;
}

/* Spotify embed styling - tighter fit */
.audio-card .spotify-embed,
.audio-card .share-embed {
    margin: 0;
}

.audio-card .spotify-embed iframe,
.audio-card .share-embed iframe {
    border-radius: 6px;
    max-width: 100%;
    height: 152px;
}


/* ================= MODERNIZED LINK-STYLE BUTTONS ================= */
.link-style {
    background-color: #415A77;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.4px;
    display: inline-block;
}

.link-style:hover {
    background-color: #0D1B2A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.link-style.active {
    background-color: #0D1B2A;
    color: white;
}


/* ================= RESPONSIVE STYLES ================= */
@media screen and (max-width: 1170px) {
    .separate-Divrei {
        padding: 1rem 0.5rem 3rem;
    }
    
    .separate-Divrei .info {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .separate-Divrei .info h2 {
        font-size: 1.5rem;
    }
    
    /* Divrei list becomes single column */
    .Divrei-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .Divrei-list .link-style {
        padding: 1.25rem 1rem;
    }
    
    /* Audio cards on mobile */
    .audio-card {
        padding: 1rem;
    }
    
    .audio-card .collapsible {
        font-size: 1rem;
    }
}


/* ================= HALACHOS PAGE STYLES ================= */

/* Page fade-in animation */
.separate-halachos {
    animation: fadeIn 0.5s ease-out;
}

/* Content width and spacing */
.separate-halachos {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.separate-halachos .halachos,
.separate-halachos .shabbos {
    margin-bottom: 3.5rem;
    padding: 2rem;
    background: white;
}

.separate-halachos .halachos:last-child,
.separate-halachos .shabbos:last-child {
    margin-bottom: 0;
}

/* Section heading styling */
.separate-halachos .halachos h2,
.separate-halachos .shabbos h2 {
    font-size: 1.7rem;
    letter-spacing: 0.5px;
    color: #415A77;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.separate-halachos .halachos h2::after,
.separate-halachos .shabbos h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #415A77;
}

/* Improve readability */
.separate-halachos .halachos p,
.separate-halachos .shabbos p {
    line-height: 1.7;
}

/* Shabbos section subtitle */
.separate-halachos .shabbos p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}


/* ================= HALACHOS BUTTON GRID ================= */
.separate-halachos .visitors-buttons {
    margin-top: 1rem;
}

.separate-halachos .visitors-buttons ul,
.separate-halachos .shabbos-Divrei-buttons ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.separate-halachos .visitors-buttons ul li,
.separate-halachos .shabbos-Divrei-buttons ul li {
    margin: 0;
}

.separate-halachos .visitors-buttons .link-style,
.separate-halachos .shabbos-Divrei-buttons .nav-button-comm {
    width: 100%;
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    color: #415A77;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.separate-halachos .visitors-buttons .link-style:hover,
.separate-halachos .shabbos-Divrei-buttons .nav-button-comm:hover {
    background-color: #415A77;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.separate-halachos .shabbos-Divrei-buttons .nav-button-comm {
    background-color: #f8f9fa;
}


/* ================= HALACHOS RESPONSIVE ================= */
@media screen and (max-width: 1170px) {
    .separate-halachos {
        padding: 1rem 0.5rem 3rem;
    }
    
    .separate-halachos .halachos,
    .separate-halachos .shabbos {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .separate-halachos .halachos h2,
    .separate-halachos .shabbos h2 {
        font-size: 1.5rem;
    }
    
    /* Button grid becomes single column */
    .separate-halachos .visitors-buttons ul,
    .separate-halachos .shabbos-Divrei-buttons ul {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .separate-halachos .visitors-buttons .link-style,
    .separate-halachos .shabbos-Divrei-buttons .nav-button-comm {
        padding: 1.25rem 1rem;
    }
}

.refresh-image {
    flex: 1;
    display: flex;
    justify-content: center;  /* centers horizontally */
    align-items: center;      /* centers vertically */
}

.carousel {
    margin: 0 auto; /* extra safety centering */
}