/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #F9FAFB;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.header {
    background: #ffffff;
    color: #333;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 75px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo-image:hover {
    opacity: 0.9;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.logo h1 a {
    color: white;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #9333EA;
}

.admin-link {
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.admin-link:hover {
    background: #e2e8f0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 30px;
    justify-content: center;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #000000 !important;
    margin: 3px 0;
    transition: 0.3s;
    display: block;
}

/* Main content */
.main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 6rem 1rem;
    background: linear-gradient(135deg, #9333EA 0%, #DB2777 50%, #F97316 100%);
    border-radius: 15px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* Posts section */
.posts-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #2d3748;
    text-align: center;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.post-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #9333EA;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    background: linear-gradient(135deg, #9333EA 0%, #DB2777 100%);
    color: white !important;
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
    border: 2px solid transparent;
}

.read-more:hover {
    background: linear-gradient(135deg, #7E22CE 0%, #BE185D 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
    color: white !important;
    text-decoration: none;
}

/* Single post styles */
.single-post {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-header .post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.post-featured-image {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: visible;
    width: 100%;
}

.image-caption {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 0.5rem;
    font-style: italic;
    text-align: center;
    width: 100%;
}

.post-featured-image img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 10px;
    display: block;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
}

.post-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin: 2rem 0 1rem 0;
}

.post-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin: 1.5rem 0 0.5rem 0;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

/* Enhanced HTML content styling */
.post-content a {
    color: #9333EA;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.post-content a:hover {
    border-bottom-color: #DB2777;
}

/* Auto-open external links in new tab */
.post-content a[href^="http"] {
    target-new: tab;
}

/* Ensure n8n automated content displays properly */
.post-content {
    /* Allow any CSS from n8n to work */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Ensure embedded styles work */
.post-content * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Support for custom n8n-generated content */
.post-content .n8n-content {
    /* Any special styling for n8n content */
}

/* Ensure iframes and embedded content work */
.post-content iframe,
.post-content embed,
.post-content object {
    max-width: 100%;
    height: auto;
}

/* Handle complete HTML documents from n8n */
.post-content html,
.post-content head,
.post-content body {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.post-content html {
    font-size: 16px;
}

.post-content body {
    background: transparent !important;
    color: inherit !important;
    font-family: inherit !important;
}

/* Ensure n8n content displays properly even with conflicting styles */
.post-content div[style*="font-family"] {
    font-family: inherit !important;
}

.post-content div[style*="background-color"] {
    background-color: inherit !important;
}

/* Override any conflicting body styles */
.post-content body[style] {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
}

.post-content blockquote {
    border-left: 4px solid #9333EA;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6B7280;
    background: #FAF5FF;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

.post-content code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #e53e3e;
}

.post-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-content table th,
.post-content table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.post-content table th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
}

.post-content table tr:hover {
    background: #f7fafc;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-content iframe {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

.post-content .highlight {
    color: #ed8936;
    margin: 1rem 0;
}

.post-content .alert {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.post-content .alert-info {
    background: #ebf8ff;
    border-left: 4px solid #3182ce;
    color: #2c5282;
}

.post-content .alert-warning {
    background: #fef5e7;
    border-left: 4px solid #ed8936;
    color: #744210;
}

.post-content .alert-success {
    background: #f0fff4;
    border-left: 4px solid #38a169;
    color: #22543d;
}

.post-content .alert-error {
    background: #fed7d7;
    border-left: 4px solid #e53e3e;
    color: #742a2a;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-tags .tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.share-button {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.share-button.twitter {
    background: #1da1f2;
    color: white;
}

.share-button.facebook {
    background: #1877f2;
    color: white;
}

.share-button.linkedin {
    background: #0077b5;
    color: white;
}

.share-button:hover {
    transform: translateY(-2px);
}

/* Related posts */
.related-posts {
    margin-top: 3rem;
}

.related-posts h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #2d3748;
}

/* Footer */
.footer {
    background: #0A0A0A;
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #f8f9fa;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    background: linear-gradient(135deg, #9333EA 0%, #DB2777 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, #7E22CE 0%, #BE185D 100%);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #cbd5e0;
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.no-posts p {
    font-size: 1.2rem;
    color: #718096;
}

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

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #9333EA 0%, #DB2777 100%);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-header .post-title {
        font-size: 2rem;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .single-post {
        padding: 1.5rem;
    }

    .post-header .post-title {
        font-size: 1.8rem;
    }
}

/* About Page Styles */
.about-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #9333EA 0%, #DB2777 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

.about-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.about-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #9333EA 0%, #DB2777 100%);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #9333EA;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.topic-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.topic-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.topic-item ul {
    list-style: none;
    padding: 0;
}

.topic-item li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 1.5rem;
}

.topic-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.topic-item li:last-child {
    border-bottom: none;
}

.approach-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.approach-step {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.approach-step h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.audience-content {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.audience-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.audience-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 2rem;
}

.audience-list li::before {
    content: '🎯';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.audience-list li:last-child {
    border-bottom: none;
}

.cta-content {
    text-align: center;
    background: linear-gradient(135deg, #9333EA 0%, #DB2777 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 10px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #9333EA 0%, #DB2777 100%);
    color: white !important;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7E22CE 0%, #BE185D 100%);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
    color: white !important;
    text-decoration: none;
}

.btn-secondary {
    background: #FACC15;
    color: #111827 !important;
    border-color: #FACC15;
    box-shadow: 0 2px 8px rgba(250, 204, 21, 0.3);
}

.btn-secondary:hover {
    background: #EAB308;
    border-color: #EAB308;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
    color: #111827 !important;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .features-grid,
    .topics-grid,
    .approach-content {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {

    /* Reduce font sizes */
    .logo h1 {
        font-size: 1.4rem;
    }

    .logo-image {
        height: 40px;
        max-width: 150px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .post-header .post-title {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .post-content h1 {
        font-size: 1.8rem;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content h3 {
        font-size: 1.3rem;
    }

    .post-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Reduce margins and padding */
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .single-post {
        padding: 1rem;
        margin: 1rem 0;
    }

    .post-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .post-meta {
        margin: 0.5rem 0;
        font-size: 0.85rem;
    }

    .post-excerpt {
        margin: 0.5rem 0;
    }

    /* Fix hamburger menu */
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background: white;
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 2px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(147, 51, 234, 0.98) 0%, rgba(219, 39, 119, 0.98) 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        display: block;
        text-align: center;
        border-radius: 5px;
        transition: background 0.3s ease;
    }

    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    /* Layout adjustments */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    /* About page mobile adjustments */
    .page-header h1 {
        font-size: 2rem;
    }

    .features-grid,
    .topics-grid,
    .approach-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card,
    .topic-item,
    .approach-step {
        padding: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {

    /* Even smaller screens */
    .container {
        padding: 0 10px;
    }

    .hero {
        padding: 1.5rem 0;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .single-post {
        padding: 0.8rem;
        margin: 0.8rem 0;
    }

    .post-header .post-title {
        font-size: 1.4rem;
    }

    .post-content h1 {
        font-size: 1.6rem;
    }

    .post-content h2 {
        font-size: 1.3rem;
    }

    .post-content h3 {
        font-size: 1.1rem;
    }

    .post-content p {
        font-size: 0.9rem;
    }

    .post-card {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .logo-image {
        height: 35px;
        max-width: 120px;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
    }

    /* About page small screen adjustments */
    .page-header h1 {
        font-size: 1.8rem;
    }

    .about-section {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .about-section h2 {
        font-size: 1.8rem;
    }

    .feature-card h3,
    .topic-item h3,
    .approach-step h3 {
        font-size: 1.1rem;
    }

    .feature-card p,
    .topic-item p,
    .approach-step p {
        font-size: 0.9rem;
    }
}

/* Ensure hamburger menu is always visible on mobile */
@media (max-width: 768px) {
    .nav {
        position: relative;
    }

    .hamburger {
        display: flex !important;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex !important;
    }
}

/* Enhanced Button Styles for Better Readability */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #9333EA 0%, #DB2777 100%);
    color: white !important;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7E22CE 0%, #BE185D 100%);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
    color: white !important;
    text-decoration: none;
}

.btn-secondary {
    background: #FACC15;
    color: #111827 !important;
    border-color: #FACC15;
    box-shadow: 0 2px 8px rgba(250, 204, 21, 0.3);
}

.btn-secondary:hover {
    background: #EAB308;
    border-color: #EAB308;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
    color: #111827 !important;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: #9333EA;
    border-color: #9333EA;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.2);
}

.btn-outline:hover {
    background: linear-gradient(135deg, #9333EA 0%, #DB2777 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

/* Admin button styles */
.admin-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-1px);
}

/* Share button styles */
.share-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.share-button.facebook {
    background: #1877f2;
    color: white;
}

.share-button.facebook:hover {
    background: #166fe5;
    transform: translateY(-1px);
}

.share-button.twitter {
    background: #1da1f2;
    color: white;
}

.share-button.twitter:hover {
    background: #1a91da;
    transform: translateY(-1px);
}

/* Mobile button improvements */
@media (max-width: 768px) {
    .read-more {
        display: inline-block;
        background: linear-gradient(135deg, #9333EA 0%, #DB2777 100%);
        color: white !important;
        padding: 0.8rem 1.8rem;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
        border: 2px solid transparent;
    }

    .read-more:hover {
        background: linear-gradient(135deg, #7E22CE 0%, #BE185D 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
        color: white !important;
        text-decoration: none;
    }

    /* Lean Edge Innovations Branding */
    .powered-by {
        text-align: center;
        padding: 1rem 0;
        margin-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
        border-radius: 5px;
    }

    .powered-by p {
        margin: 0;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.8);
        font-weight: 400;
    }

    .powered-by a {
        color: #ffffff;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

    .powered-by a:hover {
        color: #f8f9fa;
        text-decoration: underline;
    }

    .footer-bottom {
        text-align: center;
        padding: 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 1rem;
    }

    .footer-bottom p {
        margin: 0;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.8);
    }

    .footer-bottom a {
        color: #ffffff !important;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

    .footer-bottom a:hover {
        color: #f8f9fa !important;
        text-decoration: underline;
    }

    .footer-bottom p a {
        color: #ffffff !important;
    }

    .footer-bottom p a:hover {
        color: #f8f9fa !important;
    }

    /* Mobile responsive branding */
    @media (max-width: 768px) {
        .powered-by {
            padding: 0.8rem 0;
            margin-top: 0.8rem;
        }

        .powered-by p {
            font-size: 0.85rem;
        }

        .footer-bottom {
            padding: 0.8rem 0;
            margin-top: 0.8rem;
        }

        .footer-bottom p {
            font-size: 0.85rem;
        }
    }

    /* Partnership branding in about page */
    .partnership-note {
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        text-align: center;
    }

    .partnership-note p {
        margin: 0;
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.9rem;
    }

    .partnership-note a {
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

    .partnership-note a:hover {
        color: #f8f9fa;
        text-decoration: underline;
    }

    /* Mobile responsive partnership note */
    @media (max-width: 768px) {
        .partnership-note {
            margin-top: 1.5rem;
            padding-top: 0.8rem;
        }

        .partnership-note p {
            font-size: 0.85rem;
        }
    }
}