:root {
    --primary-color: rgb(189, 29, 58);
    --secondary-color: rgb(215, 129, 145);
    --background-gradient: linear-gradient(to left, #FFF, #FFC0CB);
    --white-color: rgb(249, 235, 234);
    --shadow-color: rgba(218, 105, 105, 0.687);
}

/* Base Styles */
body {
    background: var(--background-gradient);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Logo */
.logo {
    width: 16vw;
    max-width: 180px;
    height: 16vw;
    max-height: 180px;
    margin: 20px auto;
    border-radius: 50%;
    box-shadow: 0 8px 24px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideInTop 1s ease-out forwards;
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.5s 0.3s ease-in-out;
}
.logo:hover img {
    transform: scale(1.1);
}
.logo:hover {
    box-shadow: 0 12px 32px var(--shadow-color);
}

/* Heading */
.text-container {
    text-align: center;
    color: var(--primary-color);
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    box-shadow: 0 8px 24px var(--shadow-color);
}
.text-container h1 {
    font-size: 1.8rem;
    margin: 0;
}

/* Courses Grid — pink wrapper removed here */
.main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    width: 95%;
    max-width: 1400px;
    padding: 1.5rem;
    margin: 0 auto;

    /* removed pink background/shadow */
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

/* Individual Card */
.box {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: transparent;
    box-shadow: 0 8px 24px var(--shadow-color);
    transition: transform 0.3s ease;
}
.box:hover {
    transform: translateY(-4px);
}

/* Force square aspect ratio */
.image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 15px;
}
.image-container img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s 0.3s ease-in-out;
}
.image-container:hover img {
    transform: scale(1.1);
}

/* Caption Overlay */
.description {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    background: rgba(189,29,58,0.38);
    color: var(--white-color);
    padding: 0.4rem 0.7rem;
    text-align: center;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    backdrop-filter: blur(2px);
    pointer-events: none;
}
.description p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Footer */
.disclaimer {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.9);
    text-align: center;
    color: var(--primary-color);
    box-shadow: 0 -4px 12px var(--shadow-color);
    backdrop-filter: blur(5px);
    z-index: 900;
}

/* Responsive */
@media (max-width: 900px) {
    .main {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .main {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        padding: 1.5rem 0 100px;
    }
    .logo {
        width: 35vw;
        height: 35vw;
    }
    .description {
        font-size: 0.98rem;
        padding: 0.3rem 0.4rem;
    }
}

/* Animations */
@keyframes slideInTop {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);       opacity: 1; }
}
