/* =========================
   GE SunGrid Blog / Instagram Page
   CSS Part 1
   Global + Navbar + Hero + Instagram Section
========================= */

:root {
    --navy: #031426;
    --navy-2: #061b31;
    --yellow: #ffc21a;
    --yellow-2: #ffda5c;
    --white: #ffffff;
    --light: #f6f8fb;
    --text: #101828;
    --muted: #667085;
    --border: rgba(255, 255, 255, 0.16);
    --shadow: 0 25px 70px rgba(0, 0, 0, 0.24);
    --max-width: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", "Inter", Arial, sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

ul {
    list-style: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 900;
    transition: all 0.35s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-yellow {
    background: linear-gradient(135deg, var(--yellow), var(--yellow-2));
    color: var(--navy);
    box-shadow: 0 14px 35px rgba(255, 194, 26, 0.3);
}

.btn-yellow:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(255, 194, 26, 0.45);
}

.btn-yellow::after,
.btn-outline::after {
    content: "→";
    transition: transform 0.3s ease;
}

.btn-yellow:hover::after,
.btn-outline:hover::after {
    transform: translateX(5px);
}

.btn-outline {
    color: var(--yellow);
    border: 2px solid var(--yellow);
    background: transparent;
}

.btn-outline:hover {
    background: var(--yellow);
    color: var(--navy);
    transform: translateY(-4px);
}

/* Hero */

.blog-hero {
    min-height: 620px;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(3, 20, 38, .98), rgba(3, 20, 38, .78), rgba(3, 20, 38, .25)),
        url("images/84E789B0-DC9A-4149-A2E9-02780AA29EFF.PNG") center/cover no-repeat;
}

.navbar {
    width: min(var(--max-width), 92%);
    margin: auto;
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideDown .8s ease both;
}

.logo {
    line-height: 1;
}

.logo span {
    display: block;
    font-size: 48px;
    font-weight: 950;
    color: var(--yellow);
    letter-spacing: -3px;
}

.logo small {
    display: block;
    color: var(--white);
    font-size: 15px;
    font-weight: 900;
    margin-top: -9px;
    margin-left: 47px;
}

.logo p {
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 34px;
}

.nav-links a {
    position: relative;
    font-size: 14px;
    font-weight: 800;
    color: rgba(255, 255, 255, .92);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -16px;
    width: 0;
    height: 3px;
    background: var(--yellow);
    transform: translateX(-50%);
    transition: .35s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.hero-content {
    width: min(var(--max-width), 92%);
    margin: auto;
    padding: 90px 0 120px;
}

.section-label {
    display: inline-block;
    color: var(--yellow);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.section-label::after {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    background: var(--yellow);
    margin-top: 10px;
}

.hero-content h1 {
    max-width: 720px;
    font-size: clamp(46px, 6vw, 76px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -3px;
    margin-bottom: 24px;
    animation: fadeUp .9s ease both;
}

.hero-content p {
    max-width: 620px;
    color: rgba(255, 255, 255, .85);
    font-size: 18px;
    margin-bottom: 34px;
    animation: fadeUp .9s ease both .15s;
}

/* Instagram Feed */

.instagram-section {
    padding: 80px 4%;
    background: var(--navy);
    color: var(--white);
}

.instagram-header {
    width: min(var(--max-width), 100%);
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
}

.instagram-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    margin-bottom: 10px;
}

.instagram-header p {
    color: rgba(255, 255, 255, .72);
}

.instagram-feed {
    width: min(var(--max-width), 100%);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.insta-card {
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--border);
    transition: .4s ease;
}

.insta-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 194, 26, .65);
    box-shadow: var(--shadow);
}

.insta-card img {
    height: 190px;
    transition: .45s ease;
}

.insta-card:hover img {
    transform: scale(1.08);
    filter: brightness(.85);
}

.insta-content {
    padding: 18px;
}

.insta-content span {
    color: var(--yellow);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.insta-content p {
    font-size: 14px;
    margin: 8px 0 16px;
    color: rgba(255, 255, 255, .86);
}

.insta-meta {
    display: flex;
    gap: 18px;
    color: rgba(255, 255, 255, .68);
}

/* Info + CTA */

.instagram-info {
    padding: 70px 4%;
    background: var(--light);
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 34px;
    width: min(var(--max-width), 100%);
    margin: auto;
}

.info-card,
.cta-card,
.newsletter {
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(3, 20, 38, .08);
}

.info-card {
    background: var(--white);
    padding: 40px;
}

.info-card h2 {
    color: var(--navy);
    font-size: 38px;
    line-height: 1.1;
    margin-bottom: 18px;
}

.info-card p,
.info-card li {
    color: var(--muted);
}

.info-card ul {
    margin-top: 24px;
}

.info-card li {
    margin-bottom: 12px;
    font-weight: 700;
}

.info-card li::before {
    content: "✓";
    color: var(--yellow);
    margin-right: 10px;
}

.cta-card {
    background: var(--navy);
    color: var(--white);
    padding: 34px;
}

.cta-card h3 {
    font-size: 28px;
    margin-bottom: 14px;
}

.cta-card p {
    color: rgba(255, 255, 255, .76);
    margin-bottom: 24px;
}

.cta-card strong {
    display: block;
    margin-top: 22px;
    font-size: 22px;
}

.newsletter {
    width: min(var(--max-width), 92%);
    margin: 0 auto 70px;
    padding: 34px;
    background: var(--navy);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
}

.newsletter h2 {
    font-size: 30px;
}

.newsletter p {
    color: rgba(255, 255, 255, .75);
}

/* Footer */

.footer {
    background: #020d1a;
    color: var(--white);
    padding: 80px 4% 0;
}

.footer-grid {
    width: min(var(--max-width), 100%);
    margin: auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
    gap: 42px;
    padding-bottom: 55px;
}

.footer h4 {
    margin-bottom: 18px;
}

.footer p,
.footer a {
    display: block;
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
    margin-bottom: 10px;
    transition: .3s ease;
}

.footer a:hover {
    color: var(--yellow);
    transform: translateX(5px);
}

.footer-bottom {
    width: min(var(--max-width), 100%);
    margin: auto;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom div {
    display: flex;
    gap: 24px;
}

/* Animations + Mobile */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(34px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-26px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .nav-links {
        display: none;
    }

    .instagram-feed {
        grid-template-columns: repeat(2, 1fr);
    }

    .instagram-info {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter,
    .instagram-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 650px) {
    .navbar {
        flex-direction: column;
        gap: 22px;
        text-align: center;
    }

    .nav-actions {
        flex-direction: column;
    }

    .instagram-feed {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom,
    .footer-bottom div {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}