/* ================= GLOBAL RESET ================= */
body {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
}

/* ================= MOBILE HEADER ================= */
.mobile-header {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid #ccc;
}

.menu-toggle {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    border: none;
    padding: 10px 12px;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    margin-right: 12px;
    flex-shrink: 0;
}

.mobile-welcome-heading {
    font-size: 1rem;
    font-weight: 700;
    color: rgb(255, 128, 128);
}

/* ================= SIDEBAR ================= */
.sidebar {
    width: 100%;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    padding: 0.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    border-bottom: 3px solid #203a43;
    z-index: 1000;
}

.sidebar h4 {
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.sidebar button {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.6rem 0.5rem;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    transition: background 0.3s, transform 0.2s;
}

.sidebar button:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* ================= DRAWER SIDEBAR (MOBILE) ================= */
.sidebar-drawer {
    position: fixed;
    top: 0;
    left: -200px;
    width: 150px;
    height: 100%;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    padding: 0;
    z-index: 1500;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
}

.sidebar-drawer.active {
    left: 0;
}

.sidebar-drawer h4 {
    margin: 0;
    padding: 0.5rem 0;
    font-size: 1rem;
    text-align: center;
}

.sidebar-drawer button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin: 0.6rem 0; /* increased for mobile spacing */
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    border-radius: 15px;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    transition: background 0.3s;
}

.sidebar-drawer button i {
    margin-right: 8px;
    font-size: 1rem;
}

.sidebar-drawer button:hover {
    background: rgba(255,255,255,0.25);
}

/* ================= DRAWER OVERLAY ================= */
#drawerOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1400;
    display: none;
    transition: opacity 0.3s;
}

#drawerOverlay.active {
    display: block;
    opacity: 1;
}

/* ================= CONTENT ================= */
.content {
    flex-grow: 1;
    padding: 0.5rem;
    background: #f8f9fa;
    overflow-y: auto;
}

/* ================= SCROLLING TEXT ================= */
.scrolling-text {
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}

.scrolling-text span {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 25s linear infinite;
    font-size: 1rem;
    color: #b01c0e;
}

.scrolling-text:hover span {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* ================= PACKAGE CARD ================= */
  .package-card {
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
    }
    .package-card:hover {
      transform: translateY(-4px);
    }
    .package-img {
      height: 250px;
      object-fit: cover;
      width: 100%;
    }
    .explore-btn {
      margin-top: 10px;
      font-size: 0.9rem;
      padding: 6px 14px;
      background-color: #0d6efd;
      color: white;
      border: none;
      border-radius: 20px;
      transition: background-color 0.2s ease;
    }
    .explore-btn:hover {
      background-color: #0b5ed7;
    }
    .card-title {
      font-weight: 600;
      font-size: 1.2rem;
    }
    .package-price {
      font-size: 0.95rem;
      color: #6c757d;
    }
    .buy-btn {
      border-radius: 20px;
      padding: 6px 16px;
      font-size: 0.9rem;
    }
    .highlight-message {
      background-color: #fff3cd;
      color: #856404;
      padding: 10px;
      border-radius: 8px;
      font-size: 0.95rem;
      margin-top: 15px;
    }
    #packageAccordion {
      transition: opacity 0.3s ease-in-out;
    }
    .collapse {
    visibility: visible !important; /* or simply delete that rule entirely */
}
    
/* ================= TABLE ================= */
#jobTable {
    width: 100% !important;
    table-layout: fixed;
    word-break: break-word;
}

#jobTable th, #jobTable td {
    white-space: normal !important;
    word-break: break-word;
    vertical-align: middle;
    text-align: center;
    padding: 6px;
    font-size: 12px;
}

table.dataTable td {
    white-space: normal !important;
    word-wrap: break-word;
}

/* ================= CAROUSEL ================= */


/* ================= ERROR LABEL ================= */
label.error {
    color: red;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ================= TEXT WRAP UTILITY ================= */
.text-wrap {
    white-space: normal !important;
    word-break: break-word;
}

/* ================= RESPONSIVE ================= */
@media (min-width: 481px) {
    .package-img { height: 350px; }
    .carousel-inner, .carousel-item img { height: 180px; }
    .scrolling-text span { font-size: 1rem; }
}

@media (min-width: 769px) {
    body { flex-direction: row; }
    .sidebar {
        width: 240px;
        height: 100vh;
        padding: 1rem;
        position: sticky;
        top: 0;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
        border-bottom: none;
        justify-content: flex-start;
        flex-direction: column;
    }
    .sidebar h4 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    .sidebar button {
        width: 100%;
        margin-bottom: 1rem;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    .content { padding: 1rem; }
    .package-img { height: 200px; }
    .carousel-inner, .carousel-item img { height: 400px; }
    #jobTable th, #jobTable td { font-size: 14px; padding: 8px; }
    .scrolling-text span { font-size: 1.25rem; }
}

/* Hide carousel completely for mobile */
@media (max-width: 768px) {
    .carousel { display: none; }
}

/* ================= DESKTOP / MOBILE HEADING ================= */
.desktop-heading {
    display: none;
}

.mobile-heading {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 0 0.5rem 0;
    color: #fff;
}

@media (min-width: 769px) {
    .desktop-heading { display: block; }
    .mobile-heading { display: none; }
}



h3.text-center {
    animation: fadeInDown 1s ease-out;
}

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

