﻿@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;700;800&display=swap');

/* General Styling */
body {
    background-color: #fff; /* White background */
    color: #333; /* Dark text color */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: 'Open Sans', sans-serif; /* Setting the new font for the whole website */
    font-weight: 500; /* Medium weight for body text */
    letter-spacing: 0.5px; /* Slightly increase letter spacing for better readability */
}

    body.ProductsController,
    body.ArticlesController,
    body.ArticlesContent {
        background-color: white; /* White background */
        color: #333; /* Dark text color */
        text-align: left; /* Align text to the left */
    }

/* Styling for headings */
h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800; /* Extra Bold weight */
}

h2, h3, h4 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700; /* Bold weight */

}


/* Styling for paragraphs */
p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500; /* Medium weight */
    letter-spacing: 0.5px; /* Slightly increase letter spacing for paragraphs */
}

/* Additional styling for links */
a {
    color: #00bcd4;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif; /* Apply font to links */
}

    a:hover {
        color: #ff5722;
        text-decoration: underline;
    }

/* Ensure Buttons Follow the Style */
body.ProductsController .btn,
body.ArticlesController .btn,
body.ArticlesContent .btn {
    color: white; /* White text color for buttons */
    background-color: #ef4135; /* Background color */
    border: none;
    font-family: 'Open Sans', sans-serif; /* Apply font to buttons */
    font-weight: 700; /* Bold weight for buttons */
}

    body.ProductsController .btn:hover,
    body.ArticlesController .btn:hover,
    body.ArticlesContent .btn:hover {
        background-color: darkred; /* Background color on hover */
        color: white; /* Ensure text color remains white on hover */
    }

    body.ProductsController .btn:active,
    body.ArticlesController .btn:active,
    body.ArticlesContent .btn:active {
        background-color: crimson; /* Background color when active */
        color: white; /* Ensure text color remains white when active */
    }

    body.ProductsController .btn:focus,
    body.ArticlesController .btn:focus,
    body.ArticlesContent .btn:focus {
        outline: none;
        box-shadow: none;
    }

/* Ensure container is styled correctly */
.container {
    padding: 15px;
    text-align: left; /* Align text to the left */
    margin: 20px auto;
}

/* Navbar Styling */
.navbar {
    background-color: #06223c !important; /* Dark blue menu */
}

.navbar-nav .nav-link {
    color: #ffffff !important; /* White text */
    transition: color 0.2s ease-in-out;
    font-weight: bold;
    text-align: left; /* Align text to the left */
    font-family: 'Open Sans', sans-serif; /* Apply font to nav links */
}

    .navbar-nav .nav-link:hover {
        color: #ef4135 !important; /* Transition effect */
    }

.navbar-nav .dropdown-menu {
    background-color: #0a355e;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.dropdown-menu .dropdown-item {
    color: #ffffff !important; /* White text */
    transition: background-color 0.2s ease, color 0.2s ease;
    text-align: left; /* Align text to the left */
    font-family: 'Open Sans', sans-serif; /* Apply font to dropdown items */
}

    .dropdown-menu .dropdown-item:hover {
        background-color: #ef4135;
        color: #ffffff !important; /* White text */
    }

.custom-card {
    background-color: #fff; /* Light background color */
    color: #333; /* Dark text */
    border: none; /* No border */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Gentle shadow */
    overflow: hidden; /* Ensure cards don't overflow */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Transition effect */
    font-family: 'Open Sans', sans-serif; /* Apply font to cards */
}

    .custom-card:hover {
        transform: scale(1.02); /* Slight enlargement on hover */
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
    }

/* Footer Styling */
footer {
    background-color: #0a355e;
    color: #fff;
    padding: 10px 0;
    margin-top: auto; /* Push footer to bottom */
    text-align: center;
    font-family: 'Open Sans', sans-serif; /* Apply font to footer */
}

/* Footer Links */
.footer a {
    color: #00bcd4;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif; /* Apply font to footer links */
}

    .footer a:hover {
        color: #ff5722;
        text-decoration: underline;
    }

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 videos each row */
    gap: 20px; /* Spaces between videos */
    justify-items: center; /* Align to center all videos */
}

    .video-grid iframe {
        width: 100%; /* Full width */
        max-width: 300px; /* Maximum width */
        height: 200px; /* Height */
        border: none; /* No border */
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Smooth transition */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Default shadow */
    }

        .video-grid iframe:hover {
            transform: scale(1.1); /* Scale up on hover */
            box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
        }

/* Responsive Design */
@media (max-width: 768px) {
    .custom-card img {
        width: 50%;
    }

    footer {
        text-align: center;
        flex-direction: column;
    }
}
