/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Body Styling */
body {
    background-color: #000; /* Black background for all pages */
    color: #fff; /* White text for readability */
    font-family: Arial, sans-serif;
}

/* Button - Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 40vh; /* Adjust this as needed */
    cursor: pointer;
    overflow: hidden; /* Hide any overflow */
    background-color: #000; /* Fallback background color in case the image fails to load */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for scale and shadow */
    border: none; /* Remove default button border */
    padding: 0; /* Remove any internal padding */
    display: block; /* Make the button behave like a block-level element */
    transform: scale(0.8); /* Shrink the hero section to 80% of its size */
    transform-origin: center; /* Ensure it scales from the center */
}

/* Image inside Hero Section */
.hero img {
    width: 90%;
    height: 90%;
    object-fit: contain; /* Make sure the entire image is contained within the button */
    transition: transform 0.3s ease; /* Smooth transition for image zoom */
}

/* Hover Effect */
.hero:hover {
    transform: scale(1.05); /* Slightly scale up the button */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6); /* Add a shadow for depth effect */
}

.hero:hover img {
    transform: scale(1.1); /* Slightly zoom the image */
}

/* Main Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #333; /* Slightly lighter black for contrast */
    z-index: 10;
}

/* Main Navigation */
.main-nav {
    position: absolute; /* Position the nav over the content */
    top: 0;
    left: 0;
    right: 0;
    z-index: 10; /* Ensure the navigation is above other content */
	max-width: 100%;
    background-color: rgba(0, 0, 0, 0.65); /* Semi-transparent black background (65% opacity) */
    display: flex;
    justify-content: center;
    padding: 10px 0;
    transition: background-color 0.3s ease; /* Smooth transition when changing background */
}

.main-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.main-nav li {
    margin: 0 20px;
}
/* Style for the main-nav buttons */
.main-nav a {
    display: inline-block;
    color: white; 
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 5px 10px; /* Add padding to create button effect */
    margin: 0px; /* Optional: space between buttons */
    background-color: transparent; /* No background by default */
    border: 1px solid #fff; /* White border for the button */
    border-radius: 5px; /* Rounded corners for buttons */
    transition: all 0.3s ease; /* Smooth transition for button hover */
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.3); /* Lighter shadow for visibility */
}

/* Hover effect for the buttons */
.main-nav a:hover {
    color: #fff; /* Keep text white */
    background-color: #4f4f4f; /* Background color on hover */
    border-color: #666666; /* Border color change on hover */
    box-shadow: 0 8px 12px rgba(255, 255, 255, 0.4); /* More pronounced shadow on hover */
    transform: translateY(-4px); /* Lift the button when hovered */
}

/* Active state for when the button is pressed */
.main-nav a:active {
    transform: translateY(2px); /* Button pressed down */
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.3); /* Smaller shadow on press */
}

/* Grid Layout for Posters */
#news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 posters per row */
    gap: 20px;
    padding: 20px;
}

/* Poster Styling */
.poster {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
    background-color: grey; /* Grey border color */
    text-align: center;
	border: 1px solid silver; /* Silver border around the poster */
}

/* Image Styling */
.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Shrinks and fills the square container */
    display: block;
    border-radius: 8px;
}

/* Title Styling on Thumbnails */
.poster::after {
    content: attr(data-title); /* Set title dynamically */
    position: absolute;
    bottom: 5px;
    left: 10px;
    right: 10px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

/* Hover Effect to Grow Image */
.poster:hover {
    transform: scale(1.1);
    z-index: 1;
    opacity: 0.85; /* Change opacity to 85% on hover */
}

/* Full-screen Modal */
#full-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden; /* Hidden by default */
    z-index: 1000;
}

/* Show Modal on Click */
#full-screen.visible {
    visibility: visible;
}

/* Full Image Container */
#full-image-container {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    text-align: center;
}

/* Full Image */
#full-image {
    width: auto;        /* Ensure image width is auto to maintain aspect ratio */
    height: auto;       /* Ensure image height is auto to maintain aspect ratio */
    max-width: 100%;     /* Set max width to 100% */
    max-height: 100vh;   /* Set max height to 100% of the viewport height */
    object-fit: contain; /* Ensure image doesn't overflow or get distorted */
}

/* Close Button */
#close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

#close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}
@media (max-width: 768px) {
    .main-nav ul {
        flex-wrap: wrap; /* Allow buttons to wrap if they don't fit */
        justify-content: center; /* Center them */
        gap: 5px; /* Reduce spacing */
        padding: 0 10px; /* Add some padding */
    }

    .main-nav li {
        margin: 0; /* Remove large margins */
    }

    .main-nav a {
        font-size: 14px; /* Reduce text size */
        padding: 4px 6px; /* Reduce padding */
        white-space: nowrap; /* Prevent buttons from breaking into multiple lines */
    }
}

/* Footer styles */
.main-footer {
    text-align: center;
    padding: 10px;
    background: #111;
    color: #fff;
    font-size: 14px;
}

.footer-quote {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 10px;
    font-style: italic;
}

html {
    overflow-y: scroll; /* Ensures scrollbar is always present to prevent layout shifting */
}

.hero {
    position: relative;
    top: -8px; /* Adjust until perfectly aligned */
}
@media (max-width: 1080px) {
    .main-header {
        margin-left: -8px; /* Adjust this value as needed */
    }
}
@media (min-width: 1081px) {
    .main-header {
        margin-left: -8px; /* Adjust this value as needed */
    }
}

/* LANGUAGE SELECTOR POSITIONED VERTICALLY DE AICI IN JOS CAUTA */
.language-selector {
    position: fixed;
    top: 45px;
    left: 22px;
    z-index: 1000;
}

/* Styling for the language button */
.language-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 30px; /* Thinner button */
	height: 58px;
    padding: 5px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: silver;
	border: 1px solid silver; /* 1px silver border */
    background: #000000; /* Dark background */
    border-radius: 5px;
    transition: filter 0.2s ease-in-out; /* Smooth effect */
}

/* Negative effect on hover */
.language-button:hover {
    filter: invert(1); /* Inverts colors (negative effect) */
}
@media (max-width: 768px) {  
    /* Adjust the language selector for mobile */
    .language-selector {
        position: fixed;
        top: 20px; /* Adjust position */
        left: 15px;
        z-index: 1000;
    }

    /* Make the button oval and resize to 85% */
    .language-button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 85%; /* Scale down */
        max-width: 50px; /* Adjust size */
        height: 44px; /* Oval shape */
        text-align: center;
        font-size: 10px; /* Slightly smaller font */
        font-weight: bold;
        text-decoration: none;
        color: silver;
        background: #222; /* Dark background */
		border: 1px solid silver; /* 1px silver border */
        border-radius: 40px; /* Oval shape */
        transition: filter 0.2s ease-in-out;
    }

    /* Negative effect on hover */
    .language-button:hover {
        filter: invert(1);
    }
}
/* Further adjustment for very NARROW PORTRAIT mode (phones) */
@media (max-width: 480px) {
    .language-selector {
        top: 45px; /* Lowered even more for small phones */
    }
}
/* NAVBAR BUTTONS PORTRAIT FORCE SINGLE LINE */
@media (max-width: 768px) {
    /* Force navigation into a single line */
    .main-nav ul {
        display: flex;
        flex-wrap: nowrap; /* Prevents line breaks */
        overflow-x: auto; /* Allows scrolling if needed */
        justify-content: space-around;
        white-space: nowrap; /* Ensures text stays in one line */
        padding: 5px;
    }

    .main-nav ul li {
        margin: 0 0px; /* Reduce spacing between items */
        font-size: 10px; /* Adjust font size for better fit */
    }

    .main-nav ul li a {
        padding: 5px 8px;
        font-size: 10px; /* Smaller font to fit */
    }
}

.contact-info {
    display: flex;
    justify-content: center; /* Centers icons horizontally */
    align-items: center; /* Aligns icons vertically */
    gap: 20px; /* Adds spacing between icons */
    flex-wrap: wrap; /* Ensures responsiveness */
}

.contact-info a {
    display: inline-flex; /* Ensures inline layout */
    align-items: center; /* Aligns icon & text */
    gap: 5px; /* Adds space between icon and text */
    text-decoration: none;
    color: #f0f0f0;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.contact-info img {
    display: inline-block !important;
    width: 64px !important;
    height: 64px !important;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Hover effect: Slightly increase size & add red glow */
.contact-info a:hover img {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8); /* Red glow */
}

@keyframes glow {
    0% {
        text-shadow: 0 -3px 5px rgba(192, 192, 192, 0.5), 0 -6px 10px rgba(192, 192, 192, 0.5), 0 -9px 15px rgba(192, 192, 192, 0.5);
    }
    100% {
        text-shadow: 0 3px 5px rgba(192, 192, 192, 1), 0 6px 10px rgba(192, 192, 192, 1), 0 9px 15px rgba(192, 192, 192, 1);
    }
}

@keyframes silverToRedGlow {
    0% { text-shadow: 0 0 4px silver; }
    50% { text-shadow: 0 0 6px red, 0 0 8px red; }
    100% { text-shadow: 0 0 4px silver; }
}

.language-button span:first-child {
    color: inherit; /* Keeps the original text color */
    animation: silverToRedGlow 4s infinite ease-in-out;
}

#media-coverage {
    text-align: center;
    margin: 50px auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-top: 2px solid #666;
    border-bottom: 2px solid #666;
}

#media-coverage h2 {
    font-size: 4em;
    margin-bottom: 20px;
}

.news-articles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.news-item {
    width: 300px;
    background-color: #222;
    padding: 15px;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.news-item:hover {
    transform: scale(1.05);
}

.news-item a {
    text-decoration: none;
    color: white;
    display: block;
}

.news-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.news-item h3 {
    font-size: 1.2em;
    margin: 10px 0;
}

.news-item p {
    font-size: 0.9em;
    color: #ccc;
}
.small-img { /* marime poza de pe articole pag NEWS */
    width: auto !important;
    height: 64px !important;
    display: block;
    margin: 0 auto;
}
.media-coverage-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Adjust spacing */
}

.media-coverage-header h2 {
    margin: 0;
}

.media-img { /* marime imagini langa MEDIA COVERAGE */
    width: 192px; /* Adjust as needed */
    height: auto;
}
/* for mobile news Media COverage */

.media-coverage-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Adjust spacing */
    flex-wrap: nowrap; /* Allows wrapping on small screens */
    text-align: center;
	width: 100%
}

/* Adjust title size and spacing for smaller screens */
.media-title {
    font-size: 4.5em;
    text-align: center;
    flex-grow: 1; /* Ensures the title doesn't shrink too much */
}

/* Default image size */
.media-img {
    width: 120px; /* Adjust as needed */
    height: auto;
}

/* Mobile-friendly adjustments */
@media (max-width: 768px) {
    .media-coverage-header {
        flex-direction: column; /* Stack elements vertically */
        gap: 5px; /* Reduce spacing */
    }

    .media-img {
        width: 80px; /* Make images smaller */
    }

    .media-title {
        font-size: 3em; /* Reduce title size slightly */
    }
}
@media (min-width: 1080px) {
    .media-coverage-header {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px; /* Reduce gap to bring images closer */
        flex-wrap: nowrap; /* Prevents images from wrapping */
        text-align: center;
        width: 100%;
    }

    .media-title {
        font-size: 4.5em;
        text-align: center;
        flex-grow: 0; /* Prevents title from stretching */
        white-space: nowrap; /* Keeps title in one line */
        margin: 0 5px; /* Keeps images close */
    }

    .media-img {
        width: 180px; /* Adjust size as needed imagini pe marginea textului*/
        height: auto;
        flex-shrink: 0; /* Prevents images from resizing */
    }
}

/* Full-screen modal styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Dark overlay */
    z-index: 1000;
}

/* Content Box */
.modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    height: 80%;
    background: black;
    color: white;
    font-size: 1.2em;
    padding: 20px;
    border: 2px solid #ff0000; /* Red border */
    overflow-y: auto;
    margin: 10vh auto;
}

/* The interview text */
.modal-text pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: Arial, sans-serif;
    max-height: 70vh;
    overflow-y: auto;
}

/* Close Button (always at bottom) */
.close-btn {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: red;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.5em;
    cursor: pointer;
}

.main-footer {
  position: relative;
  padding: 5px 10px;
  font-size: 13px;
  color: #ccc;
}

.footer-container {
  position: relative;
  text-align: center;
}

.signature {
  position: absolute;
  right: 10px; /* ← changed from 0 to 10px */
  top: 0;
  color: #ccc;
  font-size: 13px;
}

.signature a {
  color: #ccc;
  text-decoration: none;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
@media (max-width: 600px) {
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .signature {
    position: static;
    margin-top: 5px;
  }

  .copyright {
    order: -1; /* this ensures it comes first */
  }
}

#news-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.featured-poster {
    max-width: 33%;
    width: 100%;
}

#news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}