/* 
    NIGMT LMS CSS
    Primary Colors: Navy Blue (#001A33), Gold (#FFB800)
    Fonts: Montserrat (Headings), Roboto (Body)
*/

:root {
    --primary-color: #001A33;
    --secondary-color: #FFB800;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.mb-2 { margin-bottom: 20px; }
.py-5 { padding: 50px 0; }

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-family: var(--heading-font);
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Topbar */
.topbar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.topbar .contact-info span {
    margin-right: 25px;
    font-weight: 500;
}

.topbar .contact-info span i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.top-auth {
    border-right: 1px solid rgba(255,255,255,0.2);
    padding-right: 15px;
    margin-right: 15px;
}

.auth-link {
    color: var(--white);
    margin-left: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.auth-link i {
    margin-right: 4px;
    color: var(--secondary-color);
}

.auth-link:hover {
    color: var(--secondary-color);
}

.user-welcome {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.user-welcome:hover {
    background: rgba(255,255,255,0.1);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: inline-block;
    padding-right: 15px;
    margin-right: 15px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 1001;
    border-radius: 8px;
    margin-top: 5px;
    overflow: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    opacity: 0;
}

.user-dropdown.active .dropdown-content,
.user-dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--primary-color);
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.dropdown-content a i {
    margin-right: 12px;
    width: 18px;
    text-align: center;
    color: var(--primary-color);
    font-size: 16px;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: var(--secondary-color);
}

.dropdown-content a:hover i {
    color: var(--secondary-color);
}

.dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 4px 0;
}

.logout-link {
    color: #d9534f !important;
}

.logout-link:hover {
    background-color: #fff5f5 !important;
}

.logout-link i {
    color: #d9534f !important;
}

/* Auth Buttons in Topbar */
.auth-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 10px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.auth-btn.login {
    background: transparent;
}

.auth-btn.register {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.auth-btn i {
    margin-right: 5px;
}

.topbar .social-links a {
    color: var(--white);
    margin-left: 12px;
    font-size: 14px;
}

.topbar .social-links a:hover {
    color: var(--secondary-color);
}

/* Header */
.header {
    background-color: var(--white);
    padding: 15px 0; /* Increased from 10px */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    min-height: 80px; /* Added min-height for stability */
    display: flex;
    align-items: center;
}

.header .logo img {
    height: 55px; /* Slightly reduced from 60px to fit better */
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
}

.header .logo h2 {
    margin-bottom: 0;
    font-weight: 800;
    font-size: 28px;
}

.header .logo span {
    color: var(--secondary-color);
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 15px;
}

.main-nav ul li a:not(.btn) {
    position: relative;
}

.main-nav ul li a:not(.btn):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.main-nav ul li a.active-link:not(.btn):after {
    width: 100%;
}

.main-nav ul li a:not(.btn):hover:after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 26, 51, 0.8), rgba(0, 26, 51, 0.8)), url('../images/hero-bg.webp') center/cover;
    height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero h1 {
    color: var(--white);
    font-size: 48px;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--secondary-color);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Cards & Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.course-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px dashed var(--border-color);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card .content {
    padding: 20px;
}

.course-card .category {
    color: var(--secondary-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}

.course-card .price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 20px;
    margin-top: 15px;
}

.course-card .meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.enquiry-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 5px solid var(--secondary-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0 0;
}

.footer h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 20px 0;
    font-size: 14px;
}

/* --- HOMEPAGE REDESIGN STYLES --- */

.transparent-topbar {
    background-color: transparent !important;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}
.transparent-topbar.scrolled-topbar {
    background-color: rgba(0, 26, 51, 0.95) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.transparent-topbar .contact-info span i {
    color: var(--secondary-color);
}

.transparent-header {
    background-color: transparent !important;
    position: fixed; /* Changed from absolute to fixed */
    width: 100%;
    top: 40px; /* Below topbar */
    z-index: 999;
    box-shadow: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}
.transparent-header.scrolled-header {
    background-color: rgba(0, 26, 51, 0.98) !important; /* Navy Blue */
    top: 37px; /* Adjusted to match topbar */
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    padding: 10px 0;
    min-height: 70px;
}

.scrolled-header .logo img {
    height: 45px; /* Smaller logo when scrolled */
}

/* Logo Visibility */
.transparent-header .logo-colored { display: none !important; }
.transparent-header .logo-white { display: inline-block !important; }
.header:not(.transparent-header) .logo-colored { display: inline-block !important; }
.header:not(.transparent-header) .logo-white { display: none !important; }

.transparent-header .main-nav ul li a {
    color: var(--white);
}

.homepage-hero {
    position: relative;
    padding-top: 150px; /* Offset for absolute header */
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), url('../images/website banner.png') center/cover;
}
.homepage-hero .hero-title {
    font-size: 54px;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0 auto;
}

.hero-bottom-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.3);
}
.bar-item {
    display: flex;
    align-items: center;
    color: white;
    justify-content: center;
    text-align: left;
}
.bar-item i {
    font-size: 30px;
    margin-right: 15px;
    color: var(--secondary-color);
}
.bar-item h4 {
    margin: 0;
    color: white;
    font-size: 20px;
}
.bar-item p {
    margin: 0;
    font-size: 13px;
    color: white;
}

/* Overlap Box */
.overlap-section {
    position: relative;
    margin-top: 40px; /* Changed from -100px so it doesn't hide bottom bar icons */
    z-index: 20;
}
.overlap-box {
    display: flex;
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}
.overlap-left {
    flex: 6;
    background: white;
    padding: 40px;
}
.overlap-right {
    flex: 4;
    background: var(--primary-color);
    padding: 40px;
    color: white;
}
.check-list li {
    margin-bottom: 10px;
}
.check-list li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 10px;
}
.compact {
    padding: 10px;
    font-size: 14px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}
.compact::placeholder {
    color: rgba(255,255,255,0.6);
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.tech-card {
    position: relative;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
}
.tech-card .overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: var(--secondary-color);
    text-align: center;
    padding: 10px;
    font-weight: bold;
}

/* Notice Boards */
.notice-card {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 30px;
    background: white;
    position: relative;
}
.notice-card h4 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
}
.notice-content {
    color: #555;
    font-size: 14px;
}
.notice-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-top: 10px;
}
.notice-content ul li {
    color: #0056b3;
}

/* Mode of learning */
.mode-card {
    background: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.mode-card i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Testimonials */
.testimonials-section {
    background: url('../images/website banner.png') center/cover;
    position: relative;
}
.testimonials-section::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(255,255,255,0.8);
}
.testimonials-section .container {
    position: relative;
    z-index: 2;
}
.testimonial-card {
    background: #222;
    color: white;
    padding: 30px;
    border-radius: 10px;
}
.testimonial-card .avatar {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 18px;
}
.testimonial-card .stars {
    color: var(--secondary-color);
    font-size: 12px;
}
.testimonial-card p {
    font-size: 14px; color: #ccc; margin-top: 15px;
}

/* Placement Carousel (Swiper) */
.placementSwiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}
.placementSwiper .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 350px;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.placementSwiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.swiper-pagination-bullet-active {
    background: var(--secondary-color) !important;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .main-nav ul { flex-direction: column; display: none; } /* Mobile menu needed */
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 36px; }
}
