/* FVMTI / Joomla Cassiopeia user.css
   Revised palette: Purple #313190 + EMS Red
*/

:root {
  --fvmti-purple: #313190;
  --fvmti-purple-dark: #24246f;
  --fvmti-purple-light: #ececfa;

  --fvmti-red: #c51f30;
  --fvmti-red-dark: #9f1826;
  --fvmti-red-light: #f8e9ec;

  --fvmti-charcoal: #262626;
  --fvmti-charcoal-dark: #171717;
  --fvmti-charcoal-light: #3a3a3a;
  --fvmti-white: #ffffff;
  --fvmti-offwhite: #f7f7f7;
  --fvmti-lightgray: #ececec;
  --fvmti-midgray: #777777;
  --fvmti-border: #dddddd;

  --cassiopeia-color-primary: var(--fvmti-purple);
  --cassiopeia-color-link: var(--fvmti-purple);
  --cassiopeia-color-hover: var(--fvmti-purple-dark);

  --primary: var(--fvmti-purple);
  --link-color: var(--fvmti-purple);
  --link-hover-color: var(--fvmti-purple-dark);
}

html { scroll-behavior: smooth; }

body {
  background: var(--fvmti-white);
  color: var(--fvmti-charcoal);
}

a {
  color: var(--fvmti-purple);
  text-decoration-color: rgba(49, 49, 144, 0.35);
}

a:hover,
a:focus {
  color: var(--fvmti-purple-dark);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--fvmti-charcoal);
  font-weight: 700;
}

hr {
  border-color: var(--fvmti-lightgray);
}

/* HEADER */
.container-header {
  background: var(--fvmti-purple);
  background-image: none;
  color: var(--fvmti-white);
  border-bottom: 4px solid var(--fvmti-red);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
}

.container-header .navbar-brand,
.container-header .navbar-brand a,
.container-header .site-description {
  color: var(--fvmti-white);
}

.container-header .navbar-brand img {
  max-height: 84px;
  width: auto;
}

/* PRIMARY NAVIGATION */
.container-header .mod-menu > li > a,
.container-header .metismenu > li > a,
.container-header .metismenu > li > button {
  color: var(--fvmti-white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus,
.container-header .metismenu > li > a:hover,
.container-header .metismenu > li > a:focus,
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a,
.container-header .metismenu > li.active > a,
.container-header .metismenu > li.current > a {
  color: var(--fvmti-white);
  background: rgba(255,255,255,0.10);
}

@media (min-width: 992px) {
  .container-header .mod-menu > li > a,
  .container-header .metismenu > li > a {
    border-bottom: 3px solid transparent;
    padding-bottom: 1rem;
  }

  .container-header .mod-menu > li > a:hover,
  .container-header .mod-menu > li.active > a,
  .container-header .mod-menu > li.current > a,
  .container-header .metismenu > li > a:hover,
  .container-header .metismenu > li.active > a,
  .container-header .metismenu > li.current > a {
    border-bottom-color: var(--fvmti-red);
  }
}

/* DROPDOWNS */
.metismenu.mod-menu .mm-collapse {
  background: var(--fvmti-white);
  border-top: 3px solid var(--fvmti-red);
  box-shadow: 0 8px 22px rgba(0,0,0,0.14);
}

.metismenu.mod-menu .mm-collapse a {
  color: var(--fvmti-charcoal);
}

.metismenu.mod-menu .mm-collapse a:hover,
.metismenu.mod-menu .mm-collapse a:focus {
  background: var(--fvmti-purple);
  color: var(--fvmti-white);
}

/* MOBILE NAV */
.container-header .navbar-toggler {
  color: var(--fvmti-purple);
  background: var(--fvmti-white);
  border: 1px solid var(--fvmti-white);
}

.container-header .navbar-toggler:hover,
.container-header .navbar-toggler:focus {
  background: var(--fvmti-offwhite);
  border-color: var(--fvmti-offwhite);
}

/* HERO / BANNER */
.container-banner {
  background: var(--fvmti-purple-dark);
}

.container-banner .banner-overlay {
  background-color: rgba(25,25,90,0.45);
}

.container-banner h1,
.container-banner h2,
.container-banner h3,
.container-banner p {
  color: var(--fvmti-white);
}

.fvmti-hero {
  position: relative;
  color: var(--fvmti-white);
  background-color: var(--fvmti-purple-dark);
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.fvmti-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(36,36,111,0.85),
    rgba(49,49,144,0.62),
    rgba(49,49,144,0.18)
  );
}

.fvmti-hero > * {
  position: relative;
  z-index: 1;
}

.fvmti-hero h1,
.fvmti-hero h2,
.fvmti-hero h3,
.fvmti-hero p {
  color: var(--fvmti-white);
}

/* SECTION HEADINGS */
.fvmti-section-title,
main .page-header h1,
.com-content-article h1,
.blog-featured h1,
.blog h1 {
  position: relative;
  padding-bottom: 0.65rem;
}

.fvmti-section-title::after,
main .page-header h1::after,
.com-content-article h1::after,
.blog-featured h1::after,
.blog h1::after {
  content: "";
  display: block;
  width: 62px;
  height: 4px;
  margin-top: 0.55rem;
  background: var(--fvmti-red);
}

/* BUTTONS */
.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary {
  background-color: var(--fvmti-purple);
  border-color: var(--fvmti-purple);
  color: var(--fvmti-white);
}

.btn-primary:hover,
.btn-primary:focus,
button.btn-primary:hover,
button.btn-primary:focus,
input[type="submit"].btn-primary:hover,
input[type="submit"].btn-primary:focus {
  background-color: var(--fvmti-purple-dark);
  border-color: var(--fvmti-purple-dark);
  color: var(--fvmti-white);
}

.btn-success {
  background-color: var(--fvmti-red);
  border-color: var(--fvmti-red);
  color: var(--fvmti-white);
}

.btn-success:hover,
.btn-success:focus {
  background-color: var(--fvmti-red-dark);
  border-color: var(--fvmti-red-dark);
}

.btn-outline-primary {
  color: var(--fvmti-purple);
  border-color: var(--fvmti-purple);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--fvmti-purple);
  border-color: var(--fvmti-purple);
  color: var(--fvmti-white);
}

.btn-secondary {
  background: var(--fvmti-charcoal);
  border-color: var(--fvmti-charcoal);
  color: var(--fvmti-white);
}

/* CARDS */
.card,
.blog-item,
.com-content-category-blog__item {
  background: var(--fvmti-white);
  border: 1px solid var(--fvmti-border);
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.card-header {
  background: var(--fvmti-purple);
  border-bottom: 3px solid var(--fvmti-red);
  color: var(--fvmti-white);
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
  color: var(--fvmti-white);
}

.card a:not(.btn),
.blog-item a:not(.btn) {
  color: var(--fvmti-purple);
}

/* COURSE TILES */
.fvmti-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.fvmti-course-card {
  background: var(--fvmti-white);
  border: 1px solid var(--fvmti-border);
  border-top: 5px solid var(--fvmti-purple);
  padding: 1.35rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.fvmti-course-category {
  color: var(--fvmti-red);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fvmti-course-date {
  color: var(--fvmti-midgray);
  font-size: 0.9rem;
}

/* FRONT PAGE SECTIONS */
.fvmti-section { padding: 3.5rem 0; }
.fvmti-section-white { background: var(--fvmti-white); }
.fvmti-section-light { background: var(--fvmti-offwhite); }

.fvmti-section-purple {
  background: var(--fvmti-purple);
  color: var(--fvmti-white);
}

.fvmti-section-purple h1,
.fvmti-section-purple h2,
.fvmti-section-purple h3,
.fvmti-section-purple h4,
.fvmti-section-purple h5,
.fvmti-section-purple h6 {
  color: var(--fvmti-white);
}

.fvmti-section-dark {
  background: var(--fvmti-charcoal);
  color: var(--fvmti-white);
}

.fvmti-section-red {
  background: var(--fvmti-red);
  color: var(--fvmti-white);
}

/* FEATURES */
.fvmti-feature {
  background: var(--fvmti-offwhite);
  border-top: 4px solid var(--fvmti-purple);
  padding: 1.5rem;
}

/* MODULES / SIDEBARS */
.sidebar-left .card,
.sidebar-right .card {
  border-color: var(--fvmti-border);
}

.sidebar-left .card-header,
.sidebar-right .card-header,
.moduletable > h3 {
  background: var(--fvmti-purple);
  color: var(--fvmti-white);
  border-left: 5px solid var(--fvmti-red);
}

/* READ MORE */
p.readmore a,
.readmore .btn {
  background: var(--fvmti-purple);
  border-color: var(--fvmti-purple);
  color: var(--fvmti-white);
}

p.readmore a:hover,
.readmore .btn:hover {
  background: var(--fvmti-purple-dark);
  border-color: var(--fvmti-purple-dark);
  color: var(--fvmti-white);
}

/* BREADCRUMBS */
.breadcrumb {
  background: var(--fvmti-offwhite);
  border-left: 4px solid var(--fvmti-purple);
  padding: 0.65rem 1rem;
}

.breadcrumb a {
  color: var(--fvmti-purple);
}

/* TABLES */
.table thead th,
table thead th {
  background: var(--fvmti-purple);
  color: var(--fvmti-white);
  border-color: var(--fvmti-purple-dark);
}

.table-hover > tbody > tr:hover > * {
  background-color: var(--fvmti-purple-light);
}

/* FORMS */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="search"],
textarea,
select {
  border-color: #cccccc;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--fvmti-purple);
  box-shadow: 0 0 0 0.20rem rgba(49,49,144,0.15);
}

/* PAGINATION */
.page-link {
  color: var(--fvmti-purple);
}

.page-link:hover {
  color: var(--fvmti-purple-dark);
}

.page-item.active .page-link {
  background: var(--fvmti-purple);
  border-color: var(--fvmti-purple);
  color: var(--fvmti-white);
}

/* ALERTS */
.alert-info {
  color: var(--fvmti-charcoal);
  background: var(--fvmti-purple-light);
  border-color: #d8d8f2;
  border-left: 5px solid var(--fvmti-purple);
}

.alert-danger {
  border-left: 5px solid var(--fvmti-red);
}

/* FOOTER */
.container-footer,
footer.container-footer {
  background: var(--fvmti-purple-dark);
  background-image: none;
  color: #e5e5f3;
  border-top: 5px solid var(--fvmti-red);
}

.container-footer h1,
.container-footer h2,
.container-footer h3,
.container-footer h4,
.container-footer h5,
.container-footer h6 {
  color: var(--fvmti-white);
}

.container-footer a {
  color: var(--fvmti-white);
}

.container-footer a:hover,
.container-footer a:focus {
  color: #ffb9c2;
}

/* BADGES */
.badge.bg-primary,
.bg-primary {
  background-color: var(--fvmti-purple) !important;
}

.badge.bg-secondary,
.bg-secondary {
  background-color: var(--fvmti-charcoal) !important;
}

.bg-danger {
  background-color: var(--fvmti-red) !important;
}

/* OPTIONAL ACCENT BARS */
.fvmti-accent-bar {
  background: var(--fvmti-purple);
  color: var(--fvmti-white);
  padding: 0.65rem 1rem;
}

.fvmti-accent-bar-red {
  background: var(--fvmti-red);
  color: var(--fvmti-white);
  padding: 0.65rem 1rem;
}

/* MOBILE */
@media (max-width: 991.98px) {
  .container-header .navbar-brand img {
    max-height: 68px;
  }

  .container-header .mod-menu > li.active > a,
  .container-header .mod-menu > li.current > a,
  .container-header .metismenu > li.active > a,
  .container-header .metismenu > li.current > a {
    background: rgba(255,255,255,0.12);
  }

  .fvmti-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .fvmti-course-grid {
    grid-template-columns: 1fr;
  }

  .fvmti-section {
    padding: 2.5rem 0;
  }

  .fvmti-hero::before {
    background: rgba(49,49,144,0.72);
  }
}

/* ACCESSIBILITY */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(49,49,144,0.40);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
/* =========================================================
   FVEMTI COURSE CARDS
   Joomla Cassiopeia
   ========================================================= */

.fv-course-section {
    padding: 4rem 1.25rem;
    background: #f6f7fa;
}

.fv-course-section .container {
    max-width: 1200px;
    margin: 0 auto;
}


/* SECTION HEADING */

.fv-section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.fv-section-heading h2 {
    color: #313190;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: .5rem;
}

.fv-section-heading p {
    color: #555;
    font-size: 1.1rem;
}


/* CARD GRID */

.fv-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}


/* CARD */

.fv-course-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,.10);
    border: 1px solid rgba(0,0,0,.06);

    display: flex;
    flex-direction: column;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.fv-course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
}


/* COURSE IMAGE */

.fv-course-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ddd;
}

.fv-course-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.fv-course-card:hover .fv-course-image img {
    transform: scale(1.04);
}


/* COURSE BADGE */

.fv-course-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;

    background: #313190;
    color: #ffffff;

    padding: .4rem .75rem;
    border-radius: 999px;

    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;

    box-shadow: 0 3px 8px rgba(0,0,0,.18);
}


/* CARD BODY */

.fv-course-content {
    padding: 1.5rem;

    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fv-course-content h3 {
    color: #313190;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: .65rem;
}

.fv-course-tagline {
    color: #555;
    line-height: 1.55;
    margin-bottom: 1.15rem;
}


/* DETAILS */

.fv-course-details {
    padding: .9rem 0;
    border-top: 1px solid #e9e9ee;
    border-bottom: 1px solid #e9e9ee;
    margin-bottom: 1.25rem;
}

.fv-course-details p {
    margin: .25rem 0;
    color: #444;
    font-size: .94rem;
}


/* BUTTON */

.fv-course-button {
    display: inline-block;

    margin-top: auto;
    padding: .8rem 1.25rem;

    border-radius: 7px;

    background: #313190;
    color: #ffffff !important;

    text-align: center;
    text-decoration: none !important;

    font-weight: 700;

    transition:
        background .2s ease,
        transform .2s ease;
}

.fv-course-button:hover,
.fv-course-button:focus {
    background: #24246d;
    color: #ffffff !important;
    transform: translateY(-1px);
}


/* TABLET */

@media (max-width: 991px) {

    .fv-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* MOBILE */

@media (max-width: 640px) {

    .fv-course-section {
        padding: 3rem 1rem;
    }

    .fv-course-grid {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .fv-course-content {
        padding: 1.25rem;
    }

}
/* FVMTI Video Feature Section */

.fv-bullet {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #313190;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.fv-description {
    margin-left: 25px;
    margin-bottom: 0;
    line-height: 1.7;
}

.fv-description + p {
    margin-top: 10px;
}

/* Feature title links */
h5 .text-decoration-none {
    color: #313190;
    font-weight: 700;
}

h5 .text-decoration-none:hover {
    color: #5555b5;
}

/* Mobile */
@media (max-width: 991.98px) {
    .fv-description {
        margin-left: 20px;
    }
}
/* =========================================================
   FVMTI CUSTOM FOOTER
   Joomla Cassiopeia
   ========================================================= */

.fvemti-footer {
    background: #313190;
    color: #ffffff;
    margin-top: 0;
    padding-top: 55px;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Main institute name */

.fvemti-footer .footer-title {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
}

/* Column headings */

.fvemti-footer .footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Small accent underneath headings */

.fvemti-footer .footer-accent {
    width: 45px;
    height: 3px;
    background: #ffffff;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Standard text */

.fvemti-footer p {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 18px;
}

/* Links */

.fvemti-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.fvemti-footer a:hover {
    color: #d9d9ff;
    text-decoration: underline;
}

/* Tagline */

.fvemti-footer .footer-tagline {
    font-weight: 600;
    font-style: italic;
    color: #ffffff;
    margin-top: 22px;
}

/* Resource links */

.fvemti-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fvemti-footer .footer-links li {
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.fvemti-footer .footer-links li::before {
    content: "›";
    font-weight: bold;
    margin-right: 10px;
    color: #ffffff;
}

/* =========================================================
   LOWER COPYRIGHT BAR
   ========================================================= */

.fvemti-footer-bottom {
    background: rgba(0, 0, 0, 0.20);
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 45px;
    padding: 18px 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .fvemti-footer {
        padding-top: 40px;
    }

    .fvemti-footer-bottom {
        text-align: center;
    }

    .fvemti-footer-bottom .text-md-end {
        margin-top: 8px;
    }

}