/* ================== GLOBAL STYLES ================== */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

footer {
    font-size: 0.9rem;
}

/* ---------------- Navbar ---------------- */
.navbar-nav .nav-link {
    padding-left: 1rem;
    padding-right: 1rem;
    font-weight: 500;
}

.navbar-nav .nav-link.active {
    text-decoration: underline;
}

.navbar-brand small {
    font-size: 0.7rem;
    font-style: italic;
    line-height: 1;
    color: #ced4da;
}

.navbar-nav .dropdown-menu {
    min-width: 8rem;
}

.navbar-nav .dropdown-item {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
}

.navbar-nav .dropdown-item:hover {
    background-color: #495057;
}

/* ---------------- Header Background ---------------- */
header {
    background: url('../assets/lvw_banner.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

header .container {
    position: relative;
    z-index: 1;
}

/* ================== INDEX PAGE SPECIFIC ================== */
#index-page .hero-section .btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
    transition: background-color 0.3s ease;
}

#index-page .hero-section .btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

#index-page #intro {
    max-width: 700px;
    margin: 0 auto;
    background-color: transparent;
    border: none;
}

#index-page #intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

#index-page #intro h2 {
    margin-bottom: 1rem;
}

#index-page .offerings-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 0.5rem;
    position: relative;
    aspect-ratio: 1 / 1;
}

#index-page .offerings-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#index-page .offerings-item:hover img {
    transform: scale(1.05);
}

#index-page .offerings-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;
    background: rgba(0, 0, 0, 0.5);
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

#index-page .offerings-item:hover .overlay {
    background: rgba(0, 0, 0, 0.6);
}

#index-page .offerings-item .overlay .btn {
    white-space: nowrap;
    min-width: 140px;
    padding: 0.5rem 1.2rem;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

#index-page .offerings-item .overlay .btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

#index-page .offerings-item .overlay h3 {
    flex-shrink: 1;
    margin-right: 1rem;
    min-width: 0;
}

/* ================== ABOUT PAGE SPECIFIC ================== */
#about-page .about-image {
    width: 100%;
    max-width: 70vw;
    height: auto;
}

@media (max-width: 576px) {
    #about-page .about-image {
        max-width: 100%;
    }
}

@media (min-width: 1000px) {
  #about-page .about-image {
    max-width: 800px;
    width: 100%;
  }
}

#about-page .about-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

#about-page .spacer {
    padding-top: 1.5rem;
}

#about-page #about-text {
    max-width: 700px;
    margin: 0 auto;
}

#about-page .who-img-wrapper {
    width: 300px;        
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #212529;
}

@media (max-width: 991.98px) {
    #about-page .who-img-wrapper {
        width: 250px;
        height: 250px;
    }
}

#about-page .who-img-wrapper .who-image {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* fills the wrapper without stretching */
    transition: transform 0.3s ease;
}

#about-page .who-img-wrapper:hover .who-image {
    transform: scale(1.05);
}

#about-page .row.justify-content-center {
    gap: 1.5rem;
}

@media (min-width: 1200px) {
    #about-page .row.justify-content-center {
        gap: 0rem; 
    }
}

/* ================== BOOKS PAGE SPECIFIC ================== */
/* Books Page Specific Styles */
#books-page .book-item img {
    width: 100%;
    max-width: 300px;  /* optional: limit image width */
    height: auto;
    border-radius: 0.5rem;
}

#books-page .book-footer {
    font-size: 0.9rem;
    color: #6c757d;
}

#books-page .book-synopsis p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

#books-page .book-purchase p {
    font-size: 0.95rem;
    font-style: italic;
}

#books-page .book-download p {
    font-size: 0.95rem;
    font-style: italic;
    color: #495057; /* subtle gray, different from purchase links */
    margin-top: 0.5rem;
}

/* ================== TALKS PAGE SPECIFIC ================== */
#talks-page .talk-item img {
    max-width: 100%;
    border-radius: 0.5rem;
}

#talks-page .talk-footer {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 0.5rem;
}

#talks-page .talk-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

#talks-page .talk-details {
    font-size: 0.95rem;
    font-style: italic;
    color: #495057; /* subtle gray, different from purchase links */
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* ================== MEDIA PAGE SPECIFIC ================== */

#media-page .media-item .ratio {
    max-width: 100%;
    border-radius: 0.5rem;
}

#media-page .media-description {
    font-size: 1rem;
    max-width: 50vw;
    line-height: 1.6;
    color: #333;
    margin: 0 auto; 
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    #media-page .media-item .media-description {
        max-width: 100%;    /* full width on mobile */
    }
}

#media-page .media-item .media-img {
    width: 100%;
    max-width: 40vw;
    border-radius: 0.5rem;
    margin: 0 auto; 
}

@media (max-width: 576px) {
    #media-page .media-item .media-img {
        max-width: 100%;
    }
}

.video-wrapper {
    position: relative;
    cursor: pointer;
    max-width: 50%;  /* limit size on desktop */
    margin: 0 auto;
}

.video-wrapper .video-thumb {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
}

.video-wrapper .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
    pointer-events: none;
}


