/* General Body Styling */
body, html {
    height: 100vh;
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f0f8ff; /* Light blue background */
    padding: 1rem;
}

/* Container to center content */
.container {
    max-width: 960px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header section (title + description) - takes up ~40% */
.container > div:first-child,
.container h1,
.container p {
    flex-shrink: 0;
}

/* Cards section - takes up ~60% */
.container .row {
    flex-grow: 1;
    align-content: center;
}

/* Logo Styling */
.logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Card Styling */
.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: 140px;
    min-height: 140px;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.card-link {
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.card-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    height: 100%;
}

.card-title {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-text.small {
    font-size: 0.8rem;
    line-height: 1.3;
    color: #666;
}

/* Language Button Styling */
.btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
}

.btn-outline-primary.active, .btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

/* Title and description mobile optimization */
h1 {
    font-size: 1.5rem !important;
    font-weight: 700;
}

p.fs-6 {
    font-size: 0.9rem !important;
    line-height: 1.4;
    color: #666;
}

/* Responsive adjustments for larger screens */
@media (min-width: 768px) {
    .container {
        justify-content: flex-start;
        padding-top: 2rem;
    }
    
    .container .row {
        margin-top: 0.5rem;
    }

    .logo {
        width: 90px;
        height: 90px;
    }

    .card {
        height: 160px;
        min-height: 160px;
    }

    .card:hover {
        transform: translateY(-8px);
    }

    .card-body {
        padding: 2rem;
        justify-content: center;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-text.small {
        font-size: 0.9rem;
    }

    h1 {
        font-size: 2rem !important;
    }

    p.fs-6 {
        font-size: 1rem !important;
    }
}

@media (min-width: 992px) {
    .container {
        padding-top: 2.5rem;
    }
    
    .container .row {
        margin-top: 0rem;
    }
    
    .card {
        height: 180px;
        min-height: 180px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding-top: 3rem;
        max-height: 95vh;
    }
}
