/* ============================================================
   CollegeNP — Modern Home Page Styles
   Loaded only on the home page and scoped under `.home-page`
   so nothing here can affect other views.
   Author: UI/UX refresh
   ============================================================ */

.home-page {
  --c-primary:        #005B8F;   /* CollegeNP blue (links/brand) */
  --c-primary-dark:   #003B5C;   /* deep blue (hover) */
  --c-primary-light:  #e6f0f6;   /* light blue tint */
  --c-accent:         #005B8F;   /* palette has no amber — accents use brand blue */
  --c-red:            #D71920;   /* logo red — important labels only */
  --c-heading:        #111827;   /* headings / titles */
  --c-ink:            #1F2933;   /* body / subheading text */
  --c-muted:          #5F6B7A;   /* secondary text / descriptions */
  --c-meta:           #6B7280;   /* meta / date / author */
  --c-line:           #E5EAF0;   /* border / divider */
  --c-surface:        #ffffff;
  --c-bg-soft:        #f6f8fb;

  --radius:    16px;
  --radius-sm: 11px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16,24,40,.05), 0 2px 6px rgba(16,24,40,.05);
  --shadow-md: 0 6px 14px -6px rgba(16,24,40,.12), 0 16px 32px -12px rgba(16,24,40,.16);
  --shadow-brand: 0 12px 26px -10px rgba(0,91,143,.55);

  --t: .26s cubic-bezier(.4, 0, .2, 1);

  scroll-behavior: smooth;
}

.home-page img { max-width: 100%; }

/* ------------------------------------------------------------
   Shared section heading
   ------------------------------------------------------------ */
.home-page .home-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 38px;
}
.home-page .home-section-head h2 {
  position: relative;
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  color: var(--c-heading);
  margin: 0 0 14px;
}
.home-page .home-section-head h2::after {
  content: "";
  display: block;
  width: 66px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-dark));
}
.home-page .home-section-head p {
  color: var(--c-muted);
  font-size: 1.02rem;
  margin: 0;
}

/* ------------------------------------------------------------
   Hero banner + search
   ------------------------------------------------------------ */
.home-page #BannerSlider {
  background: #0a1622;
}
.home-page #BannerSlider .carousel-item { position: relative; }
.home-page #BannerSlider .carousel-control-prev,
.home-page #BannerSlider .carousel-control-next {
  width: 6%;
  opacity: 0;
  transition: opacity var(--t);
}
.home-page #BannerSlider:hover .carousel-control-prev,
.home-page #BannerSlider:hover .carousel-control-next { opacity: .85; }

/* ------------------------------------------------------------
   Hero: banner image (cover) + dark scrim + centered overlay.
   The overlay (headline + caption + search) sits in normal flow
   and drives the banner height, so it never overflows the image.
   ------------------------------------------------------------ */
.home-page #BannerSlider {
  position: relative;
  background: #013a63;
  overflow: hidden;
}
.home-page #BannerSlider .carousel-inner {
  position: absolute;
  inset: 0;
  height: 100%;
}
.home-page #BannerSlider .carousel-item { height: 100%; }
.home-page #BannerSlider .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-page #BannerSlider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(1,28,50,.52) 0%, rgba(1,28,50,.66) 100%);
}
.home-page #BannerSlider .carousel-control-prev,
.home-page #BannerSlider .carousel-control-next { z-index: 3; }

.home-page .banner-search {
  position: relative;
  z-index: 2;
  top: auto;
  left: auto;
  transform: none;
  margin: 0 auto;
  min-width: 0;
  width: 92%;
  max-width: 880px;
  padding: 72px 0;
  text-align: center;
}
.home-page .hero-overlay { margin-bottom: 28px; }
.home-page .hero-overlay h1 {
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.2;
  color: #fff;
  margin: 0 auto 16px;
  max-width: 860px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}
.home-page .hero-overlay p {
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .92);
  margin: 0 auto;
  max-width: 720px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
}
.home-page .hero-search-card {
  position: relative;
  margin: 0 auto;
  background: rgba(255, 255, 255, .97);
  padding: 16px;
  border-radius: 18px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-align: center;
}
.home-page .banner-search .nav-tabs {
  display: inline-flex;
  gap: 4px;
  border: none;
  margin: 0 0 14px;
  padding: 5px;
  background: #eef2f7;
  border-radius: var(--radius-pill);
}
.home-page .banner-search .nav-tabs li { margin: 0; }
.home-page .banner-search .nav-tabs li a {
  display: block;
  background: transparent;
  border: none !important;
  border-radius: var(--radius-pill);
  color: var(--c-muted);
  padding: 9px 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  transition: all var(--t);
}
.home-page .banner-search .nav-tabs li a:hover { color: var(--c-primary); }
.home-page .banner-search .nav-tabs li a.active {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.home-page .banner-search .tab-content { text-align: left; }
.home-page .banner-search .input-group {
  border-radius: var(--radius);
  box-shadow: 0 6px 18px -8px rgba(16,24,40,.3);
  overflow: hidden;
}
.home-page .banner-search .input-group-lg > .form-control {
  border: 1px solid var(--c-line);
  border-right: none;
  line-height: 52px;
  font-size: 16px;
  padding: 0 22px;
}
.home-page .banner-search .form-control:focus {
  box-shadow: none;
  border-color: var(--c-primary);
}
.home-page .banner-search .input-group-append .btn,
.home-page .banner-search .input-group-lg .btn {
  background: var(--c-primary);
  border-color: var(--c-primary);
  font-weight: 700;
  letter-spacing: .5px;
  padding: 0 32px;
  line-height: 52px;
  transition: background var(--t);
}
.home-page .banner-search .input-group-append .btn:hover,
.home-page .banner-search .input-group-lg .btn:hover { background: var(--c-primary-dark); }

#front-college-searched-data {
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* ------------------------------------------------------------
   Ad slots — soften the framing a touch
   ------------------------------------------------------------ */
.home-page .ad-item img { border-radius: 8px; }

/* ------------------------------------------------------------
   Category grids  (#HomeCourses / #HomeInstitutes)
   ------------------------------------------------------------ */
.home-page #HomeCourses,
.home-page #HomeInstitutes {
  padding: 70px 0;
}
.home-page #HomeCourses { background: var(--c-surface); }
.home-page #HomeInstitutes { background: var(--c-bg-soft); }

.home-page .courses-lists { margin-top: 4px; }
.home-page .courses-lists a {
  display: block;
  height: 100%;
}
.home-page .courses-lists .icons {
  height: 100%;
  min-height: 178px;
  padding: 26px 12px 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.home-page .courses-lists a:hover .icons {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,91,143,.4);
}
.home-page .courses-lists .icons img {
  width: 84px;
  height: 84px;
  max-height: 84px;
  object-fit: contain;
  padding: 16px;
  margin-bottom: 14px;
  background: var(--c-primary-light);
  border-radius: 50%;
  transition: transform var(--t), background var(--t);
}
.home-page .courses-lists a:hover .icons img {
  transform: scale(1.06);
  background: #dcebf9;
}
.home-page .courses-lists .icons h4 {
  font-family: "Lato", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--c-ink);
  margin: 0 0 6px;
}
.home-page .courses-lists a:hover .icons h4 { color: var(--c-primary); }
.home-page .courses-lists .icons p {
  margin: auto 0 0;
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-muted);
}

/* ------------------------------------------------------------
   Important facts  (#important-facts)
   ------------------------------------------------------------ */
.home-page #important-facts {
  padding: 72px 0;
  background: linear-gradient(135deg, #005B8F 0%, #003B5C 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.home-page #important-facts::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 220px at 12% 0%, rgba(255,255,255,.12), transparent 70%),
    radial-gradient(420px 240px at 100% 100%, rgba(255,255,255,.07), transparent 70%);
  pointer-events: none;
}
.home-page #important-facts .container { position: relative; z-index: 1; }
.home-page #important-facts h2 {
  color: #fff;
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  margin-bottom: 8px;
}
.home-page #important-facts h2::after { background: rgba(255,255,255,.55); }
.home-page #important-facts .home-section-head p { color: rgba(255,255,255,.78); }

.home-page .imp-facts {
  display: block;
  height: 100%;
  padding: 30px 14px;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: transform var(--t), background var(--t), box-shadow var(--t);
}
.home-page a.imp-facts:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .17);
  box-shadow: 0 18px 38px -16px rgba(0,0,0,.5);
}
.home-page .imp-facts .fact-icon {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.home-page .imp-facts .fact-icon i {
  font-size: 46px;
  color: #fff;
}
.home-page .imp-facts .fact-icon img {
  height: 50px;
  width: auto;
  /* Render the dark PNG icons as clean white silhouettes on the blue panel */
  filter: brightness(0) invert(1);
  opacity: .95;
}
.home-page .imp-facts .big-letter {
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.home-page .imp-facts .big-letter span {
  font-size: 42px;
  font-weight: 900;
  color: #fff;
}
.home-page .imp-facts .counter-title span {
  font-family: "Lato", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}

/* ------------------------------------------------------------
   Featured colleges  (#near_by_colleges)
   ------------------------------------------------------------ */
.home-page .home-featured-wrap {
  background: var(--c-bg-soft);
  padding: 68px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.home-page #near_by_colleges {
  margin: 0 !important;
}
.home-page #near_by_colleges .row { margin-left: -10px; margin-right: -10px; }
.home-page #near_by_colleges .row > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
}

.home-page #near_by_colleges .college-content-similar {
  position: relative;
  height: calc(100% - 20px);
  margin-bottom: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.home-page #near_by_colleges .college-content-similar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,91,143,.35);
  z-index: 5;
}
.home-page #near_by_colleges .media {
  background: transparent;
  border: none;
  padding: 18px 18px 58px;
  height: 100%;
}
.home-page #near_by_colleges .media:hover {
  box-shadow: none;
  background: transparent;
}
.home-page #near_by_colleges .media img {
  width: 58px;
  height: 58px;
  max-width: 58px;
  object-fit: contain;
  padding: 7px;
  margin-right: 14px;
  background: #f3f6fa;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  align-self: flex-start !important;
}
.home-page #near_by_colleges .media-body h5 {
  font-family: "Lato", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ink);
  margin-bottom: 6px;
  transition: color var(--t);
}
.home-page #near_by_colleges .college-content-similar:hover .media-body h5 {
  color: var(--c-primary);
}
.home-page #near_by_colleges .media-body .address {
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 500;
}
.home-page #near_by_colleges .media-body .address i {
  color: var(--c-accent);
  margin-right: 3px;
}
.home-page #near_by_colleges .extra-feature {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--c-line);
  background: #fcfdff;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}
.home-page #near_by_colleges .extra-feature > li { padding: 0; }
.home-page #near_by_colleges .review-avg-rating .fa-star { color: var(--c-accent); font-size: 15px; margin-right: 1px; }
.home-page #near_by_colleges .review-avg-rating .fa-star.disabled { color: #cbd5e1; }
.home-page #near_by_colleges .extra-feature .favourite-toggle a,
.home-page #near_by_colleges .extra-feature .share-icons > a {
  color: var(--c-muted);
  transition: color var(--t);
}
.home-page #near_by_colleges .extra-feature .favourite-toggle a:hover { color: #e0245e; }
.home-page #near_by_colleges .extra-feature .share-icons > a:hover { color: var(--c-primary); }
/* Share dropdown: right-aligned popover that isn't clipped by the card */
.home-page #near_by_colleges .share-icons > ul {
  left: auto;
  right: 0;
  min-width: 132px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  z-index: 40;
}

/* ------------------------------------------------------------
   Blog / news sections (Latest admission, news, etc.)
   ------------------------------------------------------------ */
.home-page .blog-section {
  background: var(--c-surface);
  padding: 64px 0;
}
.home-page .blog-section .col-md-4 { margin-bottom: 10px; }
.home-page .blog-section h3 {
  position: relative;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--c-ink);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.home-page .blog-section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-dark));
}

.home-page .blog-section .news-list-item {
  height: auto !important;
  align-items: center;
  padding: 12px;
  margin-bottom: 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.home-page .blog-section .news-list-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,91,143,.3);
}
.home-page .blog-section .sim-media-date {
  flex: 0 0 auto;
  border: none;
  background: var(--c-primary-light);
  color: var(--c-primary);
  border-radius: 10px;
  padding: 8px 6px;
  min-width: 56px;
  font-weight: 700;
  line-height: 1.15;
}
.home-page .blog-section .sim-media-date b { font-size: 21px; }
.home-page .blog-section .media-body { padding-left: 4px; }
.home-page .blog-section .media-body h5 {
  font-family: "Lato", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-ink);
  margin-bottom: 6px;
  transition: color var(--t);
}
.home-page .blog-section .news-list-item:hover .media-body h5 { color: var(--c-primary); }
.home-page .blog-section .media-body .address {
  color: var(--c-meta);
  font-size: 12px;
  font-weight: 500;
}
.home-page .blog-section .media-body .address i { margin-right: 4px; }

/* View-all pill button */
.home-page .btn-blog-all {
  display: inline-block;
  margin-top: 8px;
  padding: 9px 24px;
  border: 1.5px solid var(--c-primary);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--c-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: all var(--t);
}
.home-page .btn-blog-all:hover {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

/* ------------------------------------------------------------
   Responsive tuning
   ------------------------------------------------------------ */
@media (max-width: 991px) {
  .home-page .home-section-head h2 { font-size: 26px; }
  .home-page #HomeCourses,
  .home-page #HomeInstitutes,
  .home-page #important-facts,
  .home-page .home-featured-wrap,
  .home-page .blog-section { padding: 48px 0; }
  .home-page .banner-search { padding: 52px 0; }
  .home-page .hero-overlay h1 { font-size: 30px; }
  .home-page .hero-overlay p { font-size: 15px; }
}

@media (max-width: 575px) {
  .home-page .home-section-head { margin-bottom: 26px; }
  .home-page .home-section-head h2 { font-size: 21px; }
  .home-page .home-section-head p { font-size: .92rem; }

  .home-page #HomeCourses,
  .home-page #HomeInstitutes,
  .home-page .home-featured-wrap,
  .home-page .blog-section { padding: 34px 0; }
  .home-page #important-facts { padding: 40px 0; }

  .home-page .banner-search { padding: 40px 0; }
  .home-page .hero-overlay { margin-bottom: 22px; }
  .home-page .hero-overlay h1 { font-size: 24px; }
  .home-page .hero-overlay p { font-size: 13.5px; line-height: 1.6; }

  .home-page .courses-lists .icons {
    min-height: 132px;
    padding: 16px 8px 12px;
    margin-bottom: 12px;
    border-radius: 12px;
  }
  .home-page .courses-lists .icons img {
    width: 56px;
    height: 56px;
    max-height: 56px;
    padding: 11px;
    margin-bottom: 8px;
  }
  .home-page .courses-lists .icons h4 { font-size: 11px; }
  .home-page .courses-lists .icons p { font-size: .7rem; }

  .home-page .imp-facts { padding: 18px 8px; border-radius: 12px; }
  .home-page .imp-facts .fact-icon { height: 40px; }
  .home-page .imp-facts .fact-icon i { font-size: 30px; }
  .home-page .imp-facts .fact-icon img { height: 32px; }
  .home-page .imp-facts .big-letter span { font-size: 24px; }
  .home-page .imp-facts .counter-title span { font-size: 11px; letter-spacing: .4px; }

  .home-page .banner-search .nav-tabs li a { padding: 8px 16px; font-size: 12px; }
  .home-page .banner-search > div { padding: 12px; border-radius: 16px; }
  .home-page .banner-search .input-group-lg > .form-control,
  .home-page .banner-search .input-group-lg .btn { line-height: 44px; font-size: 14px; }
}
