/* Import Google Font - Lexend */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');

/* CSS Variables for easy color customization */
:root {
    --primary-color: #f3904d;
    --lighter-orange: #ffd3b5;
    --secondary-color: #666666;
    --background-color: #ffffff;
    --text-color: #333333;
    --light-grey: #f5f5f5;
    --dark-grey: #2a2a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lexend', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--dark-grey);
    box-shadow: 0 2px 75px rgba(0,0,0,1);
    z-index: 1007;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
}

.logo img {
    height: 95px;
    width: auto;
    display: block;
    position: relative;
    z-index: 1001;
}

.logo a {
    display: block;
    line-height: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--light-grey);
    font-weight: bold;
    padding: 0.5rem 1rem;
    display: inline-block;
    overflow: visible;
    z-index: 1;
    user-select: none;
    -webkit-user-drag: none;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('images/arrow-icon.webp');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease, left 0.3s ease;
}

.nav-link.animate-arrow::before {
    animation: arrowAcross 0.3s ease-in;
}

.nav-link.animate-arrow:hover::before {
    opacity: 0;
}

.nav-link.arrow-played::before {
    left: calc(50%);
    opacity: 0;
}

.nav-link.arrow-played.hover-blocked:hover::before {
    opacity: 0;
}

.nav-link.arrow-played:hover::before {
    transition: opacity 0.6s ease 0.5s;
}

.nav-link:hover::before {
    opacity: 1;
}

@keyframes arrowAcross {
    0% { left: -10px; opacity: 1; }
    100% { left: calc(50%); opacity: 0; }
}

/* Hero Section */
#hero {
    margin-top: 80px;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-grey);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-background-flow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    display: flex;
    flex-wrap: wrap;
    opacity: 0.15;
    z-index: 0;
    animation: flowBackground 60s linear infinite;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hero-background-flow img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 5px;
    flex-shrink: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hero-background-flow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f3904d;
    opacity: 0;
    mix-blend-mode: overlay;
    pointer-events: none;
}

@keyframes flowBackground {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-5%);
    }
    100% {
        transform: translateX(0);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 1);
}

.hero-content p {
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Studios Grid */
#studios {
    background-color: var(--dark-grey);
}

#studios .section-title {
    color: var(--primary-color);
}

.studios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.studio-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.studio-logo {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--light-grey);
    padding: 2rem;
}

.studio-logo img {
    max-width: 80%;
    max-height: 60%;
    object-fit: contain;
    margin-bottom: 1rem;
}

.studio-logo h3 {
    color: var(--text-color);
    text-align: center;
    font-size: 1.2rem;
}

.studio-games-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-color: var(--primary-color);
    opacity: 0;
    transition: all 0.2s ease;
}

.studio-item:hover .studio-games-overlay {
    opacity: 1;
}

.triangle-overlay {
    position: absolute;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.triangle-top {
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon points="0,0 100,0 50,100" fill="%23ffffff"/></svg>');
}

.triangle-right {
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon points="100,0 100,100 0,50" fill="%23ffffff"/></svg>');
}

.triangle-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon points="0,100 100,100 50,0" fill="%23ffffff"/></svg>');
}

.triangle-left {
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon points="0,0 0,100 100,50" fill="%23ffffff"/></svg>');
}

.studio-item:hover .triangle-top,
.studio-item:hover .triangle-bottom {
    height: 0;
}

.studio-item:hover .triangle-left,
.studio-item:hover .triangle-right {
    width: 0;
}

.games-mini-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    display: grid;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.1s ease;
    pointer-events: all;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
}

/* 1 game: takes up entire grid */
.games-mini-grid.grid-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

/* 2 games: both on top row taking full width */
.games-mini-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
}

/* 3 games: 2 on top, 1 on bottom left */
.games-mini-grid.grid-3 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.games-mini-grid.grid-3 .mini-game-item:last-child {
    grid-column: 1;
}

/* 4 games: 2x2 grid */
.games-mini-grid.grid-4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

/* 5+ games: 3x3 grid */
.games-mini-grid.grid-5-plus {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.games-mini-grid.single-game {
    grid-template-columns: 1fr;
}

.studio-item:hover .games-mini-grid {
    opacity: 1;
    transition: opacity 0.3s ease 0.2s;
}

.mini-game-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--dark-grey);
    transition: transform 0.3s ease;
}

.mini-game-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.mini-game-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-game-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.mini-game-item:hover::after {
    background-color: rgba(255, 255, 255, 0.15);
}

.studio-link {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 10;
}

.studio-item:hover .studio-link {
    opacity: 0;
}

.studio-link:hover {
    background-color: #d66a09;
}

/* News Section */
#news {
    background-color: var(--light-grey);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-item {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.news-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 0;
}

.news-title-link {
    text-decoration: none;
    color: inherit;
}

.news-title-link:hover {
    text-decoration: underline;
}

.news-content {
    flex: 1;
}

.news-date-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.news-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    width: fit-content;
    flex-shrink: 0;
}

.news-date .day {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-date .year {
    font-size: 0.85rem;
    opacity: 0.9;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: transform 0.2s ease;
}

.read-more:hover {
    transform: translateX(5px);
}

.news-placeholder {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--secondary-color);
}

.news-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    opacity: 0.5;
}

.news-placeholder p {
    font-size: 1rem;
    color: var(--secondary-color);
    opacity: 0.5;
}

/* Contact Section */
#contact {
    background-color: var(--dark-grey);
    color: white;
    margin-bottom: 0;
    padding-bottom: 0%;
}

#contact .section-title {
    color: var(--primary-color);
}

.contact-content {
    text-align: center;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--dark-grey);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer iframe {
    max-width: 100%;
    width: 400px;
    height: 300px;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    footer iframe {
        width: 100%;
        height: 250px;
    }
}

/* Studio Pages Styles */
#studio-details {
    margin-bottom: 0;
    padding-bottom: 0;
}

.studio-header {
    margin-top: 80px;
    padding: 4rem 0;
    text-align: center;
    background: var(--dark-grey);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.studio-header p {
    color: white;
}

.banner {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 110.1%;
    height: 120%;
    display: flex;
    flex-wrap: wrap;
    opacity: 0.25;
    filter: blur(2px);
    z-index: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.banner img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 5px;
    flex-shrink: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.studio-header .container {
    position: relative;
    z-index: 1;
}

.studio-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.studio-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.info-card {
    background-color: var(--light-grey);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.game-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 10;
}

.game-triangle {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    transition: all 0.2s ease;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.game-triangle-1 {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon points="0,100 100,100 0,0" fill="%23ef770a"/></svg>');
    transition-delay: 0s;
}

.game-triangle-2 {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon points="0,100 100,100 0,0" fill="rgba(239, 119, 10, 0.85)"/></svg>');
    transition-delay: 0.05s;
}

.game-triangle-3 {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon points="0,100 100,100 0,0" fill="rgba(239, 119, 10, 0.7)"/></svg>');
    transition-delay: 0.1s;
}

.game-item:hover .game-overlay {
    height: 50%;
}

.game-item:hover .game-triangle {
    width: 60%;
    height: 100%;
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
    z-index: 11;
}

.game-title-shadow {
    position: absolute;
    bottom: calc(1.5rem + 31px);
    left: 1.5rem;
    color: rgba(255, 255, 255, 0);
    font-size: 1.5rem;
    margin: 0;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
    z-index: 9;
    text-shadow: 0 0 20px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 1), 0 0 40px rgba(0, 0, 0, 1);
}

.game-item:hover .game-info {
    opacity: 1;
}

.game-item:hover .game-title-shadow {
    opacity: 1;
}

.game-info h3 {
    color: white;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 0.25rem;
    margin-top: 0;
    line-height: 1.2;
    white-space: nowrap;
    max-width: 90%;
}

/* Dynamically reduce font size if text is too long */
.game-info h3:where([style*="font-size"]) {
    font-size: inherit;
}

@supports (container-type: inline-size) {
    .game-info {
        container-type: inline-size;
    }
    
    .game-info h3 {
        font-size: clamp(0.8rem, 2vw, 1.5rem);
    }
}

.game-year {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.platform-icons {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
    z-index: 1100;
    padding-left: 7px;
}

.game-item:hover .platform-icons {
    opacity: 1;
}

.platform-icon {
    width: 17px !important;
    height: 17px !important;
    fill: white;
    color: white;
    filter: none;
    font-size: 17px !important;
    line-height: 17px;
    display: inline-block;
}

/* Platform-specific colors */
.fa-xbox.platform-icon {
    color: white;
}

.fa-playstation.platform-icon {
    color: white;
}

.fa-steam.platform-icon {
    color: white;
}

.platform-icon img,
img.platform-icon {
    width: 17px !important;
    height: 17px !important;
    object-fit: contain;
    display: block;
}

/* Awards Section */
.awards-section {
    margin: 3rem 0;
}

.awards-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.awards-header:hover {
    background-color: #d66a09;
}

.awards-header h3 {
    margin: 0;
}

.awards-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.awards-toggle.active {
    transform: rotate(180deg);
}

.awards-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.awards-list.active {
    max-height: 1000px;
}

.awards-content {
    background-color: var(--light-grey);
    padding: 2rem;
    border-radius: 0 0 10px 10px;
}

.awards-content ul {
    list-style: none;
    padding: 0;
}

.awards-content li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--secondary-color);
}

.awards-content li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .studios-grid {
        grid-template-columns: 1fr;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .studio-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* ========================================
   ARTICLE PAGE STYLES
   ======================================== 
*/

/* Article Header */
.article-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, #d66a09 100%);
    padding: 150px 0 80px 0;
    overflow: hidden;
    text-align: center;
    color: white;
}

.article-header-background-flow {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% + 200px);
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 30%, rgba(255,255,255,0.1) 70%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255,255,255,0.05) 30%, rgba(255,255,255,0.05) 70%, transparent 70%);
    background-size: 100px 100px;
    animation: flowBackground 30s linear infinite;
    z-index: 0;
}

.article-header .container {
    position: relative;
    z-index: 1;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-category {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.article-header .article-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.article-header .article-date .day {
    font-size: 1.75rem;
    font-weight: bold;
    line-height: 1;
}

.article-header .article-date .month {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-header .article-date .year {
    font-size: 0.7rem;
    opacity: 0.9;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.article-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Article Content */
#article-content {
    padding: 60px 0;
    background-color: var(--light-grey);
}

#article-content .container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    max-width: 1200px;
}

.article-body {
    background-color: var(--background-color);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-featured-image {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-text h2 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
}

.article-text h3 {
    color: var(--dark-grey);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.article-text p {
    margin-bottom: 1.5rem;
}

.article-text ul,
.article-text ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-text li {
    margin-bottom: 0.75rem;
}

.article-quote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background-color: var(--light-grey);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--dark-grey);
    border-radius: 0 10px 10px 0;
}

.circle-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

.article-figure {
    margin: 2.5rem 0;
    text-align: center;
}

.article-figure img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-figure figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-style: italic;
}

/* Countdown Timer Styles */
.countdown-container {
    background: linear-gradient(135deg, var(--primary-color), #1a5f7a);
    border-radius: 15px;
    padding: 2.5rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    margin-top: 0px;
}

.countdown-header {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-top: 0px;
    margin-top: 0px;
}

.countdown-timer-full,
.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0px;
    margin-top: 0px;
}

.countdown-unit {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1.5rem 1rem;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.countdown-separator {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    opacity: 0.6;
}

.countdown-expired {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    padding: 2rem;
}

/* News countdown (smaller version) */
.news-countdown {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #1a5f7a);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.news-countdown .countdown-timer {
    gap: 0.5rem;
}

.news-countdown .countdown-unit {
    padding: 0.75rem 0.5rem;
    min-width: 60px;
}

.news-countdown .countdown-value {
    font-size: 1.5rem;
}

.news-countdown .countdown-label {
    font-size: 0.7rem;
}

.news-countdown .countdown-separator {
    font-size: 1.5rem;
}

/* Article Footer */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-grey);
}

.article-tags {
    margin-bottom: 2rem;
}

.tag {
    display: inline-block;
    background-color: var(--light-grey);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
}

.article-share h4 {
    color: var(--dark-grey);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    background-color: var(--dark-grey);
    transform: translateY(-3px);
}

/* Copy notification popup */
.copy-notification {
    background-color: var(--dark-grey);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.copy-notification.show {
    opacity: .95;
    transform: translateX(-50%) translateY(0);
}

/* Article Navigation */
.article-navigation {
    margin-top: 3rem;
    text-align: center;
}

.back-to-news {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.back-to-news:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(-5px);
}

/* Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sidebar-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.sidebar-card p {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    line-height: 1.6;
}

.sidebar-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.sidebar-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Related News Items */
.related-news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-grey);
}

.related-news-item:last-child {
    border-bottom: none;
}

.related-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    flex-shrink: 0;
    width: 50px;
}

.related-date .day {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1;
}

.related-date .month {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

.related-content h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: var(--primary-color);
}

.related-category {
    display: inline-block;
    background-color: var(--light-grey);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Responsive Design for Article Page */
@media (max-width: 968px) {
    #article-content .container {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        order: 2;
    }

    .article-body {
        order: 1;
        padding: 2rem;
        padding-top: 0px;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .article-body {
        padding: 1.5rem;
    }

    .article-text {
        font-size: 1rem;
    }

    .article-text h2 {
        font-size: 1.5rem;
    }

    .share-buttons {
        flex-wrap: wrap;
    }
}
