/* ------------------------------------- */
/* NEW JMCS TEXT LOADER */
/* ------------------------------------- */
.loader {
    width: fit-content;
    font-size: 40px;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    color: #0000;
    -webkit-text-stroke: 1px #032b43;
    /* --- NEW LINE ADDED --- */
    margin: 0 auto; /* Ensures the text block is centered */
    /* ---------------------- */
    background:
        linear-gradient(90deg,
            #0000 33%,
            #136f63 33%,
            #d32f2f 50%,
            #136f63 67%,
            #0000 67%
        )
        0/300% 100% no-repeat text;
    animation: l2 3s linear infinite;
}
.loader:before {
    content: "JMCS";
}
@keyframes l2 {
    0%{background-position: 100%}
}
/* Typography: Use Inter for professionalism */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF; /* White background */
}

/* NEW COLOR SCHEME */
.color-primary { color: #032b43; } /* Deep Navy Blue */
.bg-primary { background-color: #032b43; } /* Deep Navy Blue */
.color-accent { color: #136f63; } /* Forest Green */
.bg-accent { background-color: #136f63; } /* Forest Green */
.color-cta { color: #d00000; } /* Vibrant Red */
.bg-cta { background-color: #d00000; } /* Vibrant Red */
.color-secondary { color: #3f88c5; } /* Blue */
.bg-secondary { background-color: #3f88c5; } /* Blue */
.color-tertiary { color: #ffba08; } /* Yellow */
.bg-tertiary { background-color: #ffba08; } /* Yellow */

/* New solid color backgrounds */
.bg-blue-section { 
    background-color: #032b43;
}
.bg-green-section { 
    background-color: #136f63;
}
.bg-blue-light { 
    background-color: #e6f0fa;
}
.bg-green-light { 
    background-color: #e8f5e9;
}

/* Shine Button Effect */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #d00000;
    box-shadow: 0 4px 15px -5px rgba(208, 0, 0, 0.7);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.7s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px -5px rgba(208, 0, 0, 0.9);
}

/* --- CSS for the automatic fade animation (FIXED) --- */
.slide-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Ensure only one slide is visible */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Hidden by default */
    transition: opacity 1s ease-in-out; /* Fade transition */
}

/* Add a class to indicate the currently visible slide */
.slide.current-slide {
    opacity: 1;
}

/* Ensure the image covers the slide area */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-open {
    animation: modalOpen 0.3s ease-out forwards;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Training Slideshow Styles - SLIDE ANIMATION */
.slide-container-training {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-training {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
    transform: translateX(100%);
}

.slide-training.current-training-slide {
    transform: translateX(0%);
}

.slide-training.prev-training-slide {
    transform: translateX(-100%);
}

.training-indicator.active {
    background-color: white;
    transform: scale(1.2);
}

/* Privacy Policy Popup Styles */
.privacy-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 24px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s ease-in-out;
    border-left: 4px solid #136f63;
}

.privacy-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.privacy-popup h3 {
    color: #032b43;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.privacy-popup p {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.privacy-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.privacy-accept {
    background: #136f63;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.privacy-accept:hover {
    background: #0e574d;
    transform: translateY(-1px);
}

.privacy-decline {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.privacy-decline:hover {
    background: #e9ecef;
    border-color: #999;
}

.privacy-more {
    background: transparent;
    color: #136f63;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: underline;
}

.privacy-more:hover {
    color: #0e574d;
}

/* Overlay for when popup is visible */
.privacy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.privacy-overlay.show {
    display: block;
}

/* Client Logos Marquee Styles */
.client-marquee {
    animation: scroll-left 30s linear infinite;
}

.client-marquee:hover {
    animation-play-state: paused;
}

.client-logo {
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation when reduced-motion is preferred */
@media (prefers-reduced-motion: reduce) {
    .client-marquee {
        animation: none;
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
    }
}

/* Navigation Menu Hover Effects */
.nav-link {
    position: relative;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #136f63; /* Accent color */
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #032b43; /* Primary color */
    transform: translateY(-2px);
}

/* Mobile menu hover effects */
.mobile-nav-link {
    transition: all 0.3s ease;
    border-radius: 6px;
}

.mobile-nav-link:hover {
    background-color: #e5e7eb;
    transform: translateX(4px);
}

.loading-fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Updated card styles with blue-green theme */
.service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 4px solid #136f63;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Updated testimonial section */
.testimonial-section {
    background-color: #032b43;
}

/* Updated footer styling */
.footer-section {
    background: #032b43;
}

/* Updated hero section */
.hero-section {
    background-color: #032b43;
}

/* Section with light blue background */
.section-blue-light {
    background-color: #e6f0fa;
}

/* Section with light green background */
.section-green-light {
    background-color: #e8f5e9;
}

/* Hero Description Fade Animation */
.hero-description {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.hero-description.active {
    opacity: 1;
    position: relative;
    pointer-events: all;
}

.hero-description:not(.active) {
    display: none;
}

/* Hero Text Fade Animation */
.hero-text {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.hero-text.active {
    opacity: 1;
    position: relative;
    pointer-events: all;
}

.hero-text:not(.active) {
    display: none;
}

/* Ensure white text is visible */
.text-white {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Image Hover Slide Right Effect */
.imghvr-slide-right {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

.imghvr-slide-right .absolute {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

/* Initial state - image hidden to the left */
.imghvr-slide-right .absolute {
    transform: translateX(-100%);
    opacity: 0;
}

/* Hover state - image slides in from left */
.imghvr-slide-right:hover .absolute {
    transform: translateX(0);
    opacity: 1;
}

/* Content fade out on hover */
.imghvr-slide-right:hover > :not(.absolute) {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Card hover effects */
.imghvr-slide-right:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Icon scaling */
.imghvr-slide-right .transition-all {
    transition: transform 0.4s ease-in-out;
}

.imghvr-slide-right:hover .transition-all {
    transform: scale(1.15);
}

/* Text color transitions */
.imghvr-slide-right .text-gray-700 {
    transition: color 0.3s ease-in-out;
}

.imghvr-slide-right:hover .text-gray-700 {
    color: #111827;
}

/* Ensure proper stacking context */
.service-card {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    z-index: 10;
}

/* Shine Effect for Images */
.shine-container {
    position: relative;
    overflow: hidden;
}

.shine-image {
    position: relative;
    transition: all 0.6s ease-in-out;
}

/* Shine effect overlay */
.shine-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.8s ease-in-out;
    z-index: 2;
}

/* Shine effect on hover */
.shine-container:hover::before {
    left: 100%;
}

/* Image brightness enhancement on hover */
.shine-container:hover .shine-image {
    filter: brightness(1.1);
    transform: scale(1.02);
}

/* Remove borders from images */
.shine-image {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Image Hover Reveal Down Effect */
.imghvr-reveal-down {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

.imghvr-reveal-down .absolute {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

/* Initial state - image hidden above */
.imghvr-reveal-down .absolute {
    transform: translateY(-100%);
    opacity: 0;
}

/* Hover state - image reveals from top */
.imghvr-reveal-down:hover .absolute {
    transform: translateY(0);
    opacity: 1;
}

/* Content fade out on hover */
.imghvr-reveal-down:hover > :not(.absolute) {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Card hover effects */
.imghvr-reveal-down:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Ensure consistent card height */
.h-80 {
    height: 20rem;
}

/* Text transitions */
.imghvr-reveal-down .text-gray-700 {
    transition: color 0.3s ease-in-out;
}

.imghvr-reveal-down:hover .text-gray-700 {
    color: #111827;
}

/* Core ISO Standards Text Hover Effects */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

/* Background images with low opacity */
.service-card .absolute img {
    transition: all 0.4s ease-in-out;
}

/* Text content styling */
.service-card .relative {
    background: transparent;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover effects */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-card:hover .relative {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.05);
    border-radius: 12px;
    margin: 8px;
}

.service-card:hover .text-gray-700 {
    color: #374151;
    font-weight: 500;
}

.service-card:hover .color-primary {
    color: #032b43;
}

/* Text centering and spacing */
.text-center h4 {
    margin-bottom: 1rem;
}

.text-center p {
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto;
}

/* Core ISO Standards Slide-Down Text Effect */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    border-radius: 12px;
}

/* Card hover effects */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Image zoom effect on hover */
.service-card img {
    transition: transform 0.6s ease-in-out;
}

.service-card:hover img {
    transform: scale(1.1);
}

/* Text panel styling */
.service-card .absolute.bg-white {
    border-top: 3px solid;
    border-color: #136f63;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

/* Alternate border colors for visual variety */
.service-card:nth-child(odd) .absolute.bg-white {
    border-color: #032b43;
}

/* Text content styling */
.service-card .text-center h4 {
    margin-bottom: 0.5rem;
}

.service-card .text-center p {
    line-height: 1.5;
    font-size: 0.875rem;
}

/* Smooth transitions */
.service-card * {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Announcement Popup Styles */
#announcement-popup {
    animation: modalOpen 0.3s ease-out forwards;
}

/* Bell icon animation */
@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.animate-ring {
    animation: ring 2s ease-in-out infinite;
}

/* Notification badge pulse */
@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(208, 0, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 15px rgba(208, 0, 0, 0.8);
    }
}

.animate-pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Side Modal Styles - No Blur */
#announcement-popup .absolute.right-0 {
    transition: transform 0.3s ease-in-out;
}

/* Remove any backdrop blur effects */
#announcement-popup .bg-black {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Special offer image styling */
#announcement-popup img {
    border-radius: 4px;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    #announcement-popup .absolute.right-0 {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    #announcement-popup .absolute.right-0 {
        width: 85%;
        max-width: none;
    }
}

/* Scrollbar styling for modal content */
#announcement-popup .overflow-y-auto {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

#announcement-popup .overflow-y-auto::-webkit-scrollbar {
    width: 4px;
}

#announcement-popup .overflow-y-auto::-webkit-scrollbar-track {
    background: #f7fafc;
}

#announcement-popup .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 2px;
}

/* Food Safety & Halal Card Styles */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    border-radius: 12px;
}

/* Card hover effects */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(3, 43, 67, 0.2);
}

/* Image zoom effect on hover */
.service-card img {
    transition: transform 0.6s ease-in-out;
}

.service-card:hover img {
    transform: scale(1.1);
}

/* Text panel styling */
.service-card .absolute.bg-white {
    border-top: 3px solid #ffba08; /* Yellow accent border */
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

/* Alternate border colors for visual variety */
.service-card:nth-child(odd) .absolute.bg-white {
    border-color: #d00000; /* Red accent for odd cards */
}

/* Default content styling */
.service-card .relative.z-10 h4 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-card .relative.z-10 p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Text content styling */
.service-card .text-center h4 {
    margin-bottom: 0.5rem;
}

.service-card .text-center p {
    line-height: 1.5;
    font-size: 0.875rem;
}

/* Smooth transitions */
.service-card * {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Drop shadow for better text readability */
.drop-shadow-lg {
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.3));
}

/* Add this to your existing CSS */
.service-card.h-80 {
    height: 20rem; /* Ensure consistent height */
    min-height: 20rem; /* Prevent content from affecting height */
}

/* Ensure all service cards maintain consistent proportions */
.service-card {
    min-height: 20rem;
}

/* Updated Focused Expertise Section with Centered Text AND Hover Effects */
.focused-expertise-card {
    height: 180px;
    min-height: 180px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.focused-expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Centered card content with hover effects */
.expertise-card-content {
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.expertise-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.4s ease-in-out;
}

.focused-expertise-card:hover .expertise-card-icon {
    transform: scale(1.15);
}

.expertise-card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.focused-expertise-card:hover .expertise-card-title {
    color: #032b43;
}

.expertise-card-description {
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    color: #666;
    transition: all 0.3s ease;
}

.focused-expertise-card:hover .expertise-card-description {
    color: #111827;
}

/* Hover Reveal Image Effects */
.hover-reveal-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.focused-expertise-card:hover .hover-reveal-image {
    opacity: 1;
    transform: translateX(0);
}

.focused-expertise-card:hover .expertise-card-content > :not(.hover-reveal-image) {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Modal container with centered content */
.expertise-modal-container {
    max-height: 70vh;
    height: auto;
}

.expertise-modal-content {
    max-height: 60vh;
    overflow-y: auto;
    font-size: 0.9rem;
    text-align: center;
}

.expertise-modal-content .text-sm {
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
}

.expertise-modal-content ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
    display: inline-block;
}

.expertise-modal-content li {
    margin-bottom: 0.25rem;
    text-align: left;
}

/* Center modal titles and content */
.modal-compact .p-4 {
    padding: 1rem;
    text-align: center;
}

.modal-title-center {
    text-align: center;
    width: 100%;
}

/* Updated Key Sectors Served Section with Reduced Modal Heights */
.key-sector-card {
    height: 200px; /* Slightly taller for more content */
    min-height: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.key-sector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Centered sector card content */
.sector-card-content {
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.sector-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.4s ease-in-out;
}

.key-sector-card:hover .sector-card-icon {
    transform: scale(1.15);
}

.sector-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.key-sector-card:hover .sector-card-title {
    color: #032b43;
}

.sector-card-description {
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    color: #666;
    transition: all 0.3s ease;
}

.key-sector-card:hover .sector-card-description {
    color: #111827;
}

/* Hover Reveal Image Effects for Sectors */
.sector-hover-reveal-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.key-sector-card:hover .sector-hover-reveal-image {
    opacity: 1;
    transform: translateX(0);
}

.key-sector-card:hover .sector-card-content > :not(.sector-hover-reveal-image) {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* NEW Modern Line Loader Animation */
.line-loader {
    width: 150px; /* Width of the loader line */
    height: 4px;
    background-color: #e6f0fa; /* Light background: bg-blue-light */
    overflow: hidden;
    border-radius: 2px;
    margin: 1rem auto 0; /* Center it and add space below the logo */
}

.line-loader-bar {
    width: 50%; /* Half the width */
    height: 100%;
    background-color: #136f63; /* Accent color: bg-accent */
    animation: modernLoading 2s infinite ease-in-out;
}

@keyframes modernLoading {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(200%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* --- NEW FLOATING PANEL STYLES --- */
#announcement-panel {
    /* Start off-screen */
    transform: translateX(100%);
    transition: transform 0.4s ease-out;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    max-height: 80vh; /* Prevents overflow on small screens */
    overflow-y: auto; /* Allows scrolling if content is too long */
    /* Add padding-bottom to ensure content isn't hidden by the floating icon */
    padding-bottom: 70px; 
}
#announcement-panel.open {
    /* Slide in */
    transform: translateX(0);
}
/* Logo styling */
.logo-container img {
    transition: transform 0.3s ease;
}

.logo-container:hover img {
    transform: scale(1.05);
}

/* Ensure logo looks good on all screens */
@media (max-width: 640px) {
    .logo-container img {
        height: 2.5rem;
    }
}

/* --- END FLOATING PANEL STYLES --- */