:root {
    --primary-teal: #5eb9b9;
    --primary-pink: #e85d9f;
    --gradient-bg: linear-gradient(135deg, #5eb9b9, #e85d9f);
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --light-bg: #f8f9fa;
    --purple-gradient: linear-gradient(135deg, #8b72be, #d66a9e);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Hero Section */
.hero-write-section {
    background: linear-gradient(135deg, rgba(216, 243, 243, 0.35) 0%, rgba(255, 234, 245, 0.35) 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-write-section::before {
    content: '';
    position: absolute;
    top: -15%;
    left: -3%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(173, 216, 230, 0.25), transparent 70%);
    border-radius: 50%;
    filter: blur(45px);
}

.hero-write-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -2%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.25), transparent 70%);
    border-radius: 50%;
    filter: blur(55px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #555;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(94, 185, 185, 0.15);
}

.hero-badge i {
    color: var(--primary-teal);
    font-size: 0.85rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-title .write-text {
    color: var(--primary-teal);
    font-size: 3.5rem !important;
    font-weight: 800 !important;
}

.hero-title .for-text {
    color: #999;
}

.hero-description {
    font-size: 0.98rem;
    color: #666;
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-pink));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(232, 93, 159, 0.3);
    color: white;
}

.btn-outline {
    background: white;
    color: var(--text-dark);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--primary-teal);
    color: var(--primary-teal);
    transform: translateY(-2px);
}

.stats-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.3rem 1.2rem;
    background: linear-gradient(135deg, rgba(245, 240, 255, 0.4), rgba(255, 245, 250, 0.4));
    border-radius: 14px;
    margin-bottom: 1rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    background: var(--purple-gradient);
    color: white;
}

.stat-info h3 {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0 0 0.2rem 0;
    color: var(--text-dark);
}

.stat-info p {
    font-size: 0.82rem;
    color: #666;
    margin: 0;
}

/* Why Write Section */
.section-padding {
    padding: 2rem 0;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    background: var(--purple-gradient);
    color: white;
}

.benefit-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.benefit-card p {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* What We Offer Section */
.offer-section {
    background: #fafafa;
}

.offer-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal), var(--primary-pink));
}

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

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--purple-gradient);
    color: white;
}

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.topic-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.topic-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.88rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, rgba(94, 185, 185, 0.06), rgba(232, 93, 159, 0.06));
    border-radius: 8px;
}

.topic-item i {
    color: var(--primary-teal);
    font-size: 0.5rem;
    margin-top: 0.4rem;
}

.topic-item-content {
    flex: 1;
}

.topic-item-content span {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    line-height: 1.2;
}

.topic-item-content small {
    display: block;
    color: #777;
    font-size: 0.75rem;
    margin-top: 0.3rem;
    font-weight: 400;
}

.view-link {
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
}

.view-link:hover {
    color: var(--primary-pink);
}

/* Content Categories Section */
.content-categories-section {
    background: white;
}

.categories-subtitle {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.content-category-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.content-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.content-cat-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: var(--purple-gradient);
    color: white;
    flex-shrink: 0;
}

.content-cat-text {
    flex: 1;
}

.content-category-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.content-category-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* Topics Section */
.topics-section {
    background: #fafafa;
}

.topics-subtitle {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.topic-tag {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.3rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    background: white;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.topic-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.topic-tag i {
    color: #a78bca;
    font-size: 0.5rem;
}

/* Guidelines Section */
.guidelines-section {
    background: white;
}

.guidelines-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.guideline-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
    height: 100%;
    position: relative;
    border: 1px solid #f5f5f5;
}

.guideline-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    background: var(--purple-gradient);
    color: white;
}

.guideline-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.guideline-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

/* Form Section */
.form-section {
    background: #fafafa;
}

.form-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.submission-form {
    max-width: 650px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
}

.form-label .required {
    color: var(--primary-pink);
}

.form-control-custom {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 4px rgba(94, 185, 185, 0.1);
}

textarea.form-control-custom {
    resize: vertical;
    min-height: 110px;
}

.form-select-custom {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.submit-btn {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-pink));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(232, 93, 159, 0.3);
}

/* FAQ Section */
.faq-section {
    background: white;
}

.accordion-custom {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item-custom {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 14px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item-custom:hover {
    border-color: var(--primary-teal);
}

.accordion-header-custom {
    padding: 1.4rem 1.6rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    user-select: none;
}

.accordion-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(94, 185, 185, 0.12), rgba(232, 93, 159, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.accordion-item-custom.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body-custom {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item-custom.active .accordion-body-custom {
    max-height: 500px;
}

.accordion-content {
    padding: 0 1.6rem 1.6rem;
    color: var(--text-gray);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-pink));
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.02rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-white {
    background: white;
    color: var(--primary-teal);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--primary-pink);
}

/* Footer */
.footer-simple {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a {
        width: 100%;
        justify-content: center;
    }

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

/* ================================================================================
   WRITE FOR US PAGE - TABLET FIX
   iPad Mini (768x1024), iPad (810x1080), Surface (912x1368)
   File: write-for-us-tablet-fix.css
   ================================================================================ */

/* =================== TABLET PORTRAIT (768px - 991px) =================== */

@media (min-width: 768px) and (max-width: 991px) {

    /* =================== GENERAL =================== */

    .container,
    .container-xxl {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* =================== HERO SECTION =================== */

    .hero-write-section {
        padding: 3rem 0 2.5rem !important;
    }

    .hero-badge {
        font-size: 0.75rem !important;
        padding: 0.5rem 1rem !important;
        margin-bottom: 1.2rem !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
        margin-bottom: 1.2rem !important;
        line-height: 1.2 !important;
    }

    .hero-title .write-text {
        font-size: 2.4rem !important;
    }

    .hero-description {
        font-size: 0.92rem !important;
        margin-bottom: 2rem !important;
        max-width: 100% !important;
    }

    .hero-buttons {
        gap: 0.8rem !important;
    }

    .btn-primary-gradient,
    .btn-outline {
        padding: 0.9rem 1.8rem !important;
        font-size: 0.88rem !important;
    }

    /* Stats Card */
    .stats-card {
        margin-top: 2rem !important;
        padding: 1.8rem !important;
    }

    .stat-item {
        padding: 1.1rem 1rem !important;
        gap: 1rem !important;
        margin-bottom: 0.8rem !important;
    }

    .stat-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.3rem !important;
    }

    .stat-info h3 {
        font-size: 1.5rem !important;
    }

    .stat-info p {
        font-size: 0.8rem !important;
    }

    /* =================== SECTION STYLING =================== */

    .section-padding {
        padding: 2.5rem 0 !important;
    }

    .section-title {
        font-size: 1.9rem !important;
        margin-bottom: 1.5rem !important;
    }

    .offer-description,
    .categories-subtitle,
    .topics-subtitle,
    .guidelines-subtitle,
    .form-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 2rem !important;
        padding: 0 1rem !important;
    }

    /* =================== BENEFIT CARDS =================== */

    .benefit-card {
        padding: 2rem 1.5rem !important;
    }

    .benefit-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        margin-bottom: 1.2rem !important;
    }

    .benefit-card h3 {
        font-size: 1.05rem !important;
        margin-bottom: 0.7rem !important;
    }

    .benefit-card p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }

    /* =================== CATEGORY GRID - MAIN FIX =================== */

    .category-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .category-card {
        padding: 2rem 1.8rem !important;
    }

    .category-header {
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .category-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.3rem !important;
        border-radius: 12px !important;
    }

    .category-card h3 {
        font-size: 1.15rem !important;
    }

    .topic-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .topic-item {
        padding: 0.8rem 1rem !important;
        font-size: 0.85rem !important;
        gap: 0.6rem !important;
    }

    .topic-item-content span {
        font-size: 0.88rem !important;
    }

    .topic-item-content small {
        font-size: 0.75rem !important;
    }

    .view-link {
        font-size: 0.85rem !important;
        margin-top: 1.2rem !important;
    }

    /* =================== CONTENT CATEGORY CARDS - 2 COLUMNS =================== */

    .row.g-4 {
        --bs-gutter-x: 1rem !important;
        --bs-gutter-y: 1rem !important;
    }

    /* Make it 2 columns on tablet */
    .content-categories-section .row .col-lg-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .content-category-card {
        padding: 1.5rem 1.2rem !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
        height: 100% !important;
    }

    .content-cat-icon {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.4rem !important;
        margin: 0 auto !important;
    }

    .content-cat-text {
        text-align: center !important;
    }

    .content-category-card h3 {
        font-size: 1.05rem !important;
        margin-bottom: 0.6rem !important;
    }

    .content-category-card p {
        font-size: 0.82rem !important;
        line-height: 1.5 !important;
    }

    /* =================== TOPICS GRID - 2 COLUMNS =================== */

    .topics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .topic-tag {
        padding: 0.9rem 1.1rem !important;
        font-size: 0.88rem !important;
        gap: 0.7rem !important;
    }

    /* =================== GUIDELINES - 2 COLUMNS =================== */

    .guidelines-section .row .col-lg-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .guideline-card {
        padding: 1.8rem 1.5rem !important;
        text-align: center !important;
    }

    .guideline-icon {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.4rem !important;
        margin: 0 auto 1.2rem !important;
    }

    .guideline-card h3 {
        font-size: 1rem !important;
        margin-bottom: 0.7rem !important;
    }

    .guideline-card p {
        font-size: 0.82rem !important;
        line-height: 1.5 !important;
    }

    /* =================== FORM =================== */

    .submission-form {
        padding: 2rem 1.8rem !important;
        max-width: 100% !important;
    }

    .form-group {
        margin-bottom: 1.5rem !important;
    }

    .form-label {
        font-size: 0.88rem !important;
    }

    .form-control-custom {
        padding: 0.85rem 1.1rem !important;
        font-size: 0.88rem !important;
    }

    .submit-btn {
        padding: 1rem !important;
        font-size: 0.92rem !important;
    }

    /* =================== CTA SECTION =================== */

    .cta-section {
        padding: 3rem 0 !important;
    }

    .cta-title {
        font-size: 1.8rem !important;
        margin-bottom: 0.8rem !important;
    }

    .cta-description {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }

    .btn-white {
        padding: 0.95rem 2rem !important;
        font-size: 0.9rem !important;
    }
}

/* =================== TABLET LANDSCAPE (992px - 1199px) =================== */

@media (min-width: 992px) and (max-width: 1199px) {

    /* Content Category Cards - 3 columns but smaller */
    .content-category-card {
        padding: 1.8rem 1.5rem !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }

    .content-cat-icon {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.35rem !important;
        margin: 0 auto !important;
    }

    .content-category-card h3 {
        font-size: 1rem !important;
    }

    .content-category-card p {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
    }

    /* Guidelines - 4 columns but compact */
    .guideline-card {
        padding: 1.8rem 1.2rem !important;
        text-align: center !important;
    }

    .guideline-icon {
        margin: 0 auto 1rem !important;
    }

    .guideline-card h3 {
        font-size: 0.95rem !important;
    }

    .guideline-card p {
        font-size: 0.8rem !important;
    }

    /* Topics Grid */
    .topics-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
    }
}

/* =================== SMALL TABLET (600px - 767px) =================== */

@media (min-width: 600px) and (max-width: 767px) {

    /* Content Category Cards - 2 columns */
    .content-categories-section .row .col-lg-4,
    .content-categories-section .row .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .content-category-card {
        padding: 1.5rem 1rem !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    /* Guidelines - 2 columns */
    .guidelines-section .row .col-lg-3,
    .guidelines-section .row .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* Topics - 2 columns */
    .topics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* =================== LANDSCAPE ORIENTATION =================== */

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {

    .hero-write-section {
        padding: 2.5rem 0 2rem !important;
    }

    .section-padding {
        padding: 2rem 0 !important;
    }

    /* Content Categories - 3 columns in landscape */
    .content-categories-section .row .col-lg-4 {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
    }

    .content-category-card {
        padding: 1.5rem 1rem !important;
    }

    /* Guidelines - 4 columns in landscape */
    .guidelines-section .row .col-lg-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

/* =================== BOOTSTRAP GRID OVERRIDE FOR TABLETS =================== */

@media (min-width: 768px) and (max-width: 991px) {

    /* Force 2 columns for md breakpoint */
    .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .col-md-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .col-md-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* Row gap adjustment */
    .row.g-4 {
        --bs-gutter-x: 1rem !important;
        --bs-gutter-y: 1rem !important;
    }

    .row.g-3 {
        --bs-gutter-x: 0.8rem !important;
        --bs-gutter-y: 0.8rem !important;
    }
}
