/* Import your main site's CSS variables */
:root {
    --primary: #003366;
    --secondary: #FFD700;
    --accent: #FF5722;
    --light: #f8f9fa;
    --dark: #343a40;
    --text: #333333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.6;
    width: 100%;
    max-width: 100vw; 
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
}

img {
    max-width: 100%;
}

/* Header Styles */
header {
    background-color: var(--primary);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    color: white;
    font-size: 1.8rem;
}

.logo span {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 1.5rem; /* Standardize the margin between menu items */
}

.nav-menu a {
    color: white;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0; /* Add consistent padding */
    display: inline-block; /* Ensures padding works properly */
}

.nav-menu a:hover, .nav-menu .active {
    color: var(--secondary);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Container for consistent width */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Consistent padding on both sides */
}

/* Blog Banner */
.blog-banner {
    background-image: linear-gradient(135deg, #336699, #1a4a7e);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 4rem 4rem;
    width: 100%;
}

.blog-banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-banner p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Blog Categories */
.blog-categories {
    padding: 2rem 1rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-btn {
    background: none;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover {
    background-color: rgba(0, 51, 102, 0.05);
}

.category-btn.active {
    background-color: var(--primary);
    color: white;
}

/* Blog Listing */
.blog-listing {
    padding: 4rem 1rem;
    background-color: var(--light);
    width: 100%;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
}

/* Blog Card */
.blog-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
    line-height: 1.4;
}

.blog-excerpt {
    margin-bottom: 1.5rem;
    color: #555;
    flex-grow: 1;
}

.blog-read-more {
    font-weight: 600;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-right: 20px;
    align-self: flex-start;
    transition: color 0.3s;
}

.blog-read-more::after {
    content: '→';
    position: absolute;
    right: 0;
    transition: transform 0.3s;
}

.blog-read-more:hover {
    color: var(--accent);
}

.blog-read-more:hover::after {
    transform: translateX(5px);
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    width: 100%;
}

.page-numbers {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.page-numbers li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s;
}

.page-numbers li.active a,
.page-numbers li a:hover {
    background-color: var(--primary);
    color: white;
}

.page-numbers li.next a {
    font-size: 1.2rem;
}

/* Subscribe Section */
.subscribe-section {
    padding: 4rem 1rem;
    background-color: white;
    width: 100%;
}

.subscribe-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--primary);
    color: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.subscribe-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.subscribe-box p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.subscribe-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    flex-grow: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: inherit;
    font-size: 1rem;
}

.subscribe-form button {
    padding: 0.8rem 1.5rem;
    border-radius: 0 4px 4px 0;
    background-color: var(--secondary);
    color: var(--primary);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.subscribe-form button:hover {
    background-color: white;
}


/* Back to top button */
.back-to-top {
position: fixed;
bottom: 20px;
right: 20px;
width: 50px;
height: 50px;
background-color: var(--secondary);
color: var(--primary);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
cursor: pointer;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
z-index: 999;
opacity: 0;
visibility: hidden;
}

.back-to-top.visible {
opacity: 1;
visibility: visible;
}

.back-to-top:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


@media screen and (max-width: 768px) {
.footer-grid {
    gap: 2rem;
}

.newsletter-form {
    flex-direction: column;
}

.newsletter-form input {
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.newsletter-form button {
    border-radius: 4px;
    padding: 0.8rem;
}
.nav-menu {
    display: none; /* This should be set to 'none' by default on mobile */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    padding: 1rem;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    z-index: 999; /* Add this to ensure menu appears above other content */
}

.nav-menu.active {
    display: flex; /* Only show when .active class is added via JS */
}

.mobile-menu {
    display: block ;
    cursor: pointer;
    font-size: 1.5rem;
    background-color: transparent;
    border: none;
    color: white;
}

.subscribe-form {
    flex-direction: column;
    width: 100%;
}

.subscribe-form input {
    width: 100%;
    margin-bottom: 0.8rem;
    border-radius: 4px;
}

.subscribe-form button {
    width: 100%;
    border-radius: 4px;
}

.subscribe-box {
    padding: 2rem 1rem;
}

.container {
    padding: 0 15px; /* Slightly reduced but still consistent padding for mobile */
}

.blog-post-container {
    padding: 1.5rem;
}

.blog-post-header h1 {
    font-size: 1.8rem;
    padding: 0 10px;
}

.blog-banner h1 {
    font-size: 2.2rem;
}

.blog-banner p {
    font-size: 1rem;
}

.blog-categories {
    padding: 1.5rem 0.5rem;
}

.category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.subscribe-box h2 {
    font-size: 1.7rem;
}

.subscribe-box p {
    font-size: 1rem;
}
}

/* Featured chat Section Styles */        
.chat-widget {
position: fixed;
bottom: 80px;
right: 20px;
z-index: 9999;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chat-button {
background-color: var(--secondary);
color: var(--primary);
border-radius: 50px;
padding: 12px 20px;
display: flex;
align-items: center;
cursor: pointer;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: all 0.3s;
}

.chat-button:hover {
transform: translateY(-2px);
}

.chat-button i {
margin-right: 8px;
font-size: 1.2rem;
}

.chat-container {
position: absolute;
bottom: 80px;
right: 0;
width: 320px;
background-color: white;
border-radius: 10px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
display: none;
overflow: hidden;
}

.chat-header {
background-color: #003366;
color: white;
padding: 15px;
display: flex;
justify-content: space-between;
align-items: center;
}

.chat-header h3 {
margin: 0;
font-size: 1.1rem;
}

.chat-header button {
background: none;
border: none;
color: white;
cursor: pointer;
font-size: 1.1rem;
}

.chat-body {
padding: 15px;
}

.chat-messages {
margin-bottom: 15px;
max-height: 200px;
overflow-y: auto;
}

.message {
margin-bottom: 10px;
padding: 10px 15px;
border-radius: 18px;
max-width: 80%;
word-wrap: break-word;
}

.message p {
margin: 0;
}

.received {
background-color: #f0f2f5;
margin-right: auto;
}

.sent {
background-color: #e3f2fd;
margin-left: auto;
text-align: right;
}

.form-group {
margin-bottom: 12px;
}

.form-group input,
.form-group textarea {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-family: inherit;
font-size: 0.9rem;
}

.form-group textarea {
resize: none;
}

.chat-submit {
width: 100%;
background-color: #003366;
color: white;
border: none;
padding: 10px;
border-radius: 4px;
cursor: pointer;
font-weight: 600;
transition: background-color 0.3s;
}

.chat-submit:hover {
background-color: #002244;
}

.chat-success {
text-align: center;
display: none;
}

.chat-success i {
font-size: 3rem;
color: #4CAF50;
margin-bottom: 10px;
}

.chat-success p {
margin-bottom: 15px;
}

#chat-new-message {
background-color: #003366;
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
font-weight: 600;
transition: background-color 0.3s;
}

#chat-new-message:hover {
background-color: #002244;
}

/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}

.chat-container.active {
display: block;
animation: fadeIn 0.3s ease-out forwards;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
.chat-container {
    width: 300px;
    right: 0;
}

.chat-button span {
    display: none;
}

.chat-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    justify-content: center;
    padding: 0;
}

.chat-button i {
    margin-right: 0;
}
}
.floating-whatsapp {
    position: fixed;
    bottom: 85px; /* Position above the back-to-top button */
    right: 25px;
    z-index: 999;
}

.whatsapp-float {
    width: 50px;
    height: 50px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Smaller button on mobile */
@media screen and (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 60px;
        right: 10px;
    }
}
