/* Home page layout */
:root {
    --lg-dark: #1b3a4b;
    --lg-accent: #f5b301;
    --lg-badge: #e8562a;
    --lg-cta: #e8264a;
    --lg-cat: #1e6f8f;
    --lg-text: #1f2933;
    --lg-muted: #7b8794;
    --lg-border: #e6e8eb;
}

.lg-hero,
.lg-section,
.lg-newsletter { font-family: 'Lato', sans-serif; }

.lg-hero { padding: 30px 0 10px; }
.lg-hero-row { display: flex; flex-wrap: wrap; }
.lg-hero-row > [class*="col-"] { float: none; }

.lg-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    background: #eef1f4;
}
.lg-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}
.lg-thumb:hover img { transform: scale(1.05); }

.lg-meta {
    font-size: 12px;
    color: var(--lg-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.lg-meta span { white-space: nowrap; }
.lg-meta i { margin-right: 4px; }
.lg-meta-light,
.lg-meta-light i { color: rgba(255,255,255,.85); }

.lg-hero-main {
    position: relative;
    height: 100%;
    min-height: 420px;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
}
.lg-hero-main-link { display: block; position: absolute; inset: 0; }
.lg-hero-main-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.lg-hero-main:hover .lg-hero-main-link img { transform: scale(1.04); }
.lg-hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 90px 28px 24px;
    background: linear-gradient(to top, rgba(10,20,28,.95) 0%, rgba(10,20,28,.55) 60%, rgba(10,20,28,0) 100%);
    color: #fff;
}
.lg-badge {
    display: inline-block;
    background: var(--lg-badge);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
}
.lg-hero-title {
    color: #fff;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 14px;
    font-family: 'Ubuntu', sans-serif;
}
.lg-hero-main-link:hover .lg-hero-title { color: var(--lg-accent); }

.lg-hero-grid { margin-left: -10px; margin-right: -10px; }
.lg-hero-grid > [class*="col-"] {
    float: left;
    padding-left: 10px;
    padding-right: 10px;
    min-width: 0;
}
.lg-hero-mini { margin-bottom: 18px; }
.lg-hero-mini .lg-thumb { height: 130px; border-radius: 4px; }
.lg-hero-mini-title {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    margin: 10px 0 6px;
    min-height: 38px;
    font-family: 'Ubuntu', sans-serif;
}
.lg-hero-mini-title a { color: var(--lg-text); }
.lg-hero-mini-title a:hover { color: var(--lg-cat); }

.lg-section { padding: 28px 0 10px; }
.lg-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
}
.lg-section-title {
    position: relative;
    font-size: 22px;
    font-weight: 700;
    color: var(--lg-text);
    margin: 0;
    padding-bottom: 12px;
    font-family: 'Ubuntu', sans-serif;
}
.lg-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    background: var(--lg-accent);
    border-radius: 2px;
}
.lg-view-all {
    font-size: 12px;
    font-weight: 700;
    color: var(--lg-dark);
    padding-bottom: 12px;
    white-space: nowrap;
}
.lg-view-all i { margin-left: 4px; transition: margin .2s; }
.lg-view-all:hover { color: var(--lg-cat); }
.lg-view-all:hover i { margin-left: 8px; }

.lg-card-row { display: flex; flex-wrap: wrap; }
.lg-card-row > [class*="col-"] {
    display: flex;
    float: none;
    margin-bottom: 24px;
    min-width: 0;
}
.lg-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border: 1px solid var(--lg-border);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}
.lg-card:hover {
    box-shadow: 0 10px 26px rgba(20,44,58,.12);
    transform: translateY(-3px);
}
.lg-card .lg-thumb { height: 160px; }
.lg-card-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.lg-card-cat {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--lg-cat);
    margin-bottom: 8px;
}
.lg-card-title {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 10px;
    font-family: 'Ubuntu', sans-serif;
}
.lg-card-title a { color: var(--lg-text); }
.lg-card-title a:hover { color: var(--lg-cat); }
.lg-card-excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: var(--lg-muted);
    margin: 14px 0 0;
}

.lg-resources { padding-top: 10px; }
.lg-resource-box {
    background: #f7f8fa;
    border: 1px solid var(--lg-border);
    border-radius: 6px;
    padding: 22px 22px 8px;
    margin-bottom: 24px;
}
.lg-resource-box .lg-section-head { margin-bottom: 14px; }
.lg-resource-box .lg-section-title { font-size: 18px; }
.lg-resource-list { list-style: none; margin: 0; padding: 0; }
.lg-resource-list li { border-bottom: 1px dashed var(--lg-border); break-inside: avoid; }
.lg-resource-list li:last-child { border-bottom: 0; }
.lg-resource-list a {
    display: block;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--lg-text);
}
.lg-resource-list a i { color: var(--lg-cat); margin-right: 8px; width: 14px; text-align: center; }
.lg-resource-list a:hover { color: var(--lg-cat); }

.lg-video-frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    margin-bottom: 24px;
}
.lg-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lg-newsletter {
    background: var(--lg-dark);
    color: #fff;
    padding: 34px 0;
    margin-top: 6px;
}
.lg-newsletter-row { display: flex; align-items: center; flex-wrap: wrap; }
.lg-newsletter-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    font-family: 'Ubuntu', sans-serif;
}
.lg-newsletter-text { margin: 0; color: rgba(255,255,255,.75); font-size: 13px; }
.lg-newsletter-form { display: flex; }
.lg-newsletter-input {
    flex: 1;
    height: 44px;
    border: 0;
    border-radius: 4px 0 0 4px;
    padding: 0 16px;
    font-size: 13px;
    color: var(--lg-text);
    outline: none;
}
.lg-newsletter-btn {
    height: 44px;
    border: 0;
    border-radius: 0 4px 4px 0;
    padding: 0 26px;
    background: var(--lg-cta);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.lg-newsletter-btn:hover { background: #c81c3c; }
.lg-newsletter-msg { font-size: 12px; margin-top: 8px; min-height: 16px; color: var(--lg-accent); }

@media (min-width: 768px) {
    .lg-resource-list { column-count: 2; column-gap: 30px; }
}

@media (max-width: 991px) {
    .lg-hero-main { min-height: 340px; }
    .lg-hero-title { font-size: 22px; }
    .lg-hero-mini .lg-thumb { height: 110px; }
}

@media (max-width: 767px) {
    .lg-hero { padding-top: 15px; }
    .lg-hero-row { display: block; }
    .lg-hero-main { height: auto; min-height: 280px; margin-bottom: 22px; }
    .lg-hero-overlay { padding: 60px 18px 18px; }
    .lg-hero-title { font-size: 19px; }
    .lg-hero-mini .lg-thumb { height: 120px; }
    .lg-hero-mini-title { font-size: 13px; min-height: 0; }
    .lg-section { padding-top: 18px; }
    .lg-section-title { font-size: 19px; }
    .lg-card .lg-thumb { height: 180px; }
    .lg-newsletter-title { font-size: 18px; }
    .lg-newsletter .col-sm-5 { margin-top: 18px; }
}

@media (max-width: 480px) {
    .lg-hero-grid > .col-xs-6 { width: 100%; }
    .lg-hero-mini .lg-thumb { height: 180px; }
    .lg-newsletter-form { flex-direction: column; }
    .lg-newsletter-input,
    .lg-newsletter-btn { border-radius: 4px; width: 100%; flex: none; }
    .lg-newsletter-btn { margin-top: 8px; }
}
