@import url("series_page_base.css");

:root {
    --hero-bg-image: url('/images/ruwanweliseya-anuradhapura.jpg');
    --hero-padding: 5px 5px;
    --hero-margin-bottom: 5px;
    --hero-h1-size: 1.8rem;
    --hero-h2-size: 1.2rem;
}

.hero-section {
    line-height: normal;
}

.hero-section h1 {
    margin: 5px 0 5px;
}

.hero-section h2 {
    margin: 10px 0 10px;
}

/* Unique Index Page Styles below */
.section-header {
    text-align: center;
    margin: 30px 0;
}

.section-header h2 {
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    font-weight: bold;
}

/* Fix for previous typo: body { padding: 15px; } -> .card-body { padding: 15px; } */
.card-body {
    padding: 15px;
}

.card-body ul {
    padding-left: 20px;
    margin: 0;
}

.card-body li {
    margin-bottom: 10px;
}

.card-body a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.card-body a:hover {
    text-decoration: underline;
}

.notice-box {
    background-color: #fff9e6;
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.notice-box h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.zoom-info {
    background-color: #fff9e6;
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 20px 0;
}

.zoom-info h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.disclaimer {
    background-color: #f8f8f8;
    border-top: 1px solid #ddd;
    padding: 15px;
    margin-top: 30px;
    font-size: 0.9rem;
    text-align: center;
}

.chiththa-card {
    background-image: url('/images/cc_chart_small.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
}

.chiththa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Fixed typo where body { position: relative; z-index: 2; } was applied globally */
.chiththa-card .card-body {
    position: relative;
    z-index: 2;
}

.chiththa-card .card-body a {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
}

.chiththa-card .card-body a:hover {
    text-decoration: underline;
    color: #f0c850;
}

.image-card {
    background-size: cover;
    background-position: center;
    position: relative;
    color: darkgreen;
    --card-image: url('/images/cc_chart_small.jpg');
    background-image: var(--card-image);
}

.image-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Fixed typo where body { position: relative; z-index: 2; } was applied globally */
.image-card .card-body {
    position: relative;
    z-index: 2;
}

.image-card .card-body a {
    color: darkgreen;
    text-decoration: none;
    font-weight: bold;
}

.image-card .card-body a:hover {
    text-decoration: underline;
    color: darkblue;
}

.footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .card-container {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }
}