/*

TELMARC CORPORATION WEBSITE
FRONT END DEVELOPED BY STI OJT STUDENTS

ITABLE, GEEN JASPER VALDERAMA
ZAPANTA, XERIL DELOS SANTOS

C 2025

*/

body {
    font-family: 'Gabarito', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    overflow-x: hidden;
    justify-content: center;
    align-items: center;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

.navbar {
    position: absolute; /* Fixes the navbar at the top */
    top: 0;
    left: 0;
    width: 100%; /* Ensures it spans the full width */
    z-index: 2; /* Ensures it's above other elements */
    /* Gradient Background with Transparency */
    background: linear-gradient(to right, rgb(255, 255, 255), rgb(255, 255, 255), rgba(255, 255, 255, 0.759), rgba(190, 226, 239, 0.534));
    height: 90px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    padding: 0 15px;
}

.navbar-absolute {
    position: absolute;
    top: 0;
    transition: top 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.navbar-fixed {
    position: fixed;
    top: 0;
    opacity: 1;
    transition: top 0.3s ease, opacity 0.3s ease;
}

.navbar-hidden {
    position: absolute;
    top: -100px; /* Moves it off screen */
    opacity: 0;
    transition: top 0.3s ease, opacity 0.3s ease;
}


.nav-left {
    display: flex;
    align-items: center;
    gap: 0px;
    position: relative; /* Add this line */
}

.tmclogo {
    height: 57px;
    transition: all 0.3s ease;
    justify-content: center;
    align-items: center;
    display: flex;
    padding: 25px;
}

.tmclogo1 {
    height: 120px;
    transition: all 0.3s ease;
    margin-left: -25px;
}

.nav-links {
    display: flex;
    list-style-type: none;  
    text-align: left;
}

.nav-links1 {
    display: flex;
    list-style-type: none;  
    text-align: center;
    gap: 40px;
}

.nav-links li {
    margin-left: 20px;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeIn 0.5s ease-in-out forwards;
}

.nav-links li:nth-child(1) { animation-delay: 0.2s; }
.nav-links li:nth-child(2) { animation-delay: 0.4s; }
.nav-links li:nth-child(3) { animation-delay: 0.6s; }
.nav-links li:nth-child(4) { animation-delay: 0.8s; }
.nav-links li:nth-child(5) { animation-delay: 1s; }
.nav-links li:nth-child(6) { animation-delay: 1.5s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links a {
    color: rgb(0, 162, 255);
    text-decoration: none;
    font-size: 18px;
    font-weight: normal;
    transition: all 0.3s ease-in-out;
}

.nav-links a:hover {
    font-size: 22px; /* Slightly increase instead of jumping too much */
    font-weight: bold;
    color: rgb(0, 162, 255); /* Change color on hover */
    transform: scale(1); /* Slight zoom effect */
}


.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
    padding-right: -15x;
    width: 100%;
    height: 100%;
    justify-items: center;
    justify-content: center;
}

.bar {
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: rgb(0, 0, 0);
    border-radius: 5px;
}

@media (max-width: 1030px) {
    .navbar { 
        position: absolute;
        width: 100%;
        z-index: 2;
        background-color: white;
        display: flex;
        justify-content: space-between;
        padding: 0;
    }

    .nav-left {
        position: relative;
        display: flex; /* Flexbox to allow the logo and nav links to be aligned */
        align-items: center;
        justify-content: flex-start; /* Align the logo to the left */
        /* Removed the centering logic */
    }

    .tmclogo {
        height: 40px;
        position: absolute;
        left: 48%; /* Positions it at the center horizontally */
        transform: translateX(-50%); /* Adjusts for the width of the logo to truly center it */
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;       
        position: absolute;
        z-index: 2;
    }

    .bar {
        width: 22px;
        height: 2%;
        background: rgb(7, 94, 255);
        margin: 5px 20px;
        transition: 0.3s;
    }

    /* Nav links (hidden by default) */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 40px;
        left: 0; /* Keep nav links aligned to the left */
        right: auto;
        background-color: #0043A3;
        width: 140px;
        text-align: left; /* Align text to the left on mobile */
        padding: 15px;
        border-radius: 5px;
        z-index: 1001;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links a {
        color: white;
        text-decoration: none;
        font-size: 16px;
        padding: 10px;
        display: block;
    }

    /* Hamburger Animation */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


/* end navbar */

/* Ensure the container is flexible */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 600px; /* Maintain original height */
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.imgfront {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: -1;
}

/* Fade-in and Slide-up Animation */
@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-container {
    margin-top: 100px;
    position: relative;
    max-width: 50%;
    color: white;
    display: flex;
    flex-direction: column;
    margin-left: 50px;
    opacity: 0; /* Initially hidden */
    animation: fadeSlideIn 0.8s ease-in-out forwards;
}

/* Delay different elements for a nice sequence */
.txt {
    animation-delay: 0.2s;
}

.txt2 {
    animation-delay: 0.4s;
}

.small {
    animation-delay: 0.6s;
}

.small2 {
    animation-delay: 0.8s;
}

.txt, .txt2 {
    font-size: 5vw;
    line-height: 0.8;
    margin: 0;
}

.small, .small2 {
    font-size: 17px;
    margin-top: 30px;
}

.cta-button {
    text-align: center;
    width: 110px;
    background-color: white;
    color: black;
    font-size: 16px;
    padding: 12px 30px;
    margin-top: 70px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.075, 0.82, 0.165, 1); /* Smooth animation */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    opacity: 0; /* Initially hidden */
    animation: fadeSlideIn 1s ease-in-out forwards;
    animation-delay: 1s;
}

.cta-button:hover {
    color: white;
    background-image: linear-gradient(to right, #0043A3, #006FFF);
    transform: scale(1.05); /* Zoom effect */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-25deg);
    transition: left 0.5s ease-in-out;
}

.cta-button:hover::after {
    left: 125%;
}

.nav-buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 2; /* Above overlay and image */
}

.nav-btn {
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
    font-size: 16px;
    padding: 8px 16px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    background-color: white;
}


/* Responsive Design */
@media (max-width: 768px) {
    .text-container {
        max-width: 80%;
        margin: 0 auto;
        align-items: center;
        text-align: center;
    }

    .txt, .txt2 {
        font-size: 6vw;
    }

    .small, .small2 {
        font-size: 2.5vw;
    }
}

@media (max-width: 480px) {
    .txt, .txt2 {
        font-size: 7vw;
    }

    .small, .small2 {
        font-size: 3vw;
    }
}

.txt3
{
    text-align: center;
    font-size: 300%;
    font-weight: bold;
    opacity: 0;
    transform: translateY(50px); /* Start below */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.txt3.show {
    opacity: 1;
    transform: translateY(0); /* Move into place */
}

.txt4
{
    text-align: center;
    font-size: 300%;
    font-weight: bold;
    opacity: 0;
    transform: translateY(50px); /* Start below */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.txt4.show {
    opacity: 1;
    transform: translateY(0); /* Move into place */
}

.iptv-container {
    display: flex;
    flex-direction: row;
    background-color: white;
    border-radius: 25px;
    overflow: hidden;
    margin: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    opacity: 0;
    transform: translateX(-50px); /* Start off-screen */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* When the page loads, add this class to trigger animation */
.iptv-container.show {
    opacity: 1;
    transform: translateX(0);
}

/* Hide again when scrolling out */
.iptv-container.hide {
    opacity: 0;
    transform: translateX(-50px);
}

/* Image styling */
.iptv-image {
    width: 40%;
    object-fit: cover;
}

/* Text section */
.iptv-text {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 60%;
}

.iptv-title {
    font-size: 48px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #000;
}

.iptv-subtitle {
    font-size: 19px;
    margin: 0;
    color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .iptv-container {
        flex-direction: column;
        margin: 20px; /* Smaller margin for mobile */
    }

    .iptv-image {
        width: 100%;
        height: auto;
        border-radius: 25px 25px 0 0; /* Top-rounded only */
    }

    .iptv-text {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    .iptv-title {
        font-size: 28px; /* Reduced font size for smaller screens */
        margin-bottom: 10px;
    }

    .iptv-subtitle {
        font-size: 14px;
        font-style: normal;
        margin-top: 0;
    }

    .txt3
    {
        text-align: center;
        font-size: 24px;
    }

    .txt4
    {
        font-size: 24px;
    }
}

.fiber-banner {
    display: flex;
    flex-direction: row;
    background-color: white;
    border-radius: 25px;
    overflow: hidden;
    margin: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    gap: 20px;
    padding: 50px;
    box-sizing: border-box;
    align-items: stretch; /* STRETCH child heights to match */
    opacity: 0;
    transform: translateX(-50px); /* Start position (off-screen) */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* When in view, it appears */
.fiber-banner.show-left {
    opacity: 1;
    transform: translateX(0);
}

.fiber-banner.show-right {
    opacity: 1;
    transform: translateX(0);
}

.fiber-heading {
    padding-right: 30px;
    font-size: 48px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 15px;
}

.fiber-text {
    padding-right: 30px;
    font-size: 19px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
}

.fiber-emoji {
    font-size: 17px;
    color: #0077cc;
}

.fiber-right {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    border-radius: 15 0 0 15;
    padding: 25px; /* Inner spacing */
    margin-right: -50px;  /* Cancel parent's right padding */
    margin-top: -50px;    /* Cancel top padding */
    margin-bottom: -50px; /* Cancel bottom padding */
    box-sizing: border-box;
    min-width: 250px;
    flex: 0 0 350px;
}


.fiber-offer {
    font-size: 35px;
    margin: 0 0 10px;
    margin-top: 20px;
}

.fiber-subtext {
    font-size: 12px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.fiber-button {
    color: white;
    margin-top: 50px;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    display: inline-block;
    width: 25%;
    text-align: center;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.fiber-button:hover {
    background: linear-gradient(135deg, #0072ff, #00c6ff);
}

.fiber-button1 {
    position: relative;
    margin-top: 80px;
    background: white;
    color: #0072ff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    display: inline-block;
}

.fiber-button1:hover {
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    color: white;
}


/* Responsive Design */
@media (max-width: 1000px) {
    .fiber-banner {
        flex-direction: column;
        padding: 25px;
        margin-left: 20px;
        margin-right: 20px;
        box-sizing: border-box;
    }

    .fiber-right {
        /* Remove flex-basis restrictions */
        flex: none;
        width: calc(100% + 50px); /* Stretch beyond parent padding (25px left + 25px right) */
        margin-left: -25px; 
        margin-right: -25px; 
        margin-top: 20px;
        margin-bottom: -25px;
        border-radius: 0 15 0 15;
        padding: 25px; /* Inner content padding */
        box-sizing: border-box;
    }

    .fiber-offer
    {
        font-size: 20px;
    }

    .fiber-button
    {
        width: 20%;
    }

    .fiber-emoji {
        font-size: 14px;
        color: #0077cc;
    }
}

.footer {
    background: linear-gradient(to right, #007bff, #0044cc);
    font-family: 'Gabarito', sans-serif;
    padding: 40px 25px 20px;
    color: #ffffff;
  }
  
  
  .footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px); /* Start slightly below */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
  }

  .footer-container.show {
    opacity: 1;
    transform: translateY(0); /* Move into place */
}
  
  .footer-left,
  .footer-middle,
  .footer-right {
    flex: 1;
    min-width: 200px;
    text-align: center;
  }

  .footer-logo {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .footer-desc {
    font-size: 14px;
    color: #ffffff;
    
  }
  
  .footer-links {
    list-style: none;
    padding-right: 40px;
  }
  
  .footer-links li {
    margin-bottom: 10px;
  }
  
  .footer-links a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.2s;
  }
  
  .footer-links a:hover {
    color: #00c6ff;
  }
  
  .social-icons a img {
    width: 24px;
    margin-right: 10px;
    transition: opacity 0.3s;
  }
  
  .social-icons a img:hover {
    opacity: 0.7;
  }
  
  .footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #ffffff;
    margin-top: 30px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
    justify-content: center;
    justify-items: center;
  }
  
  /* Responsive */
  @media (max-width: 1000px) {
    .footer-container {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .footer-left,
    .footer-middle,
    .footer-right {
      margin-bottom: 20px;
    }

    .fblogo
    {
        position: absolute;
        margin-top: -3px;
        margin-left: 0px;
    }
  }
  
  .footer-Location{
    margin-top: 15px;
    text-align: center;
  }

  .footer-Location1{
    margin-top: 15px;
    text-align: center;
  }

 .fblogo
 {
    position: absolute;
    margin-top: -3px;
    margin-left: 0px;
 }

 .fbtext
{
    margin-left: 40px;
}

.p-container {
    background-color: #ffffff;
    border-radius: 25px;
    margin: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    padding: 40px;
}

.pheading {
    font-family: 'Gabarito', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 30px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Apply Animation When in View */
.pheading.show {
    animation: fadeSlideIn 0.8s ease-out forwards;
}

.plans-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

/* Fade-in & Slide-up Animation */
@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply Animation Only When in View */
.plan-card.show {
    animation: fadeSlideIn 0.8s ease-out forwards;
}

.plan-card {
    background-color: #ffffff;
    border-radius: 15px;
    border: 2px solid #007bff;
    padding: 30px;
    flex: 1 1 280px;
    max-width: 400px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    opacity: 0;  /* Keep hidden */
    transform: translateY(30px);
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.plan-title {
    font-size: 30px;
    font-weight: bold;
    color: black;
    margin-bottom: 5px;
    text-align: center;
}

.plan-subtitle {
    font-size: 20px;
    color: #777777;
    margin-bottom: 15px;
    text-align: center;
}

.plan-price-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.plan-price {
    font-size: 60px;
    color: #007bff;
    font-weight: bold;
    text-align: center;
}

.plan-price span {
    font-size: 22px;
    color: #007bff;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 10px;
    font-size: 20px;
    color: #333;
    line-height: 1.4;
    text-align: left;
    margin-left: 20px;
}

.checkmark {
    color: green;
    margin-right: 8px;
    font-weight: bold;
}

.plan-button {
    background: linear-gradient(to right, #007bff, #0044cc);
    width: 50%;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    align-self: center;
    margin-top: auto;
    margin-bottom: 30px;
}

.plan-button:hover {
    background: linear-gradient(to right, #0056d2, #002a80);
}

/* === MOBILE VIEW FIXES === */
@media (max-width: 768px) {
    .p-container{
        margin: 20px;
        padding: 20px;
    }

    .plans-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    .covcard{
        width: 90%;
        max-width: 100%;
        padding: 20px;
    }

    .plan-card {
        width: 100%;
        flex: none;
        padding: 20px;
    }

    .pheading {
        font-size: 24px;
    }

    .plan-title {
        font-size: 22px;
    }

    .plan-subtitle {
        font-size: 16px;
    }

    .plan-price {
        font-size: 55px;
    }

    .plan-price span {
        font-size: 16px;
    }

    .plan-features li {
        font-size: 13px;
    }

    .plan-button {
        margin-right: 20px;
        font-size: 12px;
    }
}

/* Styles for the popup overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Styles for the popup content */
.popup-content {
    background: white;
    padding: 25px;
    width: 25%;
    border-radius: 8px;
    text-align: left;
    position: relative;
}

.IN{
    text-align: center;
}

/* Styles for the popup overlay */
/* Overlay for the popup */
.popup-overlay1 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto; /* Enables scrolling if content overflows */
}

/* Styles for the popup content */
.popup-content1 {
    background: white;
    padding: 40px;
    width: 40%;
    border-radius: 12px;
    text-align: left;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px; /* Maximum width for larger screens */
    width: 90%; /* Default responsive width */
    margin: 20px auto; /* Center the popup */
    box-sizing: border-box; /* Avoid width overflow due to padding */
}

/* Main title */
.IN1 {
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: left;
    font-size: 60px;
    font-weight: bold;
    color: #0097d3;
}

/* Subtitle */
.subplan {
    margin-bottom: 20px;
    color: #5e5e5e;
    font-size: 18px;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: #333;
}

/* Form input styles */
input, textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Button styles */
button {
    font-family: 'Gabarito', sans-serif;
    width: 50%;
    padding: 12px;
    background: #0072ff;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin: 20px auto;
    display: block;
    transition: background 0.3s ease;
}

/* Button hover effect */
button:hover {
    background: #005bb5;
}

/* 📱 Fully Responsive Design */
@media (max-width: 768px) {
    .popup-content1 {
        width: 70%; /* Reduce width for tablets */
        padding: 30px; /* Slightly reduce padding */
    }
    .IN1 {
        font-size: 40px;
    }
    .subplan {
        font-size: 16px;
    }
    button {
        width: 70%;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .popup-content1 {
        width: 60%; /* Slightly smaller width on mobile */
        padding: 20px; /* Reduce padding for smaller screens */
        margin: 20px auto; /* Center with space */
    }
    .IN1 {
        font-size: 40px;
    }
    .subplan {
        font-size: 14px;
    }
    button {
        width: 80%;
        padding: 10px;
    }
}


.plan-options {
    display: flex;
    gap: 5px;
    justify-content: space-between;
    margin-top: 10px;
}

.plan-card {
    flex: 1;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 0px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 5px;
    margin-bottom: 15px;
}

.plan-card:hover {
    border-color: #0072ff;
    background: #f0f8ff;
}

.plan-card input {
    display: none; /* Hide radio buttons */
}

.plan-card .plan-details {
    font-size: 14px;
}

/* When selected, change border color */
.plan-card input:checked + .plan-details {
    border: 2px solid #0099ff;
    background: linear-gradient(to right, #5b9cf7, #006FFF);
    color: white;
    border-radius: 8px;
    padding: 10px;
}

/*About us */
.auto-slideshow {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    height: 400px;
}

.slide-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.active-slide {
    opacity: 1;
    z-index: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text {
    position: absolute;
    top: 20%;
    left: 10%;
    color: #fff;
    opacity: 0;
    transform: translateX(50px); /* Start slightly to the right */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.slide-text.show {
    opacity: 1;
    transform: translateX(50); /* Move into place */
}

.slide-line1, .slide-line2 {
    font-size: 36px;
    font-weight: bold;
    margin: 0;
}

.slide-line2 {
    margin-top: 10px;
}

.highlight {
    font-weight: lighter;
}

.slide-sub1, .slide-sub2 {
    width: 50%;
    font-size: 18px;
    margin-top: 10px;
}

.slide-cta {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: linear-gradient(to right, #007bff, #0044cc);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.slide-cta:hover {
    background: linear-gradient(to right, #0056d2, #002a80);
}

@media (max-width: 768px){
    .popup-content1{
        flex-direction: row;
        width: 100%;
}
}

@media (max-width: 768px){
    .popup-content{
        flex-direction: row;
        width: 100%;
}
}

/* === Mobile Adjustments ONLY === */
@media (max-width: 768px) {
    .auto-slideshow {
        height: 250px;
    }

    .slide-text {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 90%; /* Prevents overflow */
    }

    .slide-line1, .slide-line2 {
        font-size: 24px;
    }

    .slide-sub1, .slide-sub2 {
        font-size: 14px;
        width: 100%;
    }

    .slide-cta {
        padding: 8px 16px;
        font-size: 12px;
    }
}
/* End */

/* PopupForm for Privacy Policy */
.modal {
    display: none; /* Hide modal initially */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Modal Content */
.modal-content {
    background: white;
    color: black;
    padding-left: 50px;
    padding-right: 50px;
    width: 100%;
    max-width: 1000px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    border-radius: 20px;
    height: 80%;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

/* Hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
.modal-content::-webkit-scrollbar {
    display: none;
}

/* Close Button */
.close-btn1 {
    position: absolute;
    right: 20px; /* Adjust as needed */
    top: 10px; /* Adjust as needed */
    font-size: 24px;
    cursor: pointer;
    color: black; /* Adjust color for visibility */
    background: none;
    border: none;
    text-align: right;
}

/* Clickable Privacy Policy Text */
.clickable-text {
    color: white;
    cursor: pointer;
    z-index: 1500;
}


.areacov {
    border-radius: 25px;
    margin: 20px;
    max-width: 100%;
    padding-bottom: 45px;
}

.covcard {
    padding: 20px;
    border-radius: 5px;
    color: white; 
    flex: 1 1 220px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    transform: translateY(30px);
}

.imgfront1{
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Text for Taytay, Angono. Binangonan*/
.covcard-title {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 5px;
    color: black;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s ease-out forwards;
}

/* Animation Keyframes */
@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
