* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --navy-blue: #0a1f44;
    --navy-blue-light: #1a3a66;
    --gold: #d4af37;
    --gold-light: #f0d56c;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --text-gray: #6c757d;
    --text-dark: #2c3e50;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-cursive: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 31, 68, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 5%  10px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    position: relative;
    padding-left: 15px;
    
    opacity: 1;
    animation: slideDownFade 0.8s ease-out forwards;
}

.logo::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    
    width: 3px;
    height: 40px;
    background-color: var(--gold);
}

.logo h1 {
    font-family: var(--font-cursive);
    font-size: 32px;
    font-weight: 600;
    font-style: italic;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* ===== Navigation ===== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.main-nav > a,
.dropdown {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav > a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.main-nav > a:hover {
    color: var(--gold);
}

.main-nav > a:hover::after {
    width: 100%;
}

/* ===== Dropdown Menu ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: block;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.dropdown:hover .dropdown-toggle {
    color: var(--gold);
}

.dropdown:hover .dropdown-toggle::after {
    width: 100%;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--navy-blue);
    min-width: 180px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--navy-blue);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 10px);
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    font-size: 12px;
    color: var(--white);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border-left-color: var(--gold);
    padding-left: 30px;
}

/* ===== Hamburger Menu ===== */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* ===== Mobile Menu Styles ===== */
@media (max-width: 992px) {
    .header {
        padding: 15px 20px;
    }
    
    .logo h1 {
        font-size: 28px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--navy-blue);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 100px 0 40px;
        transition: right 0.4s ease;
        z-index: 999;
    }
    
    .main-nav > a,
    .dropdown {
        width: 100%;
        padding: 20px 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav > a::after,
    .dropdown-toggle::after {
        display: none;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        max-height: none;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .dropdown:hover .dropdown-menu {
        max-height: 300px;
    }
    
    .dropdown-menu a {
        padding: 14px 40px 14px 22px;
        position: relative;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.85);
    }

    .dropdown-menu a::before {
        content: '';
        position: absolute;
        left: 5px;
        top: 50%;
        width: 12px;
        height: 2px;
        background-color: var(--gold);
        transform: translateY(-50%);
    }

    .dropdown-menu a:hover {
        color: var(--gold);
        background: none;
    }
    
    .menu-toggle:checked ~ .main-nav {
        right: 0;
    }
    
    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        transform-origin: center;
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        transform-origin: center;
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    width: 100%;
    height: 65vh;
    background-image: url('../images/2017_winter_zins2_photo1.gif');
    background-size: cover;
    background-position: top;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 31, 68, 0.9) 0%, rgba(10, 31, 68, 0.1) 100%);
}

.hero-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    transform: translateY(40px);
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

@media (max-width: 768px) {
    .hero {
        background-position: 73% center;
        height: 55vh;
    }

    .hero-content {
        padding: 0 30px;
    }

    .hero-text h1 {
        font-size: 32px;
    }
}

/* ===== Articles Section ===== */
.articles-section {
    padding: 100px 0;
    background-color: var(--off-white);
}

.articles-section:nth-child(even) {
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
}

.section-header p {
    font-family: var(--font-cursive);
    font-size: 25px;
    font-style: italic;
    font-weight: 600;
    color: var(--text-gray);
    margin-top: 25px;
}

/* ===== Carousel Container ===== */
.carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 100px;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 8px;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 0;
}

/* ===== Article Card ===== */
.article-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: calc(33.333% - 20px);
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(10, 31, 68, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: row;
    height: 420px;
    border: 1px solid rgba(10, 31, 68, 0.08);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(10, 31, 68, 0.2);
    border-color: var(--gold);
}

.card-image {
    width: 50%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 31, 68, 0.3) 0%, rgba(212, 175, 55, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.article-card:hover {
    opacity: 1;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 31, 68, 0.15) 100%);
    pointer-events: none;
    z-index: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.6s ease;
}

/* .article-card:hover .card-image img {
    transform: scale(1.1);
} */

.card-content {
    width: 50%;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(to bottom right, var(--white) 0%, rgba(248, 249, 250, 0.5) 100%);
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.article-card:hover .card-content h3 {
    color: var(--gold);
}

.card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-gray);
    flex-wrap: wrap;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-content p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: var(--navy-blue);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: 2px solid var(--navy-blue);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(10, 31, 68, 0.15);
    white-space: nowrap;
}

.read-more-btn:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--navy-blue);
    transform: translateX(2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.read-more-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover svg {
    transform: translateX(4px);
}

/* ===== Navigation Arrows ===== */
.carousel-nav {
    position: absolute;
    top: calc(50% - 30px);    
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-blue);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    z-index: 10;
}

.carousel-nav:hover {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--navy-blue-light) 100%);
    color: var(--gold);
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 8px 30px rgba(10, 31, 68, 0.3);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

.carousel-nav:disabled:hover {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: var(--white);
    transform: translateY(-50%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.carousel-nav svg {
    width: 26px;
    height: 26px;
}

/* ===== Carousel Dots ===== */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 50px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(10, 31, 68, 0.2);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background-color: var(--gold);
    width: 36px;
    border-radius: 6px;
    border-color: var(--gold);
}

.carousel-dot:hover {
    background-color: var(--navy-blue-light);
    border-color: var(--navy-blue);
    transform: scale(1.2);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-column h3 {
    font-family: var(--font-cursive);
    font-size: 32px;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--gold);
}

/* ===== Social Media Icons ===== */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--white);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background-color: var(--gold);
    color: var(--navy-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .articles-section {
        padding: 70px 0;
    }
    
    .section-header h2 {
        font-size: 38px;
    }
    
    .carousel-container {
        padding: 0 50px;
    }
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .section-header p {
        font-size: 18px;
    }
    
    .carousel-container {
        padding: 0 60px;
    }
    
    .carousel-nav {
        width: 45px;
        height: 45px;
    }
    
    .carousel-nav svg {
        width: 22px;
        height: 22px;
    }
    
    .carousel-nav.prev {
        left: 5px;
    }
    
    .carousel-nav.next {
        right: 5px;
    }
    
    .article-card {
        flex: 0 0 100%;
        min-width: 100%;
        height: auto;
        flex-direction: column;
        min-height: 450px;
    }
    
    .card-image {
        width: 100%;
        height: 220px;
    }
    
    .card-content {
        width: 100%;
        padding: 25px;
    }
    
    .card-content h3 {
        font-size: 19px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .articles-section {
        padding: 50px 0;
    }
    
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }
    
    .card-content {
        padding: 25px;
    }
}

/* ===== UPDATED Scroll to Top Button (Gold & Navy) ===== */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--gold); 
    color: var(--navy-blue); 
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 31, 68, 0.25);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#scrollTopBtn:hover {
    background-color: var(--gold-light);;
    transform: translateY(-3px);
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
    pointer-events: none;
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.1s;
    transform-origin: 50% 50%;
    stroke: var(--navy-blue);
}

.arrow-content {
    width: 24px;
    height: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-content svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 576px) {
    #scrollTopBtn {
        width: 46px;
        height: 46px;
        bottom: 20px;
        right: 20px;
        opacity: 0.85;
    }
}

/* ===== Responsive Design ===== */

/* 1. Medium Screens (Tablets/Small Laptops): Show 2 Cards */
@media (max-width: 1200px) {
    .article-card {
        flex: 0 0 calc(50% - 15px);
        min-width: calc(50% - 15px);
    }
}

/* 2. Mobile Screens: Show 1 Card */
/* This MUST come after the 1200px rule to override it */
@media (max-width: 768px) {
    .article-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .card-image {
        width: 100%;
        height: 220px;
    }

    .card-content {
        width: 100%;
        padding: 25px;
    }
}

/* ===== Disable Hovers on Touch Devices/Mobile ===== */
@media (hover: none) {
    .article-card:hover {
        transform: none;
        box-shadow: 0 4px 25px rgba(10, 31, 68, 0.1);
        border-color: rgba(10, 31, 68, 0.08);
    }

    .article-card:hover .card-image img {
        transform: none;
    }

    .article-card:hover .card-image::before {
        opacity: 0;
    }

    .article-card:hover .card-content h3 {
        color: var(--navy-blue);
    }
}

@media (max-width: 768px) {
    .carousel-dots {
        display: none;
    }
}

/* ===== Image Modal (Lightbox) ===== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    display: block;
    opacity: 1;
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border: 2px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.image-modal.show .image-modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--gold);
    text-decoration: none;
    cursor: pointer;
}

#milosevic-trigger {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

#milosevic-trigger:hover {
    transform: scale(1.05);
}

/* Add this class to the card-image div when no image is desired */
.card-image.no-image {
    background-color: var(--navy-blue);
}

/* Ensures no empty image icons or broken links appear */
.card-image.no-image img {
    display: none;
}