@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* === Base Styles from index.css & stylejob.css === */

html {
  font-size: 16px;
  /* Sets the base for 1rem */
}

body {
  font-size: 1rem;
  /* Default paragraph size (16px) */
  line-height: 1.6;
  background-color: #f3f2ef;
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

/* Apply Montserrat globally */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
button,
input,
textarea,
label {
  font-family: "Montserrat", sans-serif !important;
}

p {
  font-size: 1.05rem;
  /* Slightly larger for better readability */
}

/* Heading Sizes */
h1,
.display-1,
.display-3,
.display-4 {
  font-weight: 700 !important;
}

h1,
.display-1 {
  font-size: 3rem;
}

h2,
.display-2 {
  font-size: 2.5rem;
}

h3,
.display-3 {
  font-size: 2rem;
}

h4,
.display-4 {
  font-size: 1.75rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

@media (max-width: 768px) {

  h1,
  .display-1 {
    font-size: 2.5rem;
  }

  h2,
  .display-2 {
    font-size: 2rem;
  }

  h3,
  .display-3 {
    font-size: 1.75rem;
  }

  h4,
  .display-4 {
    font-size: 1.5rem;
  }
}

/* === Color & Component Variables === */
:root {
  --brown-500: #8B4513;
  /* Saddle Brown */
  --brown-400: #A0522D;
  /* Sienna */
  --cream-200: #D2B48C;
  /* Tan */
  --accent: #A0522D;
  --muted: #6b6b6b;
}

/* === Header & Navigation (Shared) === */
header,
.navbar {
  background-color: #faf3e0;
  /* Warmer cream background */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 50px;
}

img.img {
  width: 100px;
  max-height: 50px;
}

a.nav-link,
a.text-decoration-none {
  color: #8B4513;
  /* Rich saddle brown */
}

a.nav-link:hover {
  font-weight: 700;
  color: #5C4033;
  /* Darker coffee brown for hover */
  transition: 0.5 ease-in-out;
}

/* Shared Logout/Sign-in Button */
#logout {
  color: #8B4513;
  border: 1px solid #8B4513;
  background-color: white;
}

#logout:hover {
  color: white;
  border-color: #5C4033;
  background-color: #5C4033;
  font-weight: 700;
}

/* === Styles from index.css === */

#main {
  background-image: url('../pic/Homepage.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#main .container-fluid {
  margin-top: 100px;
  padding: 50px;
  background-color: rgb(92, 64, 51);
  /* Muted, transparent dark brown */
  border-radius: 10px;
}

@media only screen and (max-width:600px) {
  #main .container-fluid {
    margin-top: 200px;
  }
}

#main h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  /* Responsive hero text */
}

#apply {
  color: #8B4513;
  border: 1px solid #8B4513;
  background-color: white;
}

#apply:hover {
  color: white;
  background-color: #5C4033;
  border: 1px solid #5C4033;
  font-weight: 700;
}

#business {
  color: white;
  border: 1px solid #8B4513;
  background-color: #8B4513;
}

#business:hover {
  color: white;
  font-weight: 700;
  background-color: #5C4033;
  border: 1px solid #5C4033;
}

/* HERO */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 64vh;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(92, 64, 51, 0.72) 0%, rgba(92, 64, 51, 0.55) 55%, rgba(0, 0, 0, 0.25) 100%);
  z-index: 1;
  border-radius: 0.5rem;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
}

.hero p.lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  opacity: 0.95;
}

/* SERVICES */
#services .row {
  margin-left: 0;
  margin-right: 0;
}

.service-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding: 2rem 1.5rem !important;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-card .service-icon {
  font-size: 2.5rem;
  color: var(--brown-500, #8B4513);
  margin-bottom: 1rem;
  display: block;
}

.service-card h5 {
  font-weight: 600;
}

.service-card a {
  color: var(--brown-400, #A0522D);
  font-weight: 500;
}

#services .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#services .card-body .d-flex {
  flex-direction: column;
  align-items: center;
  gap: 0 !important;
}

/* CONTACT & FOOTER */
.contact-section {
  background-color: #5C4033;
  color: #fff;
  padding: 3rem 0;
}

.contact-section label {
  color: #fff;
}

.btn-accent {
  background-color: var(--cream-200, #D2B48C);
  /* Use theme's tan color */
  color: var(--brown-500, #5C4033);
  /* Dark brown text for contrast */
  border: 1px solid var(--cream-200, #D2B48C);
  border-radius: 20px;
  padding: 10px 20px;
  transition: all 0.3s ease-in-out;
  font-weight: 600;
}

.btn-accent:hover {
  background-color: #c5a87e;
  /* Slightly darker tan on hover */
  border-color: #c5a87e;
  color: var(--brown-500, #5C4033);
  transform: translateY(-2px);
  /* Add a subtle lift */
}

.btn-accent-outline {
  color: var(--cream-200, #D2B48C);
  /* Tan text for contrast */
  border: 1px solid var(--cream-200, #D2B48C);
  /* Tan border for outline */
  border-radius: 20px;
  padding: 10px 20px;
  transition: all 0.3s ease-in-out;
  font-weight: 600;
}

.btn-accent-outline:hover {
  background-color: var(--cream-200, #D2B48C);
  /* Fill with tan on hover */
  color: var(--brown-500, #5C4033);
  /* Dark brown text on hover */
  border-color: var(--cream-200, #D2B48C);
  transform: translateY(-2px);
  /* Add a subtle lift */
}

footer {
  background: #ebc390;
  color: #5C4033;
  padding: 2rem 0;
}

footer a {
  color: #5C4033;
  text-decoration: none;
}

/* === Styles from stylejob.css === */

.apply-container {
  background: #fff;
  width: 70%;
  max-width: 850px;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  padding: 30px;
}

.profile-card {
  background: #8B4513;
  color: #fff;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-card i {
  margin-right: 15px;
  font-size: 23px;
}

.profile-item {
  display: flex;
  align-items: center;
  font-size: 17px;
}

.profile-card button {
  margin-top: 10px;
  padding: 8px 15px;
  background: #faf3e0;
  color: #5C4033;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.btn-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}

.btn-submit button {
  color: #8B4513;
  border: 1px solid #8B4513;
  background-color: white;
  font-weight: 700;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-submit button:hover {
  color: white;
  border-color: #5C4033;
  background-color: #5C4033;
  font-weight: 700;
}

/* === Section Specific Adjustments === */

/* Mission and Vision font size adjustment */
.mission-vision-text p {
  font-size: 1.4rem;
  /* Adjusts the paragraph size */
  font-weight: 400;
  /* Use normal font weight */
  line-height: 1.7;
}

.about-us-text p {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.7;
}

/* === CEO Highlight Section === */
#ceo-highlight {
  /* Elegant gradient using theme colors */
  background: linear-gradient(135deg, #faf3e0 0%, #f3f2ef 100%);
  padding: 4rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#ceo-highlight h3 {
  color: var(--brown-500, #8B4513);
  /* Use theme's brown color */
}

#ceo-highlight h4 {
  color: #5C4033;
  /* Darker coffee brown for name */
}

#ceo-highlight .lead {
  color: #6F4E37;
  /* A coffee-like brown for quote */
  font-style: italic;
}

.ceo-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ceo-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* === Styles from profile.php === */

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid white;
  background-color: white;
}

.profile-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
}

.btn-light-custom {
  background-color: #eef3f8;
  border-radius: 20px;
  padding: 6px 16px;
}

.btn-brown {
  background-color: #6F4E37;
  /* A coffee-like brown */
  color: #fff;
}

.btn-brown:hover {
  /* Switched hover color */
  background-color: #5a3f2b;
  /* A darker brown for hover */
  color: #fff;
}

.btn-outline-brown {
  color: #6F4E37;
  border-color: #6F4E37;
}

.btn-outline-brown:hover {
  color: #fff;
  background-color: #6F4E37;
  border-color: #6F4E37;
}

.pencil-icon-custom {
  font-size: 1.2rem;
  /* A little bigger */
  color: #000 !important;
  /* Pure black for a darker look */
  text-decoration: none;
}

.text-brown {
  color: var(--brown-500, #8B4513) !important;
}