/* Main styles for Bio-Sports */

/* Resetting browser default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    background-color: #ffffff;
    color: #222;
    overflow-x: hidden;
}

/* Styles for the main page container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #333;
    padding: 15px 0;
    color: #fff;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

header h1 {
    font-size: 2.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

header h1:hover {
    transform: scale(1.05);
    color: #00d1b2;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #00d1b2;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Main banner */
.main-banner {
    background: url('banner.jpg') no-repeat center center/cover;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.main-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.banner-text {
    position: relative;
    z-index: 1;
}

.banner-text h2 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

.banner-text h3 {
    font-size: 2.2em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    font-weight: 600;
    color: #6aa84f;
}

.banner-text p {
    font-size: 1.5em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    font-weight: 400;
    max-width: 800px;
}

.banner-text button {
    background-color: #6aa84f;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 50px;
    font-weight: 600;
}

.banner-text button:hover {
    background-color: #38761d;
    transform: translateY(-3px);
}

/* About us */
.about-us {
    padding: 60px 20px;
    background-color: #f7f7f7;
    text-align: center;
}

.about-us h2 {
    font-size: 2.5em;
    margin-bottom: 25px;
    color: #333;
    transition: color 0.3s ease;
}

.about-us h2:hover {
    color: #00d1b2;
}

.about-us p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #555;
}

.about-us img {
    margin-top: 30px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Services */
.services {
    background-color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.services h2 {
    font-size: 2.5em;
    margin-bottom: 25px;
    color: #6aa84f;
    text-decoration: underline;
}

ul {
    list-style-type: none;
    padding: 0;
}

/* Exception for news */
/* Exception for .fivezero-list */
.styled-list.fivezero-list {
    list-style-type: disc !important; /* Enable markers */
    list-style-position: outside;
    padding-left: 20px;
}

.styled-list.fivezero-list li {
    margin-bottom: 20px;
    padding-left: 10px;
    line-height: 1.6;
}

.services ul li {
    font-size: 1.2em;
    color: #444;
    padding: 10px 0;
    display: inline-block;
    width: 45%;
    box-sizing: border-box;
}

.services ul li::before {
    content: '✔';
    color: #6aa84f;
    margin-right: 10px;
    font-weight: bold;
}

/* Simple Secure Effective */
.concept {
    padding: 60px 20px;
    background-color: #6aa84f;
    color: #fff;
}

.concept .concept-block {
    padding: 20px;
    margin-bottom: 20px;
}

.concept .concept-block h3 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #fff;
    text-transform: uppercase;
    border-bottom: 2px solid #00d1b2;
    padding-bottom: 5px;
}

.concept .concept-block p {
    font-size: 1.2em;
    line-height: 1.8;
    max-width: 800px;
}

/* Health Partners and Our Partners */
.health-partners,
.our-partners {
    padding: 60px 20px;
    background-color: #6aa84f;
    text-align: center;
    color: #fff;
}

.health-partners h2,
.our-partners h2 {
    font-size: 2.5em;
    margin-bottom: 25px;
    font-weight: 600;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    background-color: #6aa84f;
    padding: 30px;
    border-radius: 10px;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-item img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.partner-item p {
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    color: #222;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Contact */
.contacts {
    padding: 60px 20px;
    background-color: #6aa84f;
    text-align: center;
}

.contacts h2 {
    font-size: 2.5em;
    margin-bottom: 25px;
    color: #fff;
    transition: color 0.3s ease;
}

.contacts h2:hover {
    color: #00d1b2;
}

.contacts h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

.contacts p {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #fff;
}

.contacts a {
    color: #00d1b2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacts a:hover {
    color: #007b74;
}

/* Map in the contact section */
.contacts .map {
    margin-top: 40px;
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 30px;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

footer p {
    font-size: 1em;
    color: #bbb;
    transition: color 0.3s ease;
}

footer p:hover {
    color: #00d1b2;
    text-decoration: none;
}

footer p a:hover {
    color: #00d1b2;
    text-decoration: underline;
}

footer .social-icons {
    margin-top: 20px;
}

footer .social-icons a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

footer .social-icons a:hover {
    color: #00d1b2;
}

.contacts .social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contacts .social-links a {
    width: 40px;
    height: 40px;
    display: inline-block;
    background-size: cover;
    transition: transform 0.3s ease;
}

.contacts .social-links a:hover {
    transform: scale(1.1);
}

.contacts .social-links .facebook {
    background: url('images/facebook.png') no-repeat center center;
}

.contacts .social-links .instagram {
    background: url('images/inst.png') no-repeat center center;
}

.contacts .social-links .google {
    background: url('images/google.png') no-repeat center center;
}

/* "Scroll to top" button */
.scroll-to-top {
    opacity: 0;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #6aa84f;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    cursor: pointer;
    transition: opacity 0.4s ease, transform 0.4s ease;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateY(0);
    pointer-events: none; /* Disable interaction when hidden */
}

/* Visible button with smooth appearance from bottom to top */
.scroll-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* Enable interaction when displayed */
}

/* Add fade-out animation from top to bottom */
.scroll-to-top.hide {
    opacity: 0;
    transform: translateY(20px); /* Slide button down when it disappears */
    pointer-events: none;
}

/* Style for modal window */
.modal {
    display: flex; /* Always displayed, but visibility is controlled via opacity */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/stripes.png') no-repeat center center/cover;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0; /* Initial opacity */
    pointer-events: none; /* Disable interaction when the modal is hidden */
    transition: opacity 0.5s ease; /* Smooth opacity transition animation */
}

.modal.show {
    opacity: 1; /* Final opacity */
    pointer-events: auto; /* Enable interaction when the modal is visible */
}

.modal-content {
    position: relative;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    transform: scale(0.9); /* Initial size reduction */
    transition: transform 0.5s ease; /* Smooth size increase animation */
}

.modal.show .modal-content {
    transform: scale(1); /* Final size */
}

/* Style for the close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: -30px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #f00;
}

/* Style for the cookies window close button */
.close-btnco {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btnco:hover {
    color: #f00;
}

.modal-image {
    width: 120%;
    max-width: 550px; /* Set maximum width */
    max-height: 90vh; /* Set maximum height to 80% of the screen height */
    cursor: pointer;
}

/* Biocircuit page styles */
.biocircuit-banner {
    background-color: #333; /* Background color to match header */
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.biocircuit-title {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.biocircuit-gif {
    max-width: 70%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

.biocircuit-content {
    padding: 60px 20px;
    background-color: #f7f7f7;
    color: #333;
    font-size: 1.1em;
    line-height: 1.8;
}

.biocircuit-content h3 {
    font-size: 2em;
    color: #6aa84f;
    margin-top: 40px;
}

.biocircuit-content p {
    max-width: 800px;
    margin: 20px auto;
    color: #555;
}

.result-list {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

.result-list li {
    position: relative;
    font-size: 1.1em;
    padding: 10px 0;
    padding-left: 25px;
    color: #333;
}

.result-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #6aa84f;
    font-weight: bold;
    font-size: 1.2em;
}

/* News Section */
.news-section {
    padding: 60px 20px;
    background-color: #f7f7f7;
    text-align: center;
}

.news-section h2 {
    font-size: 2.5em;
    margin-bottom: 25px;
    color: #333;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
}

.news-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.news-card a {
    color: inherit;
    text-decoration: none;
}

.news-card img {
    width: 100%;
    height: auto;
}

.news-content {
    padding: 20px;
    text-align: left;
}

.news-content h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.news-content p {
    font-size: 1em;
    color: #555;
}

.news-content span {
    color: #6aa84f;
    font-weight: bold;
    cursor: pointer;
}

.news-date {
    font-size: 0.9em;
    color: #888;
    margin-top: 10px;
}

/* Hover effects for news card */
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* News Detail Page */
.news-detail {
    padding: 60px 20px;
    background-color: #fff;
    color: #333;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.news-detail h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.news-detail .news-date {
    font-size: 1em;
    color: #888;
    margin-bottom: 20px;
}

.news-detail-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Main styles for the news modal window */
.news-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.news-modal.show {
    opacity: 1;
    visibility: visible;
}

.news-modal .modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.news-modal .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #333;
}

footer a {
    color: inherit;
    text-decoration: none;
}

footer a:hover {
    color: #00d1b2;
    text-decoration: underline;
}

footer a:focus,
footer a:active {
    outline: none;
}