:root {
    --primary-color: #BA0F0D;
    --text-dark: #222;
    --text-medium: #444;
    --text-light: #666;
    --bg-light: #f8f8f8;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --font-primary: 'Aleo', serif;
    --font-accent: 'Montserrat', sans-serif;
}

/* === BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 100%;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background: #fff;
    font-display: swap;
}

/* === TYPOGRAPHY === */
h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.4;
}

p,
.content {
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-medium);
    max-width: 75ch;
}

/* === LAYOUT === */
header,
main,
footer {
    padding: 2rem 7rem;
}

header {
    padding: 1rem 2rem;
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.bridge {
    text-decoration: none;
    color: inherit;
}

.section-divider {
    border: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 4rem 0;
}

/* === UTILITY CLASSES === */
.flex {
    display: flex;
}

.jc-between {
    justify-content: space-between;
}

.jc-center {
    justify-content: center;
}

.jc-even {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ai-center {
    align-items: center;
}

.ai-stretch {
    align-items: stretch;
}

.gap-2 {
    gap: 2rem;
}

.gap-4 {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* === COMPONENTS === */
/* Navigation */
.main-nav {
    display: none;
    /* display: flex; */
    gap: 2rem;
    margin-left: 2rem;
}

.main-nav-link {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.main-nav-link:hover {
    color: var(--primary-color);
}

.main-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.main-nav-link:hover::after {
    width: 100%;
}

.logo-wrapper {
    flex-shrink: 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.black-text {
    color: var(--text-dark);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    width: 100%;
}

.section-header h2 {
    color: var(--primary-color);
}

.flex-grow-line {
    flex-grow: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    min-width: 1.25rem;
}

.card-content,
.card-content1 {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.card-content1 {
    position: relative;
    height: 100%;
}

.card-content1 p {
    font-size: 1rem;
}


.news-meta,
.news-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-family: var(--font-primary);
}

.news-info {
    color: rgba(255, 255, 255, 0.9);
    gap: 1.5rem;
}

.news-meta span,
.news-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-meta i,
.news-info i {
    font-size: 1.2rem;
}

.news-meta i {
    color: rgba(0, 0, 0, 0.6);
}

.news-info i {
    color: rgba(255, 255, 255, 0.7);
}

/* === CAROUSEL === */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    height: 40.6rem;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    position: relative;
    height: 100%;
}

.slide-image-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.slide-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: top;
    transition: transform 0.5s ease;
}

.slide:hover .slide-image-wrapper img {
    transform: scale(1.03);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    color: white;
    z-index: 2;
    max-width: 90%;
}

.slide-content h3 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.2px;
}

.slide-content h3 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.2px;
}

.news-info {
    display: flex;
    gap: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.news-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-info i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4rem;
    height: 4rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 10;
}

.nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 2rem;
}

.next {
    right: 2rem;
}

/* === NEWS GRID === */
.categories-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 1rem 0;
}

.category-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-grid {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    height: 28rem;
    padding: 1rem 0;
    overflow: hidden;
}

.news-card {
    width: calc((100% - 6rem) / 5);
    position: relative;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.news-card img {
    width: 100%;
    height: 11rem;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card h3 {
    color: #000;
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
    display: block;
    overflow: visible;
    white-space: normal;
}

.news-card p {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.5rem 0 0 0;
    display: block;
    overflow: visible;
    white-space: normal;
    max-height: none;
}

.read-more-corner {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-bottom-left-radius: var(--border-radius);
    transform: translateY(-100%);
    transition: var(--transition);
    z-index: 2;
    pointer-events: none;
}

.news-card:hover .read-more-corner {
    transform: translateY(0);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(186, 15, 13, 0.2);
}

.news-card1:hover .read-more-corner {
    transform: translateY(0);
}

.news-card1:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(186, 15, 13, 0.2);
}

.news-grid1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr));
    gap: 2rem;
    overflow-x: hidden;
}

.news-card1 {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.news-card1 img {
    width: 100%;
    height: 11.25rem;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card1 h3 {
    color: #000;
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
    display: block;
    overflow: visible;
    white-space: normal;
}

.news-card1 h4 {
    color: #000;
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
    display: block;
    overflow: visible;
    white-space: normal;
}

.news-card1 h3,
.news-card1 p,
.news-card1 a {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.news-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0.5rem 0 0 0;
    display: block;
    overflow: visible;
    white-space: normal;
    max-height: none;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(186, 15, 13, 0.2);
}

.news-card img {
    width: 100%;
    height: 11.25rem;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card h3 {
    color: #000;
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
    display: block;
    overflow: visible;
    white-space: normal;
}

.news-card h3,
.news-card p,
.news-card a {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.news-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0.5rem 0 0 0;
    display: block;
    overflow: visible;
    white-space: normal;
    max-height: none;
}

/* Gundem Card */
.gundem-card {
    display: flex;
    height: 12rem;
    max-width: 100%;
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gundem-card:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.gundem-card img {
    width: 40%;
    height: 100%;
    object-fit: cover;
}

.gundem-card h3 {
    font-size: 1.2rem;
    letter-spacing: -0.1px;
    flex-grow: 1;
}

/* Gundem Container */
.gundem-container {
    width: 100%;
    height: auto;
}

.gundem-grid {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.gundem-card {
    min-width: 18rem;
    height: 12rem;
}

/* === FOOTER === */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 2rem 0;
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-copy {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1rem 0;
}

.social-link {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: white;
    background: var(--primary-color);
    transition: transform 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.social-link svg {
    width: 1.12rem;
    height: 1.12rem;
    fill: currentColor;
}

.see-more {
    text-decoration: none !important;
    color: #000;
}

.see-more:hover {
    color: var(--primary-color);
}

.pagination-container {
    margin: 3rem 0;
    width: 100%;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 25rem;
    margin: 0 auto;
    gap: 1rem;
}

.page-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1.1rem;
    padding: 0 1rem;
}

.current-page {
    font-weight: 700;
    color: var(--primary-color);
}

.total-pages {
    color: var(--text-light);
}

.pagination-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.pagination-button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.pagination-button svg {
    width: 1rem;
    height: 1rem;
}

.pagination-button.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}



@media (max-width: 1920px) {

    header,
    main,
    footer {
        padding: 2rem 4rem;
    }

    html {
        font-size: 105%;
    }

    .news-card {
        width: calc((100% - 6rem) / 5);
    }
}

@media (max-width: 1600px) {
    .news-card {
        width: calc((100% - 4.5rem) / 4);
    }

    .news-card:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 1280px) {
    .news-card {
        width: calc((100% - 3rem) / 3);
    }

    .news-card:nth-child(n+4) {
        display: none;
    }

    .slider-container {
        flex: 0 0 55%;
        height: 35rem;
    }

    .gundem-container {
        flex: 0 0 43%;
    }

    .gundem-card {
        height: 10rem;
    }

    .gundem-card h3 {
        font-size: 1.1rem;
    }

    .slide-content {
        padding: 2.5rem;
    }

    .slide-content h3 {
        font-size: 2rem;
        margin-bottom: 1.2rem;
    }

    .news-info {
        font-size: 0.9rem;
        gap: 1.2rem;
    }

    .news-info i {
        font-size: 1.1rem;
    }
}

/* Mobile Menu & Button - Default Hidden */
.mobile-menu,
.mobile-menu-btn {
    display: none;
}

@media (min-width: 1025px) {
    .flex.jc-even {
        flex-direction: row;
    }

    .flex.gap-4 {
        flex-direction: row;
    }

    .slider-container {
        flex: 0 0 60%;
    }

    .gundem-container {
        flex: 0 0 38%;
    }

    .gundem-grid {
        flex-direction: column;
    }
}

@media (max-width: 1024px) {
    .flex.jc-even {
        flex-direction: column;
        gap: 2rem;
    }

    .slider-container {
        flex: 0 0 100%;
        height: 30rem;
        order: 1;
    }

    .gundem-container {
        flex: 0 0 100%;
        height: auto;
        order: 2;
    }

    .gundem-grid {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .gundem-card {
        min-width: 18rem;
        height: 12rem;
    }

    .slider-container {
        height: 30rem;
    }

    .slide-content {
        padding: 1.5rem;
    }

    .slide-content h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .news-info {
        font-size: 0.85rem;
        gap: 1rem;
    }

    .news-info i {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {

    header,
    main,
    footer {
        padding: 0.8rem 1rem;
    }

    .flex.jc-even {
        flex-direction: column;
    }

    .slide-content h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .news-info {
        font-size: 0.8rem;
        gap: 0.8rem;
        flex-direction: column;
    }

    .news-info i {
        font-size: 0.9rem;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(15.6rem, 1fr));
        gap: 1.5rem;
    }

    html {
        font-size: 110%;
    }

    .news-card {
        width: calc((100% - 1.5rem) / 2);
    }

    .news-card:nth-child(n+3) {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .logo {
        font-size: 1.4rem;
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-dark);
        cursor: pointer;
        padding: 0.5rem;
    }

    /* Mobile Menu */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .mobile-menu.active {
        transform: translateX(0);
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
    }

    .mobile-menu-nav {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .mobile-menu-link {
        color: var(--text-dark);
        text-decoration: none;
        font-size: 1.2rem;
        padding: 0.5rem 0;
    }

    .slider-container {
        height: 25rem;
        order: 1;
    }

    .gundem-container {
        order: 2;
    }

    .slide-content {
        padding: 1.5rem;
    }

    .slide-content h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .gundem-card {
        width: 100%;
        min-width: unset;
        height: 12rem;
    }

    .gundem-card h3 {
        font-size: 1.2rem;
    }

    .gundem-card .news-meta h4 {
        font-size: 0.9rem;
    }

    .gundem-grid {
        flex-direction: column;
        overflow-x: hidden;
        gap: 1rem;
    }

    .gundem-card {
        width: 100%;
        min-width: unset;
        height: 10rem;
    }

    .gundem-card:nth-child(n+2) {
        display: none;
    }
}

@media (max-width: 480px) {
    .news-card {
        width: 100%;
    }

    .news-card:nth-child(n+2) {
        display: none;
    }

    .header {
        padding: 0.6rem 0.8rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .slider-container {
        height: 20rem;
        order: 1;
    }

    .gundem-container {
        order: 2;
    }

    .slide-content {
        padding: 1rem;
    }

    .slide-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .news-info {
        font-size: 0.75rem;
        gap: 0.6rem;
    }

    .news-info i {
        font-size: 0.8rem;
    }

    .gundem-card {
        height: 10rem;
    }

    .gundem-card h3 {
        font-size: 1.1rem;
    }

    .gundem-card .news-meta h4 {
        font-size: 0.85rem;
    }
}