/* styles.css - WebDev101 Project3
   Purpose: Shared stylesheet for Ho West Tech Hub mini website
   Author: Generated for user
*/

/* Global reset and box sizing (PartE step: universal selector & box-sizing) */
*,
*::before,
*::after {
  box-sizing: border-box; /* ensure padding/margin doesn't break widths */
  margin: 0;
  padding: 0;
}

/* Global font family (Poppins) and base settings */
:root{
  /* Color palette: primary/secondary + user requested accents */
  --primary: #2E86C1; /* given by assignment for accents */
  --secondary: #F1C40F; /* given by assignment for highlights/buttons */
  --green: #28a745;
  --red: #e63946;
  --orange: #ff7f11;
  --black: #000000;
  --white: #ffffff;
  --container-width: 1100px;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(0,0,0,0.12);
}

html,body{
  font-family: 'Poppins', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container to center content and set max width (PartE) */
.container{
  width: 90%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Header styling (PartA & PartE) */
.site-header{
  background: linear-gradient(90deg, var(--black), var(--green));
  color: var(--white);
  border-bottom: 4px solid rgba(255,255,255,0.03);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

/* Logo class (PartA: assign class 'logo') */
.logo{
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img{
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: linear-gradient(180deg,var(--secondary),var(--orange));
  display: inline-block;
}
.logo-text{
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}

/* Navigation links (PartA: class nav-link) */
.main-nav{
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav-link{
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
}
.nav-link:hover,
.nav-link--active{
  background: rgba(255,255,255,0.06);
  color: var(--secondary);
  transition: all 160ms ease-in-out;
}

@media screen and (max-width: 480px) {
  .main-nav {
    display: none;
  }
}
/* Hero Section (PartB) */
.hero{
  background: linear-gradient(135deg, rgba(46,134,193,0.12), rgba(40,167,69,0.06));
  padding: 60px 0 30px 0;
  display: block;
}
.hero-inner{
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: center; /* vertical centering */
  padding: 24px 0;
}
.hero-content{
  text-align: left;
}
.hero-title{
  font-size: 2.25rem; /* larger and bold */
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}
.hero-sub{
  font-size: 1.05rem; /* lighter and smaller than heading */
  color: rgba(0,0,0,0.7);
  margin-bottom: 18px;
}
.btn{
  display: inline-block; /* PartC & PartE requirement */
  background: var(--secondary); /* use the assignment secondary color */
  color: var(--black);
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: filter 160ms ease, transform 160ms ease;
  box-shadow: var(--shadow);
}
.btn:hover{
  transform: translateY(-3px); /* hover effect */
  filter: brightness(0.95); /* slightly darken */
}

/* Small variant of button */
.btn--small{
  padding: 8px 14px;
  font-size: 0.95rem;
}

/* placeholder imade */

.placeholder {
 text-align: right;
  display:flex;
  justify-content:flex-end;
  padding: 10px;
  border: 2px dashed rgba(0,0,0,0.06);
  float: right;
}

.placeholder img {
   height: 350px;
  width: 350px;
  border-radius: 10px;
}

/* Divider under hero (PartB) */
.hero-divider{
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin-top: 24px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 4px;
}

/* Features (PartB) */
.features{
  padding: 40px 0;
  text-align: center;
}
.section-title{
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary); /* primary color for headings */
}
.features-grid{
  display: grid; /* use grid for responsive layout */
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.feature-box{
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  text-align: left; /* left left inside each box */
}
.image-above-mission-values img {
max-width: 100%; height: 250px;	display: block;  margin: 0 auto; 
border-radius: 8px;
box-shadow: 4px 8px rgba(0, 0, 0, 0.1);
}

.feature-icon{
  font-size: 2rem;
  margin-bottom: 8px;
}
.feature-title{
  color: var(--red);
  margin-bottom: 8px;
}
.feature-text{
  color: rgba(0,0,0,0.75);
}
.technology-list {
  list-style-type: none;
  padding-left: 10px;
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 8px;
  border-left: 3px solid #007bff;
  text-align: left;
  color: #28a745;
  }
  .aim {
    border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
    list-style-type: none;
  padding-left: 10px;
  font-size: 1.1em;
  margin-bottom: 8px;
  text-align: left;
  color: #d41010;
  }

/* Services page styles (PartC) */
/* .service-box class used across site for services (PartC and PartE) */
.services-section{
  padding: 48px 0;
  background: linear-gradient(180deg, rgba(249,249,249,1), rgba(241,196,15,0.02));
}
.services-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.service-box{
  background: var(--white);
  padding: 18px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.service-img{
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.04);
}
.service-title{
  color: var(--primary);
  font-weight: 700;
}
.service-desc{
  color: rgba(0,0,0,0.7);
  flex: 1;
}
.service-box .btn{
  align-self: flex-start;
}

/* Hover effects for service boxes (PartC) */
.service-box:hover{
  transform: translateY(-6px);
  transition: transform 220ms ease;
  box-shadow: 0 10px 26px rgba(0,0,0,0.15);
}

/* Contact page styles (PartD) */
.contact-section{
  padding: 48px 0;
  background: linear-gradient(180deg, rgba(46,134,193,0.04), rgba(40,167,69,0.02));
}
.contact-layout{
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 18px;
}
.contact-info{
  flex: 1;
  padding: 18px;
}
.info-item{
  background: var(--white);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid rgba(0,0,0,0.04);
}
.contact-summary{
  border: 1px dashed rgba(0,0,0,0.06);
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(241,196,15,0.03));
  margin-top: 8px;
}
.contact-map{
  width: 420px;
  flex: 0 0 420px;
  padding: 8px;
}
.map-img{
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.06);
}

/* Social links (PartD) */
.socials{
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.social-link{
  display: inline-block;
  padding: 8px 12px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  transition: background 160ms ease;
}
.social-link:hover{
  background: var(--primary);
  color: var(--white);
}

/* Footer (PartE) */
.site-footer{
  background: linear-gradient(to right, black, green)
  var(--black);
  color: var(--white);
  padding: 18px 0;
  margin-top: 30px;
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-nav{
  display: flex;
  gap: 12px;
}
.footer-link{
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-link:hover{
  color: var(--secondary);
}

/* Responsive rules (PartC & PartD: stacking on small screens) */
@media (max-width: 900px){
  .hero-inner{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-illustration{ order: -1; margin-bottom: 12px; }
  .features-grid{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: 1fr; }
  .contact-layout{ flex-direction: column; }
  .contact-map{ width: 100%; }
  .footer-inner{ flex-direction: column; gap: 8px; text-align: center; }
}

/* Accessibility and visual spacing (PartE) */
.section-title, .hero-title { line-height: 1.1; }
.lead { color: rgba(2, 2, 2, 0.7); margin-top: 8px; }
a{ color: inherit; }

/* ========== CAREER PAGE STYLING (Ho West Tech Hub) ========== */

/* Page Background & Layout */
body.career-page {
  background: linear-gradient(135deg, #ffffff, #eaf8f0);
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
}

/* Header */
header.career-header {
  background-color: #008037; /* green tone */
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  border-bottom: 5px solid #ff0000; /* red accent */
}

header.career-header h1 {
  font-size: 2rem;
  font-weight: bold;
}

header.career-header p {
  font-size: 1rem;
  margin-top: 0.5rem;
}


/* Career Section */
.career-section {
  flex: 1;
  text-align: center;
  padding: 3rem 1rem;
}

.career-section h2 {
  color: #008037;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.career-section .intro {
  max-width: 700px;
  margin: 0.5rem auto 2rem;
  line-height: 1.6;
  font-size: 1rem;
}


/* Login Form Box */
.form-box {
  background:rgb(175, 228, 175);
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-box h3 {
  color: #008037;
  margin-bottom: 1rem;
}

/* Form Inputs */
.form-group {
  text-align: left;
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Button */
.btn {
  background-color: #ff4500; /* orange-red */
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #e63e00;
}

/* Register Link */
.register-link {
  margin-top: 1rem;
}

.register-link a {
  color: #008037;
  text-decoration: none;
  font-weight: 600;
}

.register-link a:hover {
  color: #ff4500;
}

/* Footer */
footer.career-footer {
  background: linear-gradient(to right, black, green);
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: auto;
  font-size: 0.9rem;
}

