/* General Theme Setup */
:root {
    --kerala-gold: #d4a017;
    --kerala-red: #b83b2d;
    --kerala-green: #1d6b4e;
    --warm-sand: #faf3e0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #1e2f23;
    background-color: var(--warm-sand);
}

h1, h2, h3, .section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Page Hero */
.page-hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, rgba(10, 30, 20, 0.8) 0%, rgba(0, 0, 0, 0.7) 100%),
                url('../images/about/3.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--warm-sand), transparent);
}

.page-hero h1 {
    font-size: 4rem;
    text-shadow: 2px 4px 15px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.page-hero .lead {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* District Grid */
.districts-section {
    padding: 80px 0;
}

.district-card {
    display: block;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    height: 320px;
    text-decoration: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    background: #000;
}

.district-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s ease;
    opacity: 0.8;
}

.district-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    color: white;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.district-name {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin: 0;
    transition: color 0.3s ease;
}

.district-link-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--kerala-gold);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.district-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(29, 107, 78, 0.3);
}

.district-card:hover img {
    transform: scale(1.1);
    opacity: 0.5;
}

.district-card:hover .district-overlay {
    transform: translateY(0);
}

.district-card:hover .district-link-text {
    opacity: 1;
    transform: translateX(0);
}

/* Animations & Responsiveness */
@media (max-width: 992px) {
    .page-hero h1 { font-size: 3rem; }
    .district-card { height: 280px; }
}

@media (max-width: 768px) {
    .page-hero h1 { font-size: 2.5rem; }
    .page-hero .lead { font-size: 1.1rem; padding: 0 15px; }
    .district-card { height: 240px; }
    .district-name { font-size: 1.5rem; }
}
