
/* ==========================================
   THE ENGINEERS GROUP - HOMEPAGE
   Premium Navy Blue + Gold
   ========================================== */

/* Homepage hero */
.teg-hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0;
    background:
        radial-gradient(ellipse at 85% 15%, rgba(242, 181, 30, 0.15), transparent 35%),
        linear-gradient(125deg, #06172f 0%, #0b1f3a 55%, #123c61 100%);
    color: #ffffff;
}

.teg-hero::before {
    position: absolute;
    right: -100px;
    bottom: -180px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 211, 79, 0.13);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.teg-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: 58px;
}

.teg-hero-content {
    max-width: 680px;
}

.teg-hero .teg-eyebrow {
    margin-bottom: 18px;
    color: #ffd34f;
}

.teg-hero h1 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.12;
}

.teg-hero h1 span {
    display: block;
    color: #ffd34f;
}

.teg-hero-content > p {
    max-width: 590px;
    margin-bottom: 28px;
    color: #d4dfec;
    font-size: 16px;
    line-height: 1.85;
}

.teg-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 28px;
}

.teg-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    color: #dbe5f0;
    font-size: 12px;
    font-weight: 600;
}

.teg-hero-highlights span::before {
    margin-right: 7px;
    color: #ffd34f;
    content: "✓";
    font-weight: 800;
}

/* Hero visual panel */
.teg-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.teg-hero-panel {
    position: relative;
    width: 100%;
    max-width: 430px;
    min-height: 350px;
    padding: 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 211, 79, 0.35);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.22);
    text-align: center;
    backdrop-filter: blur(5px);
}

.teg-hero-panel::after {
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 211, 79, 0.15);
    border-radius: 50%;
    content: "";
}

.teg-hero-panel-label {
    color: #ffd34f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.teg-hero-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 132px;
    margin: 30px auto 24px;
    border: 1px solid rgba(255, 211, 79, 0.5);
    border-radius: 50%;
    background: rgba(242, 181, 30, 0.09);
    color: #ffd34f;
    font-size: 78px;
    line-height: 1;
}

.teg-hero-panel h2 {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 23px;
}

.teg-hero-panel p {
    margin-bottom: 0;
    color: #d4dfec;
    font-size: 12px;
    line-height: 1.8;
}

/* Engineering topic cards */
.teg-categories {
    background: #ffffff;
}

.teg-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.teg-category-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 250px;
    padding: 26px 23px;
    border: 1px solid #e0e7f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(11, 31, 58, 0.035);
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.teg-category-card:hover {
    transform: translateY(-5px);
    border-color: #e7c35a;
    box-shadow: 0 13px 30px rgba(11, 31, 58, 0.09);
}

.teg-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #0b1f3a;
    color: #ffd34f;
    font-size: 27px;
    font-weight: 700;
}

.teg-category-card h3 {
    margin-bottom: 10px;
    color: #0b1f3a;
    font-size: 17px;
    line-height: 1.4;
}

.teg-category-card p {
    margin-bottom: 18px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.75;
}

.teg-category-link {
    margin-top: auto;
    color: #164b78;
    font-size: 12px;
    font-weight: 800;
}

/* Featured eBooks section */
.teg-featured-ebooks {
    background: #f5f8fc;
}

.teg-home-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.teg-home-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0e7f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(11, 31, 58, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.teg-home-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 13px 30px rgba(11, 31, 58, 0.1);
}

.teg-home-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 20px;
    background: #ffffff;
}

.teg-home-product-image img {
    width: 100%;
    height: 220px;
    object-fit: contain;
}

.teg-home-product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
    border-top: 1px solid #edf1f6;
}

.teg-home-product-info h3 {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.5;
}

.teg-home-product-info h3 a {
    color: #0b1f3a;
}

.teg-home-product-info h3 a:hover {
    color: #a77900;
}

.teg-home-product-price {
    margin-bottom: 18px;
    color: #0b1f3a;
    font-size: 17px;
    font-weight: 800;
}

.teg-home-product-price del {
    margin-right: 6px;
    color: #8996a8;
    font-size: 13px;
    font-weight: 500;
}

.teg-home-product-price ins {
    color: #0b1f3a;
    text-decoration: none;
}

.teg-home-product-button {
    width: 100%;
    margin-top: auto;
}

/* Latest article cards */
.teg-latest-articles {
    background: #ffffff;
}

.teg-latest-articles .teg-article-card {
    box-shadow: 0 5px 22px rgba(11, 31, 58, 0.045);
}

/* Homepage final CTA */
.teg-home-cta {
    padding: 54px 0;
    background: linear-gradient(120deg, #06172f, #123c61);
    color: #ffffff;
}

.teg-home-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.teg-home-cta .teg-eyebrow {
    color: #ffd34f;
}

.teg-home-cta h2 {
    margin: 10px 0;
    color: #ffffff;
    font-size: clamp(25px, 3vw, 34px);
}

.teg-home-cta p {
    margin-bottom: 0;
    color: #d4dfec;
    font-size: 14px;
}

/* Tablet */
@media (max-width: 1000px) {
    .teg-hero {
        padding: 62px 0;
    }

    .teg-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
        gap: 32px;
    }

    .teg-hero-panel {
        min-height: 310px;
        padding: 26px;
    }

    .teg-category-grid,
    .teg-home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 700px) {
    .teg-hero {
        padding: 48px 0;
    }

    .teg-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .teg-hero h1 {
        font-size: clamp(35px, 9vw, 48px);
        letter-spacing: -0.8px;
    }

    .teg-hero-content > p {
        font-size: 14px;
    }

    .teg-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .teg-hero-actions .teg-button {
        width: 100%;
    }

    .teg-hero-highlights {
        flex-direction: column;
        gap: 8px;
    }

    .teg-hero-panel {
        max-width: 100%;
        min-height: 280px;
    }

    .teg-hero-symbol {
        width: 105px;
        height: 105px;
        margin: 22px auto;
        font-size: 62px;
    }

    .teg-hero-panel h2 {
        font-size: 20px;
    }

    .teg-category-grid,
    .teg-home-product-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .teg-category-card {
        min-height: 0;
    }

    .teg-home-product-image {
        min-height: 190px;
    }

    .teg-home-product-image img {
        height: 190px;
    }

    .teg-home-cta {
        padding: 42px 0;
    }

    .teg-home-cta-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .teg-home-cta-inner > .teg-button {
        width: 100%;
    }
}
