html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif; /* Apply Inter font globally */
    -webkit-font-smoothing: antialiased; /* Smoother fonts on WebKit */
    -moz-osx-font-smoothing: grayscale; /* Smoother fonts on Firefox */
}
.mobile-menu {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out; /* Smoother mobile menu transition */
}

/* Add a style for the open state of the hamburger menu if needed */
#mobile-menu-button.open .hamburger-top {
    transform: rotate(45deg) translateY(6px);
}
#mobile-menu-button.open .hamburger-middle {
    opacity: 0;
}
#mobile-menu-button.open .hamburger-bottom {
    transform: rotate(-45deg) translateY(-6px);
}

/* Subtle scrollbar for modern look (optional) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* slate-300 */
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* slate-500 */
}

/* Styles for the page elements */
.page-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}
h1 {
    font-size: 5.75rem; /* text-6xl */
    font-weight: 900;
    color: #1e293b; /* slate-800 */
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}
.page-description {
    font-size: 1.125rem;
    color: #475569; /* slate-600 */
    text-align: center;
    margin-bottom: 2.5rem;
}
#back-button {
    display: inline-block;
    margin-bottom: 2rem;
    color: #0ea5e9; /* sky-500 */
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}
#back-button:hover {
    color: #0284c7; /* sky-600 */
}
.tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0; /* slate-200 */
    padding-bottom: 1rem;
}
.tab-link {
    padding: 0.75rem 1.5rem;
    border: none;
    background-color: transparent;
    color: #475569; /* slate-600 */
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}
.tab-link:hover {
    background-color: #f1f5f9; /* slate-100 */
    color: #1e293b; /* slate-800 */
}
.tab-link.active {
    background-color: #0ea5e9; /* sky-500 */
    color: white;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.lesson-items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}
.news-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.news-card-image-container {
    position: relative;
    width: 100%;
    padding-top: 66.66%; /* 3:2 Aspect Ratio */
}
.news-card-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.tag-politics { background-color: #3b82f6; } /* blue-500 */
.tag-business { background-color: #16a34a; } /* green-600 */
.tag-tech { background-color: #8b5cf6; } /* violet-500 */
.tag-lifestyle { background-color: #ec4899; } /* pink-500 */
.tag-health { background-color: #f97316; } /* orange-500 */

.news-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-date {
    font-size: 0.875rem;
    color: #64748b; /* slate-500 */
    margin-bottom: 0.5rem;
}
.news-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b; /* slate-800 */
    line-height: 1.4;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}
.news-title:hover h3 {
    color: #0ea5e9; /* sky-500 */
}
.news-meta {
    margin-top: auto;
    border-top: 1px solid #e2e8f0; /* slate-200 */
    padding-top: 0.75rem;
}
.news-sources {
    font-size: 0.8rem;
    color: #475569; /* slate-600 */
}
.news-sources span {
    font-weight: 600;
    margin-right: 8px;
}
.news-sources a {
    color: #0ea5e9; /* sky-500 */
    text-decoration: none;
    margin-right: 8px;
    transition: color 0.3s;
}
.news-sources a:hover {
    text-decoration: underline;
}
.no-news-message {
    text-align: center;
    padding: 2rem;
    color: #64748b; /* slate-500 */
    grid-column: 1 / -1;
}
.hidden-lesson {
    display: none;
}
.show-more-btn {
    grid-column: 1 / -1;
    width: fit-content;
    margin: 2rem auto 0;
    background-color: #e2e8f0; /* slate-200 */
    color: #334155; /* slate-700 */
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
.show-more-btn:hover {
    background-color: #cbd5e1; /* slate-300 */
    color: #1e293b; /* slate-800 */
}
