/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    margin: 0;
    padding-top: 70px; /* To accommodate fixed header */
}

/* Header */
header {
    background: #222; /* Dark gray background */
    color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: flex; /* Flexbox layout for alignment */
    align-items: center;
    padding: 15px 20px;
}

/* Logo and Website Name */
header .logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-right: auto;
}

header .logo img {
    width: 60px;
    height: auto;
    margin-right: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

header nav {
    display: flex;
    align-items: center;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin: 0;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

header nav ul li a:hover {
    color: #ffdc73;
    border-bottom: 2px solid #ffdc73;
}

/* Footer */
footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

footer p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

footer .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
}

footer .social-links li a {
    color: #ccc;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

footer .social-links li a:hover {
    color: #ffdc73;
    text-decoration: underline;
}


/* Modals Styling (Sign In & Sign Up) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

.modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #555;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #000;
}

.auth-form .form-group {
    margin-bottom: 15px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.auth-form input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-form input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.auth-button {
    background-color: #007bff;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.auth-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.auth-text {
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
}

.auth-text a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.auth-text a:hover {
    text-decoration: underline;
}


/* Media Queries for Modals */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .auth-form label,
    .auth-form input,
    .auth-button {
        font-size: 0.9rem;
    }
}


/* Homepage Styles */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    background: url("/static/images/28fpCUQOZuemHpzkAPcsk.33313697d902.jpg") no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: black; /* Black color for text */
}

.hero-overlay h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
}

.hero-overlay p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.hero-overlay .btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(90deg, #007bff, #0056b3);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.hero-overlay .btn:hover {
    background: linear-gradient(90deg, #0056b3, #007bff);
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features {
    background: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    margin-top: 40px;
}

.feature-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33% - 40px);
    max-width: 300px;
    text-align: left;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item h3 {
    margin-bottom: 15px;
    color: #007bff;
}

.feature-item p {
    color: #555;
}

.feature-item .coming-soon {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #ff6347;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* CTA Section */
.cta {
    background: #333;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta .btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cta .btn:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* home page ending */

/* Media Queries */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .feature-grid {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        flex: 1 1 100%;
    }
}


/* Portfolio Section */
.portfolio {
    background-color: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

.portfolio h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.portfolio p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.portfolio-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33% - 40px);
    max-width: 300px;
    text-align: left;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #007bff;
}

.portfolio-item p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #666;
}

.portfolio-item .btn {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.portfolio-item .btn:hover {
    background-color: #0056b3;
}



/* Home Page - YouTube Live Streaming Section */
.youtube-live {
    padding: 20px 10px; /* Reduced padding */
    background-color: #f9f9f9; /* Optional background for better separation */
    text-align: center;
}

.youtube-live h2 {
    font-size: 1.8rem; /* Slightly smaller heading */
    margin-bottom: 15px;
}

.youtube-live p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #555;
}

.video-container {
    max-width: 600px; /* Limit the width of the video container */
    margin: 0 auto; /* Center the video */
    overflow: hidden; /* Prevent overflow */
    border-radius: 8px; /* Optional for rounded corners */
}

.video-container iframe {
    width: 100%; /* Responsive width */
    height: 300px; /* Reduced height */
    border: none;
}


/* News Section */
.news {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.news h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.news p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.news-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33% - 40px);
    max-width: 300px;
    text-align: left;
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-10px);
}

.news-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #007bff;
}

.news-item p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #666;
}

.news-item .btn {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.news-item .btn:hover {
    background-color: #0056b3;
}


/* Blog Section */
.blog {
    background-color: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
}

.blog h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.blog p {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #555;
}

.blog-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.blog-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33% - 20px);
    max-width: 300px;
    text-align: left;
    transition: transform 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-10px);
}

.blog-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #007bff;
}

.blog-item p {
    font-size: 1rem;
    color: #555;
}

.blog-item .btn {
    margin-top: 15px;
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.blog-item .btn:hover {
    background-color: #0056b3;
}




/* General Styling for Products Page */
.products {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.page-description {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #555;
}

/* Product Category Styling */
.product-category {
    margin-bottom: 60px;
}

.product-category h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #007bff;
}

/* Product Grid Styling */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.product-card p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #555;
}

.product-card .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 15px;
}

.product-card .btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.product-card .btn:hover {
    background-color: #0056b3;
}

/* Responsive Design for Products Page */
@media (max-width: 768px) {
    .product-grid {
        flex-direction: column;
        align-items: center;
    }

    .product-card {
        width: 100%;
        max-width: 400px;
    }
}



/* Contact Page Styling */
.contact-section {
    background-color: #f9f9f9;
    padding: 50px 20px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

/* Contact Info Section */
.contact-info {
    flex: 1 1 40%;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.contact-info p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
}

.contact-info li strong {
    color: #007bff;
}

/* Contact Form Section */
.contact-form-container {
    flex: 1 1 55%;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.contact-form textarea {
    resize: none;
}

.contact-form .submit-button {
    background-color: #007bff;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form .submit-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-info, .contact-form-container {
        flex: 1 1 100%;
    }
}



/* Chat Forum Styling */
/* Chat Forum Styling */
.chat-forum {
    padding: 40px 20px;
    background-color: #f9f9f9;
    min-height: calc(100vh - 140px); /* Adjust to exclude header and footer */
}

.chat-forum h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* Search Section */
.search-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.search-section input {
    flex: 1;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
}

.search-section button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: not-allowed; /* Indicating the button is disabled for now */
    transition: background-color 0.3s ease;
}

.search-section input:disabled,
.search-section button:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

/* Chat Container */
.chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 600px;
    overflow: hidden;
}

/* Placeholder Message */
.placeholder-message {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 1.2rem;
}

/* Chat Messages Section */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f4f4f4;
    border-bottom: 1px solid #ddd;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.user-message {
    background: #e9f5ff;
    border-left: 4px solid #007bff;
}

.admin-message {
    background: #fff9e6;
    border-left: 4px solid #ffa500;
}

.message .username {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.message .message-text {
    font-size: 1rem;
    color: #555;
    margin-bottom: 5px;
}

.message .timestamp {
    font-size: 0.8rem;
    color: #aaa;
    text-align: right;
}

/* Chat Input Section */
.chat-input {
    display: flex;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    font-size: 1rem;
    margin-right: 10px;
    color: #333;
}

.chat-input button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: not-allowed; /* Indicating the button is disabled for now */
    transition: background-color 0.3s ease;
}

.chat-input input:disabled,
.chat-input button:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-container {
        height: 500px;
    }

    .search-section input {
        font-size: 0.9rem;
        padding: 8px;
    }

    .search-section button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .chat-input input {
        font-size: 0.9rem;
        padding: 8px;
    }

    .chat-input button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}





/* TWS Assistant Button Styling */
/* TWS Assistant Button Container */
.tws-assistant {
    position: fixed;
    bottom: 20px; /* Adjust placement */
    right: 20px;  /* Adjust placement */
    z-index: 1000; /* Keeps the button on top */
    background: transparent; /* No background so no extra white space */
  }

  /* Circular button */
  #tws-chat-btn {
    width: 70px;     /* Circular button width */
    height: 70px;    /* Circular button height */
    border: none;    /* Removes default border */
    background: none;/* No default background */
    outline: none;   /* Remove focus outline */
    padding: 0;      /* Remove extra padding */
    border-radius: 50%; /* Makes it a circle */
    overflow: hidden;   /* Keeps the image in the circle */
    cursor: pointer;    /* Pointer cursor on hover */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Optional shadow */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Remove focus outline again just to be safe */
  #tws-chat-btn:focus {
    outline: none;
  }

  /* The image itself */
  .tws-assistant-image {
    width: 100%;       /* Fills the button horizontally */
    height: 100%;      /* Fills the button vertically */
    border: none;      /* No image border */
    margin: 0;         /* No default margin */
    padding: 0;        /* No default padding */
    object-fit: cover; /* Ensures the image fills the circle */
    display: block;    /* Removes inline gaps around images */
    border-radius: 50%;/* Ensures the image is also circular */
    background: none;  /* No background color */
  }

/* Chat Area */
.chat-area {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.chat-header {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.chat-header h3 {
    margin: 0;
    font-size: 1rem;
}

.chat-header #close-chat-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.message {
    margin: 5px 0;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.bot-message {
    background-color: #f1f1f1;
    color: #333;
}

.chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

#chat-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

#send-chat-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#send-chat-btn:hover {
    background-color: #0056b3;
}



/* Container for Auth Links and Cart */
.auth-links-and-cart {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    right: 11px;
    bottom: 0;
}

/* Auth Links Styling */
.auth-links-container {
    display: flex;
    gap: 10px;
}

.auth-links-container a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.auth-links-container a:hover {
    color: #ffdc73; /* Matches navigation hover color */
}

/* Cart Container */
.cart-container {
    position: relative;
    display: flex;
    align-items: center; /* Aligns icon and count vertically */
}

#cart-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 5px; /* Space between the icon and count */
    transition: color 0.3s ease, transform 0.3s ease;
}

#cart-toggle-btn:hover {
    color: #ffdc73;
    transform: scale(1.1);
}

#cart-count {
    font-size: 0.9rem;
    background: #007bff;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-weight: bold;
    display: inline-block;
    margin-left: 5px;
    min-width: 24px;
    text-align: center;
}

/* Dropdown Styling */
#cart-content {
    display: none;
    position: absolute;
    top: 40px; /* Adjusted for alignment */
    right: 0;
    width: 300px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1000;
    padding: 15px;
}

.cart-container.open #cart-content {
    display: block;
}

#cart-content h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

#cart-items {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

#cart-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

#view-cart-btn,
#checkout-btn {
    flex: 1;
    padding: 8px 15px;
    font-size: 0.9rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
}

#view-cart-btn {
    background-color: #007bff;
    color: white;
}

#view-cart-btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

#checkout-btn {
    background-color: #28a745;
    color: white;
}

#checkout-btn:hover {
    background-color: #218838;
    transform: scale(1.05);
}



.chat-input {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.chat-input input {
    flex-grow: 1;
    padding: 10px;
    font-size: 16px;
}

.chat-input button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.chat-input button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}


.logout-button {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    }


/* Styled chat message box */
.chat-messages .message {
    background-color: #f1f9ff;
    border-left: 4px solid #007bff;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 6px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.3s ease-in-out;
}

/* Username styling */
.chat-messages .message .username {
    font-weight: 600;
    color: #007bff;
    font-size: 1rem;
    margin-bottom: 4px;
}

/* Message text styling */
.chat-messages .message .message-text {
    font-size: 1rem;
    color: #333;
    margin-bottom: 6px;
}

/* Timestamp styling */
.chat-messages .message .timestamp {
    font-size: 0.85rem;
    color: #999;
    text-align: right;
}

/* Optional fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* Hamburger button - visible only on mobile */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
}

/* Wrap nav and auth/cart for toggling */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    nav {
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .auth-links-and-cart {
        position: static;
        margin-top: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-nav-toggle {
        display: block;
    }

    /* Collapse nav by default on mobile */
    .nav-wrapper {
        display: none;
    }

    .nav-wrapper.open {
        display: flex;
    }
}


/* Header container layout */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

/* Hamburger Styles */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1100;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    display: block;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger open animation */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Nav */
.main-nav {
    display: flex;
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        width: 100%;
        display: none;
        flex-direction: column;
        background-color: #222;
        position: absolute;
        top: 70px;
        left: 0;
        padding: 20px 0;
        z-index: 1000;
    }

    .main-nav.nav-open {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        padding-left: 20px;
    }

    .auth-links-and-cart {
        position: static;
        margin-top: 10px;
    }
}


@media (max-width: 768px) {
    header .logo {
        font-size: 1.2rem; /* Reduce title size */
    }

    header .logo img {
        width: 40px; /* Reduce logo size */
        margin-right: 8px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 15px;
    }
}


@media (max-width: 768px) {
    .auth-links-and-cart {
        position: static;
        margin-top: 10px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
    }

    .auth-links-container {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%; /* change from 70px to 100% */
        left: 0;
        width: 100%;
        background-color: #222;
        padding: 20px 0;
        z-index: 1000;
    }
}



@media (max-width: 768px) {
    .hero {
      height: 80vh; /* Smaller height for smartphones */
      background-position: center top; /* Keep focus high on image */
      padding: 0 15px;
    }
  
    .hero-overlay {
      text-align: center;
      background: rgba(0, 0, 0, 0.4); /* Slight dark overlay for contrast */
      padding: 20px;
      border-radius: 10px;
      margin-top: 20%;
    }
  
    .hero-overlay h1 {
      font-size: 1.8rem;
      color: #fff;
      text-shadow: none;
      margin-bottom: 15px;
    }
  
    .hero-overlay p {
      font-size: 1rem;
      color: #f0f0f0;
      margin-bottom: 20px;
      line-height: 1.4;
    }
  
    .hero-overlay .btn {
      font-size: 1rem;
      padding: 10px 20px;
      border-radius: 6px;
    }
  }


  @media (max-width: 768px) {
    .hero {
      height: auto; /* Let it shrink to fit content */
      padding: 60px 0 40px; /* Add vertical spacing manually */
      background-size: cover;
      background-position: center;
    }
  
    .hero-overlay {
      margin-top: 40px;
    }
  }



.positive { color: #16a34a; }  /* green */
.negative { color: #dc2626; }  /* red   */
.neutral  { color: #64748b; }  /* grey  */

.change-pill      { padding:4px 8px;border-radius:4px;font-weight:600; }
.change-pill.neutral  { background:#ddd;color:#444; }
.change-pill.positive { background:#e6ffe6;color:#15803d; }
.change-pill.negative { background:#ffe6e6;color:#b91c1c; }


  
  

.tws-assistant-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: none;
  display: block;
}




.tws-assistant-image {
    width: 125%;
    height: 125%;
    border-radius: 50%;
    object-fit: cover;
    background: transparent;
    box-shadow: none;   /* Ensure no extra shadow */
}
#tws-chat-btn {
    background: transparent !important;  /* Remove background */
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    padding: 0;
}





.footer-social {
    display: flex;
    justify-content: center;
    margin: 16px 0 12px 0;
}

.twitter-link {
    color: #1da1f2;
    font-size: 1.3rem;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 18px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 1px;
}

.twitter-link:hover {
    background: #e8f5fd;
    color: #0d8ddb;
    text-decoration: underline;
}





.footer-social {
    margin: 16px 0 18px 0;
}













/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    margin: 0;
    padding-top: 70px; /* To accommodate fixed header */
}

/* Header */
header {
    background: #222; /* Dark gray background */
    color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: flex; /* Flexbox layout for alignment */
    align-items: center;
    padding: 15px 20px;
}

/* Logo and Website Name */
header .logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-right: auto;
}

header .logo img {
    width: 60px;
    height: auto;
    margin-right: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

header nav {
    display: flex;
    align-items: center;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin: 0;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

header nav ul li a:hover {
    color: #ffdc73;
    border-bottom: 2px solid #ffdc73;
}

/* Footer */
footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

footer p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

footer .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
}

footer .social-links li a {
    color: #ccc;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

footer .social-links li a:hover {
    color: #ffdc73;
    text-decoration: underline;
}


/* Modals Styling (Sign In & Sign Up) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

.modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #555;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #000;
}

.auth-form .form-group {
    margin-bottom: 15px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.auth-form input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-form input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.auth-button {
    background-color: #007bff;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.auth-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.auth-text {
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
}

.auth-text a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.auth-text a:hover {
    text-decoration: underline;
}


/* Media Queries for Modals */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .auth-form label,
    .auth-form input,
    .auth-button {
        font-size: 0.9rem;
    }
}


/* Homepage Styles */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    background: url("/static/images/28fpCUQOZuemHpzkAPcsk.33313697d902.jpg") no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: black; /* Black color for text */
}

.hero-overlay h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
}

.hero-overlay p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.hero-overlay .btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(90deg, #007bff, #0056b3);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.hero-overlay .btn:hover {
    background: linear-gradient(90deg, #0056b3, #007bff);
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features {
    background: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    margin-top: 40px;
}

.feature-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33% - 40px);
    max-width: 300px;
    text-align: left;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item h3 {
    margin-bottom: 15px;
    color: #007bff;
}

.feature-item p {
    color: #555;
}

.feature-item .coming-soon {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #ff6347;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* CTA Section */
.cta {
    background: #333;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta .btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cta .btn:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* home page ending */

/* Media Queries */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .feature-grid {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        flex: 1 1 100%;
    }
}


/* Portfolio Section */
.portfolio {
    background-color: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

.portfolio h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.portfolio p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.portfolio-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33% - 40px);
    max-width: 300px;
    text-align: left;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #007bff;
}

.portfolio-item p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #666;
}

.portfolio-item .btn {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.portfolio-item .btn:hover {
    background-color: #0056b3;
}



/* Home Page - YouTube Live Streaming Section */
.youtube-live {
    padding: 20px 10px; /* Reduced padding */
    background-color: #f9f9f9; /* Optional background for better separation */
    text-align: center;
}

.youtube-live h2 {
    font-size: 1.8rem; /* Slightly smaller heading */
    margin-bottom: 15px;
}

.youtube-live p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #555;
}

.video-container {
    max-width: 600px; /* Limit the width of the video container */
    margin: 0 auto; /* Center the video */
    overflow: hidden; /* Prevent overflow */
    border-radius: 8px; /* Optional for rounded corners */
}

.video-container iframe {
    width: 100%; /* Responsive width */
    height: 300px; /* Reduced height */
    border: none;
}


/* News Section */
.news {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.news h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.news p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.news-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33% - 40px);
    max-width: 300px;
    text-align: left;
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-10px);
}

.news-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #007bff;
}

.news-item p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #666;
}

.news-item .btn {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.news-item .btn:hover {
    background-color: #0056b3;
}


/* Blog Section */
.blog {
    background-color: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
}

.blog h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.blog p {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #555;
}

.blog-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.blog-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33% - 20px);
    max-width: 300px;
    text-align: left;
    transition: transform 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-10px);
}

.blog-item h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #007bff;
}

.blog-item p {
    font-size: 1rem;
    color: #555;
}

.blog-item .btn {
    margin-top: 15px;
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.blog-item .btn:hover {
    background-color: #0056b3;
}




/* General Styling for Products Page */
.products {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.page-description {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #555;
}

/* Product Category Styling */
.product-category {
    margin-bottom: 60px;
}

.product-category h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #007bff;
}

/* Product Grid Styling */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.product-card p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #555;
}

.product-card .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 15px;
}

.product-card .btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.product-card .btn:hover {
    background-color: #0056b3;
}

/* Responsive Design for Products Page */
@media (max-width: 768px) {
    .product-grid {
        flex-direction: column;
        align-items: center;
    }

    .product-card {
        width: 100%;
        max-width: 400px;
    }
}



/* Contact Page Styling */
.contact-section {
    background-color: #f9f9f9;
    padding: 50px 20px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

/* Contact Info Section */
.contact-info {
    flex: 1 1 40%;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.contact-info p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
}

.contact-info li strong {
    color: #007bff;
}

/* Contact Form Section */
.contact-form-container {
    flex: 1 1 55%;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.contact-form textarea {
    resize: none;
}

.contact-form .submit-button {
    background-color: #007bff;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form .submit-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-info, .contact-form-container {
        flex: 1 1 100%;
    }
}



/* Chat Forum Styling */
/* Chat Forum Styling */
.chat-forum {
    padding: 40px 20px;
    background-color: #f9f9f9;
    min-height: calc(100vh - 140px); /* Adjust to exclude header and footer */
}

.chat-forum h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* Search Section */
.search-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.search-section input {
    flex: 1;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
}

.search-section button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: not-allowed; /* Indicating the button is disabled for now */
    transition: background-color 0.3s ease;
}

.search-section input:disabled,
.search-section button:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

/* Chat Container */
.chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 600px;
    overflow: hidden;
}

/* Placeholder Message */
.placeholder-message {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 1.2rem;
}

/* Chat Messages Section */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f4f4f4;
    border-bottom: 1px solid #ddd;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.user-message {
    background: #e9f5ff;
    border-left: 4px solid #007bff;
}

.admin-message {
    background: #fff9e6;
    border-left: 4px solid #ffa500;
}

.message .username {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.message .message-text {
    font-size: 1rem;
    color: #555;
    margin-bottom: 5px;
}

.message .timestamp {
    font-size: 0.8rem;
    color: #aaa;
    text-align: right;
}

/* Chat Input Section */
.chat-input {
    display: flex;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    font-size: 1rem;
    margin-right: 10px;
    color: #333;
}

.chat-input button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: not-allowed; /* Indicating the button is disabled for now */
    transition: background-color 0.3s ease;
}

.chat-input input:disabled,
.chat-input button:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-container {
        height: 500px;
    }

    .search-section input {
        font-size: 0.9rem;
        padding: 8px;
    }

    .search-section button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .chat-input input {
        font-size: 0.9rem;
        padding: 8px;
    }

    .chat-input button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}





/* TWS Assistant Button Styling */
/* TWS Assistant Button Container */
.tws-assistant {
    position: fixed;
    bottom: 20px; /* Adjust placement */
    right: 20px;  /* Adjust placement */
    z-index: 1000; /* Keeps the button on top */
    background: transparent; /* No background so no extra white space */
  }

  /* Circular button */
  #tws-chat-btn {
    width: 70px;     /* Circular button width */
    height: 70px;    /* Circular button height */
    border: none;    /* Removes default border */
    background: none;/* No default background */
    outline: none;   /* Remove focus outline */
    padding: 0;      /* Remove extra padding */
    border-radius: 50%; /* Makes it a circle */
    overflow: hidden;   /* Keeps the image in the circle */
    cursor: pointer;    /* Pointer cursor on hover */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Optional shadow */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Remove focus outline again just to be safe */
  #tws-chat-btn:focus {
    outline: none;
  }

  /* The image itself */
  .tws-assistant-image {
    width: 100%;       /* Fills the button horizontally */
    height: 100%;      /* Fills the button vertically */
    border: none;      /* No image border */
    margin: 0;         /* No default margin */
    padding: 0;        /* No default padding */
    object-fit: cover; /* Ensures the image fills the circle */
    display: block;    /* Removes inline gaps around images */
    border-radius: 50%;/* Ensures the image is also circular */
    background: none;  /* No background color */
  }

/* Chat Area */
.chat-area {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.chat-header {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.chat-header h3 {
    margin: 0;
    font-size: 1rem;
}

.chat-header #close-chat-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.message {
    margin: 5px 0;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.bot-message {
    background-color: #f1f1f1;
    color: #333;
}

.chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

#chat-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

#send-chat-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#send-chat-btn:hover {
    background-color: #0056b3;
}



/* Container for Auth Links and Cart */
.auth-links-and-cart {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    right: 11px;
    bottom: 0;
}

/* Auth Links Styling */
.auth-links-container {
    display: flex;
    gap: 10px;
}

.auth-links-container a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.auth-links-container a:hover {
    color: #ffdc73; /* Matches navigation hover color */
}

/* Cart Container */
.cart-container {
    position: relative;
    display: flex;
    align-items: center; /* Aligns icon and count vertically */
}

#cart-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 5px; /* Space between the icon and count */
    transition: color 0.3s ease, transform 0.3s ease;
}

#cart-toggle-btn:hover {
    color: #ffdc73;
    transform: scale(1.1);
}

#cart-count {
    font-size: 0.9rem;
    background: #007bff;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-weight: bold;
    display: inline-block;
    margin-left: 5px;
    min-width: 24px;
    text-align: center;
}

/* Dropdown Styling */
#cart-content {
    display: none;
    position: absolute;
    top: 40px; /* Adjusted for alignment */
    right: 0;
    width: 300px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1000;
    padding: 15px;
}

.cart-container.open #cart-content {
    display: block;
}

#cart-content h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

#cart-items {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

#cart-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

#view-cart-btn,
#checkout-btn {
    flex: 1;
    padding: 8px 15px;
    font-size: 0.9rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
}

#view-cart-btn {
    background-color: #007bff;
    color: white;
}

#view-cart-btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

#checkout-btn {
    background-color: #28a745;
    color: white;
}

#checkout-btn:hover {
    background-color: #218838;
    transform: scale(1.05);
}



.chat-input {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.chat-input input {
    flex-grow: 1;
    padding: 10px;
    font-size: 16px;
}

.chat-input button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.chat-input button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}


.logout-button {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    }


/* Styled chat message box */
.chat-messages .message {
    background-color: #f1f9ff;
    border-left: 4px solid #007bff;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 6px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.3s ease-in-out;
}

/* Username styling */
.chat-messages .message .username {
    font-weight: 600;
    color: #007bff;
    font-size: 1rem;
    margin-bottom: 4px;
}

/* Message text styling */
.chat-messages .message .message-text {
    font-size: 1rem;
    color: #333;
    margin-bottom: 6px;
}

/* Timestamp styling */
.chat-messages .message .timestamp {
    font-size: 0.85rem;
    color: #999;
    text-align: right;
}

/* Optional fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* Hamburger button - visible only on mobile */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
}

/* Wrap nav and auth/cart for toggling */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    nav {
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .auth-links-and-cart {
        position: static;
        margin-top: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-nav-toggle {
        display: block;
    }

    /* Collapse nav by default on mobile */
    .nav-wrapper {
        display: none;
    }

    .nav-wrapper.open {
        display: flex;
    }
}


/* Header container layout */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

/* Hamburger Styles */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1100;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    display: block;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger open animation */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Nav */
.main-nav {
    display: flex;
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        width: 100%;
        display: none;
        flex-direction: column;
        background-color: #222;
        position: absolute;
        top: 70px;
        left: 0;
        padding: 20px 0;
        z-index: 1000;
    }

    .main-nav.nav-open {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        padding-left: 20px;
    }

    .auth-links-and-cart {
        position: static;
        margin-top: 10px;
    }
}


@media (max-width: 768px) {
    header .logo {
        font-size: 1.2rem; /* Reduce title size */
    }

    header .logo img {
        width: 40px; /* Reduce logo size */
        margin-right: 8px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 15px;
    }
}


@media (max-width: 768px) {
    .auth-links-and-cart {
        position: static;
        margin-top: 10px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
    }

    .auth-links-container {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%; /* change from 70px to 100% */
        left: 0;
        width: 100%;
        background-color: #222;
        padding: 20px 0;
        z-index: 1000;
    }
}



@media (max-width: 768px) {
    .hero {
      height: 80vh; /* Smaller height for smartphones */
      background-position: center top; /* Keep focus high on image */
      padding: 0 15px;
    }
  
    .hero-overlay {
      text-align: center;
      background: rgba(0, 0, 0, 0.4); /* Slight dark overlay for contrast */
      padding: 20px;
      border-radius: 10px;
      margin-top: 20%;
    }
  
    .hero-overlay h1 {
      font-size: 1.8rem;
      color: #fff;
      text-shadow: none;
      margin-bottom: 15px;
    }
  
    .hero-overlay p {
      font-size: 1rem;
      color: #f0f0f0;
      margin-bottom: 20px;
      line-height: 1.4;
    }
  
    .hero-overlay .btn {
      font-size: 1rem;
      padding: 10px 20px;
      border-radius: 6px;
    }
  }


  @media (max-width: 768px) {
    .hero {
      height: auto; /* Let it shrink to fit content */
      padding: 60px 0 40px; /* Add vertical spacing manually */
      background-size: cover;
      background-position: center;
    }
  
    .hero-overlay {
      margin-top: 40px;
    }
  }



.positive { color: #16a34a; }  /* green */
.negative { color: #dc2626; }  /* red   */
.neutral  { color: #64748b; }  /* grey  */

.change-pill      { padding:4px 8px;border-radius:4px;font-weight:600; }
.change-pill.neutral  { background:#ddd;color:#444; }
.change-pill.positive { background:#e6ffe6;color:#15803d; }
.change-pill.negative { background:#ffe6e6;color:#b91c1c; }


  
  

.tws-assistant-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: none;
  display: block;
}




.tws-assistant-image {
    width: 125%;
    height: 125%;
    border-radius: 50%;
    object-fit: cover;
    background: transparent;
    box-shadow: none;   /* Ensure no extra shadow */
}
#tws-chat-btn {
    background: transparent !important;  /* Remove background */
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    padding: 0;
}





.footer-social {
    display: flex;
    justify-content: center;
    margin: 16px 0 12px 0;
}

.twitter-link {
    color: #1da1f2;
    font-size: 1.3rem;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 18px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 1px;
}

.twitter-link:hover {
    background: #e8f5fd;
    color: #0d8ddb;
    text-decoration: underline;
}





.footer-social {
    margin: 16px 0 18px 0;
}







/* ==========================
   MODERN CHAT FORUM STYLES
   ========================== */

/* Make the chat-forum area stand out */
.chat-forum {
    background: #f3f8fc;
    min-height: 100vh;
    padding: 60px 0 30px 0;
}

/* Card-style chat container */
.chat-container {
    max-width: 650px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 1.5px 4px rgba(0,0,0,0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

/* Chat forum heading */
.chat-forum h1 {
    color: #132b3b;
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 1px 0 #f7f7f7;
}

/* Search bar styling */
.search-section {
    margin: 0 auto 30px auto;
    max-width: 600px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.search-section input {
    font-size: 1.1rem;
    padding: 12px 16px;
    border: 1.5px solid #d0e2f7;
    border-radius: 8px;
    width: 320px;
    background: #f6fafd;
    transition: border-color 0.2s;
}

.search-section input:focus {
    border-color: #41a0ff;
    outline: none;
}

.search-section button {
    padding: 12px 28px;
    font-size: 1.05rem;
    background: #007bff;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    transition: background 0.18s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.search-section button:enabled:hover {
    background: #0056b3;
}

/* Chat messages area */
.chat-messages {
    flex: 1;
    background: #f6fafd;
    padding: 26px 20px 12px 20px;
    overflow-y: auto;
    border-bottom: 1.5px solid #e1ecf5;
}

/* Message bubbles */
.message {
    margin-bottom: 18px;
    padding: 14px 18px 12px 18px;
    border-radius: 12px;
    background: #e9f3ff;
    border-left: 5px solid #007bff;
    box-shadow: 0 1px 5px rgba(0,0,0,0.03);
    font-size: 1rem;
    position: relative;
    animation: fadeIn 0.3s;
}

.message:nth-child(even) {
    background: #f0f7fa;
    border-left: 5px solid #1da1f2;
}

.message .username {
    font-weight: 700;
    color: #007bff;
    font-size: 1.03rem;
    margin-bottom: 3px;
}

.message .message-text {
    color: #1d2937;
    margin-top: 2px;
    margin-bottom: 3px;
}

.message .timestamp {
    font-size: 0.82rem;
    color: #95a2b3;
    position: absolute;
    right: 16px;
    bottom: 8px;
}

/* Placeholder message styling */
.placeholder-message {
    text-align: center;
    color: #999;
    font-size: 1.17rem;
    margin-top: 90px;
    font-style: italic;
    letter-spacing: 0.1px;
}

/* Chat input area */
.chat-input {
    background: #f6fafd;
    padding: 18px 20px;
    display: flex;
    gap: 10px;
    border-top: 1.5px solid #e1ecf5;
}

.chat-input input {
    flex: 1;
    font-size: 1.08rem;
    border: 1.5px solid #cfe1f1;
    border-radius: 7px;
    padding: 12px 14px;
    background: #fff;
    transition: border 0.2s;
}

.chat-input input:focus {
    border-color: #41a0ff;
    outline: none;
}

.chat-input button {
    background: #007bff;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 7px;
    padding: 12px 28px;
    font-size: 1.07rem;
    transition: background 0.18s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.chat-input button:enabled:hover {
    background: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 800px) {
    .chat-container {
        max-width: 98vw;
        min-height: 350px;
    }
    .search-section input {
        width: 55vw;
        min-width: 120px;
    }
    .chat-input button {
        padding: 12px 18px;
    }
}







/* Sticky footer ONLY for chat forum page */
.chat-forum-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.chat-forum-page main,
.chat-forum-page .chat-forum,
.chat-forum-page .container {
    flex: 1 1 auto;
}
.chat-forum-page footer {
    margin-top: auto;
}








.chat-container {
    display: flex;
    flex-direction: column;
    height: 600px;
    min-height: 400px;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    /* You can add responsive adjustments as needed */
}
.chat-messages {
    flex: 1 1 auto;
    padding: 20px;
    overflow-y: auto;
    background: #f4f8fa;
    border-bottom: 1px solid #eee;
    min-height: 0; /* helps flexbox layout */
}
.chat-input {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}


.chat-forum-page .chat-container {
    min-height: 350px;
    height: auto;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}





/* ======================================================
   FINAL OVERRIDES – KEEP AT THE VERY END OF styles.css
   ====================================================== */

/* 0. make sure the body tag really has this class ➜
      {% block body_class %}chat-forum-page{% endblock %}       */

/* 1. Whole page = flex column  */
.chat-forum-page          { display:flex; flex-direction:column; min-height:100vh; }

/* 2. Let <main> grow, push footer down */
.chat-forum-page main     { flex:1 0 auto; }
.chat-forum-page footer   { flex-shrink:0; margin-top:auto; }

/* 3. Chat card gets a fixed viewport-relative height            */
/*    (header = 70px, page padding ≈ 40px, give footer 120px)   */
.chat-forum-page .chat-container {
    display:flex;                /* column already set earlier; repeat for safety */
    flex-direction:column;
    height:calc(100vh - 230px);  /* **tweak** if it feels too tall/short          */
    max-height:none !important;  /* override earlier “max-height:80vh”            */
}



/* 5. Input row must never scroll away (stays at bottom)        */
.chat-forum-page .chat-input  { flex:0 0 auto; }

/* (Optional) If you still see caching issues, add ?v=xxx to the <link> tag */




/* ======================================================
   CHAT-CONTAINER VIEWPORT HEIGHT TWEAK
   ====================================================== */

/* 70 px  header  +  40 px page padding  + 90 px search bar/spacing ≈ 200 px */
/* Subtract that from 100 vh so the entire card (messages + input) fits.     */

.chat-forum-page .chat-container {
    height: calc(100vh - 200px);  /* <—— adjust this number if it’s still too tall/short */
    max-height: none !important;  /* override earlier max-height values                  */
}




/* ======================================================
   FINAL OVERRIDE – let the messages area flex correctly
   ====================================================== */







/* ======================================================
   CHAT–FORUM PAGE • keep card inside viewport
   ====================================================== */

/* 1) Limit the overall card height to 80 % of the viewport
      (tweak 80 vh if you need it taller / shorter).       */
.chat-forum-page .chat-container {
    height: auto !important;          /* cancel any fixed height */
    max-height: 80vh;                 /* never exceed 80 % of window */
    display: flex;
    flex-direction: column;
}

/* 2) Let the messages area fill all leftover space **inside**
      the card, but never exceed the card’s own max-height
      minus the height of the input bar & internal paddings.   */






/* =========================================================
   CHAT–FORUM: keep card inside viewport even after search
   ========================================================= */

/* 1) Limit the overall chat card */
.chat-forum-page .chat-container {
    height: auto !important;          /* cancel fixed 600 px */
    max-height: 75vh;                 /* never exceed 75 % of window */
    display: flex;
    flex-direction: column;
}

/* 2) Make only the messages pane scroll within that card  */







/* =======================================================
   CHAT-FORUM  —  hard limits so card never exceeds window
   (add at the very end of your CSS)
   ======================================================= */

/* 1.  Card itself – never taller than 78 % of viewport */
.chat-forum-page .chat-container{
    height:auto !important;             /* cancel fixed height          */
    max-height:78vh !important;         /* hard ceiling                 */
    display:flex;
    flex-direction:column;
}

/* 2.  Messages panel – scroll inside the card            */
/*     Needs its own max-height so it shrinks instead of
       pushing the input row off-screen.                  */




/* =======================================================
   CHAT-FORUM  —  hard limits so card never exceeds window
   (add at the very end of your CSS)
   ======================================================= */

/* 1.  Card itself – never taller than 78 % of viewport */
.chat-forum-page .chat-container{
    height:auto !important;             /* cancel fixed height          */
    max-height:78vh !important;         /* hard ceiling                 */
    display:flex;
    flex-direction:column;
}

/* 2.  Messages panel – scroll inside the card            */
/*     Needs its own max-height so it shrinks instead of
       pushing the input row off-screen.                  */
.chat-forum-page .chat-container .chat-messages{
    flex:1 1 auto;                      /* grow & shrink                */
    min-height:0;                       /* <— critical flexbox fix      */
    overflow-y:auto;                    /* scroll when full             */
    max-height:calc(70vh - 160px);
        /* 78 vh card minus ≈110 px for search bar + input row.
           If your input row is taller/shorter, adjust this number. */
}






.chat-forum-page .chat-container{
    height:auto !important;
    max-height:calc(100vh - 200px) !important;   /* 100vh − TOTAL */
    display:flex;
    flex-direction:column;
}






.chat-forum-page .chat-container{
    height:auto !important;
    max-height:calc(100vh - 200px) !important;   /* 100vh − TOTAL */
    display:flex;
    flex-direction:column;
}







/* ────────────────────────────────────────────────────────────────
   ❶  TWS Assistant  (floating mini-chat) – NEW NAMES ONLY
   ────────────────────────────────────────────────────────────────*/

/* ———  Floating button (keeps old ID / classes) ——— */
#tws-chat-btn            { background: none; border: none; cursor:pointer; }
#tws-chat-btn img        { width:125%; height:125%; border-radius:50%; }

/* ———  Assistant pop-up box  ——— */
#assistant-area {
    position: fixed;
    bottom: 80px;            /* leave room above floating button */
    right: 20px;
    width: 300px;
    max-height: 420px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    z-index: 1100;
    transition: transform .25s, opacity .25s;
}
#assistant-area.hidden    { transform: translateY(100%); opacity:0; pointer-events:none; }

/* ———  Header bar  ——— */
.assistant-header {
    display:flex; align-items:center; justify-content:space-between;
    background:#007bff; color:#fff;
    padding:10px 12px;
    border-top-left-radius:8px; border-top-right-radius:8px;
}
#assistant-close-btn {
    background:none; border:none; color:#fff; font-size:1.2rem; cursor:pointer;
}

/* ———  Message pane  ——— */
.assistant-messages {
    flex:1 1 auto;
    overflow-y:auto;
    padding:12px 14px;
    background:#f6fafd;
    border-bottom:1px solid #e1ecf5;
}

/* bubbles */
.assistant-messages .message        { margin-bottom:12px; padding:10px 14px;
                                       border-radius:8px; font-size:.95rem; }
.assistant-messages .user-message   { background:#e9f3ff; border-left:4px solid #007bff; }
.assistant-messages .bot-message    { background:#fff9e6; border-left:4px solid #ffb300; }

/* ———  Input row  ——— */
.assistant-input-row {
    flex:0 0 auto;
    display:flex; gap:8px;
    padding:12px 14px;
    background:#f9f9f9;
}
#assistant-input {
    flex:1 1 auto;
    padding:8px 10px;
    border:1px solid #ccc; border-radius:4px;
}
#assistant-send-btn {
    flex:0 0 auto;
    padding:8px 16px;
    background:#007bff; color:#fff;
    border:none; border-radius:4px;
    cursor:pointer; transition:background .2s;
}
#assistant-send-btn:hover { background:#0056b3; }

/* (optional) small devices */
@media (max-width:480px){
    #assistant-area{ right:10px; width:260px; }
}






/* --- News Cards: Uniform Height and Text Clamp --- */
.news-grid {
    align-items: stretch; /* ensure all cards line up */
}
.news-item {
    height: 420px; /* adjust as desired, e.g. 300-350px */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden;
    box-sizing: border-box;
    /* Optional: For a nice effect */
    transition: box-shadow 0.2s;
}
.news-item:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}
.news-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    flex-shrink: 0;
}
.news-item p {
    /* Clamp the text to a max number of lines, show ellipsis if too long */
    display: -webkit-box;
    -webkit-line-clamp: 6;   /* Number of lines before cutting off */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
    color: #666;
    margin-bottom: 16px;
    flex-grow: 1;
}
.news-item .btn {
    align-self: flex-start;
    margin-top: auto;
}







@media (max-width: 600px) {
    .news-item {
        height: 250px; /* or whatever looks good on your phone */
    }
    .news-item p {
        -webkit-line-clamp: 4;
    }
}








/* --- News Cards: Mobile Improvements --- */
@media (max-width: 600px) {
    .news-grid {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    .news-item {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: auto;
        box-sizing: border-box;
        padding: 16px 14px;
        margin: 0 auto;
        border-radius: 14px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.07);
        display: flex;
        flex-direction: column;
    }
    .news-item h3 {
        font-size: 1.25rem;
        margin-bottom: 10px;
        color: #007bff;
        line-height: 1.2;
        font-weight: 600;
        word-break: break-word;
    }
    .news-item p {
        font-size: 0.97rem;
        color: #444;
        margin-bottom: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.35;
    }
    .news-item .btn {
        margin-top: 4px;
        padding: 7px 18px;
        font-size: 0.98rem;
        border-radius: 6px;
    }
}







@media (max-width: 600px) {
    .news {
        background: #f6f8fb;
    }
}





/* --- Portfolio Cards: Mobile-Friendly Styles --- */
@media (max-width: 600px) {
  .portfolio-grid {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }
  .portfolio-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    padding: 18px 14px !important;
    margin: 0 auto;
    border-radius: 14px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.09);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .portfolio-item h3 {
    font-size: 1.09rem;
    margin-bottom: 9px;
    color: #007bff;
    font-weight: 600;
    word-break: break-word;
  }
  .portfolio-item p {
    font-size: 0.97rem;
    color: #555;
    margin-bottom: 11px;
  }
  .change-pill {
    margin-bottom: 10px;
    font-size: 0.97rem;
    padding: 4px 9px;
  }
  .portfolio-item .btn {
    margin-top: 5px;
    font-size: 0.99rem;
    border-radius: 6px;
    padding: 9px 20px;
    width: 100%;        /* Make button full width for easier tapping */
    text-align: center;
  }
}





@media (max-width: 600px) {
  .portfolio .container {
    padding: 0 4px;
  }
}





/* ===== Horizontal Scroll Slider for All Devices ===== */
.slider-scroll {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f4f4f4;
  padding-bottom: 8px; /* for scrollbar space */
  margin-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.slider-scroll::-webkit-scrollbar {
  height: 8px;
}
.slider-scroll::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 8px;
}

.portfolio-grid,
.news-grid,
.blog-grid,
.feature-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 24px !important;
  /* Don't break into multiple rows */
}

/* Cards: width for different screens */
.portfolio-item,
.news-item,
.blog-item,
.feature-item {
  flex: 0 0 350px;
  min-width: 300px;
  max-width: 95vw;
  scroll-snap-align: start;
  margin: 0;
  /* Optional: Add a little side padding for aesthetics */
  box-sizing: border-box;
}

/* Make the slider look good on smaller screens */
@media (max-width: 900px) {
  .portfolio-item,
  .news-item,
  .blog-item,
  .feature-item {
    flex: 0 0 75vw;
    min-width: 280px;
    max-width: 90vw;
  }
  .slider-scroll {
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .portfolio-item,
  .news-item,
  .blog-item,
  .feature-item {
    flex: 0 0 88vw;
    min-width: 220px;
    max-width: 96vw;
  }
}

/* Optional: Remove arrows if shown */
.slider-scroll {
  -ms-overflow-style: none;
}
.slider-scroll::-webkit-scrollbar {
  display: none;
}

/* --- Optional: card spacing at slider edges --- */
.slider-scroll > *:first-child {
  margin-left: 10px;
}
.slider-scroll > *:last-child {
  margin-right: 10px;
}







/* Contact page – single-column layout */
.contact-container.single-column {
    max-width: 800px;
    margin: 0 auto;           /* centers the form */
    padding: 0 15px;
}





.flash-messages {
    max-width: 600px;
    margin: 10px auto 25px;
}

.alert {
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 1rem;
    position: relative;
    margin-bottom: 12px;
    color: #0f5132;
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
}

.alert-error, .alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.close-alert {
    cursor: pointer;
    font-weight: bold;
    position: absolute;
    right: 12px;
    top: 6px;
}





.contact-info h2,
.contact-section h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;;
}



.contact-info p,
.contact-section p {
    text-align: center;
    margin-bottom: 10px;
}






@media (max-width: 600px) {
  .cart-container {
    position: static;
  }
  #cart-content {
    position: fixed !important;
    top: 70px; /* adjust based on your header height */
    right: 10px;
    left: 10px;
    width: auto !important;
    max-width: 95vw;
    z-index: 9999;
    border-radius: 12px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.20);
    background: #fff;
  }
  .cart-container.open #cart-content {
    display: block;
    margin-top: 20px;
  }

#assistant-send-btn {
    padding: 8px 9px;
}
  
}







/* Cart drawer collapse/expand */
#cart-items { display: none; max-height: 240px; overflow: auto; margin: 8px 0; }
#cart-items.show { display: block; }
#cart-summary { font-weight: 600; margin: 0 0 8px; }
.cart-line { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:4px 0; }
.cart-line .remove-btn { border:0; background:#eee; padding:2px 6px; cursor:pointer; }









/* Drawer cart */
#cart-content { width: 320px; }
#cart-summary { font-weight: 700; margin: 6px 0 8px; }

/* Hide items until JS toggles .show */
#cart-items { display: none; max-height: 260px; overflow: auto; margin: 6px 0 10px; }
#cart-items.show { display: block; }
.cart-empty { color: #666; margin: 8px 0; }

/* Item card */
.cart-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  margin-bottom: 8px;
}
.cc-thumb {
  width: 56px; height: 56px; object-fit: cover; border-radius: 8px;
}
.cc-body { display: flex; flex-direction: column; gap: 6px; }
.cc-title { font-size: 14px; font-weight: 600; }
.cc-meta { font-size: 13px; display: flex; justify-content: space-between; color: #333; }
.cc-qty { opacity: .8; }
.cc-price { font-weight: 600; }

/* Remove button */
.cc-remove {
  border: 0; background: #f3f4f6; color: #111; width: 28px; height: 28px;
  border-radius: 6px; cursor: pointer; font-size: 18px; line-height: 28px;
}
.cc-remove:hover { background: #e5e7eb; }







/* ----- Status pages (success / cancel) ----- */
.status-page { padding: 64px 16px; }
.status-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  padding: 32px 28px;
  text-align: center;
}
.status-card h1 { margin: 6px 0 8px; font-size: 28px; }
.status-card .lead { color: #475569; margin: 0 0 8px; font-size: 1.05rem; }
.status-card .next-steps {
  list-style: none; padding: 0; margin: 10px 0 22px; color: #64748b;
}
.status-card .next-steps li { margin: 4px 0; }
.status-card .actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 8px; }
.status-card .support { color: #64748b; margin-top: 10px; }

/* Icon styles */
.status-icon {
  width: 72px; height: 72px; margin: 0 auto 10px;
  border-radius: 50%;
  display: grid; place-items: center;
}

/* Contextual color for "canceled" */
.status-card.cancelled .status-icon { background: #fee2e2; color: #dc2626; }

/* Secondary button (pairs with existing .btn / .btn-primary) */
.btn.btn-secondary {
  background: #e5e7eb; color: #111;
}
.btn.btn-secondary:hover { background: #d1d5db; }





/* success theme color */
.status-card.success .status-icon { background: #dcfce7; color: #16a34a; }






.blog-list .blog-card {
  background:#fff; border:1px solid #eee; border-radius:12px;
  padding:18px 20px; margin:12px 0; box-shadow:0 2px 10px rgba(0,0,0,.04);
}
.blog-detail .post-hero { width:100%; height:auto; border-radius:12px; margin:10px 0 18px; }
.blog-detail .post-body { font-size:1.05rem; line-height:1.7; color:#2b2b2b; }
.post-actions { display:flex; gap:10px; margin-top:16px; }






/* ─────────────────────────────────────────────
   Blog – Detail + List
   ───────────────────────────────────────────── */

.blog-detail .post {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 18px 40px;
}

.blog-detail .page-title {
  font-size: 2.25rem;         /* ~36px */
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.blog-detail .meta {
  color: #6b7280;             /* gray-500 */
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.blog-detail .post-hero {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 26px rgba(0,0,0,.08);
  margin: 10px 0 22px;
}

.blog-detail .post-body {
  color: #1f2937;             /* gray-800 */
  font-size: 1.08rem;
  line-height: 1.8;
}

/* Paragraphs & links */
.blog-detail .post-body p { margin: 0 0 1.05rem; }
.blog-detail .post-body a { color: #0b63ff; text-decoration: none; }
.blog-detail .post-body a:hover { text-decoration: underline; }

/* Headings (works if you use Markdown or add <h2>/<h3> manually) */
.blog-detail .post-body h2 {
  margin: 1.8em 0 .6em;
  font-size: 1.6rem;
  font-weight: 800;
}
.blog-detail .post-body h3 {
  margin: 1.4em 0 .4em;
  font-size: 1.25rem;
  font-weight: 700;
}

/* Lists & blockquotes */
.blog-detail .post-body ul,
.blog-detail .post-body ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.blog-detail .post-body li { margin: .25rem 0; }
.blog-detail .post-body blockquote {
  border-left: 4px solid #d1d5db;
  background: #f9fafb;
  padding: .8rem 1rem;
  margin: 1rem 0;
  color: #374151;
}

/* Code & HR (if you ever use them) */
.blog-detail .post-body code {
  background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 6px;
  padding: .1rem .35rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.blog-detail .post-body pre code {
  display: block; padding: .9rem 1rem; overflow-x: auto;
}
.blog-detail .post-body hr {
  border: 0; height: 1px; background: #e5e7eb; margin: 2rem 0;
}

/* Buttons row under article */
.blog-detail .post .post-actions { display: flex; gap: 10px; margin-top: 20px; }

/* Blog list page cards */
.blog-list-page .blog-list {
  max-width: 980px; margin: 0 auto; padding: 10px 18px 40px;
}
.blog-list-page .blog-card {
  background: #fff; border: 1px solid #eee; border-radius: 12px;
  padding: 16px 18px; margin: 12px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.blog-list-page .blog-card h2 { margin: 0 0 6px; font-weight: 800; }
.blog-list-page .blog-card .meta { color: #6b7280; margin-bottom: 6px; }
.blog-list-page .blog-card p { margin: 0 0 .6rem; line-height: 1.7; }

/* Responsive tweaks */
@media (max-width: 640px) {
  .blog-detail .page-title { font-size: 1.85rem; }
  .blog-detail .post { padding: 16px 14px 32px; }
}








/* ─────────────────────────────────────────────
   Blog — detail page polish (no Markdown needed)
   ───────────────────────────────────────────── */

.blog-detail .post {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.blog-detail .page-title {
  font-size: 2.25rem;        /* ~36px */
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.blog-detail .meta {
  color: #6b7280;            /* gray-500 */
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.blog-detail .post-hero {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  margin: 12px 0 22px;
}

.blog-detail .post-body {
  color: #1f2937;            /* gray-800 */
  font-size: 1.08rem;
  line-height: 1.85;
}

/* Paragraph rhythm */
.blog-detail .post-body p {
  margin: 0 0 1.05rem;
}

/* Make the first paragraph feel like a lead-in */
.blog-detail .post-body p:first-of-type {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #111827;            /* gray-900 */
}

/* If you ever add <hr>, <blockquote>, or inline code later,
   these styles will make them look nice too (safe to keep). */
.blog-detail .post-body blockquote {
  border-left: 4px solid #e5e7eb;
  background: #f9fafb;
  padding: .9rem 1rem;
  margin: 1.2rem 0;
  color: #374151;
  border-radius: 8px;
}

.blog-detail .post-body code {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: .12rem .35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Buttons under the article */
.blog-detail .post .post-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

/* Optional: make the action buttons slightly larger on blog pages */
.blog-detail .post .post-actions .btn {
  padding: 10px 16px;
  font-weight: 600;
  border-radius: 10px;
}

/* ─────────────────────────────────────────────
   Blog — list page polish (safe even if not used)
   ───────────────────────────────────────────── */
.blog-list-page .blog-list {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 18px 44px;
}

.blog-list-page .blog-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 12px 0;
  box-shadow: 0 10px 28px rgba(0,0,0,.04);
}

.blog-list-page .blog-card h2 {
  margin: 0 0 4px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.blog-list-page .blog-card .meta {
  color: #6b7280;
  margin-bottom: 8px;
}

.blog-list-page .blog-card p {
  margin: 0 0 .6rem;
  line-height: 1.75;
}

/* ─────────────────────────────────────────────
   Mobile tweaks
   ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .blog-detail .page-title { font-size: 1.9rem; }
  .blog-detail .post { padding: 18px 14px 36px; }
}





/* =========================
   Legal pages (readability)
   ========================= */
.legal-page {
  background: #f7f9fc;                 /* soft page backdrop */
  padding: 40px 0 56px;
  counter-reset: legalSec;             /* for auto-numbered H2s */
}

.legal-page .container {
  max-width: 920px;                    /* comfortable reading width */
  margin: 0 auto;
  background: #ffffff;                 /* white “card” */
  border: 1px solid #eef0f3;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,.05);
  padding: 28px 28px 32px;
}

/* Top title + “Last updated” pill */
.legal-page h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

.legal-page .container > p:first-of-type {
  /* your “Last updated …” line */
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 12px;
  font-size: 0.95rem;
  color: #374151;
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
  border-radius: 999px;                /* pill */
}

/* Section headings */
.legal-page h2 {
  counter-increment: legalSec;         /* auto-number each H2 */
  position: relative;
  margin: 24px 0 10px;
  padding-top: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
}
.legal-page h2::before {
  content: counter(legalSec) ". ";
  color: #64748b;                      /* muted number */
  font-weight: 800;
}

/* Paragraphs / body text */
.legal-page p {
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1f2937;
}

/* Lists if you add any later */
.legal-page ul,
.legal-page ol {
  margin: 0 0 16px 1.25rem;
  line-height: 1.8;
  color: #1f2937;
}

/* Emphasis */
.legal-page strong { color: #0f172a; }
.legal-page em     { color: #374151; }

/* Print-friendly */
@media print {
  .legal-page { background: #fff; padding: 0; }
  .legal-page .container {
    border: none; box-shadow: none; padding: 0;
    max-width: 700px;
  }
}








/* ─────────────────────────────────────────────
   Card layout for News & Blog (desktop → mobile)
   ───────────────────────────────────────────── */

/* Shared grid for both sections */
.news .news-grid,
.blog .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;                 /* space between cards */
  align-items: stretch;      /* equal card heights */
}

/* Card shell */
.news .news-item,
.blog .blog-item {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 24px;
  display: flex;             /* lets the button stick to the bottom */
  flex-direction: column;
  min-height: 260px;
  box-shadow:
    0 1px 3px rgba(0,0,0,.06),
    0 8px 24px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.news .news-item:hover,
.blog .blog-item:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(0,0,0,.12),
    0 2px 8px rgba(0,0,0,.08);
}

/* Typography */
.news .news-item h3,
.blog .blog-item h3 {
  margin: 0 0 10px;
  line-height: 1.25;
  font-size: clamp(1.05rem, 1.1vw + .9rem, 1.35rem);
}

.news .news-item p,
.blog .blog-item p {
  color: #4b5563;
  margin: 0 0 16px;
  line-height: 1.55;
  font-size: clamp(.95rem, .25vw + .9rem, 1.05rem);
  /* multi-line clamp (keeps cards even) */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;   /* show up to 5 lines on desktop */
  overflow: hidden;
}

/* Keep the button pinned to bottom of the card */
.news .news-item .btn,
.blog .blog-item .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
  .news .news-grid,
  .blog .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  .news .news-item p,
  .blog .blog-item p {
    -webkit-line-clamp: 4;
  }
}

/* Mobile: horizontal snap scrolling, big easy-to-read cards */
@media (max-width: 700px) {
  .slider-scroll {
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-behavior: smooth;
    scrollbar-width: thin;        /* Firefox */
  }
  .slider-scroll::-webkit-scrollbar { height: 6px; }   /* Chrome/Safari */
  .slider-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.2);
    border-radius: 4px;
  }

  .news .news-grid,
  .blog .blog-grid {
    display: grid;
    grid-auto-flow: column;       /* horizontal */
    grid-auto-columns: 88%;       /* “peek” of next card */
    gap: 16px;
    scroll-snap-type: x mandatory;
  }

  .news .news-item,
  .blog .blog-item {
    min-height: 220px;
    scroll-snap-align: start;
  }

  .news .news-item p,
  .blog .blog-item p {
    -webkit-line-clamp: 6;        /* allow a bit more text on mobile */
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .news .news-item,
  .blog .blog-item {
    transition: none;
  }
}






/* === FINAL BLOG H-SCROLL FIX (phones) === */
@media (max-width:700px){
  /* the scrollable rail */
  #blog .slider-scroll{
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-x;
    scroll-snap-type:x mandatory;
    padding-bottom:10px;
  }

  /* lay items in one row and make the row wider than the viewport */
  #blog .blog-grid{
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:16px !important;
    width:max-content !important;
  }

  /* each card nearly full screen */
  #blog .blog-item{
    flex:0 0 86vw !important;   /* 80–90vw is fine */
    max-width:none !important;
    scroll-snap-align:start;
  }

  /* neutralize earlier edge margins that can clip the last card */
  #blog .slider-scroll > *:first-child{ margin-left:0 !important; }
  #blog .slider-scroll > *:last-child { margin-right:0 !important; }
}

