/* --- General Styles --- */
body {
    /* Apply the Google Font */
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Existing padding-top for fixed navbar (keep this if navbar is fixed) */
    padding-top: 50px;
    background-color: #f8f9fa;
    background-image: url('../homePage/images/backgroundImage.png')!important;
}

/* --- Alert Styles (Login Required Banner) --- */
#featureLoginAlert {
    display: none; /* Initially hidden. JavaScript will make it visible by adding the 'show' class. */
    position: fixed;
    top: 65px;      /* Adjust this: (body padding-top value) + a little extra space. (50px + 15px = 65px) */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1055;
    width: auto;
    max-width: 560px; /* Adjust to match index.php. You can use percentages like '70%' or '80vw'. */
    /* If using Bootstrap classes 'alert alert-warning', padding and border-radius are often inherited.
       Explicitly set if you need to override or ensure consistency. */
    /* padding: 1rem;  */
    /* border-radius: 0.375rem; */
}

.site-navbar .btn-outline-danger { /* Logout button */
    border-radius: 10px;
    padding-top: 8px; /* This was a custom style you had */
    font-weight: 700;
}
.site-navbar .btn-outline-danger:hover{
    transform: scale(1.05);
    transition: transform 0.2s ease-in-out;
}

/* --- Navbar Styling --- */
/* Target the nav element itself (we added the 'site-navbar' class in the HTML) */
.site-navbar {
    background-color: #e0f7fa !important; /* Light cyan/blue background like Title.jpg */
    /* Or use a gradient if needed */
    border-bottom: 1px solid #b2ebf2; /* Optional subtle border */
}
/* Style the brand area (logos, title) */
.site-navbar .navbar-brand .project-title {
    font-weight: 700; /* Make title bold */
    color: #00796b; /* Dark teal color */
    margin-left: 5px; /* Add some space between logo and text */
}
/* Style the navigation links */
.site-navbar .navbar-nav .nav-link {
    color: #00796b; /* Teal color for links */
    margin: 0 10px; /* Spacing between links */
    font-weight: 400; /* Regular weight */
}
.site-navbar .navbar-nav .nav-link.active,
.site-navbar .navbar-nav .nav-link:hover {
    color: #004d40; /* Darker teal on hover/active */
    font-weight: 700; /* Bold on hover/active */
}
/* Style the Login/Sign up button */
.site-navbar .login-btn { /* Target the class we added */
    border-color: #00796b;
    color: #00796b;
    border-radius: 20px; /* Rounded corners */
    border-width: 1px; /* Make border slightly thinner if needed */
    font-weight: 700; /* Bold text */
}
.site-navbar .login-btn:hover {
    background-color: #00796b;
    color: white;
}

/* --- Hero Section Styling --- */
.hero-section {
    padding: 90px 0; /* Keep padding */
    background-color: #f0f8ff; /* Fallback color */
    background-position: top left; /* Or center center */
    background-repeat: repeat;
    position: relative;
    overflow: hidden;
    flex-grow: 1;
    border: 2px solid gray;
}
.hero-section::before {
    content: '';
    position: absolute;
    left: -5%;
    bottom: -10%;
    width: 45%;
    height: 80%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left bottom;
    opacity: 0.9;
    z-index: 0;
}
.hero-section .container {
    position: relative;
    z-index: 1;
    width: 100%;
}
.hero-content h1 {
    color: #333;
    font-weight: 700;
}
.hero-content .lead {
    color: #555;
}
.hero-graphic img {
    transform: translateY(-30px);
    right: 40px;
    height: auto;
    width: 500px;
}
.sei-graphic {
    position: relative;
    height: auto;
    width: 40px;
    margin-left: 35%;
    display: block;
}

/* --- Custom Start Button --- */
.btn-start {
    display: inline-block;
    background-color: #096cb7;
    border-radius: 40px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    border: none;
    padding: 15px 60px 15px 40px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
    line-height: 1.2;
}
.btn-start:hover {
    background-color: #f9c825;
    transform: scale(1.05);
}
.btn-start:active{
    transform: scale(1.00);
    transition: 0.3s;
    color: black;
}
.btn-start i {
    font-size: 1.4rem;
    vertical-align: middle;
}
.initiative-text {
    font-size: 0.9rem;
    color: #666;
}

/* --- Footer Styling --- */
.site-footer {
    background: #e9ecef;
    border-top: 1px solid #dee2e6;
    font-size: 0.9em;
}

/* --- Responsive Adjustments --- */
/* body padding-top is already defined under General Styles */

@media (max-width: 991.98px) { /* Bootstrap's LG breakpoint */
    .hero-section::before {
        opacity: 0.3;
        width: 30%;
    }
    .hero-content {
        text-align: center !important;
    }
    .btn-start {
        font-size: 1.2rem;
        padding: 12px 50px 12px 30px;
    }
}

/* videoLectures/videoLectures.css specific card styles */
.video-card .card-img-top.video-actual-thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #e9ecef;
}
.video-card img.card-img-top.video-actual-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}
.video-card {
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
    border: 1px solid rgb(217, 217, 217);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    
}
.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}
.video-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.video-card .card-title {
    color: #0056b3;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.video-card .card-text.small {
    font-size: 0.875rem;
    color: #5a5a5a;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.video-card .video-embed-container {
    margin-top: auto;
}
.video-card .ratio {
    width: 100%;
    border-radius: 0.25rem;
    overflow: hidden;
    margin-top: 0;
}
.video-card .ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-card .card-footer {
    background-color: #f8f9fa;
    font-size: 0.8rem;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Login Modal */
#loginModal .modal-content {
    border-radius: 30px;
    background-color: #ffffff;
    background-image: url('../homePage/images/backgroundImage.png'); /* Adjust path */
    background-size: cover;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 20px;
}
#loginModal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}
#loginModal .modal-title {
    font-weight: 700;
    font-size: 2rem;
    color: #333;
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
}
#loginModal .login-input {
    background-color: #bde0fb;
    border: none;
    border-radius: 50px;
    height: 50px;
    padding: 10px 20px;
    color: white;
    text-align: center;
    box-shadow: none;
    margin-bottom: 5px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
#loginModal .login-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
#loginModal .login-input:focus {
    background-color: #085f9a;
    color: white;
    box-shadow: none;
    border: none;
}
#loginModal .login-label {
    display: block;
    text-align: center;
    width: 100%;
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}
#loginModal .modal-footer {
    border-top: none;
    padding-top: 0;
    justify-content: center;
}
#loginModal .btn-start {
    padding: 12px 50px 12px 30px;
    font-size: 1.2rem;
    min-width: 200px;
    background-size: cover;
}
#loginModal .btn-create-account {
    background-color: #004a8b;
}
#loginModal .btn-create-account:hover {
    background-color: #f9c825;
}