/* ======================= */
/* General Body & Fonts    */
/* ======================= */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('../images/EFFECTS.jpg');
    background-color: #f0f2f5;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #03000e;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ======================= */
/* Header & Navigation     */
/* ======================= */
.main-header {
    background-color: #2dd150;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-link .site-name {
    display: block;
    font-weight: bold;
    font-size: 1.2em;
}

.logo-link .weather-info {
    display: block;
    font-size: 0.9em;
    color: #0c0000;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: #131212;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: #080808;
}

/* Language Switcher */
.language-switcher {
    margin-left: 1rem;
    display: flex;
    align-items: center;
    color: #555;
}

.language-switcher i {
    margin-right: 0.5rem;
}

.language-switcher select {
    border: none;
    background-color: transparent;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* ======================= */
/* Main Content Area       */
/* ======================= */
.main-content {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap */
    justify-content: center; /* Center content horizontally */
    gap: 1rem;
    padding: 1rem;
    align-items: flex-start;
}

/* ======================= */
/* Glass Panel             */
/* ======================= */
.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: center;
    color: rgb(14, 7, 7);
    width: 100%;
    max-width: 1200px;
    padding: 1rem 1.5rem;
    box-sizing: border-box;
}

.scrolling-text {
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    margin-top: 1rem;
}

.scrolling-text span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 50s linear infinite;
    font-size: 1.25rem;
    font-weight: 800;
    color: #f11010;
}
/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2dd150;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #117e29;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropbtn {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

/* Nested dropdown styling */
.sub-dropdown {
    position: relative;
}

.sub-dropdown-content {
    display: none;
    position: absolute;
    left: 100%;   /* open to the right side */
    top: 0;
    min-width: 160px;
    z-index: 1;
    background-color: #2dd150; /* adjust as needed */
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
}

.sub-dropdown:hover .sub-dropdown-content {
    display: block;
}


@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ======================= */
/* Weather Panel           */
/* ======================= */
.weather-panel {
    background: rgba(138, 49, 49, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: left;
    color: rgb(141, 16, 58);
    padding: 1rem 0.5rem;
    box-sizing: border-box;
}

.weather-panel h3 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.weather-panel p {
    margin: 0.25rem 0;
}

/* ======================= */
/* Footer                  */
/* ======================= */
.main-footer {
    background-color: #2dd150;
    color: #0c0000;
    text-align: center;
    padding: 0.5rem 0;
    margin-top: 10px;
}

.frosted-card {
    max-width: auto;
    padding: 1rem 1.5rem;
    background: rgba(204, 204, 202, 0.952);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    border: 3px solid rgba(12, 1, 1, 0.2);
}

.frosted-card-weather {
    padding: 1rem;
    background: rgba(204, 204, 202, 0.952);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    border: 3px solid rgba(12, 1, 1, 0.2);
    flex: 1 1 250px; /* Gave it a bit more base width */
    min-width: 250px; /* Prevents it from getting too small */
}
.frosted-card-weather h3 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.frosted-card-weather p {
    margin: 0.25rem 0;
}


/* ======================= */
/* Notice / Media Panel    */
/* ======================= */
.frosted-card-content {
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    border: 2px solid rgba(0, 0, 0, 0.2);
    flex: 2 1 400px; /* Sizing for the content row */
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.frosted-card-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.frosted-card-content p {
    margin: 0.4rem 0;
    color: #222;
}

/* Wrapper to maintain 16:9 aspect ratio for videos */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
    border-radius: 10px; /* Match the border radius of other media */
    margin-top: 0.8rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0; /* Remove default iframe border */
}

/* Corrected styling for responsive media */
.frosted-card-content img,
.frosted-card-content video {
    width: 100%;
    height: auto;
    max-height: 450px;
    border-radius: 10px;
    object-fit: contain;
    display: block;
}

/* ======================= */
/* Uploaded Media Panel    */
/* ======================= */
.frosted-card-upload-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    border: 2px solid rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    max-width: 100%;
    flex-shrink: 0;
}

/* Title */
.frosted-card-upload-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

/* Media Wrapper (flex container) */
.frosted-card-upload-content .media-wrapper {
    display: flex;
    justify-content: flex-start; /* aligns children to the left */
    align-items: flex-start;
    flex-direction: column; /* stack vertically if multiple media */
    gap: 0.5rem;
    margin-top: 0.8rem;
}

/* Media elements */
.frosted-card-upload-content img,
.frosted-card-upload-content iframe {
    display: block;       /* important for alignment */
    width: 100%;          /* adjust width as needed */
    max-width: 100%;
    max-height: 250px;    /* keeps slightly larger */
    border-radius: 10px;
    object-fit: cover;
    margin-left: 0;       /* align left */
}




/* ======================= */
/* Responsive Design       */
/* ======================= */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #2dd150;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        z-index: 100;
    }

    .main-nav.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        color: #0c0000;
    }

    .menu-toggle {
        display: block;
    }

    /* Stack main content */
    .main-content {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    /* Full width for content cards on mobile */
    .frosted-card-content {
        width: 100%;
        max-width: 600px;
        max-height: 100%;
        flex-basis: auto; /* Reset flex-basis for vertical stacking */
        margin-bottom: 1rem;
    }
     .frosted-card-weather {
        width: 100%;
        max-width: 200px;
        flex-basis: auto; /* Reset flex-basis for vertical stacking */
        margin-bottom: 1rem;
    }

    /* Glass panel full width */
    .glass-panel {
        width: 100%;
        margin: 0 auto 1rem;    
        flex: 1 1 400px;       /* flexible but min 400px */
        max-width: 700px;
        padding: 1rem 1.5rem;
        max-height: 200px;
    }

    /* Scrolling text smaller */
    .scrolling-text {
        overflow: hidden;
        white-space: nowrap;
        box-sizing: border-box;
        margin-top: 1rem;
        padding-top: auto;
    }
    .scrolling-text span {
        font-size: 1rem;
        padding-left: 100%;
        
    }

    .language-switcher {
        justify-content: center;
        margin: 1rem 0;
    }

    .uploaded-media {
    width: 100%;
    height: auto;
    max-height: 400px; /* Slightly larger */
    object-fit: contain;
    border-radius: 12px;
}
}

.flash-messages {
    margin-bottom: 1rem;
}

.flash-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    color: #fff;
}

.flash-success {
    background-color: #28a745;
}

.flash-danger {
    background-color: #dc3545;
}

.flash-info {
    background-color: #17a2b8;
}

/* Modal overlay covers entire screen */
#notice-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  display: none;              /* hidden by default */
  align-items: center;        /* center vertically */
  justify-content: center;    /* center horizontally */
  z-index: 9999;
}

/* Modal box */
#notice-modal .modal-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  position: relative;
}

/* Close button */
#notice-modal .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
}
#notice-modal .close-btn:hover {
  color: red;
}

/* Styles for the Notice Pop-up Modal 
*/

/* Hides the modal by default */
.hidden {
  display: none;
}

/* Shows the modal as a centered overlay */
#notice-modal.flex {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed; /* Stays in place even when scrolling */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
  z-index: 1000; /* Ensures it's on top of other content */
}

/* The white box that contains the notice content */
.modal-box {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
  max-width: 90%;
  max-height: 90%;
  width: 500px; /* You can adjust the width as needed */
  overflow: auto; /* Adds scrollbar if content is too big */
}

/* The 'x' close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}


/* Styling for the new image slider */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.75rem; /* rounded-lg */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.slider-container img {
    width: 100%;
    display: none; /* Hide all images by default */
    transition: opacity 1s ease-in-out;
}
.slider-container img.active {
    display: block; /* Show the active image */
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 0.75rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Define the blinking animation */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Style for the static contact message, including the blink effect */
.contact-message-static {
    /* Basic styling to make the text look good */
    padding: 0.5rem 0; 
    text-align: center;
    font-weight: 600; /* Bolder font for visibility */
    font-size: 0.9rem;
    color: #090231; /* A vibrant red color for attention */
    
    /* Apply the blink animation */
    animation: blink 2s infinite; /* Animation name, duration, and repeat */
}