/*
-----------------------------
NEWS PAGE STYLES
-----------------------------
*/

/*
-----------------------------
BODY BACKGROUND
-----------------------------
*/

body {
    background-color: var(--second-color);
    color: var(--third-color);
}



/*
-----------------------------
NAVIGARE
-----------------------------
*/

.image-hero {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    z-index: 10; /* Higher than hex-canvas z-index: 2 */
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../img/other_pages/news-img.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -10;
}

.over-image-section {
    position: relative;
    z-index: 10;
    height: 100%;
    text-align: center;
}

.nav-section {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0 10px;
}

.navbar-wrap {
    text-align: right;
}

.secondary-menu-navbar {
    display: inline-flex;
    flex-wrap: wrap;
}

.secondary-menu-link-navbar {
    padding: 2px 15px;
}

.secondary-menu-link-navbar a {
    color: var(--first-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.secondary-menu-link-navbar a:hover {
    font-weight: 800;
}

.primary-menu-navbar {
    display: inline-flex;
    flex-wrap: wrap;
}

.primary-menu-link-navbar {
    padding: 5px 15px;
}

.primary-menu-link-navbar a {
    font-size: 1.6rem;
    color: var(--third-color);
    font-weight: 500;
}

.primary-menu-link-navbar a:hover {
    color: var(--first-color);
}

.on-news a{
    color: var(--first-color);
    font-weight: 900;
}

.btn-menu-hamburger{
    display: none;
}

.logo-header-navbar img {
    width: 180px !important;
    max-width: 40vw;
    height: auto;
    display: block;
}

/*
-----------------------------
HERO SECTION
-----------------------------
*/

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(50vh - 120px);
    text-align: center;
}

.hero-section-wrap {
    margin-top: 2vh;
    min-height: 35vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-section-text {
    width: 100%;
    max-width: 600px;
}

.hero-section-text h1 {
    color: var(--first-color);
    margin-bottom: 18px;
    line-height: 1.1;
}

.hero-section-text p {
    color: #ffffff;
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1.5;
}

/*
-----------------------------
MAIN ARTICLE SECTION
-----------------------------
*/

.main-article {
    padding: 8vh 0;
    position: relative;
    z-index: 5;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    margin: 2vh 0 4vh 0;
    text-align: center;
    color: var(--first-color);
}

.article-content p {
    margin-bottom: 4vh;
    text-align: justify;
    color: var(--third-color);
}

/*
-----------------------------
THUMBNAIL GALLERY
-----------------------------
*/

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 4vh 0;
}

.thumbnail-item {
    text-align: center;
}

.thumbnail-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    /* border-color: var(--first-color); */
}

/*
-----------------------------
FEATURED IMAGE
-----------------------------
*/

.featured-image {
    margin: 4vh 0;
    text-align: center;
}

.featured-image img {
    width: 100%;
    max-width: 600px;
    margin: auto;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.featured-image.featured-portrait img {
    max-width: 340px;
}

.featured-image figcaption {
    font-size: 1.4rem;
    color: var(--third-color);
    font-style: italic;
    opacity: 0.8;
}

/*
-----------------------------
ARTICLE TYPOGRAPHY
-----------------------------
*/

.article-content .article-lead {
    font-size: var(--font-size-s);
    font-weight: 300;
    line-height: 3rem;
}

.article-content .article-meta {
    text-align: center;
    margin: -2vh 0 4vh;
    font-size: var(--font-size-xxs);
    font-weight: 400;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    color: var(--first-color);
    opacity: 0.85;
}

.article-content h3 {
    color: var(--first-color);
    font-size: var(--font-size-m);
    line-height: 2.8rem;
    margin: 6vh 0 2vh;
}

.article-content .article-list {
    list-style: disc;
    margin: 0 0 4vh 0;
    padding-left: 2.4rem;
}

.article-content .article-list li {
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    font-weight: 200;
    color: var(--third-color);
    line-height: 2.6rem;
    margin-bottom: 1rem;
}

.article-content strong,
.article-content em,
.article-content a {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.article-content strong {
    font-weight: 600;
}

.article-content .featured-image img {
    cursor: zoom-in;
}

.thumbnail-img {
    cursor: zoom-in;
}

/*
-----------------------------
NEWS CARDS SECTION
-----------------------------
*/

.news-cards {
    padding: 8vh 0;
    background-color: rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 9;
}

.news-cards-title {
    text-align: center;
    margin-bottom: 6vh;
}

.news-cards-title h2 {
    color: var(--first-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4vh 3%;
}

.news-card {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(144, 144, 144, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.news-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 3vh 2vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.news-card-date {
    font-size: var(--font-size-xxs);
    font-weight: 400;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: var(--first-color);
    margin-bottom: 1.5vh;
    line-height: 1.8rem;
}

.news-card-content h3 {
    color: var(--third-color);
    margin-bottom: 3vh;
    font-size: var(--font-size-m);
    line-height: 1.3;
}

.news-card .btn-yellow {
    align-self: center;
    margin-top: auto;
}

.news-card-link {
    display: block;
}

.news-card-content h3 a {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.news-card-content h3 a:hover {
    color: var(--first-color);
}

.news-card-current {
    border-color: rgba(253, 202, 11, 0.35);
}

/*
-----------------------------
MODAL
-----------------------------
*/

.modal {
    display: none;
    position: fixed;
    z-index: 14000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--first-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: var(--third-color);
    text-decoration: none;
}

/*
-----------------------------
FOOTER
-----------------------------
*/

footer {
    text-align: center;
    padding: 50px 0;
    background-color: var(--second-color);
    position: relative;
}

.footer-section-wrap {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
}

.footer-section-first-content {
    width: 300px;
    text-align: left;
}

.footer-section-first-content-logo {
    margin-bottom: 30px;
}

.footer-section-first-content-text {
    margin-bottom: 30px;
}

.footer-section-first-content-text p {
    color: #ffffff;
}

.footer-section-first-content-social-media {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-section-second-content {
    width: 220px;
    text-align: left;
}

.footer-section-second-content a {
    font-family: var(--font-family);
    font-size: var(--font-size-s);
    color: #ffffff;
    line-height: 3.5rem;
}

.footer-section-third-content {
    width: 220px;
    text-align: left;
}

.footer-section-third-content a {
    font-family: var(--font-family);
    font-size: var(--font-size-s);
    color: #ffffff;
    line-height: 3.5rem;
}

.footer-section-fourth-content {
    width: 300px;
    text-align: left;
}

.footer-section-fourth-content-text a{
    font-family: var(--font-family);
    font-size: 1.4rem;
    color: #ffffff;
    line-height: 2.4rem;
}

.footer-section-fourth-content-img img{
    margin-top: 24px;
}

.footer-img img{
    margin-top: 20px;
}

/*
-----------------------------
RESPONSIVE DESIGN
-----------------------------
*/

@media (max-width: 1100px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4vh 4%;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1023px) {
    .container {
        width: 95%;
        padding: 0 20px;
    }
    
    /* Navigation */
    .nav-section {
        padding: 20px 0 10px;
    }
    
    .logo-header-navbar img {
        width: 150px !important;
    }
    
    /* Hero Section */
    .hero-section-wrap {
        margin-top: 3vh;
        min-height: 25vh;
        justify-content: center;
        padding-top: 2vh;
    }
    
    .hero-section-text h1 {
        font-size: 2.1rem;
    }
    
    .hero-section-text p {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-section-wrap {
        gap: 20px;
    }
    
    .footer-section-first-content-text p {
        font-size: 1.3rem;
    }
    
    .footer-section-second-content a,
    .footer-section-third-content a {
        font-size: 2rem;
        line-height: 3.5rem;
    }
    
    .footer-section-fourth-content-text a {
        font-size: 1.4rem;
        line-height: 2.5rem;
    }
}

@media (max-width: 767px) {
    .nav-section {
        padding: 40px 0 10px;    
    }
    
    .navbar-wrap {
        display: none;
    }
    
    .btn-menu-hamburger {
        display: block;
        cursor: pointer;
    }
    
    .logo-header-navbar img {
        width: 150px !important;
    }
    
    /* Hero Section */
    .hero-section-wrap {
        /* margin-top: 2vh; */
        /* min-height: 60vh; */
        padding-top: 0;
        display: flex;
        align-items: flex-end;
        justify-content: center;
      }
      .hero-section-content {
        width: 100%;
        max-width: 100vw;
        padding: 6vw 0 2vw 0;
      }
      .hero-section-text h1 {
        font-size: 3rem;
      }
    
    .main-article {
        padding: 6vh 0;
    }
    
    .article-content {
        padding: 0 20px;
    }
    
    .thumbnail-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .thumbnail-img {
        height: 200px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 3vh;
    }
    
    .modal {
        z-index: 14000;
    }

    .news-card {
        min-height: 250px;
    }
    
    .news-card-image {
        height: 150px;
    }
    
    .news-card-content {
        padding: 2vh 1.5vh;
    }
    
    .news-cards {
        padding: 6vh 0;
    }
    
    .news-cards-title {
        margin-bottom: 4vh;
    }
}

@media (max-width: 480px) {
    .hero {
        height: calc(100vh - 100px);
    }
    
    .hero-section-text h1 {
        font-size: var(--font-size-m);
    }
    
    .hero-section-text p {
        font-size: var(--font-size-s);
    }
    
    .article-content h2 {
        font-size: var(--font-size-l);
    }
    
    .main-article {
        padding: 4vh 0;
    }
    
    .news-cards {
        padding: 4vh 0;
    }
}
