 :root {
            --primary-color: #526db4;
            --secondary-color: #2c3e50;
            --accent-color: #526db4;
            --light-bg: #f8f9fa;
            --dark-text: #333;
            --gradient-primary: linear-gradient(135deg, #526db4 0%, #2e437a 100%);
            --gradient-secondary: linear-gradient(135deg, #526db4 0%, #2e437a 100%);
        }

        img {
            user-select: none;
            -webkit-user-drag: none;
            -webkit-user-select: none;
            -ms-user-select: none;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: "Inter", sans-serif;
            color: var(--dark-text);
            background-color: #f5f5f5;
            line-height: 1.6;
        }

        /* Navigation Styles */
        .navbar {
            background-color: white;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .navbar .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
        }

        .logo-container {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            order: 2;
            flex-grow: 0;
        }

        .logo {
            height: 80px;
            width: auto;
            transition: transform 0.3s;
            cursor: pointer;
        }

        .logo:hover {
            transform: scale(1.05);
        }

        .nav-link {
            color: var(--secondary-color);
            font-weight: 500;
            margin: 0 10px;
            transition: all 0.3s;
            position: relative;
        }

        .nav-link:after {
            content: "";
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--gradient-primary);
            transition: width 0.3s;
        }

        .nav-link:hover:after {
            width: 100%;
        }

        .nav-link:hover {
            color: var(--primary-color);
        }

        /* Enhanced Dropdown Styles */
        .dropdown {
            position: relative;
            display: inline-block;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            background-color: white;
            min-width: 220px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
            z-index: 1000;
            border-radius: 12px;
            overflow: hidden;
            top: 100%;
            left: 0;
            opacity: 0;
            transform: translateY(-10px) scale(0.95);
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            border: 1px solid rgba(0,0,0,0.08);
            backdrop-filter: blur(10px);
        }

        .dropdown:hover .dropdown-content {
            display: block;
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .dropdown-content a {
            color: var(--secondary-color);
            padding: 14px 20px;
            text-decoration: none;
            display: block;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .dropdown-content a::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
            transition: left 0.5s ease;
        }

        .dropdown-content a:hover {
            background-color: rgba(52, 152, 219, 0.08);
            color: var(--primary-color);
            padding-left: 25px;
            transform: translateX(3px);
        }

        .dropdown-content a:hover::before {
            left: 100%;
        }

        /* Add animation delay for each dropdown item */
        .dropdown-content a:nth-child(1) { transition-delay: 0.05s; }
        .dropdown-content a:nth-child(2) { transition-delay: 0.1s; }
        .dropdown-content a:nth-child(3) { transition-delay: 0.15s; }
        .dropdown-content a:nth-child(4) { transition-delay: 0.2s; }
        .dropdown-content a:nth-child(5) { transition-delay: 0.25s; }
        .dropdown-content a:nth-child(6) { transition-delay: 0.3s; }

        /* Enhanced Mobile Navigation */
        .mobile-nav-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--secondary-color);
            cursor: pointer;
            position: static;
            transform: none;
            order: 1;
            padding: 10px;
            border-radius: 8px;
            transition: all 0.3s;
        }

        .mobile-nav-toggle:hover {
            background-color: var(--light-bg);
            color: var(--primary-color);
        }

        .mobile-nav-toggle.active {
            background-color: var(--primary-color);
            color: white;
        }

        .mobile-nav-menu {
            display: none;
            position: fixed;
            top: 70px;
            left: 0;
            right: 0;
            background: white;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
            z-index: 999;
            max-height: 0;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border-bottom: 3px solid var(--primary-color);
        }

        .mobile-nav-menu.show {
            display: block;
            max-height: calc(100vh - 100px);
            overflow-y: auto;
            padding: 20px 0;
        }

        .mobile-nav-menu .nav-link {
            display: block;
            padding: 15px 20px;
            color: var(--secondary-color);
            text-decoration: none;
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
            margin: 0;
            border-radius: 0;
        }

        .mobile-nav-menu .nav-link:hover {
            background-color: rgba(52, 152, 219, 0.08);
            color: var(--primary-color);
            border-left-color: var(--primary-color);
            padding-left: 25px;
        }

        /* Mobile Dropdown Styles */
        .mobile-dropdown {
            position: relative;
        }

        .mobile-dropdown-toggle {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            color: var(--secondary-color);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            background-color: transparent;
            border: none;
            width: 100%;
            text-align: left;
        }

        .mobile-dropdown-toggle:hover {
            background-color: rgba(52, 152, 219, 0.08);
            color: var(--primary-color);
        }

        .mobile-dropdown-toggle i {
            transition: transform 0.3s ease;
        }

        .mobile-dropdown.active .mobile-dropdown-toggle i {
            transform: rotate(180deg);
        }

        .mobile-dropdown-content {
            display: none;
            background-color: #f9f9f9;
            overflow: hidden;
            max-height: 0;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border-left: 3px solid var(--primary-color);
            margin-left: 20px;
        }

        .mobile-dropdown.active .mobile-dropdown-content {
            display: block;
            max-height: 500px;
            padding: 10px 0;
        }

        .mobile-dropdown-content .nav-link {
            padding: 12px 20px;
            margin: 2px 0;
            border-radius: 0;
            transition: all 0.3s ease;
            transform: translateX(-10px);
            opacity: 0;
            background-color: transparent;
        }

        .mobile-dropdown.active .mobile-dropdown-content .nav-link {
            transform: translateX(0);
            opacity: 1;
        }

        .mobile-dropdown-content .nav-link:nth-child(1) { transition-delay: 0.05s; }
        .mobile-dropdown-content .nav-link:nth-child(2) { transition-delay: 0.1s; }
        .mobile-dropdown-content .nav-link:nth-child(3) { transition-delay: 0.15s; }
        .mobile-dropdown-content .nav-link:nth-child(4) { transition-delay: 0.2s; }
        .mobile-dropdown-content .nav-link:nth-child(5) { transition-delay: 0.25s; }
        .mobile-dropdown-content .nav-link:nth-child(6) { transition-delay: 0.3s; }

        .mobile-dropdown-content .nav-link:hover {
            background-color: rgba(52, 152, 219, 0.1);
            color: var(--primary-color);
            transform: translateX(5px);
        }

        .search-bar {
            position: relative;
            order: 1;
            max-width: 300px;
            width: 100%;
        }

        .search-bar input {
            border-radius: 25px;
            padding-right: 45px;
            border: 2px solid #e0e0e0;
            transition: all 0.3s;
            width: 100%;
        }

        .search-bar input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
        }

        .search-bar button {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--primary-color);
            padding: 8px 12px;
            cursor: pointer;
        }

        .profile-dropdown {
            position: static;
            order: 3;
            margin-left: 20px;
        }

        .profile-btn {
            background: var(--gradient-primary);
            border: none;
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            cursor: pointer;
        }

        .profile-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .profile-menu {
            position: absolute;
            right: 0;
            margin-right: 15px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            padding: 10px 0;
            min-width: 200px;
            display: none;
            z-index: 1000;
            margin-top: 10px;
        }

        .profile-menu.show {
            display: block;
            animation: fadeInDown 0.3s;
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .profile-menu a {
            display: block;
            padding: 10px 20px;
            color: var(--dark-text);
            text-decoration: none;
            transition: all 0.3s;
        }

        .profile-menu a:hover {
            background-color: var(--light-bg);
            color: var(--primary-color);
            padding-left: 25px;
        }

        .profile-menu a i {
            margin-right: 10px;
            width: 20px;
        }

        /* Slideshow Styles */
        .slideshow {
            position: relative;
            height: 450px;
            overflow: hidden;
            border-radius: 15px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .slide {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s ease-in-out;
        }

        .slide.active {
            opacity: 1;
        }

        .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .slide-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
            color: white;
            padding: 30px;
        }

        .slide-content h2 {
            font-size: 2.5rem;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .small-slides {
            display: flex;
            gap: 20px;
            margin-top: 20px;
        }

        .small-slide {
            flex: 1;
            height: 180px;
            border-radius: 12px;
            overflow: hidden;
            position: relative;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s;
        }

        .small-slide:hover {
            transform: translateY(-5px);
        }

        .small-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .small-slide-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
            color: white;
            padding: 15px;
        }

        /* Article Card Styles */
        .article-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            transition: all 0.3s;
            height: 100%;
            cursor: pointer;
        }

        .article-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .article-card img {
            width: 100%;
            height: 220px;
            object-fit: cover;
            transition: transform 0.3s;
        }

        .article-card:hover img {
            transform: scale(1.05);
        }

        .article-card-body {
            padding: 20px;
        }

     .article-category {
            display: inline-block;
            background: var(--gradient-primary);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            margin-bottom: 12px;
            width: fit-content;
        }

        .article-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--dark-text);
            line-height: 1.4;
        }

        .article-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #777;
            font-size: 0.9rem;
        }

        .author-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .author-info img {
            width: 40px;
            height: 100%;
        }

        .author-avatar {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--primary-color);
        }

        /* About Page Styles */
        .hero-section {
            background: var(--gradient-primary);
            color: white;
            padding: 80px 0;
            margin-bottom: 50px;
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>')
                no-repeat bottom;
            background-size: cover;
        }

        .hero-content {
            position: relative;
            z-index: 1;
        }

        .hero-title {
            font-size: 3rem;
            font-weight: bold;
            margin-bottom: 20px;
            animation: fadeInUp 0.8s;
        }

        .hero-subtitle {
            font-size: 1.3rem;
            opacity: 0.9;
            animation: fadeInUp 0.8s 0.2s both;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .about-section {
            background: white;
            border-radius: 20px;
            padding: 40px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s;
        }

        .about-section:hover {
            transform: translateY(-5px);
        }

        .about-section h2 {
            color: var(--secondary-color);
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 15px;
            font-size: 2rem;
        }

        .about-section h2:after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 80px;
            height: 3px;
            background: var(--gradient-primary);
        }

        .about-section p {
            font-size: 1.1rem;
            line-height: 1.8;
            color: #555;
            margin-bottom: 20px;
        }

        .value-card {
            background: var(--light-bg);
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 20px;
            transition: all 0.3s;
            border-left: 4px solid transparent;
        }

        .value-card:hover {
            border-left-color: var(--primary-color);
            transform: translateX(10px);
        }

        .value-card h4 {
            color: var(--primary-color);
            margin-bottom: 10px;
        }

        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-top: 30px;
        }

        .team-member {
            text-align: center;
            padding: 20px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            transition: all 0.3s;
        }

        .team-member:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .team-member img {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            margin-bottom: 15px;
            border: 4px solid var(--primary-color);
        }

        /* Contact Page Styles */
        .contact-hero {
            background: var(--gradient-secondary);
            color: white;
            padding: 60px 0;
            margin-bottom: 50px;
            text-align: center;
        }

        .contact-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-bottom: 50px;
        }

        .contact-info-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            transition: all 0.3s;
        }

        .contact-info-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        }

        .contact-info-card i {
            font-size: 3rem;
            color: var(--primary-color);
            margin-bottom: 20px;
        }

        .contact-form {
            background: white;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        }

        .contact-form h2 {
            color: var(--secondary-color);
            margin-bottom: 30px;
            position: relative;
            padding-bottom: 15px;
            font-size: 2rem;
        }

        .contact-form h2:after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 80px;
            height: 3px;
            background: var(--gradient-secondary);
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-label {
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--secondary-color);
        }

        .form-control {
            border-radius: 10px;
            border: 2px solid #e0e0e0;
            padding: 12px 15px;
            transition: all 0.3s;
        }

        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
        }

        /* Button Styles */
        .btn-primary {
            background: var(--gradient-primary);
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            font-weight: 500;
            transition: all 0.3s;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
        }

        .btn-secondary {
            background: #6c757d;
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            font-weight: 500;
            transition: all 0.3s;
        }

        .btn-secondary:hover {
            background: #5a6268;
            transform: translateY(-2px);
        }

        /* Footer Styles */
        .footer {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            color: white;
            padding: 50px 0 20px;
            margin-top: 50px;
        }

        .footer-widget h4 {
            font-size: 1.3rem;
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 15px;
        }

        .footer-widget h4:after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: var(--primary-color);
        }

        .footer-links {
            list-style: none;
            padding: 0;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: #bbb;
            text-decoration: none;
            transition: all 0.3s;
            display: inline-block;
        }

        .footer-links a:hover {
            color: white;
            transform: translateX(5px);
        }

        .social-icons a {
            display: inline-block;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
            text-align: center;
            line-height: 40px;
            border-radius: 50%;
            margin-right: 10px;
            transition: all 0.3s;
        }

        .social-icons a:hover {
            background-color: var(--primary-color);
            transform: translateY(-5px);
        }

        .copyright {
            text-align: center;
            padding-top: 30px;
            margin-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #bbb;
            font-size: 0.9rem;
        }

        /* Modal Styles */
        .modal-content {
            border-radius: 20px;
            border: none;
        }

        .modal-header {
            background: var(--gradient-primary);
            color: white;
            border-radius: 20px 20px 0 0;
            border: none;
        }

        .modal-header .btn-close {
            filter: brightness(0) invert(1);
        }

        /* Dashboard Styles - IMPROVED */
        .dashboard-section {
            background: white;
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s;
        }

        .dashboard-section:hover {
            transform: translateY(-5px);
        }

        .dashboard-section h3 {
            margin-bottom: 25px;
            color: var(--secondary-color);
            border-bottom: 3px solid var(--primary-color);
            padding-bottom: 15px;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .dashboard-section h3 i {
            color: var(--primary-color);
        }

        .profile-pic-container {
            text-align: center;
            margin-bottom: 25px;
            position: relative;
        }

        .profile-pic {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            object-fit: cover;
            border: 5px solid var(--primary-color);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s;
        }

        .profile-pic:hover {
            transform: scale(1.05);
        }

        .profile-upload-btn {
            position: absolute;
            bottom: 10px;
            right: calc(50% - 75px);
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .profile-upload-btn:hover {
            background: var(--accent-color);
            transform: scale(1.1);
        }

        .writing-item {
            border-bottom: 1px solid #eee;
            padding: 20px 0;
            transition: background 0.3s;
            border-radius: 10px;
        }

        .writing-item:hover {
            background: var(--light-bg);
            padding-left: 10px;
        }

        .writing-item:last-child {
            border-bottom: none;
        }

        .status-published {
            display: inline-block;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            background-color: #2ecc71;
            color: white;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: var(--gradient-primary);
            color: white;
            padding: 20px;
            border-radius: 15px;
            text-align: center;
            transition: transform 0.3s;
        }

        .stat-card:hover {
            transform: translateY(-5px);
        }

        .stat-card i {
            font-size: 2rem;
            margin-bottom: 10px;
        }

        .stat-number {
            font-size: 2rem;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .stat-label {
            font-size: 0.9rem;
            opacity: 0.9;
        }

        /* Rich Text Editor Styles */
        .editor-toolbar {
            background: var(--light-bg);
            border: 2px solid #e0e0e0;
            border-bottom: none;
            border-radius: 10px 10px 0 0;
            padding: 10px;
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
        }

        .editor-btn {
            background: white;
            border: 1px solid #ddd;
            border-radius: 5px;
            padding: 5px 10px;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 14px;
        }

        .editor-btn:hover {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .editor-btn.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .editor-select {
            background: white;
            border: 1px solid #ddd;
            border-radius: 5px;
            padding: 5px;
            cursor: pointer;
        }

        .editor-content {
            border: 2px solid #e0e0e0;
            border-radius: 0 0 10px 10px;
            min-height: 300px;
            padding: 15px;
            font-size: 16px;
            line-height: 1.6;
            overflow-y: auto;
        }

        .editor-content:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        /* Image Upload Styles */
        .image-upload-container {
            position: relative;
            border: 2px dashed #ddd;
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s;
            cursor: pointer;
            background: var(--light-bg);
        }

        .image-upload-container:hover {
            border-color: var(--primary-color);
            background: rgba(52, 152, 219, 0.05);
        }

        .image-upload-container.has-image {
            border-style: solid;
            padding: 0;
            height: 200px;
            overflow: hidden;
        }

        .uploaded-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .image-upload-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .image-upload-container:hover .image-upload-overlay {
            opacity: 1;
        }

        /* Likes Styles */
        .engagement-section {
            background: var(--light-bg);
            border-radius: 15px;
            padding: 20px;
            margin-top: 30px;
        }

        .engagement-buttons {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
        }

        .engagement-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            border: 2px solid #e0e0e0;
            border-radius: 25px;
            background: white;
            color: #666;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 14px;
        }

        .engagement-btn:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
            transform: translateY(-2px);
        }

        .engagement-btn.liked {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .engagement-btn i {
            font-size: 16px;
        }

        /* Utility Classes */
        .hidden {
            display: none !important;
        }

        .show-more-btn {
            display: block;
            margin: 40px auto;
            padding: 12px 40px;
            background: var(--gradient-primary);
            color: white;
            border: none;
            border-radius: 30px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 1rem;
        }

        .show-more-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
        }

        .page-content {
            animation: fadeIn 0.5s;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        /* Article Page Styles - IMPROVED */
        .article-page {
            background: white;
            border-radius: 20px;
            padding: 40px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
        }

        .article-header {
            margin-bottom: 30px;
            text-align: center;
        }

        .article-title {
            font-size: 2.5rem;
            font-weight: bold;
            margin-bottom: 20px;
            color: var(--secondary-color);
            line-height: 1.3;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .article-meta-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            color: #777;
            flex-wrap: wrap;
            gap: 15px;
        }

        /* Updated article author info styles - Three Column Layout */
.article-author-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 12px;
    gap: 15px;
}

/* First Column - Profile Icon */
.profile-column {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-width: 50px;
}

.profile-column .article-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

/* Second Column - Author Details */
.author-details-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    padding-right: 10px;
}

.author-details-column .clickable-author {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s;
    margin-bottom: 2px;
}

.author-details-column .clickable-author:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.author-details-column .author-bio-small {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 2px;
}

.author-details-column #articleDate {
    font-size: 0.8rem;
    color: #888;
}

/* Third Column - Follow Elements */
.follow-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 140px;
}

.article-follow-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.follower-count-small {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
    background: white;
    padding: 5px 12px;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
}

.follow-btn-small {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.follow-btn-small:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}

.follow-btn-small.following {
    background: #6c757d;
}

.follow-btn-small.following:hover {
    background: #5a6268;
}

/* Author dashboard follow section updates */
.author-info-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: flex-start;
}

.author-follow-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 150px;
    margin-left: 20px;
}

.follower-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--secondary-color);
    background: var(--light-bg);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
}

.follow-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.follow-btn.following {
    background: #6c757d;
}

.follow-btn.following i {
    margin-right: 5px;
}

.follow-btn.following:hover {
    background: #5a6268;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-author-info {
        flex-wrap: wrap;
    }
    
    .profile-column {
        width: 50px;
    }
    
    .author-details-column {
        width: calc(100% - 220px);
    }
    
    .follow-column {
        width: 140px;
        align-items: flex-end;
    }
}

@media (max-width: 576px) {
    .article-author-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .profile-column {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }
    
    .author-details-column {
        width: 100%;
        padding-right: 0;
    }
    
    .follow-column {
        width: 100%;
        align-items: flex-start;
    }
    
    .article-follow-section {
        align-items: flex-start;
        flex-direction: row;
        gap: 15px;
    }
    
    .follower-count-small {
        order: 2;
    }
    
    .follow-btn-small {
        order: 1;
    }
}

@media (max-width: 480px) {
    .article-follow-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .follower-count-small {
        order: 1;
    }
    
    .follow-btn-small {
        order: 2;
    }
}

        .article-author-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--primary-color);
        }

        .article-image {
            width: 100%;
            height: 400px;
            object-fit: cover;
            border-radius: 15px;
            margin-bottom: 30px;
        }

 .article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 30px;
    white-space: pre-wrap; /* This preserves whitespace and line breaks */
    font-family: inherit; /* Use the same font as the rest of the site */
}

        .article-content p {
    margin-bottom: 1.2em;
    white-space: pre-wrap; /* Preserve whitespace in paragraphs */
}


       .article-content p:first-child {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--secondary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin-bottom: 25px;
    white-space: normal; /* Reset for the special first paragraph */
}
        .article-content h2,
        .article-content h3,
        .article-content h4 {
            margin-top: 30px;
            margin-bottom: 15px;
            color: var(--secondary-color);
            font-weight: 600;
        }

        .article-content h2 {
            font-size: 1.8rem;
            border-bottom: 2px solid var(--light-bg);
            padding-bottom: 10px;
        }

        .article-content h3 {
            font-size: 1.5rem;
        }

        .article-content h4 {
            font-size: 1.3rem;
        }

        .article-content ul,
        .article-content ol {
            margin-bottom: 20px;
            padding-left: 30px;
        }

        .article-content li {
            margin-bottom: 10px;
        }

        .article-content blockquote {
            border-left: 4px solid var(--primary-color);
            padding-left: 20px;
            margin: 20px 0;
            font-style: italic;
            color: #666;
            background-color: var(--light-bg);
            padding: 15px 20px;
            border-radius: 0 10px 10px 0;
        }

        .article-content br {
    display: block;
    margin-bottom: 0.5em;
    content: "";
}

.article-content div {
    margin-bottom: 1em;
    white-space: pre-wrap;
}

        .article-content img {
            max-width: 100%;
            height: auto;
            border-radius: 10px;
            margin: 20px 0;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }

        .article-content table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }

        .article-content th,
        .article-content td {
            border: 1px solid #ddd;
            padding: 12px;
            text-align: left;
        }

        .article-content th {
            background-color: var(--light-bg);
            font-weight: 600;
        }

      .article-content code {
    background-color: #f4f4f4;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: monospace;
    white-space: pre-wrap;
}

     .article-content pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

        .article-content pre code {
            background: none;
            padding: 0;
        }

        .article-tags {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid var(--light-bg);
        }

        .tag {
            display: inline-block;
            background: var(--light-bg);
            color: var(--secondary-color);
            padding: 5px 15px;
            border-radius: 20px;
            margin-right: 10px;
            margin-bottom: 10px;
            font-size: 0.9rem;
            transition: all 0.3s;
        }

        .tag:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-2px);
        }

        /* Search Results Styles */
        .search-results {
            background: white;
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        }

        .search-results h2 {
            color: var(--secondary-color);
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 15px;
            font-size: 2rem;
        }

        .search-results h2:after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 80px;
            height: 3px;
            background: var(--gradient-primary);
        }

        .search-info {
            margin-bottom: 20px;
            color: #777;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .navbar .container {
                flex-wrap: wrap;
                padding: 10px 15px;
            }
            .mobile-nav-toggle {
                display: block;
                order: 1;
                margin-right: 15px;
            }

            .desktop-nav {
                display: none;
            }

            .logo-container {
                position: relative;
                left: auto;
                transform: none;
                margin: 0 auto;
                order: 2;
            }

            .logo {
                height: 50px;
            }

            .profile-dropdown {
                order: 3;
                margin-left: 15px;
                position: static;
            }

            .profile-menu {
                position: fixed;
                top: 60px;
                right: 10px;
                left: auto;
                min-width: 180px;
            }

            .search-bar {
                order: 4;
                margin-top: 10px;
                width: 100%;
                max-width: none;
                flex-basis: 100%;
            }
            .hero-title {
                font-size: 2rem;
            }

            .slideshow {
                height: 300px;
            }

            .slide-content h2 {
                font-size: 1.5rem;
            }

            .small-slides {
                flex-direction: column;
            }

            .team-grid {
                grid-template-columns: 1fr;
            }

            .article-title {
                font-size: 1.8rem;
            }

            .article-page {
                padding: 20px;
            }

            .article-content {
                font-size: 1rem;
            }

            .article-content p:first-child {
                font-size: 1.2rem;
            }

            .article-meta-info {
                flex-direction: column;
                align-items: flex-start;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .editor-toolbar {
                justify-content: center;
            }

            .engagement-buttons {
                flex-direction: column;
            }

            .footer-widget h4{
                margin-top: 20px;
            }

            .article-category{
                margin-top: 30px;
            }

        }

        /* Author Name and Bio Styles */
.author-name {
    font-weight: 600;
    color: var(--secondary-color);
    display: block;
}

.clickable-author {
    cursor: pointer;
    transition: color 0.3s;
}

.clickable-author:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.author-bio {
    font-size: 0.8rem;
    color: #777;
    display: block;
    margin-top: 2px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-bio-small {
    font-size: 0.85rem;
    color: #666;
    margin-top: 3px;
}

.author-details {
    margin-top: 15px;
}

.author-details p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.author-details i {
    width: 20px;
    color: var(--primary-color);
}

/* Enhanced Author Dashboard */
.author-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.author-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.author-header h2 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.author-bio {
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .author-header {
        flex-direction: column;
        text-align: center;
    }
    
    .author-pic {
        margin: 0 auto;
    }
}

/* Follow button and follower count styles */
.author-info-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.author-follow-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.follower-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--secondary-color);
    background: var(--light-bg);
    padding: 8px 15px;
    border-radius: 20px;
}

.follow-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.follow-btn.following {
    background: #6c757d;
}

.follow-btn.following i {
    margin-right: 5px;
}

.article-follow-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.follower-count-small {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
}

.follow-btn-small {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.follow-btn-small:hover {
    background: var(--accent-color);
}

.follow-btn-small.following {
    background: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .author-info-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .author-follow-section {
        margin-left: 0;
        flex-direction: row;
        justify-content: center;
    }
    
    .article-follow-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Article Card Stats - Enhanced */
.article-stats {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
    transition: all 0.3s;
}

.stat-item:hover {
    color: var(--primary-color);
}

.stat-item i {
    font-size: 0.9rem;
}

/* Ensure consistent spacing in article cards */
.article-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 10px;
}


/* Update article card body to accommodate new stats */
.article-card-body {
    padding: 15px;  /* Slightly reduced padding */
    display: flex;
    flex-direction: column;
}

/* Adjust article meta spacing */
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #777;
    font-size: 0.85rem;  /* Slightly smaller */
    margin-bottom: 8px;  /* Reduced margin */
}

/* Make author bio smaller */
.author-bio {
    font-size: 0.7rem;  /* Smaller bio text */
    color: #888;
    display: block;
    margin-top: 2px;
    max-width: 150px;  /* Reduced max width */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Author dashboard stats */
.author-dashboard .stat-item {
    font-size: 1rem;
    color: var(--secondary-color);
}

/* User dashboard stats */
.writing-item .stat-item {
    font-size: 0.9rem;
    color: #666;
}

/* Article view stats */
.article-follow-section .follower-count-small,
.article-follow-section .follower-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .stat-item {
        font-size: 0.9rem;
    }
}

/* Author writing actions */
.author-writing-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    justify-content: center;
}

.author-writing-actions .btn {
    padding: 5px 15px;
    font-size: 0.85rem;
}

/* Author dashboard link */
.author-dashboard-link {
    margin-top: 20px;
}

.author-dashboard-link .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.author-dashboard-link .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .author-writing-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .author-writing-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* No writings message */
.no-writings-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-writings-message h4 {
    color: var(--secondary-color);
    margin: 20px 0 10px;
}

.no-writings-message p {
    margin-bottom: 20px;
}

/* Writing status badge */
.writing-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.writing-status.status-published {
    background-color: #d4edda;
    color: #155724;
}

.writing-status.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.writing-status.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* Author writing actions - Updated */
.author-writing-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    justify-content: center;
}

.author-writing-actions .btn {
    padding: 5px 15px;
    font-size: 0.85rem;
    border-radius: 15px;
    transition: all 0.3s;
}

.author-writing-actions .btn:hover {
    transform: translateY(-2px);
}

/* Adjust article card body when status is present */
.article-card-body .writing-status:first-child {
    margin-top: 0;
}

.article-card-body .writing-status + .article-category {
    margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .author-writing-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .author-writing-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .no-writings-message {
        padding: 40px 15px;
    }
}

/* Author Statistics Container */
.author-stats-container {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.author-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.author-stats-grid .stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.author-stats-grid .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.author-stats-grid .stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.author-stats-grid .stat-info h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 0;
}

.author-stats-grid .stat-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Author Writings Section */
.author-writings-section {
    margin-top: 30px;
}

.author-writings-section h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-writings-section h3::before {
    content: "📝";
    font-size: 1.2rem;
}

/* Enhanced Author Header */
.author-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.author-info-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: flex-start;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .author-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .author-stats-grid .stat-card {
        flex-direction: row;
        justify-content: flex-start;
        padding: 15px;
    }
    
    .author-stats-grid .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .author-info-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .author-follow-section {
        margin-left: 0;
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .author-header {
        flex-direction: column;
        text-align: center;
    }
    
    .author-pic {
        margin: 0 auto;
    }
    
    .author-stats-grid .stat-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Modal Dialog Centered */
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 3.5rem);
}

/* Login Modal Styles - Enhanced */
.login-modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    max-width: 600px; /* Increased size */
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
    max-height: 90vh; /* Limit height to viewport */
    overflow-y: auto; /* Allow scrolling if needed */
}

.login-modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: url('https://images.unsplash.com/photo-1521791136064-e7f4f7b5a5c?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D&auto=format&fit=crop&w=800&q=60') center/cover no-repeat;
    background-size: cover;
    border-radius: 20px 20px 0 0;
    z-index: 0;
}

.login-modal-header {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px 30px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-modal-title {
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.5rem;
}

.login-modal-body {
    padding: 30px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    max-height: 500vh;
    overflow-y: auto;
}

.login-container {
    display: flex;
    flex-direction: column;
}

.login-form-container {
    width: 100%;
}

.input-group {
    position: relative;
    display: flex;
    align-items: stretch;
}

.input-group-text {
    background-color: rgba(52, 109, 180, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(52, 109, 180, 0.2);
    border-radius: 10px 0 0 10px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    font-size: 1rem;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
    flex: 1;
}

.login-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.login-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.login-divider span {
    background: #fff;
    padding: 0 15px;
    position: relative;
    z-index: 1;
    color: #888;
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-google {
    background: #ffffff;
    color: #4285f4;
    border: 1px solid #dadce0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
}

.btn-google:hover {
    box-shadow: 0 3px 8px rgba(66, 133, 244, 0.2);
    transform: translateY(-2px);
}

.btn-facebook {
    background: #1877f2;
    color: #ffffff;
    border: 1px solid #1877f2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
}

.btn-facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(24, 119, 242, 0.3);
}

.login-modal-footer {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.login-modal-footer p {
    margin: 0;
    color: #666;
}

.login-modal-footer a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.login-modal-footer a:hover {
    text-decoration: underline;
}

/* Sign Up Modal Styles - Enhanced */
.signup-modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    max-width: 700px; /* Increased size */
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
    max-height: 90vh; /* Limit height to viewport */
    overflow-y: auto; /* Allow scrolling if needed */
}

.signup-modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: url('https://images.unsplash.com/photo-1521791136064-e7f4f7b5a5c?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D&auto=format&fit=crop&w=1200&q=60') center/cover no-repeat;
    background-size: cover;
    border-radius: 20px 20px 0 0;
    z-index: 0;
}

.signup-modal-header {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px 30px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.signup-modal-title {
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.5rem;
}

.signup-modal-body {
    padding: 30px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    max-height: 60vh;
    overflow-y: auto;
}

.signup-container {
    display: flex;
    flex-direction: column;
}

.signup-form-container {
    width: 100%;
}

.signup-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.signup-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.signup-divider span {
    background: #fff;
    padding: 0 15px;
    position: relative;
    z-index: 1;
    color: #888;
    font-size: 0.9rem;
}

.signup-modal-footer {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.signup-modal-footer p {
    margin: 0;
    color: #666;
}

.signup-modal-footer a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.signup-modal-footer a:hover {
    text-decoration: underline;
}

/* Form Check Styles */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.form-check-label {
    font-weight: 500;
    color: var(--secondary-color);
}

/* Profile Picture Upload Styles */
.profile-pic-container {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-bottom: 10px;
}

.profile-upload-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    bottom: 5px;
    right: calc(50% - 20px);
    transition: all 0.3s;
}

.profile-upload-btn:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .login-modal-content, .signup-modal-content {
        max-width: 95%;
        margin: 0 auto;
    }
    
    .login-modal-body, .signup-modal-body {
        padding: 20px;
    }
    
    .social-login {
        gap: 10px;
    }
    
    .btn-google, .btn-facebook {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .login-modal-content, .signup-modal-content {
        max-width: 90%;
    }
    
    .login-modal-body, .signup-modal-body {
        padding: 25px;
    }
}