/* --- General Styles --- */
body {
    font-family: 'Georgia', serif;
    background-color: #f8f8f8;
    color: #333;
}

.navbar-light {
    background-color: #f1f1f1 !important;
}

.navbar-brand img {
    max-height: 44px;
}

.hero {
    background-image: url('/images/stoic-8431544_1280.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.65rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    color: #212529;
    margin-top: 3rem;
}

.card {
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

a .card-title {
    color: #b29a70;
    text-decoration: none;
}

a:hover .card-title {
    text-decoration: underline;
}

/* --- Subject Page Styles --- */
.quote {
    background-color: #f8f9fa;
    padding: 10px 20px;
    border-left: 6px solid #b29a70;
    margin-bottom: 1.5rem;
}

.quote p {
    font-size: 1.2rem;
    font-style: italic;
}

.quote-author {
    font-size: 1rem;
    padding-left: 10px;
}

/* --- Carousel Styles --- */
.carousel {
    background-color: #fff;
    color: #000;
    margin-bottom: 2rem;
    overflow: hidden;
    padding: 0;
}

.carousel-inner {
    display: flex;
}

.carousel-item {
    text-align: center;
    width: 100%;
    padding: 0;
}

.carousel-content {
    max-width: 80%;
    margin: 0 auto;
    padding: 1.5rem;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.carousel-content a {
    text-decoration: none;
    color: #000;
}

/* --- Remove Topic Title --- */
.carousel-content h3 {
    display: none;
}

.carousel-indicators {
    margin-bottom: -30px;
}

.carousel-indicators [data-bs-target] {
    background-color: #b29a70;
    opacity: 0.8;
    width: 25px;
    height: 5px;
}

.carousel-indicators .active {
    opacity: 1;
    height: 7px;
    width: 30px;
}

/* --- Quote Styles --- */
.carousel-quote-container {
    background-color: #f8f9fa; 
    border-left: 6px solid #b29a70; 
    padding: 1.5rem; 
    margin-bottom: 0.5rem;
}

.carousel-quote {
    font-size: 1.2rem; 
    font-style: italic;
    line-height: 1.5;
    text-decoration: none !important; 
    color: #000;
}

.carousel-quote:hover {
    text-decoration: underline !important;
}

.carousel-author {
    font-size: 1rem;
    margin-top: 0.5rem;
    text-align: right;
    color: #000;
    white-space: nowrap;
}

/* --- Link Styles --- */
.link-container {
    width: 100%;
}

.more-link {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: transparent;
    color: #b29a70;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    text-decoration: none;
}

.more-link:hover {
    text-decoration: underline;
}

/* --- Carousel Control Styles --- */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #b29a70;
    text-align: center;
    background: #fff;
    border: 0;
    opacity: 0.8;
    transition: opacity 0.15s ease;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: transparent no-repeat center center;
    background-size: 100% 100%;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' fill='%23b29a70' class='bi bi-chevron-left' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' fill='%23b29a70' class='bi bi-chevron-right' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    color: #b29a70;
    text-decoration: none;
    outline: 0;
    opacity: 1;
}

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}