/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
    background-color: #FFFFFF;
    color: #5E6977;
    line-height: 1.6;
}

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

hr {
    width: 25%;
}

#netsec, #infra, #about {
  scroll-margin-top: 100px;
}

ul {
    padding-left: 25px;
}

/* === HEADER === */
header {
    background-color: #175284;
    color: #FFFFFF;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    text-align: center;
    justify-content: space-between;
}

.logo {
    max-width: 350px;
    height: auto;
    padding-right: 35px;
}

/* Hamburger Menu */
.menu-toggle {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 2rem;
    cursor: pointer;
    display: none;
}

.nav-links {
    text-align: center;
    margin-top: 10px;
    font-size: x-large;
}

.nav-links a {
    margin: 0 15px;
    font-weight: 600;
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #FCA314;
}

/* === HERO === */
.hero {
    background-color: #FCA314;
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
}

.phero {
    background-color: #FCA314;
    color: #FFFFFF;
    padding: 30px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero .btn {
    background-color: #4CB050;
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.hero .btn:hover {
    background-color: #3a8e40;
}

/* === SECTIONS === */
section {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #175284;
}

/* services (index.html & portal.html) */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-card h3 {
    margin-bottom: 15px;
    color: #175284;
}

.service-card img {
    max-width: 300px;
    border-radius: 25px;
}

.servicebtn {
    background-color: #4CB050;
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.servicebtn:hover {
    background-color: #3a8e40;
}

/* Yellow Bar at bottom on index */
#contact {
  background-color: #FCA314;
  max-height: 5px;
}

/* Page Sections on all pages except index.html */
#psection {
  padding: 30px 20px;
  background-color: #FFFFFF;
  color: #175284;
}

#psection h1 {
  text-align: center;
  color: #175284;
  margin-bottom: 30px;
  font-size: 2rem;
}

#psection .intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #5E6977;
  font-size: 1.1rem;
  line-height: 1.7;
}

.psection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.psection-card {
  background-color: #f9f9f9;
  border-left: 5px solid #FCA314;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.psection-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.psection-card h3 {
  color: #175284;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.psection-card p {
  color: #5E6977;
  line-height: 1.6;
  font-size: 1rem;
}

.family-image /* On About.html */ {
    max-width: 300px;
    text-align: center;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

/* === FOOTER === */
footer {
    background-color: #175284;
    color: #FFFFFF;
    text-align: center;
    padding: 30px 10px;
}

footer img {
    max-width: 300px;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 25px;
    padding: 5px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-container {
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #175284;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 10px 0;
        font-size: 1.2rem;
    }

    .menu-toggle.open {
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }

    .contact-info {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }

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

}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
