﻿body {
	font-family: Arial, Helvetica, sans-serif;
	background-color: #525a64;
	color: #FFFFFF;
	margin: 0;
}
.container {
	display: grid;
	grid-template-columns: 3fr 1fr;
	grid-template-rows: auto 1fr auto;
	grid-template-areas:
		"header header"
		"main aside"
		"footer footer";
	min-height: 100vh;
}
header {
    grid-area: header;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "name navigation";
    align-items: center;
    gap: 15px;
    padding: 10px 25px;
    background-color: #525a64;
    border-bottom: 1px solid #d1d5db;
    position: sticky;
    top: 0;
    z-index: 1000;
}
h1 {
    grid-area: name;
    justify-self: start;
    color: #FFFFFF;
    font-size: 2.25rem;
    margin: 0;
}
h2 {
	color: #FFFFFF;
}
nav {
    grid-area: navigation;
    justify-self: end;
    background-color: #1F2937;
    padding: 4px 8px;
    border-radius: 8px;
}
nav ul {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style-type: none;
}
nav a {
    position: relative;
    display: block;
    padding: 8px 12px;
    color: #F9FAFB;
    text-decoration: none;
    border-radius: 5px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}
nav a:hover {
    color: #FFFFFF;
    background-color: rgba(59, 130, 246, 0.15);
}
nav a::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 2px;
	width: 0;
	height: 2px; 
	background-color: #2b7efb;
	transition: width 0.3s ease, left 0.3s ease;
}
nav a:hover::after {
	width: 100%;
	left: 0;
}
main {
	grid-area: main;
	background-color: #1F2937;
	margin: 30px;
	padding: 25px;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
h3 {
	text-align: center;
}
aside {
	grid-area: aside;
	background-color: #1F2937;
	margin: 30px 30px 30px 0;
	padding: 25px;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
aside p {
	color: #FFFFFF;
	line-height: 1.6;
}
main,aside {
    min-width: 0;
    overflow-wrap: anywhere;
}
.hero-content {
    min-width: 0;
}
table {
    width: 50%;
    border-collapse: collapse;
    overflow: hidden;
    margin: 15px auto 0;
    border-radius: 10px;
    outline: 3px solid #3B82F6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}
th,td {
    border: 2px solid #3B82F6;
    padding: 15px;
    text-align: left;
}
th {
    background-color: #60A5FA;
    color: #111827;
    font-weight: bold;
    letter-spacing: 0.03em;
}
tbody tr:nth-child(odd) {
	background-color: #1F2937;
	color: #FFFFFF;
}
tbody tr:nth-child(even) {
	background-color: #34465E;
	color: #FFFFFF
}
footer {
	grid-area: footer;
	background-color: #1F2937;
	color: #F9FAFB;
	text-align: center;
	padding: 8px;
}
footer p {
	margin: 0;
	color: #F9FAFB;
}
.menu-toggle {
	display: none;
}
.hero {
	background-image:
   		linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
   		url("images/hero.png");		
	
	background-size: cover;
	background-position: right center;
	
	min-height: 350px;
	padding: 30px;
	box-sizing: border-box;
	border-radius: 12px;
	
	display: flex;
	align-items: center;
	justify-content: center;
	
	
	text-align: center;
	color: #FFFFFF;
	transition: transform 0.3s ease;
}
@media (hover: hover) {
	.hero:hover {
		transform: scale(1.03);
	}
}
.hero-content h2 {
	font-size: 2.5rem;
	margin: 0 0 15px;
}
.hero-content p {
	font-size: 1.1rem;
	margin: 0 0 25px;
}
.hero-button {
	display: inline-block;
	background-color: #3882F6;
	color: #FFFFFF;
	padding: 12px 24px;
	border-radius: 6px;
	text-decoration: none;
}
.hero-button:hover {
	background-color: #2563EB;
}
.youtube-short {
    display: block;
    width: 100%;
    max-width: 315px;
    aspect-ratio: 9 / 16;
    margin: 15px auto;
    border: 2px solid #3B82F6;
	border-radius: 16px;
	box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
	box-sizing: border-box;
}
@media screen and (max-width: 768px) {

.container {
       grid-template-columns: minmax(0, 1fr);
       grid-template-rows: auto 1fr auto auto;
       grid-template-areas:
            "header"
            "main"
            "aside"
            "footer";
}
.hero {
	min-height: 250px;
	padding: 20px;	
}
.hero-content h2 {
	font-size: 1.8rem;
}
header {
    grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "name navigation";
    padding: 10px 20px;
}
h1 {
    justify-self: start;
    font-size: 2rem;
}
nav {
     justify-self: end;
     width: auto;
     padding: 0;
     background-color: transparent;   
}
.menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
        padding: 5px 10px;
        color: #FFFFFF;
        background-color: transparent;
        border: 1px solid #d1d5db;
        border-radius: 5px;
        font-size: 1.75rem;
        cursor: pointer;
        transition:
            background-color 0.2s ease,
            border-color 0.2s ease;
}
.menu-toggle:hover {
        background-color: #1F2937;
        border-color: #3B82F6;
}
#nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 0;
        margin: 0;
        padding: 0 10px;
        overflow: hidden;
        background-color: #1F2937;
        border-bottom: 1px solid #d1d5db;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
        flex-direction: column;
        align-items: center;
        text-align: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
        z-index: 1000;
        transition:
            max-height 0.35s ease,
            padding 0.35s ease,
            opacity 0.25s ease,
            transform 0.35s ease,
            visibility 0s linear 0.35s;
}
#nav-links.open {
        max-height: 250px;
        padding: 10px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;

        transition:
            max-height 0.35s ease,
            padding 0.35s ease,
            opacity 0.25s ease,
            transform 0.35s ease,
            visibility 0s;
}
#nav-links li {
        width: 100%;
}
#nav-links a {
        display: block;
        padding: 12px;
        transition: transform 0.3s ease;
}
main {
     margin: 20px;
}
aside {
     margin: 0 20px 20px;
  }
table {
    width: 100%;
    table-layout: fixed;
}
th,td {
    padding: 10px;
    overflow-wrap: anywhere;
 }
}


@media screen and (max-width: 360px) {
main {
    margin: 10px;
    padding: 12px;
}

.hero {
    padding: 12px;
    background-position: right center;
}

.hero-content h2 {
    font-size: 1.4rem;
}

header {
    padding: 10px;
    gap: 8px;
}

h1 {
   font-size: 1.5rem;
  }
}
