/* Sunray Resources - Static HTML Clone */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  color: #333;
  background: #f4f4f4;
  line-height: 1.55;
  font-size: 15px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout containers ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: #7a0a05;
  *padding: 14px 0 0;
  *border-bottom: 4px solid #f4c542;
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-bottom: 6px;
}
.logo-img { width: 290px; height: auto; margin-top:-20px; }
.logo-text {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  color: #f4c542;
  letter-spacing: 0.3px;
  text-shadow: 1px 1px 0 #4a0402;
}

/* ---------- Navigation ---------- */
.nav-wrap { background: #f4c542; }
.main-nav {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: stretch;
}
.main-nav li { flex: 1 1 auto; display: flex; }
.main-nav a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 8px;
  color: #4a0402;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-right: 2px solid rgb(74 4 2);
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1.2;
}
.main-nav li:first-child a {border-left: 2px solid rgb(74 4 2);}
.main-nav li:last-child a { *border-right: none; }
.main-nav a:hover, .main-nav a.active {
  background: #ffffff;
  color: #4a0402;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #4a0402;
  font-size: 22px;
  padding: 12px 16px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-weight: 700;
}
.nav-toggle span { display: inline-block; margin-right: 8px; }

/* ---------- Hero slider ---------- */
.hero {
  background: #7a0a05;
  padding: 24px 0 8px;
}
.slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  aspect-ratio: 900 / 472;
  background: #000;
}
.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}
.slides img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: 0;
  width: 40px;
  height: 60px;
  font-size: 22px;
  cursor: pointer;
}
.slider-btn:hover { background: rgba(0,0,0,0.65); }
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.slider-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,0.5); cursor: pointer;
}
.slider-dots button.active { background: #f4c542; }

/* ---------- Home service cards (2x2 colored grid, horizontal layout) ---------- */
.services { padding: 24px 0 0; 
    background:#7a0a05;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  width: 100%;
}
.svc-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 26px;
  color: #2c2c2c;
  min-height: 190px;
}
.svc-card.card-brand { background: #c8a94a; }
.svc-card.card-hr    { background: #3ba4a5; }
.svc-card.card-bd    { background: #e97472; }
.svc-card.card-mice  { background: #98d072; }
.svc-card img {
  width: 100%;
  height: auto;
  max-height: 130px;
  object-fit: cover;
  border-radius: 0;
}
.svc-card .card-body { text-align: left; }
.svc-card h3 {
  color: #2c2c2c;
  font-size: 22px;
  margin: 0 0 8px;
  font-weight: 700;
  line-height: 1.2;
}
.svc-card p { font-size: 14px; color: #2c2c2c; margin: 0 0 6px; line-height: 1.45; }
.svc-card .read-more {
  color: #6b3fa0;
  font-weight: 400;
  font-size: 14px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.svc-card .read-more:hover { color: #4a0402; text-decoration: underline; }

/* ---------- Inner page banner heading ---------- */
.page-banner {
  background: #dcb43c;
  padding: 14px 20px;
  text-align: center;
  margin: 26px auto 24px;
  max-width: 1120px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.page-banner h1 {
  color: #4a0402;
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
}
.section-banner {
  background: #f4c542;
  padding: 12px 20px;
  text-align: center;
  margin: 28px 0 22px;
  border-radius: 2px;
}
.section-banner h2 {
  color: #4a0402;
  font-size: 17px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}
.page-title-green {
  color: #2fbf60;
  font-size: 28px;
  font-weight: 700;
  margin: 20px 0 10px;
  padding: 0 20px;
}

/* ---------- Content ---------- */
.page-content { padding: 8px 30px 30px; }
.page-content p { margin-bottom: 14px; text-align: justify; color: #444; }
.page-content ul { margin: 0 0 18px 22px; }
.page-content ul li { margin-bottom: 6px; color: #444; }
.page-content h3 { color: #4a0402; margin: 18px 0 8px; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }
.page-content h4 { color: #333; margin: 16px 0 6px; font-size: 15px; }
.page-content .center-img { margin: 20px auto; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 24px;
}
.two-col.reverse { grid-template-columns: 1.6fr 1fr; }
.two-col img { border-radius: 3px; }
.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 18px 0;
}
.tag-blue {
  color: #1b9dd6;
  font-size: 20px;
  font-weight: 700;
  margin: 18px 0 12px;
}
.tag-orange {
  color: #e08a1b;
  font-weight: 700;
  margin-top: 12px;
}

/* Services grid for BD page */
.bd-services {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  gap: 22px;
  margin: 20px 0;
  align-items: start;
}
.bd-pills { display: flex; flex-direction: column; gap: 14px; }
.bd-pill {
  background: #7a0a05;
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  font-weight: 700;
  border-radius: 3px;
  font-size: 15px;
}

/* Training verticals grid */
.tv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 10px;
}
.tv-item h3 {
  text-align: center;
  color: #333;
  border-bottom: 0;
  margin-bottom: 6px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 10px 0 30px;
}
.contact-info p { margin-bottom: 10px; }
.contact-info strong { color: #333; }
.contact-map {
  margin-top: 18px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #ddd;
}
.contact-map iframe { display: block; width: 100%; height: 240px; border: 0; }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid #ddd;
  background: #f4f4f4;
  font-family: inherit;
  font-size: 14px;
  border-radius: 2px;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: #7a0a05; background: #fff;
}
.btn-send {
  align-self: flex-start;
  padding: 10px 26px;
  background: #6b3fa0;
  color: #fff;
  border: 0;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 2px;
}
.btn-send:hover { background: #4a2b70; }

/* ---------- Footer ---------- */
.pre-footer {
  background: #f4f4f4;
  padding: 20px 0;
  text-align: center;
}
.pre-footer p { max-width: 900px; margin: 0 auto; color: #555; font-size: 14px; }
.site-footer {
  background: #7a0a05;
  color: #f4d9d3;
  padding: 30px 0 20px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer-col .tab {
  display: inline-block;
  background: #2fbfd6;
  color: #fff;
  padding: 8px 26px 8px 18px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
  margin-bottom: 14px;
}
.footer-col ul { list-style: disc; padding-left: 20px; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a:hover { color: #f4c542; text-decoration:underline;}
.footer-col p { margin-bottom: 4px; font-size: 14px; }
.copyright {
  background: #ede8e2;
  color: #555;
  text-align: center;
  padding: 12px 20px;
  font-size: 12.5px;
}
.copyright a { color: #6b3fa0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: 1fr; }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .bd-services { grid-template-columns: 1fr; }
  .tv-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-cols { grid-template-columns: 1fr; }
  .main-nav a { font-size: 12px; padding: 10px 6px; }
}
@media (max-width: 720px) {
  .logo-text { font-size: 22px; }
  .logo-img { width: 212px; height: auto; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    flex-direction: column;
    background: #f4c542;
  }
  .main-nav.open { display: flex; }
  .main-nav li { flex: 0 0 auto; width: 100%; }
  .main-nav a {
    border-right: 0;
    border-bottom: 1px solid rgba(74,4,2,0.15);
    text-align: left;
    padding: 12px 20px;
    justify-content: flex-start;
  }
  .svc-card { grid-template-columns: 90px 1fr; padding: 16px; min-height: 0; }
  .svc-card img { max-height: 90px; }
  .svc-card h3 { font-size: 18px; }
  .page-banner h1 { font-size: 15px; letter-spacing: 2px; }
  .section-banner h2 { font-size: 14px; letter-spacing: 1.5px; }
  .page-title-green { font-size: 22px; }
  .image-pair { grid-template-columns: 1fr; }
  .slider-btn { width: 32px; height: 46px; font-size: 18px; }
}
