/* Global Styles */
* {
    box-sizing: border-box;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #fdfdfd;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
}
a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Optional spacing between rows */
}

/* Row */
.row {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    width: 100%; /* Full width of the container */
    gap: 10px; /* Space between columns */
}

/* Column */
.col {
    flex: 1 1 0; /* Default to equal widths */
    max-width: 100%; /* Prevent exceeding the row's width */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .col {
        flex: 1 1 100%; /* Columns stack on smaller screens */
    }
}


/* Header */
header {
    background-color: #ffffff;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}
.logo img {
    max-width: 150px;
}

/* Language Switcher */
.wrapper {
    --font-color-dark: #fefefe;
    --font-color-light: #111;
    --bg-color: #111;
    --main-color: #fefefe;
    position: relative;
    width: 126px;
    height: 27px;
    background-color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 25px;
    display: flex;
    flex-direction: row;
    box-shadow: 3px 3px var(--main-color);
    margin: 3px auto 1px auto;
}
.option {
    width: 60px;
    height: 21px;
    position: relative;
    top: 1px;
    left: 1px;
}
.input {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    appearance: none;
    cursor: pointer;
}
.btn {
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.span {
    color: var(--font-color-dark);
    font-size: 12px;
}
.input:checked + .btn {
    background-color: var(--main-color);
}
.input:checked + .btn .span {
    color: var(--font-color-light);
}

/* Main Heading */
h1 {
    font-size: 50px;
    font-weight: 700;
    margin: 5px 2px 2px 2px;
    text-align: center;
}

/* Subtitle */
.subtitle {
    font-size: 18px;
    font-weight: 400;
    margin: 2px 0 4px;
    padding: 0;
}

/* Badges */
.badges {
    text-align: center;
    margin: 10px 0 20px;
}
.badge {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    background-color: #ecf0f1;
    border: 1px solid #2c3e50;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}
.badge:hover {
    background-color: #3498db;
    color: #fff;
}

.hide {
    display: none !important;
}

@media (min-width: 768px) {
    #modal div {
    grid-template-columns: repeat(2, 1fr);
    }
}

/* Card Gallery */
.card-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 10px 0;
}
.card {
    text-align: center;
}
.card-image {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.card-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 0px 15px rgba(0, 0, 0, 0.5);
}
.card-title {
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}
.card-button, a.card-button {
    margin-top: 5px;
    padding: 8px 16px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}
.card-button:hover, a.card-button:hover {
    background-color: #2980b9;
}

/* Footer */
footer {
    font-size: small;
    text-align: center;
    padding: 10px;
    background-color: #ffffff;
    color: #7f8c8d;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}
.footer-logo img {
    max-width: 100px;
}
