/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #f5f5f5;
    background-color: #0d1b2a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #00aaff;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #66c3ff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation Bar */
/* The navbar has a dark translucent background and stays fixed at the top */
.navbar {
    background-color: rgba(13, 27, 42, 0.9);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 1rem 0;
}

/* Use flexbox on the navbar container to align items horizontally */
.navbar .container {
    display: flex;
    align-items: center;
    /* Do not use space-between here so the brand and nav sit next to each other */
}

/* Brand (logo + text) styling */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.5rem;
    color: #00aaff;
}

/* Logo image within the brand */
.navbar-brand .logo-image {
    height: 40px;
    width: auto;
}

/* Navigation menu styling */
.navbar-nav {
    /* Add some space between the brand and the nav menu */
    margin-left: 2rem;
}
.navbar-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}
.navbar-nav ul li a {
    color: #f5f5f5;
    font-weight: 400;
    padding: 0.5rem;
    border-radius: 4px;
}
.navbar-nav ul li a:hover,
.navbar-nav ul li a.active {
    background-color: #112d4e;
    color: #00aaff;
}

/* Hero Section */
.hero {
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.btn {
    display: inline-block;
    background-color: #00aaff;
    color: #0d1b2a;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s;
}
.btn:hover {
    background-color: #66c3ff;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: #112d4e;
}
.features h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
    color: #00aaff;
}
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.feature-card {
    background-color: #0d1b2a;
    border-radius: 8px;
    padding: 2rem;
    flex: 1 1 250px;
    max-width: 350px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card i {
    font-size: 2.5rem;
    color: #00aaff;
    margin-bottom: 1rem;
}
.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}
.feature-card p {
    font-size: 1rem;
    color: #cfe8ff;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Page header */
.page-header {
    padding: 3rem 0;
    background-color: #112d4e;
    text-align: center;
}
.page-header h1 {
    font-size: 2rem;
    color: #00aaff;
    margin-bottom: 0.5rem;
}
.page-header p {
    font-size: 1rem;
    color: #cfe8ff;
}

/* General page content */
.page-content {
    padding: 2rem 0 4rem;
    flex: 1;
}
.page-content h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #00aaff;
}
.page-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #e1eaf5;
}
.page-content ul {
    list-style: none;
    margin-left: 1rem;
    margin-bottom: 1rem;
}
.page-content ul li {
    margin-bottom: 0.5rem;
}
.page-content ul li i {
    margin-right: 0.5rem;
    color: #00aaff;
}

/* Blog list */
.blog-list .post {
    background-color: #0d1b2a;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.blog-list .post:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.post-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #00aaff;
}
.post-meta {
    font-size: 0.85rem;
    color: #a6c8e1;
    margin-bottom: 1rem;
}
.post-excerpt {
    color: #e1eaf5;
    margin-bottom: 1rem;
}
.read-more {
    color: #00aaff;
    font-weight: 500;
}
.read-more:hover {
    text-decoration: underline;
}

/* Video list */
.video-list .video-post {
    background-color: #0d1b2a;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}
.video-title {
    font-size: 1.4rem;
    color: #00aaff;
    margin-bottom: 0.5rem;
}
.video-wrapper {
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.video-script {
    margin-top: 1rem;
}
.video-script h3 {
    font-size: 1.2rem;
    color: #00aaff;
    margin-bottom: 0.5rem;
}
.video-script p {
    color: #e1eaf5;
    line-height: 1.5;
}

/* Contact page */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.contact-info, .contact-form {
    flex: 1 1 300px;
    background-color: #0d1b2a;
    border-radius: 8px;
    padding: 2rem;
}
.contact-info ul li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: #e1eaf5;
}
.contact-info ul li a {
    color: #00aaff;
}
.contact-form form {
    display: flex;
    flex-direction: column;
}
.contact-form label {
    margin-bottom: 0.3rem;
    color: #cfe8ff;
}
.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 4px;
    background-color: #112d4e;
    color: #e1eaf5;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #00aaff;
}
.contact-form button {
    align-self: flex-start;
}

/* Footer */
.footer {
    background-color: #112d4e;
    padding: 1.5rem 0;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}
.footer-content p {
    color: #a6c8e1;
    font-size: 0.9rem;
}
.social-links {
    display: flex;
    gap: 1rem;
}
.social-links a {
    color: #00aaff;
    font-size: 1.5rem;
    transition: color 0.2s;
}
.social-links a:hover {
    color: #66c3ff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar nav ul {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .features-grid {
        flex-direction: column;
    }
    .contact-section {
        flex-direction: column;
    }
}

/* Featured video on the home page */
.featured-video {
    padding: 4rem 0;
    background-color: #112d4e;
}
.featured-video h2 {
    text-align: center;
    color: #00aaff;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 600;
}
.featured-video p {
    text-align: center;
    color: #cfe8ff;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.featured-video .video-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

/* Fallback message for featured video */
.featured-video .video-fallback {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #a6c8e1;
}
.featured-video .video-fallback a {
    color: #00aaff;
    text-decoration: underline;
}
.featured-video .video-fallback a:hover {
    color: #66c3ff;
}
/* Logo image in hero section */
.logo-img {
    max-width: 200px;
    width: 40%;
    margin: 0 auto 1rem;
    display: block;
    filter: drop-shadow(0 0 5px rgba(0, 170, 255, 0.5));
}

/* Remove obsolete .nav-logo styling since the logo is now wrapped in .navbar-brand */
