/*CSS rules for the header section*/

.row.headings {
	color: #fff;
	margin: 20px;
	padding: 18px 8px;
	padding-left: 15px;
	border-radius: 10px;
    margin-top: 0px;
}

.row.headings h2 {
	margin-bottom: 0;
    margin-top: 0;
	vertical-align: middle;
    font-weight: 700;
}

.h2_desc {
	font-size: 18px;
	font-weight: normal;
	vertical-align: middle;
}

.h2_desc_center {
	font-size: 18px;
	font-weight: normal;
	vertical-align: middle;
	text-align: center;
	margin-top: 10px;
}

/* CSS rules for the intro video section */
.video-wrapper {
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 24px -4px #000;
    transition: box-shadow 0.3s ease;
}

.video-wrapper .home-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #0064ff;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper .home-video-play::before {
    content: "";
    margin-left: 5px;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid #fff;
}

.intro {
    display: block;
    width: 100%;
    height: auto;
}

.intro-player {
    position: relative;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    margin: 0 auto 50px;
}

.intro-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.pg-title h1 {
	padding-top: 15px;
	text-align: center;
    margin-top: 20px;
}

.container-wrap {
	padding: 20px 25px;
	color: #000;
	text-align: left;
}

.container-wrap .ala-button-blue {
    display: inline-block;
    text-decoration: none;
}

.container-wrap .ala-button-blue:focus-visible {
    outline: 3px solid #0064ff;
    outline-offset: 3px;
}

.container-wrap .ala-button-blue:hover {
    color: #0064ff;
}
.ala-button-blue:visited {
    color: #fff;
}

p {
	font-size: 16px;
	line-height: 1.5;
	margin-bottom: 1rem;
	padding-bottom: 20px;
}

/* CSS rules for the Home section */

.home-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.home-card {
	display: block;
	text-decoration: none;
    color: inherit;
	border-radius: 4px;
	overflow: hidden;
	background: #ffffff;
  	box-shadow: 0 0 20px -5px rgba(0, 0, 0, 0.15),  0 0 5px 0 rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card img {
    display: block;
    width: 100%;
    height: auto;
}

.home-card-title {
    display: block;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
}

.home-card-title,
.resource-card-title {
    font-family: 'Aeonik';
    font-weight: 700;
    color: #002158;
}

.home-card:hover,
.home-card:focus-visible {
    transform: translateY(-3px);
    box-shadow:     0 0 20px -5px rgba(0, 33, 88, 0.2),
    0 0 8px 0 rgba(0, 0, 0, 0.12);
}

.home-card:focus-visible {
    outline: 3px solid #0056b3;
    outline-offset: 3px;
}

.home-card-media {
    display: block;
    position: relative;
}

.home-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #0064ff;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-video-play::before {
    content: "";
    margin-left: 5px;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid #fff;
}

.home-card:hover .home-video-play,
.home-card:focus-visible .home-video-play {
    background: #002158;
}

.home-video-frame {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
}

.home-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

#homeVideoModal .modal-body {
    padding: 0;
}

#homeVideoModal .modal-dialog {
    width: 1024px;
    max-width: calc(100vw - 30px);
}

/* CSS rules for the Resources section */

.resource-download {
    text-align: center;
    margin: 1rem 0 2rem;
}

.resource-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.resource-card {
	display: block;
	text-decoration: none;
    color: inherit;
	border-radius: 4px;
	overflow: hidden;
	background: #ffffff;
  	box-shadow: 0 0 20px -5px rgba(0, 0, 0, 0.15),     0 0 5px 0 rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card img {
    display: block;
    width: 100%;
    height: auto;
}

.resource-card-title {
    display: block;
    padding: 1rem;
    text-align: center;
	font-weight: 500;
}

.home-card-title,
.resource-card-title {
    font-family: 'Aeonik';
    font-weight: 700;
    color: #002158;
}

.resource-card:hover,
.resource-card:focus-visible {
    transform: translateY(-3px);
    box-shadow:     0 0 20px -5px rgba(0, 33, 88, 0.2),
    0 0 8px 0 rgba(0, 0, 0, 0.12);
}

.resource-card:focus-visible {
    outline: 3px solid #0056b3;
    outline-offset: 3px;
}


/* Responsive design for smaller screens */
@media (max-width: 767px) {
    .intro-player {
        margin-bottom: 20px;
    }
    .resource-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-card .home-video-play,
    .video-wrapper .home-video-play {
        width: 48px;
        height: 48px;
    }

    .home-card .home-video-play::before,
    .video-wrapper .home-video-play::before {
        border-top-width: 8px;
        border-bottom-width: 8px;
        border-left-width: 12px;
    }

    .home-card-title, .resource-card-title {
        font-size: 80%;
    }
}
