/* =====================================================================
   Thibyan public website: site-wide layout fixes (all pages)
   Linked after css/index.css in frame/header.php.
   ===================================================================== */

/* ---------- Footer: Follow Us (Instagram) ---------- */
footer .tb-follow h3 { margin-bottom: 18px; }
footer .tb-insta-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    text-decoration: none;
    transition: background .2s ease;
}
footer .tb-insta-card:hover,
footer .tb-insta-card:focus { background: rgba(255, 255, 255, .2); color: #fff; text-decoration: none; }
footer .tb-insta-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
footer .tb-insta-icon i { font-size: 30px; color: #fff; line-height: 1; }
footer .tb-insta-text { display: flex; flex-direction: column; min-width: 0; }
footer .tb-insta-handle { font-size: 17px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; }
footer .tb-insta-sub { margin-top: 2px; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .85); }
footer .tb-insta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 20px;
    border-radius: 999px;
    background: #fff;
    color: #d6249f;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    transition: transform .15s ease;
}
footer .tb-insta-btn:hover,
footer .tb-insta-btn:focus { transform: translateY(-1px); color: #b01b84; text-decoration: none; }
footer .tb-insta-btn i { font-size: 18px; }

/* =========================================================
   Brand tokens used below
   green #5dba3b  red #ff5157  orange #f7941d  yellow #ffc000  blue #5458c9
   ========================================================= */

/* ---------- Readable body text on content pages ---------- */
main p,
.main-about p,
.our-story-section p,
.home-preview p {
    text-align: left !important;
    color: #555b62;
    font-size: 15px;
    line-height: 1.75;
}
main li { line-height: 1.6; }
main h2, main .h2 { line-height: 1.25; }

/* ---------- Page title banner (yellow) ---------- */
.page-name { padding-top: 46px !important; padding-bottom: 46px !important; }
.page-name .page-name-content h1 { margin-bottom: 8px; }
@media (max-width: 767px) {
    .page-name { padding-top: 30px !important; padding-bottom: 30px !important; }
    .page-name .page-name-content h1 { font-size: 30px; }
}

/* ---------- Shared bits ---------- */
.tb-section-intro { text-align: center; margin: 10px auto 28px; max-width: 640px; }
.tb-section-intro h2 { margin-bottom: 8px; }
.tb-section-intro p { text-align: center !important; }

.tb-empty {
    clear: both;
    max-width: 560px;
    margin: 30px auto 40px;
    padding: 36px 24px;
    border: 2px dashed #e6e8ec;
    border-radius: 18px;
    background: #fafbfc;
    text-align: center;
}
.tb-empty h3 { margin: 10px 0 6px; font-size: 22px; color: #222; }
.tb-empty p { text-align: center !important; margin-bottom: 18px; }
.tb-empty-icon {
    width: 64px; height: 64px; margin: 0 auto;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.tb-empty-icon i { font-size: 36px; color: #fff; line-height: 1; }

/* Instagram call-to-action (home band, empty pages) */
.tb-insta-band { padding: 56px 0; background: linear-gradient(135deg, #fff7e0, #fdecf4); }
.tb-insta-band-inner {
    display: flex; align-items: center; gap: 24px;
    max-width: 960px; margin: 0 auto;
    padding: 28px 32px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}
.tb-insta-band-icon {
    flex: 0 0 76px; width: 76px; height: 76px; border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.tb-insta-band-icon i { font-size: 42px; color: #fff; line-height: 1; }
.tb-insta-band-text { flex: 1; min-width: 0; }
.tb-insta-band-text h2 { margin: 0 0 6px; font-size: 28px; }
.tb-insta-band-text p { margin: 0; }
.tb-insta-band-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px;
    background: linear-gradient(90deg, #f58529, #dd2a7b 50%, #8134af);
    color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(221, 42, 123, .28);
    white-space: nowrap;
    transition: transform .15s ease;
}
.tb-insta-band-btn:hover { transform: translateY(-1px); }
.tb-insta-band-btn i { font-size: 20px; }
@media (max-width: 767px) {
    .tb-insta-band { padding: 36px 0; }
    .tb-insta-band-inner { flex-direction: column; text-align: center; padding: 24px 18px; }
    .tb-insta-band-text p { text-align: center !important; }
    .tb-insta-band-text h2 { font-size: 24px; }
}

/* ---------- Home ---------- */
/* Notice board: compact instead of a tall empty red box */
.home-preview .schedule { padding-bottom: 20px; }
.home-preview .schedule marquee { height: 240px !important; }
.home-preview .schedule p { color: #fff !important; text-align: center !important; font-size: 15px; margin: 0 0 6px; }
.home-preview .schedule hr { border-color: rgba(255, 255, 255, .45); margin: 10px auto 16px; }
/* Feature row (Learning & Fun, ...): icons and text line up */
.home-preview .preview-info-wrap,
.home-preview .preview-info { align-items: center; }

/* ---------- Institutions ---------- */
.tb-inst-tools {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    margin: 6px 0 26px; padding: 14px;
    border-radius: 14px; background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}
.tb-inst-search { position: relative; flex: 1 1 320px; }
.tb-inst-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 20px; color: #9aa0a6; }
.tb-inst-search input,
.tb-inst-tools select {
    width: 100%; height: 46px; margin: 0;
    padding: 0 14px 0 42px;
    border: 1px solid #d9dde2; border-radius: 10px;
    font-size: 15px; background: #fff; color: #333;
}
.tb-inst-tools select { flex: 0 1 240px; width: auto; min-width: 200px; padding-left: 14px; }
.tb-inst-search input:focus, .tb-inst-tools select:focus { border-color: #5dba3b; outline: none; box-shadow: 0 0 0 3px rgba(93, 186, 59, .15); }
.tb-inst-count { margin-left: auto; font-weight: 600; color: #555; white-space: nowrap; }
.tb-inst-grid { display: flex; flex-wrap: wrap; }
.tb-inst-grid::before, .tb-inst-grid::after { display: none; }
.tb-inst-col { display: flex; margin-bottom: 24px; }
.tb-inst-card {
    display: flex; flex-direction: column; width: 100%;
    border: 1px solid #e6e8ec; border-radius: 14px; overflow: hidden; background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
    transition: transform .15s ease, box-shadow .15s ease;
}
.tb-inst-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.tb-inst-name {
    margin: 0; padding: 14px 16px;
    font-size: 15px; line-height: 1.35; text-align: center; color: #fff;
    min-height: 0 !important; height: auto !important;
}
.tb-inst-name.color-1 { background: #5458c9; }
.tb-inst-name.color-2 { background: #5dba3b; }
.tb-inst-name.color-3 { background: #f7941d; }
.tb-inst-name.color-4 { background: #ff5157; }
.tb-inst-body { flex: 1; padding: 14px 16px 16px; text-align: center; }
.tb-inst-district { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: #f2f4f7; font-size: 12px; font-weight: 600; color: #555; }
.tb-inst-address { margin: 0 0 10px !important; font-size: 14px !important; line-height: 1.55 !important; text-align: center !important; text-transform: capitalize; }
.tb-inst-phones { margin: 0 !important; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
.tb-inst-phones a { font-size: 14px; font-weight: 600; color: #3f8f22; white-space: nowrap; }
@media (max-width: 767px) {
    .tb-inst-tools select { flex: 1 1 100%; }
    .tb-inst-count { margin-left: 0; }
}

/* ---------- Gallery & events cards ---------- */
.tb-card-img { width: 100% !important; max-width: 100%; height: 260px !important; object-fit: cover; display: block; border-radius: 12px; }
.tb-photo { margin-bottom: 24px; }
.tb-photo figcaption { margin-top: 8px; font-size: 14px; color: #555; text-align: center; }
.tb-gallery-page { min-height: 0 !important; padding: 40px 0; }
.event-card .event-logo img.tb-card-img { border-radius: 12px 12px 0 0; }
@media (max-width: 767px) { .tb-card-img { height: 220px !important; } }

/* ---------- Training: stream picker ---------- */
.tb-type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 40px; }
.tb-type-card {
    display: flex; flex-direction: column; gap: 6px;
    padding: 26px 24px; border-radius: 16px;
    background: #fff; border: 1px solid #e6e8ec;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
    text-decoration: none !important; color: #222;
    transition: transform .15s ease, box-shadow .15s ease;
}
.tb-type-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, .09); }
.tb-type-card:nth-child(3n+1) { border-top: 5px solid #5dba3b; }
.tb-type-card:nth-child(3n+2) { border-top: 5px solid #f7941d; }
.tb-type-card:nth-child(3n+3) { border-top: 5px solid #5458c9; }
.tb-type-name { font-family: "Baloo", cursive; font-size: 24px; color: #222; }
.tb-type-count { font-size: 14px; color: #777; }
.tb-type-go { margin-top: 8px; font-weight: 700; color: #3f8f22; }

/* ---------- Contact ---------- */
.tb-form-note { font-size: 13px !important; color: #8a8f96 !important; margin: 4px 0 6px !important; }
.tb-map { margin: 40px 0 20px; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .08); line-height: 0; }
.apply-form .inupt,
.apply-form textarea {
    width: 100%;
    border: 1px solid #cfd4da !important;
    border-radius: 8px !important;
    padding: 0 14px;
    font-size: 14px;
}
.apply-form .inupt { height: 44px; }
.apply-form textarea { padding: 10px 14px; min-height: 130px; }
.apply-form .inupt:focus, .apply-form textarea:focus { border-color: #5dba3b !important; outline: none; box-shadow: 0 0 0 3px rgba(93, 186, 59, .15); }
.apply-form button.tb-submit { margin-left: 0 !important; }
