/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Imports */
@font-face {
    font-family: 'Regular';
    src: url('../fonts/raleway.medium.ttf');
}

@font-face {
    font-family: 'Medium';
    src: url('../fonts/raleway.bold.ttf');
}

@font-face {
    font-family: 'Bold';
    src: url('../fonts/raleway.heavy.ttf');
}

/* Body Styling */
body {
    font-family: 'Regular';
}

header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    color: #282560;
    padding: 0.5em 0;
    transition: background-color 0.3s, position 0.3s;
    z-index: 1000;
}

header.scrolled {
    background-color: white;
    position: fixed;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2em;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

.logo img {
    width: 23%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #282560;
    font-size: 2em;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    position: relative;
    margin-left: 2.5em;
    padding: 0.5em 0;
    font-family: 'Bold';
    letter-spacing: 0.1em;
}

.nav-links a {
    text-decoration: none;
    color: #282560;
    font-size: 1em;
    transition: color 0.3s;
    display: inline-block;
    position: relative;
    padding-bottom: 0.5em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #DE4935;
    transition: width 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
}

.nav-links a:hover::after {
    width: 100%;
    visibility: visible;
}

.hockey-heading {
    width: 100%;
    height: 40vh;
    padding: 20px 0;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 90px;
}

.hockey-heading p {
    width: 70%;
    font-size: 2em;
    font-family: 'Medium';
    color: #bababa;
    line-height: 1.6;
    text-align: center;
    letter-spacing: 0.1em;
}

.container {
    max-width: 1200px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    margin: auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    margin: 40px;
    position: relative;
    max-width: 250px;
    max-height: 350px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    overflow: hidden;
    cursor: pointer;
}

.card-title {
    display: block;
    text-align: center;
    color: #fff;
    background-color: #DE4935;
    padding: 2%;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    font-family: 'Medium';
    letter-spacing: 0.1em;
}

.card img {
    width: 100%;
    height: 98%;
    object-fit: cover;
    display: block;
    position: relative;
}

.card-desc {
    display: block;
    font-size: 1.2rem;
    position: absolute;
    height: 0;
    top: 0;
    opacity: 0;
    padding: 18px 8%;
    background-color: white;
    overflow-y: scroll;
    transition: 0.5s ease-in-out;
    font-family: 'Regular';
    color: #bababa;
    letter-spacing: 0.1em;
}

.card:hover .card-desc {
    opacity: 1;
    height: 100%;
}

h1 {
    font-size: 2.8rem;
    color: #fff;
    margin: 40px 0 20px 0;
    text-align: center;
}

footer {
    background-color: #0A1F44;
    color: white;
    text-align: center;
    padding: 1em 0;
    font-family: 'Medium';
    letter-spacing: 0.2em;
}

@media only screen and (max-width: 768px) {
    header {
        position: fixed;
        background-color: white;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin-left: 0;
        margin-bottom: 1em;
        padding: 1em;
        text-align: center;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .card {
        margin: 20px;
        max-width: 100%;
        max-height: auto;
    }

    .card-title {
        font-size: 1em;
    }

    .card-desc {
        font-size: 0.8rem;
    }

    .hockey-heading p {
        font-size: 1.5em;
    }

    h1 {
        font-size: 2rem;
    }
    footer {
        background-color: #0A1F44;
        color: white;
        text-align: center;
        padding: 1em 0;
        height: 50px;
        font-family: 'Medium';
        letter-spacing: 0.2em;
        bottom: 0;
        font-size: 0.7em;
        line-height:25px;
        
    }
}

