:root {
    /* Primary Colors */
    --primary-color: #17479E;
    --primary-light: #3867B5;
    --primary-dark: #0D2B66;

    /* Secondary Colors */
    --secondary-color: #4A90E2;
    --secondary-light: #72A8E8;
    --secondary-dark: #2C75C8;

    /* Neutral Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F7FA;
    --bg-tertiary: #E9EEF4;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #999999;

    /* Border Colors */
    --border-color: #E1E7EF;
    --border-light: #F0F3F7;

    /* Overlay Colors */
    --overlay-light: rgba(23, 71, 158, 0.1);
    --overlay-medium: rgba(23, 71, 158, 0.3);
    --overlay-dark: rgba(23, 71, 158, 0.7);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #17479E, #4A90E2);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(23, 71, 158, 0.1);
    --shadow-md: 0 4px 8px rgba(23, 71, 158, 0.15);
    --shadow-lg: 0 8px 16px rgba(23, 71, 158, 0.2);
}
html{
    scroll-behavior: smooth;
  }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    background-color: var(--gray-light);
    line-height: 1.6;
}
/*Navbar styles*/
.navbar {
    background-color: var(--bg-primary);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: fixed; /* Make navbar fixed */
    top: 0; /* Stick to top */
    left: 0; /* Stick to left */
    right: 0; /* Stick to right */
    z-index: 1000; /* Ensure navbar stays on top */
}
.logo {
    display: flex;
    align-items: center;
}

.logo img,.footer-container .first img {
    height: 40px;
    margin-right: 10px;
}

/* .logo span {
    font-weight: bold;
    font-size: 1.2rem;
} */

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center; /* Center items vertically */
}

 .menu li {
    margin: 0 1rem;
 }
.menu a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem;
    display: block;
    transition: color 0.3s ease;
}
.menu a:hover {
    color: var(--primary-color);
}
.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-md);
    list-style: none;
    padding: 0;
    min-width: 150px;
    z-index: 1;
    border: 1px solid var(--border-color);
}

.submenu li {
  margin: 0; /* Remove margin for submenu items */
}

.submenu a {
    padding: 0.5rem 1rem;
    display: block;
}

.submenu a:hover {
    background-color: var(--bg-secondary);
}

.has-submenu:hover .submenu {
    display: block;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
}
.auth-buttons button.login {
    background-color: var(--bg-primary);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.auth-buttons button.login:hover {
    background-color: var(--overlay-light);
}

.auth-buttons button.register {
    background-color: var(--primary-color);
    color: var(--bg-primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.auth-buttons button.register:hover {
    background-color: var(--primary-light);
}
.auth-buttons button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.menu-toggle {
    display: none; /* Hide by default on larger screens */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}
/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px; /* Initially hidden */
    width: 250px;
    height: 100%;
    background-color: var(--bg-primary);background-color: white;
    box-shadow: var(--shadow-lg);
    transition: left 0.3s ease;
    z-index: 2; /* Ensure sidebar appears above navbar */
    overflow-y: auto; /* Enable scrolling if content overflows */
    display: none;
}
.sidebar .submenu {
    background-color: var(--bg-secondary);
}
.sidebar.active {
    left: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    display: block; /* Make it a block element */
    margin-left: auto; /* Push it to the right */
    margin-bottom: 1rem;
    color: var(--text-color);
}

.close-btn:hover {
    color: var(--primary-color);
}
.sidebar .menu {
    flex-direction: column;
    padding-top: 1rem;
}

.sidebar .menu a {
  padding: 0.5rem 1rem;
  color: var(--text-color);
}

.sidebar .menu a:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

.sidebar .has-submenu .submenu {
    position: static; /* Override absolute positioning */
    box-shadow: none; /* Remove shadow */
    display: none; /* Initially hidden */
}

.sidebar .has-submenu.active > a {
    color: var(--primary-color);
    background-color: var(--overlay-light);
}
.sidebar .has-submenu.active .submenu {
  display: block;
}

.sidebar .auth-buttons {
  flex-direction: column;
  padding: 1rem;
}

.sidebar .auth-buttons button {
  width: 100%;
  margin-bottom: 0.5rem;
}

/*BLOG Details Styles*/


.blog-detail {
    max-width: 800px;
    margin: 7rem auto 5rem;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 30px;
}

.blog-header {
    text-align: center;
    margin-bottom: 30px;
}

.blog-title {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #666;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    font-size: 0.9em;
}

.blog-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

.blog-content {
    font-size: 1.1em;
    color: var(--text-color);
}

.blog-content h2 {
    color: var(--primary-color);
    margin-top: 30px;
}

.back-button {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.back-button:hover {
    text-decoration: underline;
}


/*Footer styles*/


    /*Footer styles*/
    .main-footer {
        background: var(--gradient-primary);
        color: var(--bg-primary);
        padding: 60px 0 30px;
    }
    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }

    .footer-section h3 {
        color: var(--bg-primary);
        font-size: 1.25rem;
        margin-bottom: 20px;
        font-weight: 600;
        position: relative;
    }
    
    .footer-section h3::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 40px;
        height: 2px;
        background: var(--bg-primary);
        border-radius: 2px;
    }
    .footer-divider {
        width: 50px;
        height: 3px;
        background-color: #3b82f6;
        margin: 0 0 20px;
        border: none;
    }
    .footer-section .Follow{
        text-align: left;
    }
    .social-links {
        display: flex;
        gap: 15px;
    }
.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

    

.social-link:hover {
    background-color: var(--bg-primary);
    color: var(--primary-color);
    transform: translateY(-3px);
}


    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: all 0.3s ease;
        display: inline-block;
    }

    .footer-links a:hover {
        color: var(--bg-primary);
        transform: translateX(5px);
    }

    .footer-section .contact-info {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: left;
        align-items: left;
    }

    .footer-section .contact-info li {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
    }

    .footer-section .contact-info i {
        color: var(--bg-primary);
        font-size: 18px;
        transition: transform 0.3s ease;
    }

    .footer-section .contact-info a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .footer-section .contact-info a:hover {
        color: var(--bg-primary);
    }
    
.copyright {
    color: var(--bg-primary);
    font-size: 0.875rem;
    margin-top: 2rem;
    padding: 1rem 12px;
    text-align: center;
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
}



@media (max-width: 800px) {
    .navbar .menu {
        display: none; /* Hide the main menu */
    }

    .navbar .auth-buttons {
        display: none; /* Hide auth buttons in navbar */
    }

    .menu-toggle {
        display: block; /* Show the menu toggle button */
    }
    .sidebar{
        display: block;
    }
        
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }
    
    .footer-section hr{
        display: none;
    }
    .footer-section .Follow{
        text-align: center;
    }
    footer .social-links{
    justify-content: center;
    flex-direction: column;
    align-items: left;
    }
}




@media (max-width: 576px) {
    .footer-divider{
        text-align:center;
    }
    
    
    .footer-section .contact-info {
    text-align: center;
    margin: 0 auto;
    padding: 0;
    }
    
    .footer-section .contact-info li {
    display: inline-block;
    margin: 5px 0;
    width: 100%; /* Ensures each item is centered */
    }
    
    .contact-info a {
    text-decoration: none;
    color: inherit;
    }
    
    .footer-section .contact-info i {
    margin-right: 5px;
    }
    footer hr{
      display :none;
    }
    .footer-section h3::after {
        display: none;
    }
    
    footer .social-links{
        justify-content: center;
        flex-direction: column;
        align-items: center;
        }
    }
