/* 
Theme Name: themeshasha
Description: KentMallu – Connecting Malayalees Across Kent
Author: KentMallu
Version: 1.3
*/

/* =========================
   GLOBAL RESET & BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
    background-color: #f4f6f8;
    color: #333;
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3, h4 {
    color: #0a3d62;
    margin-bottom: 15px;
}

h1 {
    font-size: 42px;
}

h2 {
    font-size: 28px;
}

p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* =========================
   LAYOUT
========================= */
section {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
}

.container {
    max-width: 1200px;
    margin: auto;
}

/* =========================
   HERO SECTION WITH SLIDING BACKGROUND
========================= */
.hero {
    position: relative;
    color: #ffffff;
    padding: 90px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
    margin-bottom: 40px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 61, 98, 0.5); /* semi-transparent overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 50px;
    letter-spacing: 1px;
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 15px auto;
}

/* =========================
   NEWS SECTION
========================= */
.news article {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.news article h3 {
    font-size: 22px;
}

.news article p {
    color: #555;
}

.news article a {
    color: #0a3d62;
    font-weight: bold;
    text-decoration: none;
}

.news article a:hover {
    text-decoration: underline;
}

/* =========================
   CULTURE & UNITY
========================= */
.culture {
    background: #eef6f3;
    border-left: 6px solid #009432;
    padding-left: 20px;
    margin-bottom: 40px;
}

/* =========================
   ADVERTISEMENT SECTION
========================= */
.ads {
    background: #fff7e6;
    border: 2px dashed #f39c12;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 40px;
}

.ads h3 {
    color: #d35400;
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-block;
    background: #0a3d62;
    color: #ffffff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 15px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #1e3799;
}

/* =========================
   FOOTER
========================= */
footer {
    background: #0a3d62;
    color: #ffffff;
    text-align: center;
    padding: 25px 15px;
}

footer p {
    font-size: 14px;
}

/* =========================
   MALAYALAM TEXT SUPPORT
========================= */
.malayalam {
    font-family: "Noto Sans Malayalam", Arial, sans-serif;
}

/* =========================
   IMAGE SLIDER / BANNER
========================= */
.slider-section {
    max-width: 1200px;
    margin: 40px auto;
}

.slider {
    overflow: hidden;
    border-radius: 8px;
}

.slider img {
    width: 100%;
    height: 250px; /* desktop */
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
    transition: transform 0.5s ease;
}

.slider img:hover {
    transform: scale(1.02);
}

/* =========================
   RESPONSIVE (MOBILE)
========================= */
@media (max-width: 768px) {

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }

    .hero {
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    section {
        padding: 35px 15px;
    }

    .news article {
        padding: 15px;
    }

    .slider img {
        height: 180px; /* mobile smaller height */
    }

    .ads {
        padding: 20px;
    }

    .culture {
        padding-left: 15px;
        border-left-width: 4px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    footer {
        padding: 20px 10px;
    }
}