*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body{
    background:#f4fff4;
    color:#333;
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

p {
  font-size: 16px;
  line-height: 1.5; /* Line height becomes 24px (16 * 1.5) */
}

header{
    height:462px;
    background:url("images/KrushiAshrama1.png") center center/cover no-repeat;
    position:relative;
}

p
.overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,100,0,0.45);
    display:flex;
    justify-content:center;
    align-items:center;
}

.overlay h1{
    color:white;
    font-size:3rem;
    text-shadow:2px 2px 5px #000;
}

nav{
    background:#1b5e20;
}

nav ul{
    list-style:none;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
}

nav ul li a{
    display:block;
    padding:15px 25px;
    color:white;
    text-decoration:none;
    font-weight:bold;
}

nav ul li a:hover{
    background:#388e3c;
}

main{
    flex:1;
    max-width:1200px;
    margin:30px auto;
    padding:20px;
    width:90%;
}

.content-box{
    background:white;
    padding:25px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
    border-left:6px solid #4caf50;
}

.content-box h2{
    color:#2e7d32;
    margin-bottom:15px;
}

footer{
    background:#145a1f;
    color:white;
    text-align:center;
    padding:20px;
    line-height:1.8;
}

@media(max-width:768px){
    .overlay h1{
        font-size:2rem;
    }

    nav ul{
        flex-direction:column;
    }

    nav ul li{
        text-align:center;
    }
}

.activities{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:25px;
    margin-top:30px;
}

.activity-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,0,0,0.12);
    transition:0.3s;
}

.activity-card:hover{
    transform:translateY(-5px);
}

.activity-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.activity-card h3{
    color:#1b5e20;
    padding:15px 15px 5px;
}

.activity-card p{
    padding:0 15px 20px;
}

----carousel

.carousel {
    position: relative;
    max-width: 100%;
    height: 400px;
    overflow: hidden;
}

.slides {
    display: none;
    width: 100%;
    height: 400px;
}

.slides img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.caption {
    position: absolute;
    bottom: 20px;
    left: 30px;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    background: rgba(0,0,0,0.5);
    padding: 10px 15px;
    border-radius: 5px;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    background: rgba(0,0,0,0.4);
    border-radius: 3px;
    user-select: none;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover,
.next:hover {
    background: rgba(0,0,0,0.8);
}

.fade {
    animation: fadeEffect 1s;
}

@keyframes fadeEffect {
    from {opacity: 0.4;}
    to {opacity: 1;}
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .carousel,
    .slides,
    .slides img {
        height: 250px;
    }

    .caption {
        font-size: 18px;
    }
}

.events-section{
    padding:60px 20px;
}

.container{
    max-width:1200px;
    margin:auto;
}

.events-section h2{
    text-align:center;
    color:#2e7d32;
    font-size:36px;
    margin-bottom:40px;
}

.events-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:25px;
}

.event-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    display:flex;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    transition:0.3s;
}

.event-card:hover{
    transform:translateY(-5px);
}

.event-date{
    width:100px;
    background:#4caf50;
    color:#fff;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:20px;
}

.event-date .day{
    font-size:34px;
    font-weight:bold;
}

.event-date .month{
    font-size:16px;
    letter-spacing:1px;
}

.event-content{
    padding:20px;
    flex:1;
}

.event-content h3{
    color:#2e7d32;
    margin-bottom:10px;
}

.event-content p{
    color:#555;
    line-height:1.6;
    margin-bottom:15px;
}

.event-time{
    display:inline-block;
    background:#e8f5e9;
    color:#2e7d32;
    padding:8px 12px;
    border-radius:20px;
    font-size:14px;
    font-weight:600;
}



.magazine-section{
    padding:70px 20px;
    background:#f5f9f4;
}

.container{
    max-width:1200px;
    margin:auto;
}

.magazine-section h2{
    text-align:center;
    font-size:40px;
    color:#2e7d32;
    margin-bottom:15px;
}

.subtitle{
    text-align:center;
    max-width:800px;
    margin:0 auto 50px;
    color:#555;
    line-height:1.7;
}

.magazine-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.magazine-card{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);
    transition:0.3s ease;
}

.magazine-card:hover{
    transform:translateY(-8px);
}

.magazine-card img{
    width:100%;
    height:350px;
    object-fit:cover;
}

.content{
    padding:25px;
}

.content h3{
    color:#2e7d32;
    margin-bottom:10px;
}

.content p{
    color:#666;
    margin-bottom:20px;
}

.download-btn{
    display:inline-block;
    background:#4caf50;
    color:#fff;
    text-decoration:none;
    padding:12px 24px;
    border-radius:30px;
    font-weight:600;
    transition:0.3s;
}

.download-btn:hover{
    background:#2e7d32;
}