﻿
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


.logo {
    font-family: 'Pacifico', cursive;
    color: #fff;
    font-size: 1.6rem;
    letter-spacing: 1px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 6px;
    list-style: none;
}

    .nav-links a {
        color: #d1d5e0;
        text-decoration: none;
        font-size: .875rem;
        font-weight: 500;
        padding: 6px 12px;
        border-radius: 6px;
        transition: background .2s, color .2s;
    }

        .nav-links a:hover {
            background: rgba(255,255,255,.12);
            color: #fff;
        }

/* ── HERO ── */

/* ── GRID ── */
.grid-section {
    flex: 1;
    max-width: 1100px;
    margin: 40px auto;
    width: 100%;
    padding: 0 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* ── CARD ── */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 20px 28px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    transition: transform .28s ease, box-shadow .28s ease;
    position: relative;
    overflow: hidden;
}

    .card::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 4px;
        border-radius: 0 0 16px 16px;
        transition: height .28s ease;
    }

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 36px rgba(0,0,0,.13);
    }

/* Coloured bottom bar per card */
.card-aptitude::before {
    background: #3b82f6;
}

.card-reasoning::before {
    background: #22c55e;
}

.card-verbal::before {
    background: #ec4899;
}

.card-gk::before {
    background: #f59e0b;
}

.card-programming::before {
    background: #06b6d4;
}

.card-puzzles::before {
    background: #8b5cf6;
}

.card-online::before {
    background: #ef4444;
}

.card-contact::before {
    background: #7c3aed;
}

.card:hover::before {
    height: 6px;
}

/* ── ICON CIRCLE ── */
.icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: transform .32s cubic-bezier(.34,1.56,.64,1), box-shadow .32s ease;
}

.card:hover .icon-wrap {
    transform: scale(1.22);
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
}

.icon-wrap svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .32s cubic-bezier(.34,1.56,.64,1);
}

.card:hover .icon-wrap svg {
    transform: scale(1.1);
}

/* Icon bg colours */
.bg-blue {
    background: linear-gradient(135deg,#3b82f6,#1d4ed8);
}

.bg-green {
    background: linear-gradient(135deg,#22c55e,#15803d);
}

.bg-pink {
    background: linear-gradient(135deg,#ec4899,#be185d);
}

.bg-amber {
    background: linear-gradient(135deg,#f59e0b,#b45309);
}

.bg-cyan {
    background: linear-gradient(135deg,#06b6d4,#0e7490);
}

.bg-purple {
    background: linear-gradient(135deg,#8b5cf6,#6d28d9);
}

.bg-red {
    background: linear-gradient(135deg,#ef4444,#b91c1c);
}

.bg-violet {
    background: linear-gradient(135deg,#7c3aed,#4c1d95);
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.card-meta {
    font-size: .78rem;
    color: #64748b;
    line-height: 1.6;
}

/* ── AD PLACEHOLDER ── */
.ad-box {
    max-width: 1100px;
    margin: 10px auto 40px;
    width: 100%;
    padding: 0 24px;
}

.ad-inner {
    background: #e2e8f0;
    border-radius: 12px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: .85rem;
    letter-spacing: .5px;
}

/* ── FOOTER ── */
footer {
    background: #2d3142;
    color: #94a3b8;
    text-align: center;
    padding: 18px 20px 14px;
    font-size: .8rem;
    line-height: 2;
}

    footer a {
        color: #60a5fa;
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }

    nav {
        padding: 0 16px;
    }

    .nav-links {
        display: none;
    }
}


