/*
Theme Name: Hom Nay 360 Child
Theme URI: https://homnay360.com/
Description: Child theme dùng để tùy chỉnh Hom Nay 360 an toàn khi cập nhật theme cha.
Author: Hom Nay 360
Template: homnay360
Version: 2.2.1
Text Domain: homnay360-child
*/


/* Header và menu chính */
.main-nav{
    min-height:54px;
    background:linear-gradient(105deg,#07366d 0%,#0756a3 58%,#0783a8 100%);
    box-shadow:0 7px 22px rgba(7,54,109,.16);
}
.nav-inner{
    position:relative;
    min-height:54px;
    display:flex;
    align-items:center;
}
.main-menu,
.main-menu>ul{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:0;
    min-height:54px;
    margin:0;
    padding:0;
    list-style:none;
}
.main-menu li,
.main-menu>ul>li{
    position:relative;
    margin:0;
    padding:0;
    list-style:none;
}
.main-menu>li>a,
.main-menu>ul>li>a{
    display:flex;
    align-items:center;
    min-height:54px;
    padding:0 20px;
    border-bottom:3px solid transparent;
    color:#fff;
    font-size:15px;
    font-weight:700;
    line-height:1;
    text-transform:uppercase;
    transition:background-color .2s,border-color .2s;
}
.main-menu>li>a:hover,
.main-menu>ul>li>a:hover,
.main-menu>.current-menu-item>a,
.main-menu>ul>.current-menu-item>a{
    border-bottom-color:#fff;
    background:rgba(255,255,255,.10);
    color:#fff;
}
.home-link{
    flex:0 0 54px;
    width:54px;
    height:54px;
    border-left:1px solid rgba(255,255,255,.08);
    border-right:1px solid rgba(255,255,255,.08);
    background:rgba(0,0,0,.10);
}
.hn360-fallback-menu .page_item_has_children>.children{
    display:none;
    position:absolute;
    z-index:30;
    top:100%;
    left:0;
    min-width:220px;
    margin:0;
    padding:7px;
    border-radius:0 0 9px 9px;
    background:#fff;
    box-shadow:0 12px 28px rgba(7,54,109,.16);
    list-style:none;
}
.hn360-fallback-menu .page_item_has_children:hover>.children,
.hn360-fallback-menu .page_item_has_children:focus-within>.children{display:block}
.hn360-fallback-menu .children a{
    display:block;
    padding:9px 12px;
    color:#10233c;
    font-weight:600;
    text-transform:none;
}

@media(max-width:960px){
    .nav-inner{justify-content:space-between}
    .main-menu,.main-menu>ul{
        display:none;
        position:absolute;
        top:100%;
        right:0;
        left:0;
        min-height:0;
        padding:8px 16px;
        background:#0756a3;
    }
    .main-menu{z-index:50}
    .main-menu.is-open{display:block}
    .main-menu.is-open>ul{display:block;position:static;padding:0}
    .main-menu>li>a,.main-menu>ul>li>a{min-height:44px;padding:0 12px;border-bottom:1px solid rgba(255,255,255,.12)}
    .hn360-fallback-menu .page_item_has_children>.children{position:static;box-shadow:none}
}

/* Sidebar tiếng Việt */
.hn360-sidebar{display:block}.hn360-sidebar .sidebar-widget{margin-bottom:22px;padding:0 18px 18px;border:1px solid #dfe7ef;border-radius:13px;background:#fff;box-shadow:0 8px 24px rgba(7,54,109,.06);overflow:hidden}.hn360-sidebar .widget-title{margin:0 -18px 16px;padding:14px 18px 12px;border-bottom:1px solid #e5edf5;background:linear-gradient(90deg,#f6faff,#fff);color:#07366d;font-size:18px}.hn360-sidebar .widget-title:before{top:13px;bottom:13px;background:#e31e2f}.hn360-sidebar .search-form{display:grid;grid-template-columns:minmax(0,1fr) auto}.hn360-sidebar .search-field{min-width:0;height:42px}.hn360-sidebar .search-submit{padding:0 15px;font-size:13px}.sidebar-post-list{display:grid;gap:14px}.sidebar-post{display:grid;grid-template-columns:92px minmax(0,1fr);gap:11px;padding-bottom:14px;border-bottom:1px solid #edf1f5}.sidebar-post:last-child{padding-bottom:0;border-bottom:0}.sidebar-post-thumb{display:block;width:92px;height:66px;overflow:hidden;border-radius:7px;background:#eef3f8}.sidebar-post-thumb img{width:100%;height:100%;object-fit:cover}.sidebar-post h3{margin:0 0 5px;font-family:"Roboto Condensed",Arial,sans-serif;font-size:15px;line-height:1.3}.sidebar-post time{color:#7b8796;font-size:11px}.sidebar-category-list,.sidebar-archive-list{margin:0;padding:0;list-style:none}.sidebar-category-list li,.sidebar-archive-list li{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px dashed #dfe7ef;color:#758094;font-size:13px}.sidebar-category-list li:last-child,.sidebar-archive-list li:last-child{border-bottom:0}.sidebar-category-list a,.sidebar-archive-list a{color:#173250;font-size:14px;font-weight:600}.sidebar-category-list a:before,.sidebar-archive-list a:before{content:"›";margin-right:8px;color:#e31e2f;font-weight:800}

/* Bài viết cùng chuyên mục */
.article-share{margin:30px 0;padding:18px 20px;border:1px solid #dce6f0;border-left:4px solid #e31e2f;border-radius:12px;background:linear-gradient(105deg,#f6faff,#fff);box-shadow:0 8px 24px rgba(7,54,109,.06)}.article-share-heading{display:flex;align-items:baseline;gap:10px;margin-bottom:13px}.article-share-heading span{color:#07366d;font-family:"Roboto Condensed",Arial,sans-serif;font-size:19px;font-weight:800}.article-share-heading small{color:#738094;font-size:12px}.article-share-buttons{display:flex;flex-wrap:wrap;gap:9px}.share-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:0 15px;border:0;border-radius:7px;color:#fff!important;font-family:Arial,sans-serif;font-size:13px;font-weight:700;line-height:1;cursor:pointer;transition:transform .18s,filter .18s}.share-button:hover{transform:translateY(-2px);filter:brightness(1.06);text-decoration:none}.share-button span:first-child{display:grid;place-items:center;width:20px;height:20px;border:1px solid rgba(255,255,255,.38);border-radius:50%;font-size:13px}.share-facebook{background:#1877f2}.share-zalo{background:#0068ff}.share-instagram{background:linear-gradient(120deg,#833ab4,#e1306c 55%,#f77737)}.share-copy{background:#173250}.share-feedback{min-height:17px;margin:9px 0 0;color:#247348;font-size:12px}.share-feedback:empty{display:none}
.same-category-posts{margin-top:38px;padding-top:4px}.related-heading{margin-bottom:19px;border-bottom:2px solid #07366d}.related-heading span{display:block;margin-bottom:3px;color:#e31e2f;font-size:11px;font-weight:800;letter-spacing:.7px;text-transform:uppercase}.related-heading h2{position:relative;display:inline-block;margin:0;padding:0 0 10px;color:#07366d;font-family:"Roboto Condensed",Arial,sans-serif;font-size:26px}.related-heading h2:after{content:"";position:absolute;right:0;bottom:-2px;left:0;height:3px;background:#e31e2f}.related-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.related-card{overflow:hidden;border:1px solid #dfe7ef;border-radius:11px;background:#fff;transition:transform .22s,box-shadow .22s}.related-card:hover{transform:translateY(-3px);box-shadow:0 11px 27px rgba(7,54,109,.1)}.related-thumb{display:block;aspect-ratio:16/10;overflow:hidden;background:#eef3f8}.related-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.related-card:hover .related-thumb img{transform:scale(1.035)}.related-card-body{padding:12px}.related-card h3{margin:0 0 8px;font-family:"Roboto Condensed",Arial,sans-serif;font-size:17px;line-height:1.32}.related-card time{color:#7b8796;font-size:12px}
@media(max-width:960px){.hn360-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.hn360-sidebar .sidebar-widget{margin-bottom:0}.related-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.hn360-sidebar{display:block}.hn360-sidebar .sidebar-widget{margin-bottom:18px}.related-news-grid{grid-template-columns:1fr 1fr;gap:12px}.related-card h3{font-size:15px}.related-card-body{padding:10px}.related-heading h2{font-size:23px}}
@media(max-width:640px){.article-share{padding:15px}.article-share-heading{display:grid;gap:2px}.article-share-buttons{display:grid;grid-template-columns:1fr 1fr}.share-button{width:100%;padding:0 10px}}

/* Footer ACF 3 khối */
.hn360-footer{position:relative;margin-top:48px;background:linear-gradient(135deg,#071a31 0%,#07366d 58%,#075687 100%);color:#d9e6f3}.footer-accent{height:5px;background:linear-gradient(90deg,#e31e2f 0 28%,#fff 28% 32%,#18a6c9 32% 68%,#64b446 68%)}.footer-brand-row{padding-top:38px}.footer-brand{max-width:720px}.footer-brand img{max-width:230px;max-height:78px;width:auto;height:auto;object-fit:contain}.footer-text-logo{display:inline-block;color:#fff;font-family:"Roboto Condensed",Arial,sans-serif;font-size:30px;font-weight:800;letter-spacing:-.5px}.footer-text-logo:hover{color:#fff}.footer-text-logo strong{color:#ef3344}.footer-brand p{max-width:690px;margin:12px 0 0;color:#c6d6e8;font-size:14px;line-height:1.7}.footer-three-columns{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:48px;padding-top:34px;padding-bottom:40px}.footer-content-block h2{position:relative;margin:0 0 18px;padding-bottom:11px;color:#fff;font-family:"Roboto Condensed",Arial,sans-serif;font-size:19px;text-transform:uppercase}.footer-content-block h2:after{content:"";position:absolute;bottom:0;left:0;width:42px;height:3px;border-radius:3px;background:#e31e2f}.footer-rich-content{color:#c6d6e8;font-size:14px;line-height:1.75}.footer-rich-content p{margin:0 0 10px}.footer-rich-content ul{margin:0;padding:0;list-style:none}.footer-rich-content li{position:relative;padding:5px 0 5px 17px}.footer-rich-content li:before{content:"›";position:absolute;left:0;color:#62bee0;font-weight:800}.footer-rich-content a{color:#dcecff}.footer-rich-content a:hover{color:#fff;text-decoration:underline}.hn360-footer .footer-bottom{border-top:1px solid rgba(255,255,255,.12);background:rgba(1,19,39,.24);color:#aebfd2}.hn360-footer .footer-bottom .container{padding-top:17px;padding-bottom:17px}
.footer-weather{display:grid;grid-template-columns:auto 1fr auto auto auto;align-items:center;gap:18px;margin-top:25px;padding:16px 20px;border:1px solid rgba(255,255,255,.2);border-radius:14px;background:rgba(255,255,255,.08);color:#fff;box-shadow:0 12px 28px rgba(0,0,0,.12)}.footer-weather:hover{border-color:rgba(255,255,255,.38);background:rgba(255,255,255,.12);color:#fff}.footer-weather-icon{font-size:34px}.footer-weather-place,.footer-weather-reading{display:grid;gap:2px}.footer-weather small,.footer-weather time{color:#bdd1e5;font-size:12px}.footer-weather-place strong{font-size:16px}.footer-weather-reading b{font-size:24px}.footer-weather-link{padding-left:18px;border-left:1px solid rgba(255,255,255,.18);font-size:13px;font-weight:700}
@media(max-width:800px){.footer-three-columns{grid-template-columns:1fr 1fr;gap:30px}.footer-block-1{grid-column:1/3}}
@media(max-width:800px){.footer-weather{grid-template-columns:auto 1fr auto}.footer-weather time{grid-column:2}.footer-weather-link{grid-column:3;grid-row:1/3}.footer-weather-reading{grid-column:3;display:none}}
@media(max-width:560px){.hn360-footer{margin-top:34px}.footer-brand-row{padding-top:30px}.footer-three-columns{grid-template-columns:1fr;gap:25px;padding-top:28px;padding-bottom:30px}.footer-block-1{grid-column:auto}.hn360-footer .footer-bottom .container{display:grid;gap:7px}.footer-brand img{max-width:190px}}
@media(max-width:560px){.footer-weather{grid-template-columns:auto 1fr auto;gap:12px;padding:14px}.footer-weather-link{font-size:0;padding-left:10px}.footer-weather-link:after{content:"→";font-size:20px}.footer-weather-icon{font-size:29px}}

/* Trang dự báo thời tiết */
.weather-page{background:#f3f7fb}.weather-hero{padding:30px 0 42px;background:radial-gradient(circle at 86% 10%,rgba(65,194,222,.35),transparent 32%),linear-gradient(120deg,#052f5d,#075ba6 67%,#0b91ad);color:#fff}.weather-hero .breadcrumbs,.weather-hero .breadcrumbs a{color:#dcecff}.weather-hero-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin:12px 0 25px}.weather-eyebrow{display:inline-block;padding:5px 9px;border:1px solid rgba(255,255,255,.3);border-radius:99px;background:rgba(255,255,255,.1);font-size:11px;font-weight:800;text-transform:uppercase}.weather-hero h1{margin:10px 0 4px;font-family:"Roboto Condensed",Arial,sans-serif;font-size:44px;line-height:1.1}.weather-hero-head p{margin:0;color:#dcecff;font-size:15px;text-transform:capitalize}.weather-location-label{display:grid;gap:7px;color:#dcecff;font-size:12px;font-weight:700}.weather-location-label select{min-width:220px;height:44px;padding:0 38px 0 13px;border:1px solid rgba(255,255,255,.4);border-radius:9px;background:#fff;color:#173250;font-weight:700}.weather-now{display:grid;grid-template-columns:1.7fr repeat(4,1fr);align-items:stretch;overflow:hidden;border:1px solid rgba(255,255,255,.27);border-radius:17px;background:rgba(255,255,255,.12);backdrop-filter:blur(10px);box-shadow:0 18px 40px rgba(1,28,59,.16)}.weather-now-primary{display:flex;align-items:center;gap:17px;padding:22px 25px;border-right:1px solid rgba(255,255,255,.2)}.weather-big-icon{font-size:53px}.weather-now-primary b,.weather-now-primary strong,.weather-now-primary span{display:block}.weather-now-primary b{font-size:15px}.weather-now-primary strong{font-size:39px;line-height:1.1}.weather-now-primary span:last-child{color:#dcecff;font-size:13px}.weather-stat{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px;border-right:1px solid rgba(255,255,255,.16);text-align:center}.weather-stat:last-child{border-right:0}.weather-stat span{margin-bottom:5px;color:#dcecff;font-size:12px}.weather-stat b{font-size:17px}.weather-error{margin-bottom:15px;padding:11px 14px;border:1px solid #ffd1d5;border-radius:8px;background:#fff1f2;color:#a40d1b;font-size:14px}.weather-content{padding-top:30px;padding-bottom:42px}.weather-panel,.weather-news{margin-bottom:28px;padding:22px;border:1px solid #dfe7ef;border-radius:15px;background:#fff;box-shadow:0 10px 30px rgba(7,54,109,.06)}.weather-section-title{display:flex;align-items:end;justify-content:space-between;margin-bottom:17px;padding-bottom:10px;border-bottom:1px solid #dfe7ef}.weather-section-title span{display:block;color:#e31e2f;font-size:11px;font-weight:800;text-transform:uppercase}.weather-section-title h2{margin:2px 0 0;color:#07366d;font-family:"Roboto Condensed",Arial,sans-serif;font-size:25px}.weather-section-title>a{color:#0756a3;font-size:13px;font-weight:700}.weather-hourly{display:flex;gap:10px;padding:2px 1px 9px;overflow-x:auto;scrollbar-width:thin}.hour-card{flex:0 0 92px;display:grid;justify-items:center;gap:7px;padding:13px 8px;border:1px solid #e2e9f1;border-radius:11px;background:#f8fbfe}.hour-card:first-child{border-color:#87b8e3;background:#edf7ff}.hour-card time{color:#68768a;font-size:11px}.hour-card>span{font-size:25px}.hour-card b{color:#173250;font-size:18px}.hour-card small{color:#49708f;font-size:11px}.weather-daily{display:grid}.day-card{display:grid;grid-template-columns:1.15fr 1.45fr 1fr 1fr .8fr;align-items:center;gap:13px;padding:13px 8px;border-bottom:1px solid #edf1f5}.day-card:last-child{border-bottom:0}.day-card>strong{color:#173250;text-transform:capitalize}.day-weather{display:flex;align-items:center;gap:9px;color:#58677a;font-size:13px}.day-weather i{font-size:24px;font-style:normal}.day-rain,.day-wind{color:#68768a;font-size:12px}.day-card>b{text-align:right;color:#07366d}.weather-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.weather-news-grid .news-title{font-size:18px}.weather-source{text-align:center;color:#758094;font-size:11px}.weather-source a{color:#0756a3;text-decoration:underline}.weather-loading{padding:25px;color:#758094;text-align:center}
@media(max-width:900px){.weather-now{grid-template-columns:repeat(4,1fr)}.weather-now-primary{grid-column:1/5;border-right:0;border-bottom:1px solid rgba(255,255,255,.2)}.weather-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.day-card{grid-template-columns:1.1fr 1.4fr 1fr .8fr}.day-wind{display:none}}
@media(max-width:640px){.weather-hero{padding:21px 0 28px}.weather-hero-head{display:grid;gap:18px}.weather-hero h1{font-size:35px}.weather-location-label select{width:100%}.weather-now{grid-template-columns:repeat(2,1fr)}.weather-now-primary{grid-column:1/3;padding:18px}.weather-stat{min-height:76px;border-bottom:1px solid rgba(255,255,255,.15)}.weather-panel,.weather-news{padding:15px;border-radius:12px}.day-card{grid-template-columns:1fr auto auto;padding:12px 2px}.day-weather{grid-column:1/2}.day-rain{display:none}.day-card>b{grid-column:3;text-align:right}.weather-news-grid{grid-template-columns:1fr 1fr;gap:12px}.weather-news-grid .news-excerpt{display:none}.weather-news-grid .news-title{font-size:15px}.weather-section-title h2{font-size:22px}}

/* Nội dung bài viết: quy tắc gốc, không ép tỷ lệ hoặc cắt ảnh trong bài. */
.single-news-page .content-layout > *,
.single-news-page .single-main-column,
.single-news-page .news-article,
.single-news-page .article-content { min-width:0; max-width:100%; }
.single-news-page .article-content { font-size:17px; line-height:1.6; overflow-wrap:break-word; }
.single-news-page .article-content :is(p,ul,ol,blockquote,figure,.wp-block-image,.wp-block-gallery,.wp-block-embed) { margin-block:0 8px; }
.single-news-page .article-content :is(h2,h3,h4) { line-height:1.28; margin:14px 0 8px; overflow-wrap:break-word; }
.single-news-page .article-content :is(ul,ol) { padding-left:1.5em; }
.single-news-page .article-content li + li { margin-top:.25em; }
.single-news-page .article-content :is(img,video,svg) { max-width:100%; height:auto; }
.single-news-page .article-content img { display:block; object-fit:contain; }
.single-news-page .article-content :is(figure,.wp-block-image,.wp-caption) { max-width:100%; height:auto; }
.single-news-page .article-content :is(figure,.wp-block-image,.wp-caption) img { width:auto; max-width:100%; height:auto; margin-inline:auto; }
.single-news-page .article-content :is(figcaption,.wp-caption-text) { margin-top:9px; font-size:14px; line-height:1.55; color:#65758a; text-align:center; }
.single-news-page .article-content .aligncenter { margin-left:auto; margin-right:auto; }
.single-news-page .article-content .alignleft { float:left; max-width:48%; margin:0 20px 14px 0; }
.single-news-page .article-content .alignright { float:right; max-width:48%; margin:0 0 14px 20px; }
.single-news-page .article-content::after { content:""; display:block; clear:both; }
.single-news-page .article-content :is(iframe,embed,object) { max-width:100%; }
.single-news-page .article-content :is(.wp-block-embed__wrapper,.wp-block-video) { max-width:100%; }
.single-news-page .article-content .wp-block-gallery { display:flex; flex-wrap:wrap; gap:12px; }
.single-news-page .article-content .wp-block-gallery figure { min-width:0; }
.single-news-page .article-content .wp-block-gallery img { width:100%; height:auto; }
.single-news-page .article-content .wp-block-table,
.single-news-page .article-content .table-responsive { max-width:100%; overflow-x:auto; }
@media(max-width:640px) {
 .single-news-page .article-content { font-size:16px; line-height:1.58; }
 .single-news-page .article-content :is(.alignleft,.alignright) { float:none; max-width:100%; margin:0 0 14px; }
 .single-news-page .article-content :is(h2,h3,h4) { margin-top:12px; }
}
