/* --- COLOR SYSTEM --- */
:root {
    --primary: #4f46e5;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --light-bg: #f1f5f9;
    --dark: #0f172a;
    --text: #1e293b;
    --white: #ffffff;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* BODY */
body {
    background: linear-gradient(135deg, #eef2ff, #e0f2fe);
    color: var(--text);
    line-height: 1.6;
}

/* --- TOP BAR --- */
.top-bar {
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    color: white;
    font-size: 0.9rem;
    padding: 8px 0;
}

.top-bar .container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
}

/* --- HEADER --- */
header {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #ddd;
}

nav {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
}

/* LOGO */
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area img {
    width: 50px;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary);
}

/* NAV */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    padding: 5px 8px;
    border-radius: 6px;
    transition: 0.3s;
}

/* HOVER EFFECT */
nav ul li a:hover {
    background: var(--primary);
    color: white;
}

/* --- SECTION --- */
.section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
}

.section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 40px;
}

/* --- CARDS --- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

/* TOP COLOR STRIP */
.card::before {
    content: "";
    position: absolute;
    height: 5px;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, #4f46e5, #06b6d4, #f59e0b);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* --- FACILITY --- */
.facility-card {
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    padding: 25px;
    border-radius: 12px;
    border-left: 6px solid var(--secondary);
    transition: 0.3s;
}

.facility-card:hover {
    border-left-color: var(--accent);
    transform: translateY(-8px);
}

/* --- FORM --- */
form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

form input,
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

form input:focus,
form textarea:focus {
    border-color: var(--primary);
    outline: none;
}

form button {
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    opacity: 0.9;
}

/* --- GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 220px; /* fixed size for all images */
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

/* IMAGE SIZE FIX */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* keeps image proportion but fills box */
    transition: 0.5s ease;
}

/* HOVER EFFECT */
.gallery-item:hover img {
    transform: scale(1.15);
}

/* OPTIONAL OVERLAY EFFECT */
.gallery-item::after {
    content: "View Activity";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0,0,0,0.5);
    color: white;
    text-align: center;
    font-size: 14px;
    opacity: 0;
    transition: 0.4s;
}

.gallery-item:hover::after {
    opacity: 1;
}

footer {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    margin-top: 60px;
}
/* FOOTER GRID */
.footer-top {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 15px;
}

.footer-section p,
.footer-section a {
    font-size: 0.9rem;
    color: #cbd5e1;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--secondary);
}

/* BOTTOM */
.footer-bottom {
    text-align: center;
    padding: 25px;
    background: #020617;
    font-size: 0.85rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
}