/* style.css */

/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.header{
    background: lightblue;
}

/* Navbar */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #333;
    color: #fff;
    padding: .5rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Logo Centered in Mobile */
nav .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

nav .logo img {
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
}

/* Navigation Menu */
nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease-in-out;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #00bcd4;
}

/* Hamburger Icon */
nav .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

nav .hamburger span {
    background: #fff;
    height: 3px;
    width: 25px;
    margin: 4px 0;
    transition: 0.3s;
}

/* Mobile View */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #333;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }

    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    nav ul li {
        margin: 1rem 0;
        text-align: center;
    }

    nav .hamburger {
        display: flex;
    }
    /* nav{
        
        margin-bottom:100px;
    } */
}


header {
    background: url('./assets/header-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 5rem 1rem;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #000;
}

header p {
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Main Content */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.card img:hover {
    opacity:0.5;
    content:'visit';
}

.card-content {
    padding: 1rem;
    text-align: center;
}

.card-content h2 {
    margin: 0.5rem 0;
    font-size: 1.5rem;
    color: #333;
}

.card-content p {
    font-size: 1rem;
    color: #666;
}

.card-content .btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #00bcd4;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.card-content .btn:hover {
    background: #0097a7;
}

/* Articles Section */
section {
    padding: 2rem 0;
}

article {
    background: #f9f9f9;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

article h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #333;
}

article p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

/* Form Styles */
form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

form input,
form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form button {
    padding: 0.8rem 1.5rem;
    background: #00bcd4;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

form button:hover {
    background: #0097a7;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background: #333;
    color: #fff;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {

    header {
        padding: 3rem 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .grid {
        gap: 1.5rem;
    }
}
