﻿
/*body {
    font-family: 'Figtree';
    margin: 0;
    padding: 0;
}

.logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

.logo-link {
    display: flex;
    align-items: center;
}*/

/* dark theme look */
/*.logo-icon,
.logo-text {
    filter: brightness(0) invert(1);
}*/

/* Light theme — disable inversion */
/*[data-theme="light"] .logo-icon,
[data-theme="light"] .logo-text {
    filter: none;
}*/


/* --- Accessibility Styles --- */

/*[data-theme="light"] .accessibility svg{
    fill: #000000;
}


[data-theme="dark"] .accessibility svg {
    fill: #ffffff;
}


.accessibility {
    position: relative;
    display: inline-block;
}

    .accessibility svg {
        cursor: pointer;
        transition: transform 0.3s ease, fill 0.3s ease;
    }*/


/* Accessibility Panel */
/*.accessibility-panel {
    display: none;
    position: absolute;
    top: 130%;
    right: 0;
    background-color: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(105, 191, 175, 0.4);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 0 12px rgba(105, 191, 175, 0.3);
    min-width: 180px;
    z-index: 999;
    animation: fadeIn 0.3s ease forwards;
}

    .accessibility-panel.active {
        display: block;
    }

    .accessibility-panel h4 {
        color: #69BFAF;
        font-size: 14px;
        font-weight: 400;
        margin-bottom: 10px;
        text-align: center;
        font-family: "Figtree", sans-serif;
    }

.font-controls,
.theme-controls {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.fontScaler,
.themeToggle {
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    border: 1px solid rgba(105, 191, 175, 0.5);
    border-radius: 5px;
    padding: 4px 8px;
    transition: all 0.3s ease;
    font-family: "Figtree";
}

    .fontScaler:hover,
    .themeToggle:hover {
        background-color: #69BFAF;
        color: #000;
        box-shadow: 0 0 8px rgba(105, 191, 175, 0.7);
    }*/

/* Theme modes */
/*[data-theme="dark"] body {
    background-color: black;
    color: #fff;
}

[data-theme="light"] body {
    background-color: #fff;
    color: black;
}*/

/* Animation */
/*@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


[data-theme="light"] li#search-container {
    fill: #000000;
}

[data-theme="dark"] li#search-container {
    fill: #ffffff;
}*/

/* Overlay */
/*.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

    .search-overlay.active {
        display: flex;
    }*/

/* Wrapper positions input + close button */
/*.search-wrapper {
    position: relative;
    width: 60%;
    max-width: 600px;
}*/

/* Search Box */
/*.search-box {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #000;
    padding: 10px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
}*/

/* Close Button */
/*.close-btn {
    position: absolute;
    top: -135px;
    right: -80px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #000;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    line-height: 25px;
    text-align: center;
}*/


/*menu bar*/

/*[data-theme="dark"] li#menu-container {
    fill: #ffffff;
}

[data-theme="light"] li#menu-container {
    fill: #000000;
}

.hidden-menu {
    display: none;
    position: absolute;
    right: 60px;
    top: 100px;
    background: white;
    list-style: none;
    padding: 10px 15px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 100;
}

    .hidden-menu li {
        margin: 10px 0;
    }

        .hidden-menu li a {
            text-decoration: none;
            color: #333;
        }

            .hidden-menu li a:hover {
                color: #007bff;
            }

.show-menu {
    display: block !important;
}*/


.container {
    max-width: 1000px;
    margin: auto;
    padding: 0 20px;
    margin-top: -10%;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.article-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    cursor: pointer;
}

    .article-card:hover {
        transform: translateY(-5px);
    }


.image {
    width: 100%;
}

.article-card img {
    width: 100%;
    aspect-ratio: 16 / 9; /* keeps all images equal height */
    object-fit: cover;
    display: block;
}


.card-body {
    padding: 20px;
    height: 30%;
}

.link {
    height: 20%;
}

    .link a {
        text-decoration: none;
        color: black;
        font-weight: 400;
        margin-left: 20px;
        margin-bottom: 40%;
    }

.card-title {
    color: black;
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-text {
    font-size: 0.95rem;
    color: black;
}


/*1152px*/

@media (max-width: 1152px) {

    .container {
        max-width: 900px;
        padding: 0 16px;
        margin-top: -5%; /* reduce large negative margin */
    }

    .card-grid {
        gap: 20px; /* reduce spacing */
    }

    .article-card img {
        aspect-ratio: 16 / 10; /* slightly taller images for mid screens */
    }

    .card-body {
        padding: 16px;
    }

    .card-title {
        font-size: 1.15rem;
    }

    .card-text {
        font-size: 0.90rem;
    }
}

/* 1024px */
@media (max-width: 1024px) {

    .container {
        max-width: 850px; /* slightly narrower */
        padding: 0 14px;
        margin-top: -4%; /* reduce negative margin further */
    }

    .card-grid {
        gap: 18px; /* reduce spacing */
    }

    .article-card img {
        aspect-ratio: 16 / 9; /* more standard for smaller screens */
    }

    .card-body {
        padding: 14px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-text {
        font-size: 0.88rem;
    }
}

/* 900px */
@media (max-width: 900px) {

    .container {
        max-width: 750px; /* more compact */
        padding: 0 12px;
        margin-top: -3%;
    }

    .card-grid {
        gap: 16px;
    }

    .article-card img {
        aspect-ratio: 4 / 3; /* more square-like for small screens */
    }

    .card-body {
        padding: 12px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-text {
        font-size: 0.85rem;
    }
}
