.hero {
    position: relative;
    min-height: 90vh;
    background-color: #111;
    background-image: url('/images/home-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    z-index: 1;
}

.hero-diagonal {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 2;
    line-height: 0;
}

.hero-diagonal svg {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 32px 160px;
    text-align: center;
    width: 100%;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content h1 span {
    color: #f97316;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #ccc;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 40px;
}

.hero-cta-wrap {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-meta {
    margin-top: 56px;
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #f97316;
    line-height: 1.6;
}

.hero-stat span {
    font-size: 14px;
    color: #aaa;
    font-weight: 400;
}

.section-articles {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    line-height: 1.6;
}

.section-intro {
    font-size: 17px;
    color: #666;
    margin-bottom: 48px;
    line-height: 1.6;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}

.article-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.article-card-body {
    padding: 20px;
}

.article-cat {
    font-size: 12px;
    font-weight: 700;
    color: #f97316;
    letter-spacing: 0;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    line-height: 1.6;
}

.article-card-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    line-height: 1.6;
    margin-bottom: 10px;
}

.article-card-body h3 a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}

.article-card-body h3 a:hover {
    color: #f97316;
}

.article-card-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #aaa;
    line-height: 1.6;
}

.article-meta svg {
    flex-shrink: 0;
}

.article-featured {
    grid-column: span 2;
}

.article-featured img {
    height: 280px;
}

.section-categories {
    padding: 80px 0;
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.section-categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #f97316;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.cat-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    padding: 28px 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
    text-align: center;
}

.cat-card:hover {
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.18);
    transform: translateY(-2px);
    color: inherit;
}

.cat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: #f97316;
}

.cat-card p {
    font-size: 14px;
    color: #777;
    margin: 0;
    line-height: 1.6;
}

.cat-card strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
    line-height: 1.6;
}

.section-timeline {
    padding: 80px 0;
    background: #111;
}

.section-timeline .section-title,
.section-timeline .section-intro {
    color: #fff;
}

.section-timeline .section-intro {
    color: #888;
}

.timeline-list {
    position: relative;
    margin-top: 48px;
    padding-left: 40px;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #f97316;
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
    padding: 20px 24px;
    background: #1a1a1a;
    border-radius: 8px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 26px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f97316;
    border: 3px solid #111;
}

.timeline-item:hover {
    background: #222;
}

.timeline-year {
    font-size: 13px;
    font-weight: 700;
    color: #f97316;
    display: block;
    margin-bottom: 6px;
    line-height: 1.6;
}

.timeline-item h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.6;
}

.timeline-item p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

.section-tabs {
    padding: 80px 0;
    background: #fff;
}

.tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #eee;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 400;
    color: #777;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    line-height: 1.6;
}

.tab-btn:hover {
    color: #f97316;
}

.tab-btn.active {
    color: #f97316;
    font-weight: 700;
    border-bottom-color: #f97316;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tabs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.tabs-table th {
    background: #111;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    line-height: 1.6;
}

.tabs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    color: #333;
    line-height: 1.6;
}

.tabs-table tr:last-child td {
    border-bottom: none;
}

.tabs-table tr:hover td {
    background: #fef9f5;
}

.score-bar {
    height: 6px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    min-width: 80px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

.score-fill {
    height: 100%;
    background: #f97316;
    border-radius: 4px;
}

.section-gallery {
    padding: 80px 0;
    background: #f5f5f5;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 48px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #222;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    line-height: 1.6;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gallery-modal.open {
    display: flex;
}

.gallery-modal-content {
    background: #1a1a1a;
    border-radius: 8px;
    max-width: 720px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-modal-content img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 60vh;
    object-fit: cover;
}

.gallery-modal-info {
    padding: 20px 24px;
}

.gallery-modal-info h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.6;
}

.gallery-modal-info p {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.gallery-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s;
}

.gallery-modal-close:hover {
    color: #f97316;
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    z-index: 10;
}

.gallery-modal-nav:hover {
    background: rgba(249, 115, 22, 0.8);
}

.gallery-modal-prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.gallery-modal-next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.section-calculator {
    padding: 80px 0;
    background: #111;
}

.section-calculator .section-title {
    color: #fff;
}

.section-calculator .section-intro {
    color: #888;
}

.calc-wrap {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.calc-form {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 32px;
}

.calc-form label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #ccc;
    margin-bottom: 8px;
    line-height: 1.6;
}

.calc-form select,
.calc-form input[type="range"] {
    width: 100%;
    margin-bottom: 24px;
    background: #222;
    color: #fff;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.6;
    cursor: pointer;
}

.calc-form input[type="range"] {
    padding: 4px 0;
    border: none;
    background: transparent;
    cursor: pointer;
    accent-color: #f97316;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #555;
    margin-top: -18px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.calc-result {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 32px;
}

.calc-result p {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.calc-result-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.calc-result-rows li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #222;
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
}

.calc-result-rows li:last-child {
    border-bottom: none;
}

.calc-result-rows li strong {
    color: #f97316;
    font-weight: 700;
}

.calc-total {
    margin-top: 24px;
    padding: 16px;
    background: #f97316;
    border-radius: 6px;
    text-align: center;
}

.calc-total span {
    display: block;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.6;
}

.calc-total strong {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.6;
}

.section-newsletter {
    padding: 80px 0;
    background: #f97316;
    text-align: center;
}

.section-newsletter h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 16px;
}

.section-newsletter p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    line-height: 1.6;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 13px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
    color: #111;
    line-height: 1.6;
    outline: none;
}

.newsletter-form input[type="email"]::placeholder {
    color: #aaa;
}

.newsletter-form button {
    background: #22d3ee;
    color: #111;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    line-height: 1.6;
}

.newsletter-form button:hover {
    background: #06b6d4;
}

.newsletter-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 16px;
    line-height: 1.6;
}

.section-contact {
    padding: 80px 0;
    background: #f9f9f9;
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
    margin-top: 48px;
}

.contact-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
    line-height: 1.6;
}

.contact-info p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
}

.contact-form {
    background: #fff;
    border-radius: 8px;
    padding: 36px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.6;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    color: #111;
    background: #fff;
    line-height: 1.6;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #f97316;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-submit {
    width: 100%;
    background: #22d3ee;
    color: #111;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    line-height: 1.6;
}

.form-submit:hover {
    background: #06b6d4;
}

.form-success {
    display: none;
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.form-success strong {
    color: #f97316;
    font-weight: 700;
}

@media (max-width: 900px) {
    .calc-wrap {
        grid-template-columns: 1fr;
    }
    .contact-wrap {
        grid-template-columns: 1fr;
    }
    .article-featured {
        grid-column: span 1;
    }
    .article-featured img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 34px;
    }
    .hero-content {
        padding: 60px 20px 140px;
    }
    .hero-meta {
        gap: 24px;
    }
    .hero-stat strong {
        font-size: 24px;
    }
    .section-title {
        font-size: 26px;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    .tabs-nav {
        gap: 0;
    }
    .tab-btn {
        padding: 10px 14px;
        font-size: 14px;
    }
    .section-newsletter h2 {
        font-size: 26px;
    }
    .timeline-list {
        padding-left: 28px;
    }
    .timeline-item::before {
        left: -22px;
    }
    .calc-form,
    .calc-result {
        padding: 20px;
    }
    .contact-form {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .hero-cta-wrap {
        flex-direction: column;
        align-items: center;
    }
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .tabs-table {
        font-size: 13px;
    }
    .tabs-table th,
    .tabs-table td {
        padding: 10px 10px;
    }
}