/* Basic Reset */
body, h1, p {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh; /* Ensure the body takes full viewport height */
    display: flex;
    flex-direction: column;
    user-select: none; /* Disable text selection */
}

.header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #2E8B57; /* Seagreen color */
    z-index: 1;
    position: fixed; /* Make the header fixed at the top */
    width: 100%;
    top: 0;
    left: 0;
    box-sizing: border-box; /* Include padding in width calculation */
}

.header .back-button {
    background-color: #C1351D; /* red */
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.header .back-button:hover {
    background-color: #8A2412; /* Darker red */
}

.header .language-buttons {
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 5px; /* Add space between buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.header .language-buttons button {
    background-color: #256b44; /* Darker seagreen */
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 10px;
    width: 45px;
    max-width: 45px;
}

.header .language-buttons button:hover {
    background-color: #1c5c3b; /* Even darker shade on hover */
}

/* Active button style */
.header .language-buttons .active {
    background-color: #4C6DFF; /* Blue when active */
}

.header .language-buttons .active:hover {
    background-color: #3A5BE7; /* Darker shade when active */
}

.content {
    display: flex;
    justify-content: center;
    align-items: flex-start;  /* Align to top */
    height: calc(100vh - 120px); /* Adjusted height to provide more space for header */
    overflow-y: auto; /* Allow scrolling if content overflows */
    padding: 140px 20px 20px; /* Increase top padding to give space for the header */
}

.policy-container {
    width: 100%;  /* Ensure it uses the full width */
    max-width: 1000px; /* Maximum width */
    padding: 20px;
    background-color: #afcc5e; /* Light background for readability */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    background-image: url('../png/Logo.webp'); /* Replace with your image path */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-size: contain; /* Ensures the image covers the entire element */
    background-position: center;
}

.policy-container h1 {
    font-size: 28px;
    text-align: center;
    color: #367351;
}

.policy-container p {
    text-align: justify; /* Justify the text */
    margin-top: 5px;
    line-height: 1.6;
}

a {
    text-decoration: none; /* Remove the default underline */
    color: blue; /* Set the link color */
    font-weight: bold; /* Make the text bold */
    font-size: 16px; /* Adjust the font size */
    padding: 3px 3px; /* Add some padding around the text */
    border-radius: 5px; /* Round the corners */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for hover effect */
}

/* Hover effect - change color and background on hover */
a:hover {
    color: white; /* Change text color on hover */
    background-color: #4fa3d1; /* Change background color */
    text-decoration: underline; /* Add an underline back on hover */
}

/* Focus effect - for accessibility */
a:focus {
    outline: 3px solid #ffcc00; /* Highlight the link with a yellow outline when it's focused */
    outline-offset: 2px; /* Slightly offset the outline */
}

/* Visited link style */
a:visited {
    color: darkblue; /* Darker color for visited links */
}

ol {
    margin-left: -20px; /* Adjusts the left margin of the ordered list */
}

ol li {
    margin-bottom: 25px; /* Adds spacing between list items */
    white-space: normal; /* Allows the text to wrap within the list item */
    word-wrap: break-word;
}

ul {
    margin-left: -23px;
}

ul li {
    margin-bottom: 5px; /* Adds spacing between list items */
    white-space: normal; /* Allows the text to wrap within the list item */
    word-wrap: break-word;
}

#consent {
    text-align: center;
}

.book {
    padding-left: 38px;
    list-style-type: lower-alpha;
}

.disaster {
    list-style-type: lower-alpha;
}

.disaster li {
    margin-bottom: 0;
}

.book li{
    margin-bottom: 5px;
}

.tc li {
    margin-bottom: -40px; /* Adds spacing between list items */
    white-space: normal; /* Allows the text to wrap within the list item */
    word-wrap: break-word;
}

.no-bullets {
    list-style-type: none; /* Removes default numbering */
    padding-left: 20px; /* Optional: to create some indentation */
}

.no-bullets li {
    position: relative;
    margin-bottom: 5px; /* Adjust space between list items */
    padding-left: 20px; /* Optional: removes any left padding within the <li> */
    counter-increment: alphabet-counter;
    white-space: normal; /* Allows the text to wrap within the list item */
    word-wrap: break-word;
}

.no-bullets li::before {
  content: counter(alphabet-counter, lower-alpha) "."; /* Alphabetic list markers */
  position: absolute; /* Position the alphabet marker separately from the text */
  left: 0; /* Align the marker to the left */
  top: 0; /* Align the marker with the top of the text */
  margin-right: 8px;
}

.no-bullets li p {
  margin: 0;
  padding: 0;
  text-indent: -20px; /* Indent the wrapped text to align with the first line */
  display: inline-block; /* Keep the text inline with the list marker */
  padding-left: 20px; /* Ensure proper alignment when wrapped */
}

.policy-container .confirm {
    display: none;
    justify-content: center; /* Center the buttons horizontally */
    gap: 80px; /* Optional: add space between the buttons */
    margin-top: 50px; /* Optional: space between the paragraph and buttons */
}

.policy-container .confirm button {
    width: 150px;
    padding: 10px 20px; /* Add padding to the buttons */
    font-size: 1em; /* Set a readable font size */
    font-weight: bold;
    background-color: red; /* Example button color */
    color: white; /* Button text color */
    border: none; /* Remove default border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Change cursor to pointer on hover */
    transition: background-color 0.3s ease; /* Smooth transition on hover */
}

#agreeBtn {
    background-color: #2342ba;
}

#agreeBtn:hover {
    background-color: #11215e;
}

/* Button hover effect */
.policy-container .confirm button:hover {
    background-color: #8f252a; /* Darker red on hover */
}

/* Button focus effect */
.policy-container .confirm button:focus {
    outline: 3px solid #ffcc00; /* Yellow outline for accessibility */
}

/* Mobile-Friendly Adjustments */
@media screen and (max-width: 768px) {
    /* Make header buttons stack vertically on smaller screens */
    .header {
        flex-direction: row;
        align-items: flex-start;
        padding: 15px;
    }

    .header .language-buttons {
        display: flex;
        justify-content: flex-end; /* Align buttons to the right */
        gap: 5px; /* Add space between buttons */
        flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    }

    .header .language-buttons button {
        background-color: #256b44; /* Darker seagreen */
        color: white;
        border: none;
        padding: 8px 12px;
        cursor: pointer;
        border-radius: 10px;
        width: 45px;
        max-width: 45px;
    }

    .content {
        height: calc(100vh - 180px); /* Adjust for the header height on mobile */
        padding-top: 120px; /* Ensure content is not hidden behind header */
    }

    .policy-container {
        padding: 15px;
        max-width: 90%; /* Allow more width for smaller screens */
    }

    /* Adjust the title for mobile screens */
    .policy-container h1 {
        font-size: 1.5rem;
        margin-top: 15px; /* Ensure the heading has more space on top */
    }

    .policy-container p {
        font-size: 0.9rem; /* Slightly smaller font for better readability on small screens */
    }

    .policy-container .confirm {
        gap: 50px; /* Optional: add space between the buttons */
    }
}

.whatsapp-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.9;
}

.whatsapp-icon img {
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.whatsapp-banner {
    position: absolute;
    top: 4px;
    left: 100%;  /* Initially position off-screen to the right of the icon */
    background-color: #21bf5c;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);  /* Shadow for the banner */
    opacity: 0;  /* Initially make it invisible */
    transform: translateX(-65%); /* Initially off-screen */
    transition: transform 2s ease-in-out, opacity 1s ease-in-out;  /* Smooth slide-in and fade-in */
    z-index: -1;
    text-align: center;
}

.whatsapp-container:hover .whatsapp-banner {
    transform: translateX(2%); /* Slide the banner to its original position */
    transition: transform 2s ease-out-in, opacity 1s ease-out-in;
    opacity: 1;  /* Make the banner visible */
}

.whatsapp-link {
    display: inline-block;
    width: auto;
    height: auto;
    text-decoration: none;
    padding: 0;
    margin: 0;
}

.whatsapp-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

@media screen and (max-width: 503px) {
    .policy-container h1 {
        font-size: 1.2rem;
        margin-top: 10px; /* Ensure the heading has more space on top */
    }
}

/* Large Screen Adjustments (PC/Tablet) */
@media screen and (min-width: 769px) {
    .header {
        flex-direction: row;
    }

    .header .language-buttons {
        display: flex;
        flex-direction: row;
    }

    .header .language-buttons button {
        margin-left: 10px;
    }
}


@media (min-width: 380px) and (max-width: 768px) {
    .whatsapp-container {
        opacity: 0.8;
        z-index: 10;
        bottom: 10px;
        left: 10px;
    }

    .whatsapp-icon img {
        width: 45px;
        height: 45px;
    }

    .whatsapp-banner {
        top: 2px;
    }

    .whatsapp-icon {
        width: 45px;
        height: 45px;
    }
}

@media (min-width: 380px) and (max-width: 780px) {
    ol {
        margin-left: -27px; /* Adjusts the left margin of the ordered list */
    }
    ul {
        margin-left: -29px;
    }

    .no-bullets {
        padding-left: 26px; /* Optional: removes any left padding within the <li> */
    }

    .book {
        padding-left: 43.5px;
    }

    .policy-container .confirm {
        gap: 50px; /* Optional: add space between the buttons */
    }
}


@media (max-width: 1024px) and (orientation: landscape) {
    .policy-container h1 {
        font-size: 1.6rem;
        margin-top: 10px; /* Ensure the heading has more space on top */
    }

    .whatsapp-container {
        opacity: 0.8;
        z-index: 10;
        bottom: 10px;
        left: 10px;
    }
    .whatsapp-icon img {
        width: 45px;
        height: 45px;
    }
    .whatsapp-icon {
        width: 45px;
        height: 45px;
    }
    .whatsapp-banner {
        top: 2px;
    }
}

@media (max-width: 1048px) and (orientation: landscape) { /* Based on Firefox */
    .whatsapp-container {
        opacity: 0.8;
        z-index: 10;
        bottom: 10px;
        left: 10px;
    }

    .whatsapp-icon img {
        width: 45px;
        height: 45px;
    }

    .whatsapp-icon {
        width: 45px;
        height: 45px;
    }
    .whatsapp-banner {
        top: 0.5px;
    }
}

@media (min-width: 504px) and (max-width: 504px) { /* Firefox */
    .whatsapp-banner {
        top: 0.5px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .whatsapp-container {
        opacity: 0.8;
        z-index: 10;
        bottom: 10px;
        left: 10px;
    }
}

@media screen and (max-width: 380px) { /* Galaxy XCover 5 */
    .whatsapp-container {
        opacity: 0.8;
        z-index: 10;
        bottom: 10px;
        left: 10px;
    }
    .whatsapp-icon img {
        width: 40px;
        height: 40px;
    }

    .whatsapp-icon {
        width: 40px;
        height: 40px;
    }
    .whatsapp-banner {
        top: 0.5px;
    }
}

@media screen and (max-width: 720px) and (orientation: landscape) { /* Galaxy XCover 5 */
    .whatsapp-container {
        opacity: 0.8;
        z-index: 10;
        bottom: 10px;
        left: 10px;
        right: auto;
    }
    .whatsapp-icon img {
        width: 40px;
        height: 40px;
    }

    .whatsapp-icon {
        width: 40px;
        height: 40px;
    }
    .whatsapp-banner {
        top: 0.5px;
    }
}

@media print {
    html, body {
        display: none;
    }
}

.blackout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 9999;
    display: none;  /* Initially hidden */
}