* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 0;
    overflow-x: hidden; 
    width: 100%;
}

/* ========== BLOG CARD ========== */
.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    text-decoration: none;
    transition: transform 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: block;
    background: #f5f5f5;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
    color: black;
}

.blog-content h2 {
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    width: 100%; 
    max-width: 100%; 
    height: 100%;
    
    margin-left: 0; 
    overflow: hidden;
    background: #f8f9fa;
}

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    position: absolute;
    display: flex;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    min-height: 100px;
    background: #FFFFFFBD;
    opacity: 0.9;
    z-index: 1;
    padding: 15px 0;
}

.hero-content {
    position: static;
    padding: 5px 20px;
    z-index: 2;
    width: 100%;
}

.hero-content h1 {
    font-size: 28px;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    line-height: 1.3;
    font-weight: 600;
}

.hero-date {
    font-size: 0.95rem;
    margin: 0;
    color: black;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-author {
    font-size: 1rem;
    margin: 5px 0;
    color: black;
}

/* ========== LAYOUT ========== */
.content-wrapper {
    margin: 50px auto;
    padding: 0 10px;
}

.main-content {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.main-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* ========== SIDEBAR & FORM ========== */
.sidebar {
    width: 100%;
    margin-left: 0;
}

.sticky-form {
    position: sticky;
    top: 20px;
    background: black;
    padding: 26px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-left: 38px;
}

.sticky-form h3 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    color: white;
}

.sticky-form p {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(82.77deg, #21D496 -71.55%, #054A91 158.62%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.20rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    touch-action: manipulation;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ========== TAGS ========== */
.tags {
    margin-top: 40px;
}

.tags h3 {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.tag-btn {
    margin: 5px;
    padding: 8px 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.tag-btn:hover {
    background: #667eea;
    color: white;
}

/* ========== PAGINATION ========== */
.pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0 30px 0;
    text-align: center;
}

.pagination a {
    padding: 8px 16px;
    margin: 0 5px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

.pagination span {
    margin: 0 10px;
    font-weight: 500;
}

/* ========== BLOG BODY ========== */
.blog-body {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.blog-body img {
    max-width: 100%;
    height: auto;
}

.blog-body iframe,
.blog-body video,
.blog-body embed {
    max-width: 100%;
}

.blog-body p,
.blog-body li,
.blog-body h1,
.blog-body h2,
.blog-body h3 {
    word-break: break-word;
    overflow-wrap: break-word;
}

.blog-body table {
    display: block;
    width: auto;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 20px 0;
    border: none;
}

.blog-body table th,
.blog-body table td {
    padding: 12px 15px;
    border: 1px solid #dee2e6;
}

.blog-body table th {
    background: #f8f9fa;
    color: black;
}

.blog-body table tr:nth-child(even) {
    background: #f8f9fa;
}

.blog-body pre,
.main-content pre {
    background: #1e1e1e;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 20px 0;
    font-size: 0.9rem;
    line-height: 1.6;
    border-left: 4px solid #667eea;
}

.blog-body code,
.main-content code {
    background: #f0f0f0;
    color: #e83e8c;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

.blog-body pre code,
.main-content pre code {
    background: transparent;
    color: #f8f8f2;
    padding: 0;
}

/* ========== SOCIAL ICONS ========== */
.social-icons {
    position: absolute;
    bottom: 10px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 5;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: white;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.linked-in {
    background: rgba(0, 119, 181, 0.9);
}

.facebook {
    background: rgba(24, 119, 242, 0.95);
}

.x {
    background: rgba(0, 0, 0, 0.9);
}

/* ========== FLOATING MOBILE SOCIAL ========== */
.mobile-social {
    position: fixed;
    bottom: 20px;
    right: 11px;
    z-index: 9999;
}

.social-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #fff5f4;
    color: rgb(84, 83, 83);
    font-size: 20px;
    cursor: pointer;
}

.mobile-social-links {
    position: absolute;
    bottom: 60px;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 10px;
}

.mobile-social.active .mobile-social-links {
    display: flex;
}

/* ========== FLOAT CONTACT BUTTON ========== */
.contact-float {
    position: fixed;
    bottom: 20px;
    right: 11px;
    z-index: 9999;
}

.contact-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #bcf2df;
    color: rgb(84, 83, 83);
    font-size: 20px;
    cursor: pointer;
}

.contact-popup {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 350px;
}

.contact-popup.active {
    display: block;
}

.form-close {
    position: absolute;
    top: -3px;
    right: 8px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.form-close:hover {
    color: red;
}

/* Popup form override */
.contact-popup .sticky-form {
    background: #ffffff !important;
    padding: 20px;
    box-shadow: none;
}

.contact-popup .sticky-form h3 {
    color: black !important;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.contact-popup .form-group input,
.contact-popup .form-group textarea {
    background: #f9f9f9 !important;
    border: 1px solid black !important;
    color: #333 !important;
}

.contact-popup .submit-btn {
    background: #000000 !important;
    border-radius: 50px;
}

/* ========== CTA SECTION ========== */
.cta-section {
    max-width: 1200px;
    margin: 80px auto 60px auto;
    padding: 0 20px;
}

.cta-container {
    background: linear-gradient(82.77deg, #21D496 -71.55%, #054A91 158.62%);
    border-radius: 16px;
    padding: 36px 46px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.cta-content {
    flex: 1;
}

.cta-action {
    flex-shrink: 0;
}

.cta-title {
    font-size: 2.2rem;
    color: white;
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1.3;
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 16px 40px;
    background: white;
    color: black;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.cta-button svg {
    transition: transform 0.3s;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

/* ========== RESPONSIVE ========== */

/* Tablet & below */
@media (max-width: 1024px) {

    html,
    body {
        overflow-x: hidden;
    }

    .hero-section {
        width: 100%;
        margin-left: 0;
        height: auto;
        position: relative;
    }

    .hero-section img {
        object-fit: contain;
        height: auto;
    }

    .hero-overlay {
        height: auto;
        min-height: 111px;
        padding: 0;
    }

    .hero-content {
        position: static;
        padding: 5px 20px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .hero-content h1 {
        order: 1;
    }

    .hero-date {
        order: 2;
    }

    .social-icons {
        order: 3;
        position: static;
        margin-top: 6px;
    }

    .social-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
        color: white;
    }

    .social-icons {
        display: none;
    }

    .mobile-social {
        display: block;
    }

    .sidebar {
        margin-left: 0;
        width: 100%;
    }

    .sticky-form {
        position: relative;
        top: 0;
        margin-left: 0;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .col-lg-4 {
        align-self: auto;
    }

    .cta-section {
        margin: 60px auto 40px auto;
    }

    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 40px 30px;
    }

    .cta-action {
        order: 1;
    }

    .cta-content {
        order: 2;
    }

    .cta-button {
        order: 3;
        margin-top: 10px;
    }

    .cta-action img {
        max-width: 100%;
        height: auto;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .contact-popup {
        width: 420px;
        right: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .contact-popup {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 90vh;
        border-radius: 20px 20px 0 0;
        overflow: auto;
    }

    #contact-form-ajax {
        touch-action: manipulation;
    }
}

/* Small mobile */
@media (max-width: 600px) {
    .hero-section img {
        height: 260px;
        object-fit: fill;
    }

    .hero-overlay {
        min-height: 80px;
        padding: 0;
    }

    .hero-content {
        padding: 5px;
    }

    .hero-content h1 {
        font-size: 16px;
        line-height: 1.25;
    }

    .hero-date {
        font-size: 12px;
    }

    .social-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .cta-container {
        padding: 30px 20px;
    }

    .cta-title {
        font-size: 1.5rem;
    }
}

/* Desktop only */
@media (min-width: 1025px) {
    .mobile-social {
        display: none;
    }
}