* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: Arial, sans-serif;
    color: #26384d;
    background: white;
}

header {
    background: white;
    padding: 15px 7%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 170px;
    height: 60px;
    object-fit: contain;
    
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    color: #243d5b;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

nav a:hover {
    color: #2872bd;
}

.contact-btn {
    background: #174b87;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
}

.menu-toggle {
    display: none;
    font-size: 25px;
    border: none;
    background: none;
    color: #174b87;
}

/* HERO */

.hero {
    min-height: 570px;
    display: flex;
    align-items: center;
    padding: 80px 9%;
    background: linear-gradient(110deg, #ffffff 60%, #edf5fd);
}

.hero-content {
    max-width: 750px;
}

.tagline {
    color: #2872bd;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 55px;
    line-height: 1.2;
    color: #102e50;
    margin-bottom: 22px;
}

h1 span, h2 span {
    color: #2872bd;
}

.hero p {
    font-size: 17px;
    line-height: 1.8;
    color: #68798d;
    margin-bottom: 25px;
}

.primary-btn {
    display: inline-block;
    background: #174b87;
    color: white;
    padding: 15px 24px;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.primary-btn:hover {
    background: #10365f;
}

/* COMMON SECTIONS */

.section {
    padding: 85px 8%;
}

.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title > p:first-child {
    color: #2872bd;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: 38px;
    color: #102e50;
    margin-bottom: 15px;
}

.section-title > p:last-child {
    color: #68798d;
}

/* SERVICES */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    padding: 30px;
    border: 1px solid #e0e8f0;
    background: white;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(23,75,135,0.10);
}

.card h3 {
    color: #174b87;
    margin-bottom: 15px;
}

.card p {
    color: #68798d;
    line-height: 1.7;
    font-size: 14px;
}

/* INDUSTRIES */

.light-section {
    background: #f3f7fb;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.industry-grid div {
    background: white;
    padding: 25px 15px;
    text-align: center;
    font-weight: bold;
    color: #174b87;
    border: 1px solid #e2eaf2;
}

/* ABOUT */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 38px;
    color: #102e50;
}

.about-content p {
    color: #68798d;
    line-height: 1.8;
    margin-bottom: 15px;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 45px;
}

.mission-grid div {
    background: #f3f7fb;
    padding: 30px;
    border-left: 4px solid #2872bd;
}

.mission-grid h3 {
    color: #174b87;
    margin-bottom: 12px;
}

/* CAREERS */

.career-box {
    background: white;
    padding: 55px;
    text-align: center;
}

.career-box h2 {
    font-size: 38px;
    color: #102e50;
    margin-bottom: 20px;
}

.career-box p:not(.tagline) {
    color: #68798d;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* CONTACT */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info h3 {
    color: #174b87;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    color: #68798d;
}

.contact-info a {
    color: #2872bd;
    text-decoration: none;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 14px;
    border: 1px solid #dce5ee;
    font-family: Arial, sans-serif;
    font-size: 14px;
    width: 100%;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

/* FOOTER */

footer {
    background: #102e50;
    color: white;
    padding: 55px 8% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 35px;
}

.footer-content h3 {
    margin-bottom: 18px;
}

.footer-content p {
    color: #bdcfe1;
    margin-top: 12px;
}

.footer-content a {
    display: block;
    color: #bdcfe1;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
}

.copyright {
    border-top: 1px solid #ffffff30;
    padding-top: 20px;
    text-align: center;
    color: #bdcfe1;
    font-size: 12px;
}

/* MOBILE */

@media(max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    nav.open {
        display: flex;
    }

    .hero h1 {
        font-size: 38px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content,
    .mission-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .career-box {
        padding: 30px 15px;
    }

    .section {
        padding: 60px 6%;
    }

}

/* Fix AmTech Nexus Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: 170px !important;
    height: 60px !important;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Fix navigation layout */
header {
    width: 100%;
    box-sizing: border-box;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Prevent horizontal scrolling */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.oracle partner logo {
    display: flex;
    align-items: center;
    margin-left: 15px;
    flex-shrink: 0;
}

.oracle partner logo img {
    width: 150px;
    height: 70px;
    object-fit: contain;
    display: block;
}


/* INSIGHTS SECTION */

.insights-section {
    padding: 90px 6%;
    background: #ffffff;
    font-family: Arial, sans-serif;
}

.insights-container {
    max-width: 1200px;
    margin: auto;
}

.insights-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px;
}

.insights-label,
.article-category {
    color: #1765c1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.insights-heading h2 {
    font-size: 40px;
    color: #12345a;
    margin: 15px 0;
}

.insights-heading p {
    color: #64748b;
    line-height: 1.8;
    font-size: 16px;
}

.insights-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 55px;
    text-align: center;
}

.stat-box {
    padding: 25px 10px;
    background: #f4f8fd;
    border-radius: 10px;
}

.stat-box h3 {
    color: #1765c1;
    font-size: 30px;
    margin: 0 0 8px;
}

.stat-box p {
    color: #64748b;
    margin: 0;
    font-size: 14px;
}

.insights-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid #d8e2ef;
    color: #334155;
    padding: 11px 22px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1765c1;
    color: #ffffff;
    border-color: #1765c1;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.insight-card {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(20, 60, 100, 0.10);
}

.article-image {
    height: 190px;
    background: linear-gradient(135deg, #dcecff, #8db8e9);
    position: relative;
}

.article-image span {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #1765c1;
    color: white;
    padding: 7px 12px;
    border-radius: 4px;
    font-size: 10px;
}

.article-two {
    background: linear-gradient(135deg, #e8efff, #a6bce9);
}

.article-three {
    background: linear-gradient(135deg, #d9f1f4, #83c8d4);
}

.article-four {
    background: linear-gradient(135deg, #e5e9ff, #a4a9e4);
}

.article-five {
    background: linear-gradient(135deg, #e3f3ed, #9bcdb9);
}

.article-six {
    background: linear-gradient(135deg, #e8e8f8, #b4b5db);
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    color: #17385d;
    font-size: 20px;
    line-height: 1.4;
    margin: 12px 0;
}

.article-content p {
    color: #64748b;
    line-height: 1.7;
    font-size: 14px;
    margin-bottom: 20px;
}

.article-content a {
    color: #1765c1;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.article-content a:hover {
    text-decoration: underline;
}

.insights-newsletter {
    text-align: center;
    background: #f2f7fd;
    padding: 50px 20px;
    border-radius: 12px;
    margin-top: 70px;
}

.insights-newsletter h2 {
    color: #12345a;
    font-size: 28px;
}

.insights-newsletter p {
    color: #64748b;
}

.insights-newsletter form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.insights-newsletter input {
    width: 300px;
    max-width: 100%;
    padding: 14px;
    border: 1px solid #d8e2ef;
    border-radius: 5px;
    font-size: 14px;
}

.insights-newsletter button {
    background: #1765c1;
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 5px;
    cursor: pointer;
}

.insights-newsletter button:hover {
    background: #104b91;
}

/* MOBILE RESPONSIVE */

@media (max-width: 900px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .insights-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .insights-section {
        padding: 60px 5%;
    }

    .insights-heading h2 {
        font-size: 30px;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .insights-newsletter form {
        flex-direction: column;
    }

    .insights-newsletter input,
    .insights-newsletter button {
        width: 100%;
        box-sizing: border-box;
    }
}


/* ORACLE CREDENTIALS */


/* HOME CONTENT SIDE BY SIDE */

/* HOMEPAGE TWO-COLUMN LAYOUT */

.home-content-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 6%;
    box-sizing: border-box;
}

.home-intro {
    min-width: 0;
}

.oracle-credentials {
    display: block;
    width: 100%;
    max-width: 430px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #dce7f3;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(23, 101, 193, 0.10);
    box-sizing: border-box;
    justify-self: end;
}

.oracle-credentials h2 {
    color: #1765c1;
    font-size: 23px;
    margin: 0 0 18px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaf2fc;
}

.oracle-credentials .credential-item {
    padding: 14px 0;
    border-bottom: 1px solid #e5eaf1;
}

.oracle-credentials .credential-item:last-of-type {
    border-bottom: none;
}

.oracle-credentials .credential-item h3 {
    color: #1765c1;
    font-size: 18px;
    margin: 0 0 6px;
}

.oracle-credentials .credential-item p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.oracle-credentials .credentials-locations {
    background: #f2f7fd;
    padding: 12px;
    border-radius: 7px;
    margin-top: 15px;
    text-align: center;
    color: #12345a;
    font-size: 12px;
    line-height: 1.8;
}

/* MOBILE RESPONSIVE */

@media (max-width: 768px) {
    .home-content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .oracle-credentials {
        max-width: 100%;
        justify-self: stretch;
    }
}


/* AMTECH HOMEPAGE SIDE-BY-SIDE LAYOUT */

.home-content-layout {
    display: grid !important;
    grid-template-columns: 55% 45% !important;
    gap: 25px;
    align-items: center;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 40px 4%;
    box-sizing: border-box;
}

.home-intro {
    width: 100%;
    min-width: 0;
}

.home-intro h1 {
    font-size: 36px;
    line-height: 1.2;
    max-width: 550px;
}

.home-intro p {
    font-size: 15px;
    line-height: 1.7;
    max-width: 550px;
}

.oracle-credentials {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-self: stretch;
    box-sizing: border-box;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #dce7f3;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(23, 101, 193, 0.10);
}

@media (max-width: 768px) {
    .home-content-layout {
        grid-template-columns: 1fr !important;
    }

    .home-intro h1 {
        font-size: 30px;
    }
}


/* HOME INTRO AND ORACLE CREDENTIALS */

.hero .home-content-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 45px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 5%;
    box-sizing: border-box;
}

.home-intro {
    min-width: 0;
}

.home-intro h1 {
    font-size: 42px;
    line-height: 1.2;
    max-width: 550px;
}

.home-intro p {
    line-height: 1.7;
    max-width: 550px;
}

.oracle-credentials {
    width: 100%;
    max-width: 430px;
    justify-self: end;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #dce7f3;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(23, 101, 193, 0.10);
    box-sizing: border-box;
}

.oracle-credentials h2 {
    color: #1765c1;
    font-size: 23px;
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaf2fc;
}

.oracle-credentials .credential-item {
    padding: 13px 0;
    border-bottom: 1px solid #e5eaf1;
}

.oracle-credentials .credential-item h3 {
    color: #1765c1;
    font-size: 18px;
    margin: 0 0 6px;
}

.oracle-credentials .credential-item p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.oracle-credentials .credentials-locations {
    background: #f2f7fd;
    padding: 12px;
    border-radius: 7px;
    margin-top: 15px;
    text-align: center;
    font-size: 12px;
    color: #12345a;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .hero .home-content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .home-intro h1 {
        font-size: 32px;
    }

    .oracle-credentials {
        max-width: 100%;
    }
}


/* INCREASE HOMEPAGE TEXT SIZE */

.home-intro .tagline {
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 600;
}

.home-intro h1 {
    font-size: 48px;
    line-height: 1.25;
    max-width: 600px;
}

.home-intro > p:not(.tagline) {
    font-size: 17px;
    line-height: 1.8;
    max-width: 580px;
}

@media (max-width: 768px) {
    .home-intro h1 {
        font-size: 34px;
    }

    .home-intro .tagline {
        font-size: 13px;
    }

    .home-intro > p:not(.tagline) {
        font-size: 15px;
    }
}

/* REDUCE GAP BELOW NAVBAR */

.hero {
    padding-top: 15px;
}

.hero .home-content-layout {
    padding-top: 20px;
}

body {
    padding-top: 90px;
}

/* PREVENT SECTIONS FROM HIDING BEHIND NAVBAR */

section {
    scroll-margin-top: 100px;
}

/* ARTICLE POPUP */

.article-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    padding: 30px 15px;
    overflow-y: auto;
}

.article-modal-content {
    background: white;
    max-width: 750px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 12px;
    position: relative;
}

.article-modal-content h2 {
    color: #12345a;
    font-size: 28px;
    line-height: 1.4;
    margin: 15px 0 20px;
}

.article-modal-content p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 15px;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    font-size: 32px;
    color: #12345a;
    cursor: pointer;
}

@media (max-width: 600px) {
    .article-modal-content {
        padding: 30px 20px;
    }
}

/* INSIGHTS ARTICLE IMAGES */

.article-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px 10px 0 0;
}

.article-one {
    background-image: url("images/INSIGHT1.jpg");
}

.article-two {
    background-image: url("images/INSIGHT2.jpg");
}

.article-three {
    background-image: url("images/INSIGHT3.jpg");
}

.article-four {
    background-image: url("images/INSIGHT4.jpg");
}

.article-five {
    background-image: url("images/INSIGHT5.jpg");
}

.article-six {
    background-image: url("images/INSIGHT6.jpg");
}


/* NEWSLETTER EMAIL AND SUBSCRIBE BUTTON */

.insights-newsletter form {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    margin-top: 25px;
}

.insights-newsletter input {
    width: 350px;
    height: 48px;
    padding: 0 15px;
    box-sizing: border-box;
    border: 1px solid #d8e2ef;
    border-radius: 5px;
    font-size: 14px;
}

.insights-newsletter button {
    width: 130px;
    height: 48px;
    padding: 0 15px;
    box-sizing: border-box;
    border: none;
    border-radius: 5px;
    background: #1765c1;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.insights-newsletter button:hover {
    background: #104b91;
}

@media (max-width: 600px) {
    .insights-newsletter form {
        flex-direction: column;
    }

    .insights-newsletter input,
    .insights-newsletter button {
        width: 100%;
    }
}
