

/* ============================================================= */
/* 5. HEADER TOGGLE ARROW                                        */
/* ============================================================= */
.akak-container h3 {
    margin: 0;
    font-size: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1e3a5f;
    font-weight: 800;
}

.akak-container h3::after {
    content: "▼";
    font-size: 14px;
    transition: 0.3s;
}

.active h3::after {
    transform: rotate(180deg);
}
/* ============================================================= */
/* 1. RESET & TEXT SAFETY (FOR MARATHI READABILITY)             */
/* ============================================================= */
.kutuhal-pt,
.kutuhal-pt * {
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    word-break: keep-all !important;  /* CRITICAL: Prevents vertical text */
    overflow-wrap: normal !important; /* CRITICAL: Prevents vertical text */
    text-align: left;
}

/* ============================================================= */
/* 2. MAIN SECTION WRAPPER                                       */
/* ============================================================= */
.kutuhal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px;
    background: linear-gradient(135deg, #fefce8, #eff6ff);
}

/* Heading & Accent Bar */
.kutuhal h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #1e293b;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.kutuhal h2::after {
    content: "";
    width: 70px;
    height: 4px;
    margin: 12px auto 0;
    display: block;
    border-radius: 10px;
    background: linear-gradient(90deg, #fde68a, #60a5fa);
}

/* ============================================================= */
/* 3. THE FORCE-GRID (FIXES WORDPRESS LIST FORMAT)               */
/* ============================================================= */
.kutuhal .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 28px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

/* Remove default WP width restrictions */
.kutuhal .wp-block-post {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    margin: 0 !important;
}

/* ============================================================= */
/* 4. INDIVIDUAL CARD STYLE                                      */
/* ============================================================= */
.kutuhal-pt {
    width: 100% !important;
    display: flex !important;
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp 0.5s ease forwards;
}

.kutuhal-post {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 260px;
    transition: all 0.35s ease;
    overflow: hidden; /* Safety for internal elements */
}

.kutuhal-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

/* IMAGE FIXES */
.kutuhal-post img {
    width: 100% !important;
    height: auto !important;
    max-height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
    transition: transform 0.35s ease;
}

.kutuhal-post:hover img {
    transform: scale(1.04);
}

/* CONTENT STYLES */
.kutuhal-post .cat-links a {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 50px;
    background: linear-gradient(90deg, #fde68a, #bfdbfe);
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}

.kutuhal-post h3 {
    font-size: 18px;
    margin: 8px 0;
    color: #1e293b;
    line-height: 1.4;
}

.kutuhal-post p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* BUTTON */
.kutuhal-post a.wp-block-button__link, 
.kutuhal-post a:not(.cat-links a) {
    margin-top: auto;
    padding: 10px 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, #60a5fa, #fde68a);
    color: #1e293b !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: 0.3s;
}

/* ============================================================= */
/* 5. PAGINATION, FOOTER & ANIMATIONS                            */
/* ============================================================= */
.kutuhal-pag { margin-top: 60px; display: flex; justify-content: center; }
.kutuhal-pag .page-numbers {
    padding: 10px 16px; margin: 0 5px; border-radius: 8px; background: #fff;
    border: 1px solid #e5e7eb; color: #1e293b; text-decoration: none;
}
.kutuhal-pag .current { background: linear-gradient(90deg, #60a5fa, #fde68a); font-weight: 600; }

.kutuhal-dis { margin-top: 40px; text-align: center; font-size: 13px; color: #64748b; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.kutuhal-pt:nth-child(2) { animation-delay: 0.1s; }
.kutuhal-pt:nth-child(3) { animation-delay: 0.2s; }

/* ============================================================= */
/* 6. RESPONSIVE MEDIA QUERIES                                   */
/* ============================================================= */

/* Tablet: 2 Columns */
@media (max-width: 992px) {
    .kutuhal .wp-block-post-template {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile: 1 Column */
@media (max-width: 650px) {
    .kutuhal .wp-block-post-template {
        grid-template-columns: 1fr !important;
    }
    .kutuhal h2 { font-size: 26px; }
}
/* ============================================================= */
/* 1. RESET & TEXT SAFETY (FOR MARATHI READABILITY)             */
/* ============================================================= */
.kutuhal-pt,
.kutuhal-pt * {
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    word-break: keep-all !important;  /* CRITICAL: Prevents vertical text */
    overflow-wrap: normal !important; /* CRITICAL: Prevents vertical text */
    text-align: left;
}

/* ============================================================= */
/* 2. MAIN SECTION WRAPPER                                       */
/* ============================================================= */
.kutuhal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px;
    background: linear-gradient(135deg, #fefce8, #eff6ff);
}

/* Heading & Accent Bar */
.kutuhal h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #1e293b;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.kutuhal h2::after {
    content: "";
    width: 70px;
    height: 4px;
    margin: 12px auto 0;
    display: block;
    border-radius: 10px;
    background: linear-gradient(90deg, #fde68a, #60a5fa);
}

/* ============================================================= */
/* 3. THE FORCE-GRID (FIXES WORDPRESS LIST FORMAT)               */
/* ============================================================= */
.kutuhal .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 28px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

/* Remove default WP width restrictions */
.kutuhal .wp-block-post {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    margin: 0 !important;
}

/* ============================================================= */
/* 4. INDIVIDUAL CARD STYLE                                      */
/* ============================================================= */
.kutuhal-pt {
    width: 100% !important;
    display: flex !important;
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp 0.5s ease forwards;
}

.kutuhal-post {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 260px;
    transition: all 0.35s ease;
    overflow: hidden; /* Safety for internal elements */
}

.kutuhal-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

/* IMAGE FIXES */
.kutuhal-post img {
    width: 100% !important;
    height: auto !important;
    max-height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
    transition: transform 0.35s ease;
}

.kutuhal-post:hover img {
    transform: scale(1.04);
}

/* CONTENT STYLES */
.kutuhal-post .cat-links a {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 50px;
    background: linear-gradient(90deg, #fde68a, #bfdbfe);
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}

.kutuhal-post h3 {
    font-size: 18px;
    margin: 8px 0;
    color: #1e293b;
    line-height: 1.4;
}

.kutuhal-post p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* BUTTON */
.kutuhal-post a.wp-block-button__link, 
.kutuhal-post a:not(.cat-links a) {
    margin-top: auto;
    padding: 10px 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, #60a5fa, #fde68a);
    color: #1e293b !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: 0.3s;
}

/* ============================================================= */
/* 5. PAGINATION, FOOTER & ANIMATIONS                            */
/* ============================================================= */
.kutuhal-pag { margin-top: 60px; display: flex; justify-content: center; }
.kutuhal-pag .page-numbers {
    padding: 10px 16px; margin: 0 5px; border-radius: 8px; background: #fff;
    border: 1px solid #e5e7eb; color: #1e293b; text-decoration: none;
}
.kutuhal-pag .current { background: linear-gradient(90deg, #60a5fa, #fde68a); font-weight: 600; }

.kutuhal-dis { margin-top: 40px; text-align: center; font-size: 13px; color: #64748b; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.kutuhal-pt:nth-child(2) { animation-delay: 0.1s; }
.kutuhal-pt:nth-child(3) { animation-delay: 0.2s; }

/* ============================================================= */
/* 6. RESPONSIVE MEDIA QUERIES                                   */
/* ============================================================= */

/* Tablet: 2 Columns */
@media (max-width: 992px) {
    .kutuhal .wp-block-post-template {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile: 1 Column */
@media (max-width: 650px) {
    .kutuhal .wp-block-post-template {
        grid-template-columns: 1fr !important;
    }
    .kutuhal h2 { font-size: 26px; }
}