/* SRJ Academy theme — stylish home polish (safe for logo/nav) */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --body-font: 'Manrope', system-ui, sans-serif;
  --heading-font: 'Fraunces', Georgia, serif;
  --theme-color: #0a5c4e;
  --theme-color2: #c8920f;
  --theme-color-light: rgba(10, 92, 78, 0.12);
  --theme-bg-light: #eef3f5;
  --body-text-color: #4a5568;
  --color-dark: #12202b;
  --footer-bg: #0b2438;
  --footer-bg2: #0a5c4e;
  --srj-leaf: #0a5c4e;
  --srj-gold: #c8920f;
  --srj-soft: #f3f7f8;
  --srj-lift: 0 18px 40px -16px rgba(18, 32, 43, 0.18);
}

body {
  font-family: var(--body-font);
  background:
    radial-gradient(900px 420px at 0% 8%, rgba(10, 92, 78, 0.06), transparent 55%),
    radial-gradient(800px 380px at 100% 20%, rgba(200, 146, 15, 0.05), transparent 50%),
    linear-gradient(180deg, #f7fafb 0%, #eef3f5 100%);
}

h1, h2, h3, h4, h5, h6,
.site-title,
.hero-title {
  font-family: var(--heading-font);
  letter-spacing: -0.02em;
}

.site-title span,
.hero-content .hero-title > span:not([style]) {
  color: var(--srj-gold);
}

.site-title-tagline {
  color: var(--srj-leaf) !important;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.site-heading .site-title {
  position: relative;
  padding-bottom: 0.55rem;
}

.site-heading.text-center .site-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 0.85rem auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--srj-leaf), var(--srj-gold));
}

.theme-btn {
  border-radius: 12px !important;
  font-family: var(--body-font);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease !important;
}

.theme-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -10px rgba(10, 92, 78, 0.45);
}

/* ——— Hero (keep template nav; polish atmosphere) ——— */
.home-2 .hero-single {
  min-height: 88vh;
}

.home-2 .hero-single::before {
  background:
    linear-gradient(115deg, rgba(8, 40, 36, 0.72) 0%, rgba(10, 92, 78, 0.42) 48%, rgba(18, 32, 43, 0.55) 100%) !important;
}

.home-2 .hero-content .hero-sub-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f6e7b8 !important;
  font-family: var(--body-font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: srjFloat 4.8s ease-in-out infinite;
}

.home-2 .hero-content .hero-title {
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  line-height: 1.12;
}

.home-2 .hero-content p {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.94;
  font-size: 1.05rem;
  line-height: 1.7;
}

.home-2 .hero-btn .theme-btn {
  margin: 0.35rem;
}

@keyframes srjFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes srjRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ——— SEO intro ——— */
.srj-seo-intro {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(243, 247, 248, 0.95));
  border-block: 1px solid rgba(10, 92, 78, 0.08);
  overflow: hidden;
}

.srj-seo-intro::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 146, 15, 0.12), transparent 70%);
  pointer-events: none;
}

.srj-seo-intro p {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  position: relative;
}

.srj-seo-intro a {
  color: var(--srj-leaf);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 92, 78, 0.35);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.srj-seo-intro a:hover {
  color: var(--srj-gold);
  border-color: var(--srj-gold);
}

/* ——— Icon frames (choose / facilities) ——— */
.choose-item-icon,
.department-icon {
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* About Us — icon + text alignment */
.about-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.about-item-icon {
  flex: 0 0 64px;
  width: 64px !important;
  height: 64px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 16px !important;
  background: linear-gradient(160deg, #ffffff, #eef6f3) !important;
  border: 1px solid rgba(10, 92, 78, 0.14);
  box-shadow: none !important;
  line-height: 1 !important;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.about-item-icon img {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  object-fit: contain !important;
  filter: none !important;
  -webkit-filter: none !important;
  display: block !important;
  margin: 0 auto;
}

.about-item:hover .about-item-icon {
  transform: translateY(-3px);
  border-color: rgba(200, 146, 15, 0.45);
}

.about-item-content {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.about-item-content h5 {
  margin-bottom: 6px;
  line-height: 1.3;
}

.about-item-content p {
  margin-bottom: 0;
  line-height: 1.6;
}

.about-experience {
  display: flex !important;
  align-items: center !important;
  gap: 14px;
  text-align: left !important;
}

.about-experience-icon {
  flex: 0 0 64px;
  width: 64px !important;
  height: 64px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 16px !important;
  background: #fff !important;
  line-height: 1 !important;
  overflow: hidden;
}

.about-experience-icon img {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain !important;
  filter: none !important;
  -webkit-filter: none !important;
  display: block !important;
}

.about-experience b {
  line-height: 1.35;
  margin: 0;
}

/* Why Choose Us icons — remove invert so PNGs show */
.choose-item {
  display: flex !important;
  align-items: center !important;
  gap: 14px;
}

.choose-item-icon {
  flex: 0 0 72px !important;
  width: 72px !important;
  height: 72px !important;
  margin: 0 0 0 8px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
  border-radius: 16px !important;
  background: #fff !important;
  border: 1px solid rgba(10, 92, 78, 0.12);
  overflow: hidden;
}

.choose-item-icon img {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain !important;
  filter: none !important;
  -webkit-filter: none !important;
  display: block !important;
  margin: 0 auto;
}

/* Facilities / department icons */
.department-icon {
  width: 72px;
  height: 72px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(160deg, #ffffff, #eef6f3);
  border: 1px solid rgba(10, 92, 78, 0.12);
  overflow: hidden;
  margin-bottom: 16px !important;
}

.department-icon img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;
  filter: none !important;
  -webkit-filter: none !important;
  display: block !important;
}

.department-item:hover .department-icon,
.choose-item:hover .choose-item-icon {
  border-color: rgba(200, 146, 15, 0.45);
  transform: translateY(-3px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Kill invert filter on any remaining template icon images using generated PNGs */
.feature-icon img,
.counter-box .icon img,
.pricing-icon img {
  filter: none !important;
  -webkit-filter: none !important;
}

/* ——— About collage (no harsh crop) ——— */
.home-2 .about-left {
  margin-right: 0;
}

.home-2 .about-collage {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  width: 100%;
}

.home-2 .about-collage-main {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 420px;
  background: #e8eef2;
  box-shadow: 0 14px 34px -18px rgba(18, 32, 43, 0.25);
}

.home-2 .about-collage-main > img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.home-2 .about-collage-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-height: 420px;
}

.home-2 .about-collage-side img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 20px;
  background: #e8eef2;
  box-shadow: 0 12px 28px -16px rgba(18, 32, 43, 0.22);
}

.home-2 .about-collage .about-experience {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  margin: 0 !important;
  z-index: 2;
  backdrop-filter: blur(2px);
}

.home-2 .about-right {
  display: block;
  height: auto;
}

.home-2 .about-quote {
  border-radius: 16px;
  border-left: 3px solid var(--srj-gold);
  background: linear-gradient(160deg, #fff, #f4f8f7);
  height: auto;
}

@media (max-width: 991.98px) {
  .home-2 .about-collage {
    grid-template-columns: 1fr 1fr;
  }

  .home-2 .about-collage-main,
  .home-2 .about-collage-main > img {
    min-height: 320px;
  }

  .home-2 .about-collage-side {
    min-height: 320px;
  }

  .home-2 .about-collage-side img {
    min-height: 150px;
  }
}

@media (max-width: 575.98px) {
  .home-2 .about-collage {
    grid-template-columns: 1fr;
  }

  .home-2 .about-collage-main,
  .home-2 .about-collage-main > img {
    min-height: 280px;
  }

  .home-2 .about-collage-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    min-height: 160px;
  }

  .home-2 .about-collage-side img {
    min-height: 150px;
  }
}

/* ——— Cards: course / event / blog / facilities ——— */
.home-2 .course-item,
.home-2 .event-item,
.home-2 .blog-item,
.home-2 .department-item,
.home-2 .team-item {
  border-radius: 18px !important;
  border: 1px solid rgba(18, 32, 43, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
}

.home-2 .course-item:hover,
.home-2 .event-item:hover,
.home-2 .blog-item:hover,
.home-2 .department-item:hover,
.home-2 .team-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--srj-lift);
  border-color: rgba(10, 92, 78, 0.16);
}

.home-2 .department-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.6rem 1.35rem;
  height: 100%;
}

.home-2 .course-area.bg,
.home-2 .department-area,
.home-2 .blog-area,
.home-2 .event-area {
  position: relative;
}

.home-2 .department-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(10, 92, 78, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.home-2 .department-area > .container {
  position: relative;
  z-index: 1;
}

/* ——— Enroll / choose panels ——— */
.home-2 .enroll-form {
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--srj-lift);
}

.home-2 .enroll-form .form-control,
.home-2 .enroll-form .form-select {
  border-radius: 12px;
  border-color: rgba(10, 92, 78, 0.15);
}

.home-2 .enroll-form .form-control:focus,
.home-2 .enroll-form .form-select:focus {
  border-color: var(--srj-leaf);
  box-shadow: 0 0 0 3px rgba(10, 92, 78, 0.12);
}

.home-2 .progress-bar {
  background: linear-gradient(90deg, var(--srj-gold), #dfb84a) !important;
  border-radius: 99px;
}

/* ——— Uniform media ——— */
.gallery-area .gallery-img {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #e8eef2;
}

.gallery-area .gallery-img img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
  border-radius: 12px;
}

.blog-item-img {
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  background: #e8eef2;
}

.blog-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.event-area .event-img,
.event-item .event-img {
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e8eef2;
  border-radius: 14px;
}

.event-area .event-img img,
.event-item .event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.event-area > .container > .row:last-child {
  align-items: stretch;
}

.event-area > .container > .row:last-child > [class*="col-"] {
  display: flex;
}

.event-area .event-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border-radius: 18px !important;
}

.event-area .event-location {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.event-area .event-info {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.event-area .event-title {
  min-height: 3.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-area .event-info > p {
  flex: 1 1 auto;
  min-height: 4.5em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

.event-area .event-btn {
  margin-top: auto;
  padding-top: 20px;
  min-height: 56px;
}

.event-details img,
.event-single-area .event-details > img,
.event-single-area .event-details .row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center center;
}

/* ——— Testimonials / CTA ——— */
.home-2 .testimonial-item {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}

.home-2 .cta-content {
  border-radius: 22px;
  overflow: hidden;
}

.home-2 #scroll-top {
  border-radius: 14px !important;
  background: var(--srj-leaf) !important;
  transition: transform 0.3s ease, background 0.3s ease;
}

.home-2 #scroll-top:hover {
  transform: translateY(-4px);
  background: var(--srj-gold) !important;
}

/* Footer credit */
.copyright-text .dev-credit {
  display: inline;
  opacity: 0.92;
}

.copyright-text .dev-credit a {
  color: var(--srj-gold);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.copyright-text .dev-credit a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .home-2 .hero-single {
    min-height: 78vh;
  }

  .about-item-icon,
  .about-experience-icon,
  .choose-item-icon,
  .department-icon {
    width: 56px !important;
    height: 56px !important;
    flex-basis: 56px !important;
  }

  .about-item-icon img,
  .about-experience-icon img,
  .choose-item-icon img,
  .department-icon img {
    width: 34px !important;
    height: 34px !important;
  }

  .gallery-area .gallery-img {
    aspect-ratio: 1 / 1;
  }

  .blog-item-img {
    aspect-ratio: 16 / 11;
  }

  .event-area .event-item {
    min-height: 0;
  }
}
