/* =========================
   Assets CSS for Frontend
   ========================= */

/* --------------------------------------
   General Body Styling
   -------------------------------------- */
/* ======== Reset & Base Styles ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f4f4;
    margin-top: 90px;
    line-height: 1.5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 10px;
}

/* =========================
   Navbar Styles
   ========================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #007bff; /* Primary color */
    padding: 10px 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    height: 40px;
}

.track-order {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.track-order:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-btn,
.faq {
    background-color: #ffffff;
    color: #007bff; /* Blue text for visibility */
    border: none;
    padding: 5px 15px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover,
.faq:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Mobile responsiveness for navbar */
@media (max-width: 768px) {
    .navbar {
        padding: 15px;
    }
    .nav-buttons {
        gap: 8px;
    }
    .nav-btn {
        padding: 4px 12px;
        font-size: 12px;
    }
    .track-order {
        padding: 5px 10px;
        font-size: 14px;
    }
}

/* =========================
   Card / Form Styling
   ========================= */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.2s;
}
.card:hover {
    transform: scale(1.05);
}

h1,
h2 {
    margin-bottom: 15px;
    text-align: center;
    color: #007bff;
}

select,
input[type="tel"],
button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Button styling */
button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s ease;
}
button:hover {
    background-color: #0056b3;
}

/* =========================
   WhatsApp Floating Button
   ========================= */
#whatsappButtonContainer {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.whatsapp-float-message {
    margin-bottom: 5px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px;
    border-radius: 5px;
    color: white;
}

.whatsapp-float {
    background-color: #25d366;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}
.whatsapp-float img.whatsapp-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.whatsapp-float:hover {
    background-color: #128c7e;
}

/* =========================
   Footer Styling
   ========================= */
.footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    width: 100%;
    font-size: 14px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.footer-text {
    color: #000000;
    font-weight: 400;
    margin: 0;
}

.footer-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    margin: 0 8px;
}

.footer-link:hover {
    text-decoration: underline;
}

.divider {
    color: #999;
    margin: 0 5px;
}

/* Stack columns on smaller screens */
@media (max-width: 768px) {
    .footer .row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer .col-lg-6 {
        width: 100%;
        text-align: center !important;
    }

    .footer .text-right {
        text-align: center !important;
        margin-top: 10px;
    }
}

/* =========================
   Modal Styles - Responsive
   ========================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 60px;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px 25px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-content h2 {
    margin: 0 0 20px;
    font-size: 1.8rem;
    color: #222;
    text-align: center;
}

.description {
    background-color: #f7f9fc;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
}

.description ul {
    margin-top: 10px;
    padding-left: 20px;
    list-style-type: disc;
}

.close {
    position: absolute;
    top: 12px;
    right: 18px;
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: #e74c3c;
}

#userEmail {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

#userEmail:focus {
    border-color: #007bff;
    outline: none;
}

#submitEmail {
    width: 100%;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#submitEmail:hover {
    background-color: #0056b3;
}

/* Responsive */
@media (max-width: 600px) {
    .modal-content {
        padding: 25px 18px;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    #submitEmail {
        font-size: 0.95rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =========================
   Advertisement Slider Styles
   ========================= */
.AdvertisementSlider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.AdvertisementSlider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.AdvertisementSlider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.AdvertisementSlider-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.AdvertisementSlider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.slider-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .AdvertisementSlider {
        height: 280px;
    }
}
@media (max-width: 480px) {
    .AdvertisementSlider {
        height: 200px;
    }
    .AdvertisementSlider-button {
        font-size: 18px;
        padding: 6px 10px;
    }
}

/* =========================
   Announcements Styles
   ========================= */
.announcements {
    background-color: #e9f4f7;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    margin-top: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.announcements h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.announcements ul {
    list-style-type: none;
    padding: 0;
}

.announcements li {
    font-size: 16px;
    margin: 5px 0;
}

/* =========================
   About Us Section
   ========================= */
.about-section {
    background-color: #ffffff;
    padding: 40px 20px;
    margin-top: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-section h2 {
    font-size: 1.6rem;
    color: #007bff;
    margin-top: 30px;
    margin-bottom: 15px;
    position: relative;
}

.about-section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #007bff;
    margin-top: 8px;
    border-radius: 2px;
}

.about-section p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-section ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.about-section li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

.about-section a {
    color: #007bff;
    text-decoration: underline;
    transition: color 0.2s;
}

.about-section a:hover {
    color: #0056b3;
}

@media (max-width: 768px) {
    .about-section {
        padding: 30px 15px;
    }

    .about-section h2 {
        font-size: 1.4rem;
    }

    .about-section p,
    .about-section li {
        font-size: 0.95rem;
    }
}

/* ============================
   TOS & Privacy Section
   ============================ */
.tos-section,
.privacy-section {
    background-color: #ffffff;
    padding: 40px 20px;
    margin-top: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tos-section h2,
.privacy-section h2 {
    font-size: 1.5rem;
    color: #007bff;
    margin-top: 30px;
    margin-bottom: 15px;
    position: relative;
}

.tos-section h2::after,
.privacy-section h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #007bff;
    margin-top: 8px;
    border-radius: 2px;
}

.tos-section p,
.privacy-section p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tos-section a,
.privacy-section a {
    color: #007bff;
    text-decoration: underline;
    transition: color 0.2s;
}

.tos-section a:hover,
.privacy-section a:hover {
    color: #0056b3;
}

.container > h1 {
    text-align: center;
    font-size: 2rem;
    margin-top: 40px;
    color: #333;
}

hr {
    border: none;
    height: 1px;
    background-color: #eee;
    margin: 60px auto;
    max-width: 900px;
}

@media (max-width: 768px) {
    .tos-section,
    .privacy-section {
        padding: 30px 15px;
    }

    .tos-section h2,
    .privacy-section h2 {
        font-size: 1.3rem;
    }

    .tos-section p,
    .privacy-section p {
        font-size: 0.95rem;
    }
}

/* ==================
   FAQ Styling
   ================== */
.faq-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    transition: background-color 0.3s;
}

.faq-item.open {
    background-color: #f9f9f9;
}

.faq-question {
    font-size: 1.1rem;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #007bff;
}

.faq-question .arrow {
    transition: transform 0.3s ease;
    font-size: 1rem;
    margin-right: 10px;
    color: #007bff;
}

.faq-item.open .faq-question .arrow {
    transform: rotate(90deg);
}

.faq-answer {
    display: none;
    padding-top: 10px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-answer a {
    color: #007bff;
    text-decoration: underline;
}

.faq-answer a:hover {
    color: #0056b3;
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }
}

/* ==================
   Tracking Styling
   ================== */

.tracking-container {
    max-width: 750px;
    /* Set a maximum width for the container */
    width: 90%;
    /* Set width to 90% of the viewport */
    margin: 80px auto;
    /* Center the container */
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tracking-container h1 {
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
    color: #007bff;
}

.tracking-container p.description {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    font-size: 14px;
    color: #6c757d;
}

.tracking-container label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.tracking-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
}

.tracking-container input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.tracking-result {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    background-color: #e9ecef;
}

.tracking-result.show {
    display: block;
}

.error {
    color: #dc3545;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

.success {
    color: #28a745;
    font-weight: bold;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th,
table td {
    border: 1px solid #ced4da;
    padding: 10px;
    text-align: left;
    font-size: 14px;
}

table th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    .tracking-result {
        max-height: 300px;
        overflow-y: auto;
    }

    .tracking-container {
        padding: 20px;
        width: 90%;
    }

    table th,
    table td {
        font-size: 12px;
        padding: 5px;
    }
}

/* ─── News Ticker Styles ─────────────────────────────────────────────── */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.news-ticker-wrapper {
    overflow: hidden;
    width: 100%;
    background-color: #111827;
    border-top: 4px solid #007bff;
    color: white;
    padding: 0.5rem 0;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.ticker-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
}

.ticker-label {
    flex-shrink: 0;
    font-weight: bold;
    color: #007bff;
    white-space: nowrap;
}

.ticker-marquee {
    position: relative;
    overflow: hidden;
    flex-grow: 1;
}

.ticker-content {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    font-size: 0.875rem;
    font-weight: 500;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-content a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.ticker-content a:hover {
    color: #007bff;
}

@media (min-width: 640px) {
    .ticker-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .ticker-content {
        gap: 1rem;
        font-size: 0.75rem;
    }
}
