/*
Theme Name:   Tourizto Child
Theme URI:    https://phuket-travel-experience.com/
Description:  Child theme for Kava (Tourizto). Custom layout fixes, typography, and alignment.
Author:       Friend CK
Template:     kava
Version:      1.1.1
Text Domain:  tourizto-child
*/
/* ==========================================================================
   1. THEME FONT AND STYLE
   ========================================================================== */
html, body {font-size: 14px;}   
body:not(.home) { font-size: 14px; line-height: 1.65em; color: #3F3F3F; }
/* Global Headings */
body:not(.home) h1, body:not(.home) .page-title { font-size: 2.5em; line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; color: #3F3F3F; }
body:not(.home) h2 { font-size: 2em; line-height: 1.3; margin: 1.4em 0 0.7em; font-weight: 700; color: #3F3F3F; }
body:not(.home) h3 { font-size: 1.6em; line-height: 1.35; margin: 1.3em 0 0.6em; font-weight: 600; color: #3F3F3F; }
body:not(.home) h4 { font-size: 1.3em; line-height: 1.4; margin: 1.2em 0 0.5em; font-weight: 600; color: #3F3F3F; }
body:not(.home) h5 { font-size: 1.1em; line-height: 1.45; margin: 1.1em 0 0.4em; font-weight: 600; color: #3F3F3F; }
body:not(.home) h6 { font-size: 0.95em; line-height: 1.5; margin: 1em 0 0.4em; font-weight: 600; color: #3F3F3F; text-transform: uppercase; letter-spacing: 0.04em; }
/* Text & Lists */
body:not(.home) p { color: #3F3F3F; }
body:not(.home) strong { font-weight: 600; }
body:not(.home) em { font-style: italic; }
body:not(.home) ul { list-style: disc; }
body:not(.home) ol { list-style: decimal; }
body:not(.home) blockquote { margin: 1.8em 0; padding-left: 1.4em; border-left: 4px solid #ddd; font-style: italic; color: #555; }
/* Typography Fixes */
.elementor-heading-title, h1, h2, h3, h4, h5, h6 { hyphens: none !important; -webkit-hyphens: none !important; word-break: normal !important; }

/* Responsive Typography */
@media (max-width: 1024px) {
  body:not(.home) h1, body:not(.home) .page-title { font-size: 2.2em; }
  body:not(.home) h2 { font-size: 1.8em; }
  body:not(.home) h3 { font-size: 1.5em; }
}

@media (max-width: 767px) {
  body:not(.home) { font-size: 15px; }
  body:not(.home) h1, body:not(.home) .page-title { font-size: 1.9em; }
  body:not(.home) h2 { font-size: 1.6em; }
  body:not(.home) h3 { font-size: 1.35em; }
  body:not(.home) ul, body:not(.home) ol { margin-left: 1.2em; }
}

/* JetPosts Adjustments */
.jet-posts .jet-posts__inner-box:hover { box-shadow: 5px 6px 29px -1px rgba(0,0,0,0.24) !important; transition: all 0.3s; }
.jet-posts .jet-posts__item .post-thumbnail { text-align: center; }
/* Elementor Widget Fixes */
.elementor-widget-image a { display: inline-block; }
/* UX & Utilities */
.wp-comment-cookies-consent, #toTop { cursor: pointer; }
body:not(.home) a h4 { color: #5d3b6e; }
/* Generic Page Links (Non-Blog) */
body:not(.home):not(.single-post) .entry-content a, body:not(.home):not(.single-post) .entry-content a:visited { color: #3F3F3F; text-decoration: underline; text-underline-offset: 2px; }
body:not(.home):not(.single-post) .entry-content a:hover { opacity: 0.85; }

/* Kava/Bootstrap Structural Overrides */
@media (min-width: 1120px) {
  .col-lg-push-2 { left: auto !important; right: auto !important; }
  .single-post .post>.entry-content {font-size: 1.125em;}
}

.col-xs-12 { margin: 0; padding: 0; }

/* ==========================================================================
   2. HEADER/FOOTER
   ========================================================================== */
/* Header Navigation */
.site-header a, .main-navigation a, .jet-menu a, .elementor-nav-menu a { text-decoration: none !important; }
.site-header a:hover, .main-navigation a:hover, .jet-menu a:hover, .elementor-nav-menu a:hover { text-decoration: none !important; }
.home .elementor-7646 .elementor-element.elementor-element-c7c7973 .jet-logo__text, .elementor-7645 .elementor-element.elementor-element-79ced31 .jet-logo__text {font-size: 22px; line-height: normal;}


/* Breadcrumbs */
.breadcrumbs, .breadcrumbs__wrap, .site-breadcrumbs, .seo-breadcrumb { max-width: 1200px; margin: 0 auto; padding: 0; text-align: left; }
.breadcrumbs, .breadcrumbs__wrap, .site-breadcrumbs, .seo-breadcrumb a {color: #3F3F3F !important;}
.breadcrumbs_item { float: none !important; display: inline-block !important; }

/* Footer Links & Styles */
.site-footer a, .footer a { text-decoration: none; }
.site-footer a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 2px; }
.internal-linking h2 { font-size: 1.3em !important; margin-top: 0 !important; font-weight: normal !important; }
.elementor-7647 .elementor-element.elementor-element-9c136ae {font-size: 11px; font-family: "Lato", Sans-serif;}
/* Footer/Header Elementor Specifics */
.elementor-7647 .elementor-element.elementor-element-684c759>.elementor-element-populated { padding-left: 0; }
.elementor-7647 .elementor-element.elementor-element-f48891f { margin: 0 7px 7px 0; }

.elementor-7647 .elementor-element.elementor-element-0a25ee3 > .elementor-element-populated {padding-left: 0;}
.elementor-7647 .elementor-element.elementor-element-228e5ad .jet-logo__text {font-size: 1.3em;}

/* Mobile Menu */
@media (max-width: 767px) {
   .jet-mobile-menu__body {margin-top: 25px;}
   .home .elementor-7646 .elementor-element.elementor-element-b2100b7 .jet-mobile-menu__container .jet-mobile-menu__container-inner, .elementor-7645 .elementor-element.elementor-element-fe81821 .jet-mobile-menu__container .jet-mobile-menu__container-inner,
   .home .elementor-7646 .elementor-element.elementor-element-b2100b7 .jet-mobile-menu__item .jet-menu-label, .elementor-7645 .elementor-element.elementor-element-fe81821 .jet-mobile-menu__item .jet-menu-label { background-color: #CBC3E3; font-family: "Lato", Sans-serif; font-size: 19px; font-weight: bold; letter-spacing: 1.4px; text-transform: initial;}
   .home .elementor-7646 .elementor-element.elementor-element-b2100b7 .jet-mobile-menu__item .jet-menu-label, .elementor-7645 .elementor-element.elementor-element-fe81821 .jet-mobile-menu__item .jet-menu-label,
   .home .elementor-7646 .elementor-element.elementor-element-b2100b7 .jet-mobile-menu__breadcrumbs .breadcrumb-label, .elementor-7645 .elementor-element.elementor-element-fe81821 .jet-mobile-menu__item.jet-mobile-menu__item--active .jet-menu-label,
   .elementor-7645 .elementor-element.elementor-element-fe81821 .jet-mobile-menu__breadcrumbs .breadcrumb-label {color: #000 !important;}
   .home .elementor-7646 .elementor-element.elementor-element-b2100b7 .jet-mobile-menu__item, .elementor-7645 .elementor-element.elementor-element-fe81821 .jet-mobile-menu__item {margin-bottom: 15px; padding: 0;}
   .home .elementor-7646 .elementor-element.elementor-element-adaa03b { margin-bottom: 90px; }
   .elementor-7645 .elementor-element.elementor-element-0ac205e { margin-bottom: 10px; }
   .jet-mobile-menu__list ul, .jet-mobile-menu__list ol { margin: 0 !important; }
}
/* ==========================================================================
   3. HOMEPAGE
   ========================================================================== */
body.home .elementor-widget-image a { display: block !important; width: 100% !important; }
.elementor-7677 .elementor-element.elementor-element-18ceaa8 .jet-search__submit { padding: 12px 56px; }
/* Parallax Image Fixes */
.elementor-7677 .elementor-element.elementor-element-c584122 .elementor-repeater-item-498edcf.jet-parallax-section__layout .jet-parallax-section__image, .elementor-7677 .elementor-element.elementor-element-4c037f8 .elementor-repeater-item-ebfc2c1.jet-parallax-section__layout .jet-parallax-section__image { background-image: url("https://phuket-travel-experience.com/wp-content/uploads/2026/01/phi-phi-island-phuket.jpg") !important; }

@media (max-width: 767px) {
  .home .home-focus-icons .elementor-column.elementor-col-25 { width: 50%; margin: 12px 0; }
}
/* ==========================================================================
   4. CATEGORY PAGE (AND BLOG ARCHIVES)
   ========================================================================== */
.edit-link a {color: #fff;}

/* Card Link Colors & Meta */
body.archive.category .posts-list__item .entry-title a, body.archive.category .posts-list__item .entry-meta, body.archive.category .posts-list__item .entry-meta a, body.blog .posts-list__item .entry-title a, body.blog .posts-list__item .entry-meta, body.blog .posts-list__item .entry-meta a, body.archive.category .posts-list__item .default-item__content p, body.blog .posts-list__item .default-item__content p { color: #ffffff !important; }
body.archive.category .posts-list__item .entry-title a:hover, body.blog .posts-list__item .entry-title a:hover { opacity: 0.85; }
/* Layout Resets */
body.archive.category .site-content, body.archive.category .site-main { margin-top: 0 !important; padding-top: 0 !important; }
/* Category Button Styling */
.cat-links.btn-style a { display: inline-block; padding: 10px 15px; border: 1px dotted #cfcfcf; border-radius: 10px; background-color: var(--accent-color, #ff6a00); color: #fff; font-size: 13px; line-height: 1.4; text-decoration: none; transition: background-color 0.2s ease; }
.cat-links.btn-style a:hover { background-color: #e85d00; color: #fff; }
.cat-links.btn-style li { display: inline-block; margin-right: 6px; }
/* Clickable Post Card Fix */
body.category .posts-list__item.default-item, body.blog .posts-list__item.default-item { position: relative; }
body.category .posts-list__item.default-item .entry-title a::after, body.blog .posts-list__item.default-item .entry-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; cursor: pointer; }
body.category .posts-list__item.default-item .entry-meta, body.blog .posts-list__item.default-item .entry-meta { position: relative; z-index: 2; }
/* ==========================================================================
   5. BLOG DETAIL PAGE
   ========================================================================== */
.entry-header .byline a{color: #3f3f3f;}

/* Editorial Links */
body.single-post .entry-content a, body.single-post .entry-content a:visited { color: #9932CC; text-decoration: underline; text-underline-offset: 2px; }
body.single-post .entry-content a:hover { color: #5d3b6e; opacity: 1; }
/* Post Navigation */
.post-navigation-container { border-bottom: none !important; margin: 15px 0 0 0 !important; padding-bottom: 0 !important; color: #3F3F3F;}
.post-navigation-container .nav-text, .post-navigation-container .fa, .post-navigation-container h4 {color: #3F3F3F !important;}

/* Desktop Alignment Fixes */
@media (min-width: 1200px) {
  body.single-post main.site-main { width: 1170px !important; max-width: 1170px !important; margin: 0 auto !important; padding: 0 !important; float: none !important; }
  body.single-post main.site-main .col-lg-8, body.single-post main.site-main .col-lg-push-2 { width: 100% !important; max-width: 100% !important; left: auto !important; right: auto !important; float: none !important; }
  body.single-post main.site-main .row { margin: 0 !important; }
  body.single-post article.post, body.single-post .entry-content { max-width: 1170px !important; margin-left: 0 !important; text-align: left !important; }
  body.single-post .post-thumbnail img { width: 1170px !important; height: auto !important; display: block !important; }
}

/* Mobile Alignment Fixes */
@media (max-width: 1199px) {
  body.single-post main.site-main { width: 100% !important; padding: 0 15px !important; }
}
/* ==========================================================================
   6. PAGE
   ========================================================================== */
.type-page, .type-page p {font-size: 1.125em; line-height: 1.65em;}
.type-page p {margin: 10px 0;}

/* ==========================================================================
   7. OTHERS
   ========================================================================== */

