/* =========================================
   HOME PAGE
   ========================================= */
.website-card img{
    width:48px;
    height:48px;
    object-fit:contain;
    margin-bottom:12px;
}
.home-hero {
    position: relative;
    overflow: hidden;

    background-color: #003b73 !important;
    background-image: url("https://eraportaldev.powerappsportals.com/era-hero-banner.jpg") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;

    min-height: 320px;
    padding: 55px 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: #ffffff;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background-color: rgba(0, 38, 77, 0.55);
    pointer-events: none;
}

.home-hero > .container {
    position: relative;
    z-index: 2;
}

.home-hero h1 {
    text-align: left;
    position: relative;
    top: -53px;

    margin: 0 0 12px;
    color: #ffffff;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.home-hero p {
    max-width: 750px;
    margin: 0 auto 22px;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hero-actions .btn {
    margin: 0;
}

.home-hero::after {
    content: "";
    position: absolute;

    top: 35px;

    right: 50%;
    transform: translateX(580px);

    width: 210px;
    height: 95px;

    background: url("https://eraportaldev.powerappsportals.com/era-neg.png")
        no-repeat center;
    background-size: contain;

    z-index: 1;
}

.home-hero-content{
    display:flex;
    align-items:flex-start;
    gap:50px;
}

.hero-logo{
    flex:0 0 220px;
}

.hero-text{
    flex:1;
}
/* =========================================
   HIGHLIGHT CARDS
   ========================================= */

.portal-highlights {
    position: relative;
    z-index: 5;

    margin-top: -35px;
    padding: 0 0 30px;
}

.portal-highlights .row {
    display: flex;
    flex-wrap: wrap;
}

.portal-highlights [class*="col-"] {
    margin-bottom: 18px;
}

.highlight-card {
    height: 100%;
    min-height: 140px;

    padding: 22px;

    background: #ffffff;
    border: 1px solid #e1e7ef;
    border-radius: 10px;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.highlight-card h3 {
    margin: 0 0 8px;

    color: #0050a4;
    font-size: 20px;
    font-weight: 600;
}

.highlight-card p {
    margin: 0;

    color: #555555;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================
   DASHBOARD
   ========================================= */

.home-dashboard {
    padding: 35px 0 45px;
    background: #f5f7fa;
}

.home-card {
    min-height: auto;
    margin-bottom: 25px;
    padding: 20px;

    background: #ffffff;
    border: 1px solid #e1e7ef;
    border-radius: 10px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

.home-card h2 {
    margin: 0 0 18px;

    color: #0050a4;
    font-size: 25px;
    font-weight: 500;
}

.home-card .entitylist {
    margin-top: 12px;
}


/* =========================================
   TRAINING CARD
   ========================================= */

.training-card {
    min-height: 320px;
    padding: 28px 30px;

    background: #ffffff;
    border: 1px solid #dfe7f1;
    border-radius: 14px;

    box-shadow: 0 8px 24px rgba(0, 80, 164, 0.10);
}

.training-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    margin-bottom: 14px;
}

.training-card-header h2 {
    margin: 0;

    color: #0050a4;
    font-size: 25px;
}

.training-card-header a {
    white-space: nowrap;

    color: #0050a4;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.training-card-header a:hover {
    color: #003f82;
    text-decoration: underline;
}

.training-list-wrapper {
    max-height: 360px;

    overflow-x: auto;
    overflow-y: auto;

    border: 1px solid #dfe7f1;
    border-radius: 9px;
}


/* =========================================
   ENTITY LIST TABLES
   ========================================= */

.home-card table,
.training-card table {
    width: 100%;
    margin: 0;

    border-collapse: separate;
    border-spacing: 0;

    font-size: 15px;
}

.home-card table thead th,
.training-card table thead th {
    padding: 15px 14px;

    background: #0050a4;
    color: #ffffff !important;

    border: none;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    vertical-align: middle;
}

.training-card table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.home-card table thead th:first-child,
.training-card table thead th:first-child {
    border-top-left-radius: 8px;
}

.home-card table thead th:last-child,
.training-card table thead th:last-child {
    border-top-right-radius: 8px;
}

.home-card table thead th a,
.training-card table thead th a {
    color: #ffffff !important;
    text-decoration: none;
}

.home-card table tbody td,
.training-card table tbody td {
    padding: 16px 14px;

    background: #ffffff;
    color: #253548;

    border-bottom: 1px solid #e5ebf2;

    font-size: 14px;
    line-height: 1.5;
    vertical-align: middle;
}

.home-card table tbody tr:last-child td,
.training-card table tbody tr:last-child td {
    border-bottom: none;
}

.home-card table tbody tr:hover td,
.training-card table tbody tr:hover td {
    background: #f4f8ff;
}

.training-card table tbody td:first-child a {
    color: #0050a4;
    font-weight: 600;
    text-decoration: none;
}

.training-card table tbody td:first-child a:hover {
    color: #003f82;
    text-decoration: underline;
}

/* Keep date columns readable */
.training-card table th:nth-child(2),
.training-card table th:nth-child(3),
.training-card table td:nth-child(2),
.training-card table td:nth-child(3) {
    min-width: 145px;
}

/* =========================================
   ALERTS AND VIEW-MORE LINKS
   ========================================= */

.home-card .alert-warning,
.training-card .alert-warning {
    margin: 0;
    padding: 16px;

    background: #eef5ff;
    color: #0050a4;

    border: 1px solid #c8dcf4;
    border-radius: 8px;
}

.view-more,
.home-card .view-more {
    display: inline-block;

    margin-top: 15px;
    padding: 10px 16px;

    background: #0050a4;
    color: #ffffff;

    border-radius: 6px;

    font-weight: 600;
    text-decoration: none;
}

.view-more:hover,
.home-card .view-more:hover {
    background: #003f82;
    color: #ffffff;
    text-decoration: none;
}

/* =========================================
   QUICK ACCESS
   ========================================= */

.quick-links {
    margin-top: 24px;
}

.quick-links h2 {
    margin: 0 0 15px;

    color: #263645;
    font-size: 24px;
    font-weight: 500;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    min-height: 78px;
    padding: 10px 12px;

    background: #ffffff;
    color: #0050a4;

    border: 1px solid #dfe7f1;
    border-radius: 8px;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.05);

    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.quick-card i {
    font-size: 21px;
    color: #0050a4;
    margin: 0;
}

.quick-card span {
    line-height: 1.1;
}

.quick-card:hover,
.quick-card:focus {
    background: #0050a4;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 80, 164, 0.18);
}

.quick-card:hover i,
.quick-card:focus i {
    color: #ffffff;
}


/* =========================================
   EVENT WIDGET
   ========================================= */

.event-widget {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 12px;

    border-bottom: 1px solid #e5e5e5;
}

.event-item:last-child {
    border-bottom: none;
}

.event-date {
    min-width: 70px;
    padding: 8px;

    background: #f5f7fa;
    color: #0050a4;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.event-details {
    margin: 0;
}

.event-details strong {
    display: block;
    margin-bottom: 4px;

    color: #263645;
}

.news-item {
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
}

.news-item small {
    display: block;
    margin: 4px 0;

    color: #666666;
}


/* =========================================
   CALENDAR OVERRIDES
   ========================================= */

.training-list-wrapper .fc-toolbar,
.training-list-wrapper .fc-header-toolbar {
    display: none !important;
}

.training-list-wrapper .fc-dayGridMonth-view {
    display: none !important;
}

.training-list-wrapper .fc-listWeek-view {
    display: block !important;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 991px) {
    .home-hero {
        min-height: 270px;
        padding: 45px 20px 60px;
    }

    .home-hero h1 {
        font-size: 34px;
    }

    .home-hero p {
        font-size: 17px;
    }

    .quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================
   MOBILE
   ========================================= */
   
   
   /* =========================================
   Innotrans
   ========================================= */
   
   .innotrans-card{

    height:100%;
    min-height:315px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;

    padding:35px;

    text-decoration:none !important;

    transition:.25s;
}

.innotrans-card:hover{

    transform:translateY(-4px);

    box-shadow:0 14px 35px rgba(0,0,0,.12);
}

.innotrans-icon{

    width:85px;
    height:85px;

    margin-bottom:20px;

    border-radius:50%;

    background:#eef5ff;

    display:flex;
    align-items:center;
    justify-content:center;
}

.innotrans-icon i{

    font-size:40px;

    color:#0050a4;
}

.innotrans-card h3{

    margin-bottom:12px;

    color:#0050a4;

    font-size:24px;
}

.innotrans-card p{

    margin-bottom:25px;

    color:#666;
}

.innotrans-card .btn{

    padding:10px 22px;

    border-radius:8px;
}
   
   /* =========================================
   Innotrans
   ========================================= */

@media (max-width: 767px) {
    .home-hero {
        min-height: auto;
        padding: 40px 15px 60px;
    }

    .home-hero h1 {
        font-size: 29px;
    }

    .home-hero p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .portal-highlights {
        margin-top: -25px;
        padding-bottom: 20px;
    }

    .portal-highlights .row {
        display: block;
    }

    .highlight-card {
        min-height: auto;
    }

    .training-card-header {
        align-items: flex-start;
    }

    .training-card-header h2 {
        font-size: 22px;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }
}
.quick-card-wrapper {
    position: relative;
}

/* Keep the card full width */
.quick-card-wrapper .quick-card {
    width: 100%;
}

/* Small arrow */
.quick-card-arrow {
    font-size: 10px !important;
    margin-top: 0;
}

/* Dropdown menu */
.quick-card-menu {
    position: absolute;

    /* Open beside the card */
    top: 0;
   left: calc(100% + 10px);

    width: 240px;
    max-height: 420px;
    overflow-y: auto;

    background: #fff;
    border: 1px solid #d5dde8;
    border-radius: 8px;

    box-shadow: 0 10px 28px rgba(0,0,0,.18);

    padding: 8px 0;

    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);

    transition: all .2s ease;
    z-index: 1000;
}

.quick-card-wrapper:hover .quick-card-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Show menu when cursor is over card or menu 
.quick-card-wrapper:hover .quick-card-menu,*/
.quick-card-wrapper:focus-within .quick-card-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown links */
.quick-card-menu a {
    display: block;
    padding: 9px 16px;

    color: #0050a4;
    background: #ffffff;

    font-size: 14px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;

    white-space: nowrap;
}

/* era-brand-bar */

.era-brand-bar {
    width: 100%;
    background: #ffffff;
    padding: 15px 0;
}

.era-brand-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-header {
    display: flex;
    align-items: center;
}

.era-brand-logo {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0;
    margin-right: 20px;
    overflow: hidden;
}

.era-brand-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}


/* Hover effect */
.quick-card-menu a:hover,
.quick-card-menu a:focus {
    background: #0050a4;
    color: #ffffff;
    text-decoration: none;
}

.registers-section {
    margin-top: 24px;
    padding: 22px 16px 28px;

    background: #ffffff;
    border: 1px solid #dfe7f1;
    border-radius: 10px;
	width: 100%;
    box-sizing: border-box;
    overflow: hidden;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.registers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.registers-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 22px;
    font-weight: 500;
}

.registers-header a {
    color: #0050a4;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.registers-header a:hover,
.registers-header a:focus {
    text-decoration: underline;
}

.registers-grid {
	width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.register-tile {
    display: flex;
    align-items: center;
    justify-content: center;

  min-width: 0;
    box-sizing: border-box;
	
    min-height: 52px;
    padding: 8px 10px;

    background: #f8fafc;
    color: #0050a4;

    border: 1px solid #dbe3ec;
    border-radius: 7px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.register-tile:hover,
.register-tile:focus {
    background: #0050a4;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 80, 164, .16);
}

@media (max-width: 1199px) {
    .registers-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .registers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .registers-header h2 {
        font-size: 20px;
    }
}

