body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5; /* Light gray background */
    color: #333; /* Dark gray text */
}

header {
    background-color: #e0e0e0; /* Slightly darker gray for header */
    padding: 10px 20px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1); /* subtle shadow for depth */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style-type: none;  /* Remove bullet points */
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

#company-logo {
    width: 150px;
}

.menu-icon .bar {
    width: 25px;
    height: 3px;
    background-color: #333; /* Dark gray bars for hamburger icon */
    margin: 3px 0;
}

#menu-toggle {
    display: none;
    cursor: pointer;
}

#navbar {
    display: flex;
    gap: 20px;
}

#navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

#navbar ul li {
    display: inline;
}

#navbar ul li a {
    color: #333; /* Dark gray text for links */
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#navbar ul li a:hover {
    background-color: #ddd; /* Slightly darker gray for hover effect */
}

@media screen and (max-width: 767px) {
    #menu-toggle {
        display: block;
    }

    #navbar {
        display: none;
        width: 100%;
        gap: 0;
    }

    #navbar ul {
        flex-direction: column;
        align-items: center;
    }
}

section {
    padding: 20px;
}
.st_discr {
    text-align: justify;
}
img {
    max-width: 100%;
    height: auto;
}

/*** Image on the main page *********************************/
.image-container {
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.section-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; /* Center the image */
    display: block;
    transform: scale(1.1); /* Zoom in the image by 10% */
}

.image-title {
    position: absolute;
    top: 20%;  /* Move to the top-right corner */
    right: 20%;
    color: white; /* Title color */
    font-size: 24px; /* Font size */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Text shadow for better readability */
    text-align: right;
}

/* For medium screens */
@media (max-width: 768px) {
    .image-title {
        font-size: 20px; /* Reduce font size */
        top: 15%;
        right: 15%;
    }
}

/* For small screens */
@media (max-width: 480px) {
    .image-title {
        font-size: 16px; /* Further reduce font size */
        top: 10%;
        right: 10%;
    }
}
/*** Image on the main page: end *****************************/

/*** Why we are chosen *********************************************************/
.grid-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 2 columns */
    gap: 20px;  /* Spacing between grid items */
    list-style-type: none;  /* Remove bullet points */
    padding: 0;
    max-width: 100%;  /* Make sure it adapts to the width of the container */
}

.grid li {
    display: flex;
    flex-direction: column;  /* Stack content vertically */
    align-items: center;  /* Center content horizontally */
    justify-content: flex-start;  /* Align content to the top */
    height: auto;  /* Adjusts height based on content */
    padding: 20px;
    background-color: #f1f1f1;  /* Light background for better visibility */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);  /* Subtle shadow for depth */
}

.grid li b {
    margin-bottom: 10px;  /* Space between the title and content */
}

/* For small screens, display as a single column */
@media screen and (max-width: 767px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.grid li i {
    font-size: 24px;  /* Adjusts the icon size */
    margin-right: 10px;  /* Space between the icon and text */
}
/**********************************************************/

/*** List of programs *************************************/
.programs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* spacing between books */
    justify-content: space-between; /* evenly distribute books */
}

.book {
    display: flex;
    width: 20%;
    height: 200px; 
    background-color: #f9f4e0; /* Old paper color */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative; /* for positioning the spine */
    perspective: 500px; /* for 3D rotation */
    font-size: 16px;
}

.left-page, .right-page {
    flex: 1;
    flex-basis: 50%;
    padding: 7px;
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2) inset; /* inner shadow for "page depth" effect */
    overflow-y: auto;
    height: 100%;
    position: relative; 
    transform-style: preserve-3d; /* keep 3D position of pseudo elements */
}

.left-page {
    transform: rotateY(2deg); /* slight rotation for 3D effect */
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.right-page {
    transform: rotateY(-2deg);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* Simulate multiple pages in the book using pseudo elements */
.left-page::before, .right-page::before,
.left-page::after, .right-page::after {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    width: 100%;
    z-index: -1; /* position behind actual content */
    background-color: #f7f2e5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) inset; /* inner shadow */
}

.left-page::before {
    left: -1px;
    transform: rotateY(2.5deg);
}

.left-page::after {
    left: -2px;
    transform: rotateY(3deg);
}

.right-page::before {
    right: -1px;
    transform: rotateY(-2.5deg);
}

.right-page::after {
    right: -2px;
    transform: rotateY(-3deg);
}

/* ... Your existing CSS ... */

/* Media query for screens smaller than 768px (typically tablets and phones) */
@media (max-width: 768px) {
    .programs-list {
        flex-direction: column;
        align-items: center; /* center the books */
    }

    .book {
        width: 90%; /* make the book take up most of the screen width */
        margin-bottom: 20px; /* spacing between books */
        height: 250px;
        font-size: 14px; /* reduce font size for better fit */
    }

    .left-page, .right-page {
        padding: 5px;
    }
}

/* Media query for screens smaller than 480px (typically smaller phones) */
@media (max-width: 480px) {
    .book {
        height: 220px;
    }
}
/*** List of programs: end ********************************/

/*** Contacts and socials *********************************/
.grid-container1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 2 columns */
    gap: 20px;  /* Spacing between grid items */
    width: 100%;  /* Ensure it takes full width of its container */
}

.contact-block1 {
    background-color: #f7f7f7;  /* Light gray background for visibility */
    padding: 20px;  /* Padding for content inside each block */
    display: flex;
    flex-direction: column;  /* Stack content vertically */
    align-items: flex-start;  /* Align content to the left */
    justify-content: flex-start;  /* Align content to the top */
    height: auto;  /* Adjusts height based on content */
}
.contact-block1 p {
    margin: 5px;
}
.h_cblock {
    text-align: center;
}
.icon {
    margin-right: 10px;  /* Space between the icon and text */
}

/* For small screens, stack blocks vertically */
@media screen and (max-width: 767px) {
    .grid-container1 {
        grid-template-columns: 1fr;
    }
}
/*** Contacts and socials: end *****************************/

/*** Graphs *************************************************/
.chart-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.source-note {
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

.source-note a {
    color: #0075c0;
    text-decoration: underline;
}

.source-note a:hover {
    color: #072244;
}
/***************************************************************************/

/* Partners images and links */
.image-links {
    list-style-type: none;  /* Removes bullet points */
    padding: 0;
    display: flex;  /* Makes list items display horizontally */
    justify-content: center;  /* Centers the items on the page */
    gap: 20px;  /* Provides space between the images */
}

.link-image {
    width: 150px;  /* Adjust this value to your preference */
}
.contact-block {
    background-color: #f9f9f9; /* Light background for each block */
    padding: 15px;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1); /* subtle shadow for depth */
}

.icon {
    margin-right: 10px;
    color: #888; /* A neutral gray color */
}

a {
    color: #0075c0; /* Link color */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

footer {
    background-color: #e0e0e0; /* Matching header background */
    padding: 10px 10px 10px 20px;
    text-align: left;
}

#backToTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99; /* Ensures the button is above all other elements */
    border: none;
    outline: none;
    background-color: #0075c0; /* You can adjust the color as needed */
    color: white;
    cursor: pointer;
    width: 40px;  /* Adjust to make the button square */
    height: 40px; /* Adjust to make the button square */
    line-height: 40px; /* Center the arrow vertically */
    text-align: center; /* Center the arrow horizontally */
    border-radius: 4px;
    font-size: 18px;
}

#backToTopBtn:hover {
    background-color: #072244;
}

/*** Programes ************************************************/
.p_pargraf {
    text-align: justify;
}