/*
 * MERGED STYLES CSS
 * This file is a consolidated version of styles.css and style2.css
 */

/* CSS Variables - Light Mode */
:root {
    --background-color: #ffffff;
    --text-color: #000000;
    --header-bg: #74681f;
    --card-bg: #f8f9fa;
    --card-bg-hover: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(249, 250, 251, 1) 100%);
    --heading-color: #1f2937;
    --primary-color-light: #6366f1;
    --primary-color-dark: #8b5cf6;
    --primary-color-rgb: 99, 102, 241;
    --primary-color-dark-rgb: 139, 92, 246;
    --button-bg: #FF4500;
    --button-hover-bg: #e63e00;
    --success-color: #10b981;
    --muted-text-color: #6c757d;
    --outline-button-text: #212529;
    --navbar-bg: rgb(222, 204, 174);
}

/* CSS Variables - Dark Mode */
.dark-mode {
    --background-color: #121212;
    --text-color: #ffffff;
    --header-bg: #dee0d6;
    --navbar-bg: #1a1a1a;
    --card-bg: #222;
    --card-bg-hover: linear-gradient(to bottom, rgba(34, 34, 34, 1) 0%, rgba(51, 51, 51, 1) 100%);
    --heading-color: #ffffff;
    --primary-color-light: #8b5cf6;
    --primary-color-dark: #6366f1;
    --primary-color-rgb: 139, 92, 246;
    --primary-color-dark-rgb: 99, 102, 241;
    --button-bg: #FF5722;
    --button-hover-bg: #e64a19;
    --success-color: #10b981;
    --muted-text-color: #adb5bd;
    --outline-button-text: #ffffff;
}

/* General Element Styles */
body {
    background-color: var(--background-color);
    color: var(--text-color);
}

header {
    /* background-color: var(--header-bg); */
    color: var(--text-color);
    padding: 1rem 0;
}

/* -----------Navbar Styles-------------- */
#navbar .nav-link,
#navbar .navbar-brand,
#navbar .nav-item > a {
    color: black !important;
    transition: all 0.5s ease-in-out;
}

/* When scrolled, change to dark */
#navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

#navbar.scrolled .nav-link,
#navbar.scrolled .navbar-brand,
#navbar.scrolled .nav-item > a {
    color: white !important;
}

.nav-link.active {
    font-weight: bold;
    color:rgb(0, 0, 0) !important;
    border-bottom: 2px solidrgb(0, 0, 0);
}

/* Card Base Styles */
.about-page .card {
    border: none;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Hover Effects */
.about-page .card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Icon Wrapper Styles */
.about-page .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color-light) 0%, var(--primary-color-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

/* Icon Styles */
.about-page .icon-wrapper i {
    color: white;
    font-size: 2rem;
    transition: all 0.5s ease;
}

/* Icon Hover Effects */
.about-page .card:hover .icon-wrapper {
    transform: rotate(360deg);
    background: linear-gradient(135deg, var(--primary-color-dark) 0%, var(--primary-color-light) 100%);
}

.about-page .card:hover .icon-wrapper i {
    transform: scale(1.2);
}

/* Card Content Hover Effects */
.about-page .card-body {
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
}

.about-page .card:hover .card-body {
    background: var(--card-bg-hover);
    transition: all 0.3s ease;
}

/* List Item Hover Effects */
.about-page .card .list-unstyled li {
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.about-page .card .list-unstyled li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color-light);
    transition: all 0.3s ease;
}

.about-page .card .card:hover .list-unstyled li:before {
    transform: translateY(-50%) scale(1.5);
    background: var(--primary-color-dark);
}

/* Card Title Styles */
.about-page .card h3 {
    color: var(--heading-color); /* Dynamic heading color */
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-page .card h3:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color-light) 0%, var(--primary-color-dark) 100%);
    transition: all 0.3s ease;
}

.about-page .card:hover h3:after {
    width: 100%;
}

/* Card Text Hover Effects */
.about-page .card-text {
    color: var(--text-muted-color); /* Dynamic muted text color */
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.about-page .card:hover .card-text {
    color: var(--text-color); /* Switch to main text color on hover */
}

/* Checkmark Icon Styles */
.about-page .check-icon {
    color: var(--success-color); /* Dynamic success color */
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.about-page .card:hover .check-icon {
    transform: scale(1.2);
}

/* Card Border Glow Effect */
.about-page .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0.5rem;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color-light) 0%, var(--primary-color-dark) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: all 0.3s ease;
}

.about-page .card:hover::before {
    opacity: 1;
}

/* Mission Section Styles */
.about-page .mission-section {
    margin-top: 5rem;
    padding: 3rem 0;
    background: linear-gradient(to right, rgba(var(--primary-color-rgb), 0.05), rgba(var(--primary-color-dark-rgb), 0.05));
    border-radius: 1rem;
}

/* Headings */
h1, h2, h3, h4, h6 {
    color: var(--text-color);
}

/* Featured Posts and Recent Posts headings */
.container h2.mb-4 {
    color: var(--text-color);
}

/* Muted Text */
.card .card-text.text-muted,
.card .card-text.text-muted small {
    color: var(--muted-text-color); /* Use the muted text color */
}

/* Buttons */
button,
.btn-primary,
.btn-secondary,
.btn-outline-primary,
.btn-outline-secondary {
    background-color: var(--button-bg);
    color: var(--button-text-color);
    border: none;
}

button:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    background-color: var(--button-hover-bg);
    color: var(--button-text-color);
}

.dark-mode .bg-light {
    background-color: #333 !important;
    color: #fff !important;
}


body {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
}

.container h2.mb-4 {
    color: var(--text-color);
}

.card .card-text.text-muted,
.card .card-text.text-muted small {
    color: var(--muted-text-color);
}

/* Layout & Structure */
header {
    color: var(--text-color);
    padding: 1rem 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 8rem 0 6rem;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-bottom: 5rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.hero-section .lead {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1.35rem;
}

.hero-section .btn-light {
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Navigation & Header */
/* Cursor animation enhancement */
.cursor {
    font-weight: 300;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 0 4rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .min-vh-75 {
        min-height: 60vh;
    }
}

/* Add this to your CSS file */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Add this to your CSS file */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


.bg-moving-gradient {
    background: linear-gradient(45deg, #bb3f0e, #eb2907);
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
}


/* Lazy Loading Styles */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img.lazy-loaded {
    opacity: 1;
}

/* Back to Top Button */
#back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--button-bg);
    color: var(--button-text-color);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#back-to-top-btn:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

/* Ensure the button is accessible */
#back-to-top-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Reading Time Indicator */
.reading-time {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--muted-text-color);
    margin-bottom: 1rem;
    padding: 0.25rem 0.5rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.dark-mode .reading-time {
    background-color: rgba(255, 255, 255, 0.1);
}

.reading-time i {
    margin-right: 0.5rem;
    color: var(--button-bg);
}

/* Social Sharing Buttons */
.social-share-container {
    margin: 2rem 0;
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .social-share-container {
    border-color: rgba(255, 255, 255, 0.1);
}

.share-heading {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.share-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--button-bg);
    color: var(--button-text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-button:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-3px);
    color: var(--button-text-color);
}

/* Specific colors for social platforms */
.share-button:nth-child(1) { background-color: #3b5998; } /* Facebook */
.share-button:nth-child(2) { background-color: #1da1f2; } /* Twitter */
.share-button:nth-child(3) { background-color: #0077b5; } /* LinkedIn */
.share-button:nth-child(4) { background-color: #25d366; } /* WhatsApp */
.share-button:nth-child(5) { background-color: #777; }    /* Email */

.share-button:nth-child(1):hover { background-color: #2d4373; }
.share-button:nth-child(2):hover { background-color: #0c85d0; }
.share-button:nth-child(3):hover { background-color: #005983; }
.share-button:nth-child(4):hover { background-color: #1da851; }
.share-button:nth-child(5):hover { background-color: #555; }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Initial state: hidden and slightly translated */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Visible state: fully opaque and in position */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-out {
    opacity: 0;
    transition: opacity 1s ease-out;
}
/* Default Transparent Navbar */
#navbar {
    background-color: var(--navbar-bg);
    transition: all 0.5s ease-in-out;
}

.dark-mode .form-text {
    color: #ffffff !important;
}

/* Ensure the edit button is blue in dark mode */
.btn-edit {
    background-color: #007bff !important; /* Blue */
    color: #ffffff !important;
    border: none;
}
/* Optional: Hover state for edit button in dark mode */
.btn-edit:hover {
    background-color: #0069d9 !important;
}

.btn-newPost{
    background-color: #ff9500d0 !important; 
    color: #ffffff !important;
    border: none;
}
.btn-newPost:hover{
    background-color: #ff9500d0 !important; 
}


/* Navbar buttons in light mode */
#navbar .btn-outline-light {
    color: black !important;
    border-color: black !important;
}

#navbar .btn-outline-light:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

/* Dark mode toggle text color in light mode */
#dark-mode-toggle {
    color: black !important;
    border-color: black !important;
}

#navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

#navbar.scrolled .nav-link,
#navbar.scrolled .navbar-brand,
#navbar.scrolled .nav-item > a {
    color: white !important;
}

/* Navbar buttons when scrolled */
#navbar.scrolled .btn-outline-light,
#navbar.scrolled .search-button,
#navbar.scrolled #dark-mode-toggle {
    color: white !important;
    border-color: white !important;
}

#navbar.scrolled .btn-outline-light:hover,
#navbar.scrolled .search-button:hover,
#navbar.scrolled #dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Cards & Content Containers */
.card {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.about-page .card {
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.about-page .card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ------------Posts Page Styles----------------- */
.posts-page .card {
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    position: relative;
}

.posts-page .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.posts-page .card .card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: transform 0.3s ease;
}

.posts-page .card:hover .card-img-top {
    transform: scale(1.05);
}

/* Buttons & Interactive Elements */
button,
.btn-primary,
.btn-secondary,
.btn-outline-primary,
.btn-outline-secondary {
    background-color: var(--button-bg);
    color: var(--button-text-color);
    border: none;
}

button:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    background-color: var(--button-hover-bg);
    color: var(--button-text-color);
}

.cursor {
    font-weight: 300;
    animation: blink 1s infinite;
}

.reaction-btn {
    transition: all 0.2s ease;
    min-width: 70px;
}

.reaction-btn:hover {
    transform: translateY(-2px);
}

.reaction-btn.active {
    font-weight: bold;
}

.btn-edit {
    background-color: #007bff !important;
    color: #ffffff !important;
    border: none;
}

.btn-edit:hover {
    background-color: #0069d9 !important;
}

.btn-newPost {
    background-color: #ff9500d0 !important; 
    color: #ffffff !important;
    border: none;
}

.btn-newPost:hover {
    background-color: #ff9500d0 !important; 
}

/* Back to Top Button */
#back-to-top-btn {
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 999;
    display: none;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 10px 14px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top-btn.show {
    display: inline-block;
}

#back-to-top-btn:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Forms & Inputs */
.form-control {
    background-color: #ffffff;
    color: #212529;
    border-color: #ced4da;
}

.form-control:focus {
    border-color: var(--button-bg);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25);
}

/* Alerts & Notifications */
.alert-info, .login-alert {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

/* Footer */
/* ----------- Footer Styles -------------*/
footer {
    background-color: #212529; /* Dark background */
    color: #fff;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

footer h5 {
    font-weight: bold;
}

footer ul {
    padding-left: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: #fff;
    text-decoration: none;
    text-decoration: none !important; 
    transition: color 0.3s ease, background-color 0.3s ease, padding-left 0.2s ease;
    padding-left: 0;
}

footer ul li a:hover {
    color: #FF9800;
    background-color: rgba(255, 152, 0, 0.2);
    padding-left: 5px;
    border-radius: 3px;
}

/* Animations & Transitions */
@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes countChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.count-changed {
    animation: countChange 0.5s ease;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.bg-moving-gradient {
    background: linear-gradient(45deg, #bb3f0e, #eb2907);
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
}

/* Dark Mode Overrides */
.dark-mode p,
.dark-mode span:not(.badge),
.dark-mode div:not(.badge),
.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6 {
    color: var(--text-color);
}

/* Navbar text color in dark mode */
.dark-mode #navbar .nav-link,
.dark-mode #navbar .navbar-brand,
.dark-mode #navbar .nav-item > a,
.dark-mode #navbar .dropdown-toggle,
.dark-mode #navbar button,
.dark-mode #navbar .navbar-toggler-icon {
    color: white !important;
}

/* Navbar buttons in dark mode */
.dark-mode #navbar .btn-outline-light {
    color: white !important;
    border-color: white !important;
}

.dark-mode #navbar .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Dark mode toggle text color in dark mode */
.dark-mode #dark-mode-toggle {
    color: white !important;
    border-color: white !important;
}

/* Ensure dropdown menu items in navbar are also visible in dark mode */
.dark-mode #navbar .dropdown-menu {
    background-color: #333;
    border-color: #444;
}

.dark-mode #navbar .dropdown-item {
    color: white;
}

.dark-mode #navbar .dropdown-item:hover,
.dark-mode #navbar .dropdown-item:focus {
    background-color: #444;
    color: white;
}

/* Fix navbar toggler icon in dark mode */
.dark-mode .navbar-toggler-icon {
    filter: invert(1);
}

/* Table styles for dark mode */
.dark-mode .table {
    color: var(--text-color);
    border-color: #444;
}

.dark-mode .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .table-striped > tbody > tr:nth-of-type(even) {
    background-color: rgba(0, 0, 0, 0.2);
}

.dark-mode .table-bordered {
    border-color: #444;
}

.dark-mode .table th,
.dark-mode .table td {
    border-color: #444;
}

.dark-mode .table thead th {
    background-color: #333;
    border-color: #444;
    color: var(--text-color);
}

/* Badge styles for dark mode */
.dark-mode .badge {
    color: #fff;
}

.dark-mode .badge.bg-success {
    background-color: #198754 !important;
}

.dark-mode .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529;
}

.dark-mode .badge.bg-secondary {
    background-color: #6c757d !important;
}

/* Search elements in navbar */
#navbar .search-button {
    color: black !important;
    border-color: black !important;
}

#navbar .search-button:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

/* Search elements in navbar for dark mode */
.dark-mode #navbar .form-control {
    background-color: #333;
    color: white;
    border-color: #444;
}

.dark-mode #navbar .search-button {
    color: white !important;
    border-color: white !important;
}

.dark-mode #navbar .search-button:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.dark-mode #navbar .form-control::placeholder {
    color: #aaa;
}

.dark-mode #navbar .btn-outline-success,
.dark-mode #navbar .btn-outline-light,
.dark-mode #navbar .btn-outline-secondary {
    color: white;
    border-color: white;
}

.dark-mode #navbar .btn-outline-success:hover,
.dark-mode #navbar .btn-outline-light:hover,
.dark-mode #navbar .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.dark-mode .text-muted,
.dark-mode small.text-muted,
.dark-mode span.text-muted,
.dark-mode p.text-muted {
    color: var(--muted-text-color) !important;
}

.dark-mode .bg-light {
    background-color: #333 !important;
    color: #fff !important;
}

.dark-mode .form-text {
    color: #adb5bd !important;
}

.dark-mode .form-control {
    background-color: #333;
    color: #fff;
    border-color: #444;
}

/* Form elements in login/register pages */
.dark-mode .form-check-input {
    background-color: #333;
    border-color: #555;
}

.dark-mode .form-check-input:checked {
    background-color: var(--button-bg);
    border-color: var(--button-bg);
}

.dark-mode .form-check-label {
    color: var(--text-color);
}

.dark-mode .card-header,
.dark-mode .card-footer {
    background-color: #222 !important;
    border-color: #444 !important;
}

.dark-mode .card-footer a {
    color: var(--primary-color-light);
}

.dark-mode .card-footer a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

.dark-mode .card {
    background-color: #222 !important;
    border-color: #444 !important;
}

/* Dropdown Menu Fixes */
.dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 12rem;
    z-index: 1021;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 400;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(0, 0, 0, 0.05);
}

.dropdown-toggle::after {
    margin-left: 0.5em;
    vertical-align: 0.15em;
}

/* Dark Mode Dropdown Styles */
.dark-mode .dropdown-menu {
    background-color: #333;
    border-color: #444;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
}

.dark-mode .dropdown-item {
    color: var(--text-color);
}

.dark-mode .dropdown-item:hover,
.dark-mode .dropdown-item:focus {
    background-color: #444;
}

.dark-mode .alert-info,
.dark-mode .login-alert {
    background-color: #0d3a4f !important;
    color: #fff !important;
    border-color: #0c5460 !important;
}

.dark-mode .alert-warning {
    background-color: #523e02 !important;
    color: #fff !important;
    border-color: #856404 !important;
}

.dark-mode .alert-danger {
    background-color: #5a1c1c !important;
    color: #fff !important;
    border-color: #721c24 !important;
}

.dark-mode .reading-time {
    background-color: rgba(255, 255, 255, 0.1);
}

/* reCAPTCHA Dark Mode */
.dark-mode .g-recaptcha {
    filter: invert(0.85) hue-rotate(180deg);
    margin: 0 auto;
    width: fit-content;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 0 4rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .min-vh-75 {
        min-height: 60vh;
    }
    
    footer .row {
        text-align: center;
    }
    
    footer .col-md-4 {
        margin-bottom: 1.5rem;
    }
}
/* Social Sharing Buttons */
.social-share-container {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.03);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.dark-mode .social-share-container {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.share-heading {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.share-heading i {
    margin-right: 0.5rem;
    color: var(--button-bg);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.social-share-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.social-share-button i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.social-share-button span {
    font-size: 0.75rem;
    font-weight: 500;
}

.social-share-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Dark mode styles for share buttons */
.dark-mode .social-share-button {
    background-color: #333;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Specific colors for social platforms */
.social-share-button[data-platform="facebook"] i { color: #3b5998; }
.social-share-button[data-platform="twitter"] i { color: #1da1f2; }
.social-share-button[data-platform="linkedin"] i { color: #0077b5; }
.social-share-button[data-platform="whatsapp"] i { color: #25d366; }
.social-share-button[data-platform="email"] i { color: #777; }
.social-share-button[data-platform="copy"] i { color: #6c757d; }

/* Dark mode specific colors */
.dark-mode .social-share-button[data-platform="facebook"] i { color: #4c70ba; }
.dark-mode .social-share-button[data-platform="twitter"] i { color: #4db5f5; }
.dark-mode .social-share-button[data-platform="linkedin"] i { color: #0a85ca; }
.dark-mode .social-share-button[data-platform="whatsapp"] i { color: #40de7b; }
.dark-mode .social-share-button[data-platform="email"] i { color: #9e9e9e; }
.dark-mode .social-share-button[data-platform="copy"] i { color: #adb5bd; }

/* Toast notification for copy to clipboard */
.share-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.share-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.dark-mode .share-toast {
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .social-share-button {
        width: 60px;
        height: 60px;
    }
    
    .social-share-button i {
        font-size: 1.2rem;
    }
    
    .social-share-button span {
        font-size: 0.7rem;
    }
}

/* Hover effect with background color and slight padding */
footer ul li a:hover {
    color: #FF9800; /* Highlight color */
    background-color: rgba(255, 152, 0, 0.2); /* Light orange background on hover */
    padding-left: 5px; /* Slight padding for emphasis */
    border-radius: 3px; /* Optional: rounded corners for a smoother look */
}

/* Social Media Icons */
footer .fab {
    margin-right: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    footer .row {
        text-align: center;
    }
    footer .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

