/* Fonts & Base */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f6f7f8; /* background-light */
    color: #101c22; /* text dark */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    z-index: 100;
}

header .logo h1 {
    color: #13a4ec; /* primary blue */
    margin-left: 0.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #101c22;
    font-weight: 500;
}

.btn-primary {
    background-color: #13a4ec;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #0f8bd4;
}

.btn-secondary {
    border: 2px solid #13a4ec;
    color: #13a4ec;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: #13a4ec;
    color: #fff;
}

/* Hero Section */
#hero {
    background-color: #101c22;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

#hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons a {
    margin: 0 0.5rem;
}

/* Sections */
section {
    padding: 4rem 0;
}

section h3 {
    font-size: 2rem;
    color: #13a4ec;
    margin-bottom: 1rem;
}

section p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Process */
.process-steps {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.step {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.step-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #13a4ec;
    display: block;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #101c22;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

.service-card {
  background-color: white;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-card {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.social-icon {
  display: inline-block;
  background-color: #13a4ec;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background-color: #0d84c8;
}

.section-intro {
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Services Grid */
.services-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.service-box {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.service-box h4 {
    margin-bottom: 1rem;
    color: #13a4ec;
}

.service-box {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.service-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}



/* Contact Grid */
.contact-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-box {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.contact-box h4 {
    margin-bottom: 1rem;
    color: #13a4ec;
}

.contact-box a {
    text-decoration: none;
    color: #101c22;
    font-weight: 500;
}

.contact-box a:hover {
    color: #13a4ec;
}

/* Social links layout */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Header */
header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    z-index: 100;
}

/* Header container layout */
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo section */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logo image size */
.logo img {
    height: 40px;
    width: auto;
}

/* Logo text */
.logo h1 {
    font-size: 1.3rem;
    color: #13a4ec;
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #101c22;
    font-weight: 500;
}

header .btn-primary {
    margin-left: 20px;
}


/* Modern header style */
header {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e6e6e6;
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #101c22;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

/* Animated underline */
nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: 0;
    background-color: #13a4ec;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #13a4ec;
}

nav a:hover::after {
    width: 100%;
}


.btn-primary {
    background-color: #13a4ec;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 0.6rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0f8bd4;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* Our Work Section */
#our_work {
    padding: 4rem 0;
}

#our_work .section-intro {
    margin-top: 1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* button spacing */
.work-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}


/* About Page Section */
#about-page {
    padding: 4rem 0;
}

#about-page .container {
    max-width: 1200px;  /* match homepage container */
}

#about-page h2 {
    font-size: 2.5rem;
    color: #13a4ec;
    margin-bottom: 1.5rem;
}

#about-page p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.8rem;
    max-width: 100%; /* make paragraphs stretch full container width */
}

/* Company Structure */
.about-structure ul {
    list-style: disc inside;
    margin-left: 1rem;
    margin-bottom: 2rem;
}

.about-structure ul li {
    margin-bottom: 1rem;
}

/* Mission & Vision */
.mission-vision {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.mission, .vision {
    flex: 1;
    min-width: 250px;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.mission h3, .vision h3 {
    color: #13a4ec;
    margin-bottom: 1rem;
}

.mission p, .vision p {
    max-width: 100%; /* stretch text like homepage */
}

/* Why Choose XiXi Solutions */
.why-xixi {
    margin-top: 2rem;
}

.why-xixi h3 {
    color: #13a4ec;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.why-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.why-card h4 {
    color: #13a4ec;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.why-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 100%; /* stretch text */
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .mission-vision {
        flex-direction: column;
    }
}

/* About Section: Company Structure */
.about-structure {
    padding: 4rem 0;
    max-width: 1200px; /* match other sections */
    margin: 0 auto;    /* center the section */
    box-sizing: border-box;
}

.structure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.structure-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.structure-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.logo-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.structure-logo {
    width: 50px;
    height: auto;
    display: block;
}

.structure-card h4 {
    color: #13a4ec;
    font-size: 1.2rem;
    margin: 0;
}

.structure-card p {
    font-size: 1rem;
    line-height: 1.7;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .structure-grid {
        grid-template-columns: 1fr; /* stack cards on smaller screens */
    }
}

/* Footer */
footer {
    background-color: #101c22;
    color: #fff;
    padding: 3rem 0;
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    margin: 0 0.25rem;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social .social-icon img {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.footer-social .social-icon:hover img {
    transform: scale(1.1);
}

.footer-copy {
    font-size: 0.85rem;
    color: white;
}

/* Responsive Footer */
@media screen and (max-width: 768px) {
    .footer-container {
        gap: 1rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Tutoring Packages Section */
.packages-section {
    margin-top: 3rem;
}

.packages-section h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

/* Grid Layout */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Card Design */
.package-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */
.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

/* Titles */
.package-card h4 {
    color: #13a4ec;
    margin-bottom: 1.2rem;
}

/* Group spacing */
.package-group {
    margin-bottom: 1.5rem;
}

.package-group h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

/* List styling */
.package-group ul {
    list-style: none;
    padding: 0;
}

.package-group ul li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: #555;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }

    nav a {
        padding: 0.5rem 0;
        font-size: 1rem;
    }

    header .btn-primary {
        align-self: stretch;
        text-align: center;
        width: 100%;
    }
}
/* Hero Section Responsive */
@media screen and (max-width: 1024px) {
    #hero {
        padding: 4rem 1.5rem;
    }

    #hero h2 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {
    #hero {
        padding: 3rem 1rem;
    }

    #hero h2 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons a {
        width: 100%;
    }
}
section .container {
    box-sizing: border-box;
    padding: 0 1rem; /* extra breathing room on small screens */
}
img {
    max-width: 100%;
    height: auto;
}
@media screen and (max-width: 768px) {
    .process-steps, .services-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
}