:root {
    /* Updated colors based on ISDTI Logo */
    --primary-blue: #0b3c68;
    --primary-gradient: linear-gradient(135deg, #0b3c68 0%, #1e6fa3 100%);
    --accent-orange: #f28b00;
    --accent-gold: #f1c40f;
    --text-color: #333333;
    --light-bg: #f4f8fb;
    --white: #ffffff;
    --dark-text: #1a1a1a;
    --border-color: #d1e1eb;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 { color: var(--primary-blue); margin-bottom: 1rem; }
p { margin-bottom: 1.2rem; }
img { max-width: 100%; height: auto; display: block; }

/* --- Header & Navigation --- */
.main-header {
    background: var(--white);
    border-bottom: 3px solid var(--accent-orange);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    flex-wrap: wrap; 
}

.logo-area { display: block; max-width: 120px; text-decoration: none; }
.header-logo { 
    width: 100%; 
    height: auto; 
    transition: transform 0.3s ease; /* ADDED TRANSITION FOR SMOOTH ANIMATION */
}

/* ADDED HOVER EFFECT FOR THE LOGO */
.header-logo:hover {
    transform: scale(1.08); /* Slightly enlarges the logo on hover */
    cursor: pointer;
}

/* HORIZONTAL TOP MENU STYLING */
.top-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1; 
    margin: 0 15px;
}

.top-nav .nav-item {
    background: var(--white);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-nav .nav-item:hover, .top-nav .nav-item.active {
    background: var(--primary-blue);
    color: var(--white);
}

.top-nav .btn-cta-top { border-color: var(--accent-orange); color: var(--accent-orange); }
.top-nav .btn-cta-top:hover, .top-nav .btn-cta-top.active { background: var(--accent-orange); color: var(--white); }

/* SIDE MENU TOGGLE */
.menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 25px;
    z-index: 1100;
    transition: opacity 0.3s ease; 
}

.menu-toggle.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.menu-toggle span {
    width: 100%; height: 4px; background: var(--primary-blue);
    border-radius: 5px; transition: all 0.3s ease-in-out;
}

/* SIDE MENU PANEL */
.side-menu {
    position: fixed; top: 0; right: -320px; width: 320px; max-width: 100vw; height: 100vh;
    background: var(--primary-gradient);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: right 0.4s ease-in-out; z-index: 1050;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2); 
}

.side-menu.open { right: 0; }

.close-menu {
    position: absolute; top: 25px; right: 35px; background: transparent; border: none;
    font-size: 3.5rem; color: var(--accent-orange); cursor: pointer; transition: transform 0.3s ease;
}
.close-menu:hover { transform: rotate(90deg); }

.nav-links { list-style: none; text-align: center; width: 100%; padding: 0; }
.side-menu .nav-item {
    display: block; color: var(--white); text-decoration: none; font-size: 1.4rem; font-weight: 600;
    padding: 12px 20px; margin: 10px 20px; transition: all 0.3s ease; border-radius: 50px;
}
.side-menu .nav-item:hover, .side-menu .nav-item.active { background: var(--accent-orange); color: var(--white); transform: scale(1.05); }
.side-menu .btn-cta { background-color: var(--accent-gold); color: var(--primary-blue); margin-top: 20px; }
.side-menu .btn-cta:hover { background: var(--white); color: var(--accent-orange); }


/* --- Main Content --- */
main { flex: 1; }
.page { display: none; }
.current-page { display: block; animation: fadeIn 0.5s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Banners --- */
.main-banner, .light-banner {
    width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 60px 20px; text-align: center; 
    
    /* FIX: Image 100% visible without cropping */
    background-size: 100% 100%; 
    background-position: center; 
    background-repeat: no-repeat;
    
    position: relative;
}
.main-banner::before, .light-banner::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 60, 104, 0.7); z-index: 1;
}
.main-banner { background-image: url('images/home-banner.jpg'); }
#notice-page .light-banner { background-image: url('images/notice-banner.jpg'); }
#courses-page .light-banner { background-image: url('images/courses-banner.jpg'); }
#utkarsh-page .light-banner { background-image: url('images/utkarsh-banner.jpg'); }

/* NEW SEPARATE BANNER FOR REGISTRATION PAGE */
#register-page .light-banner { background-image: url('images/register-banner.jpg'); }

#contact-page .light-banner { background-image: url('images/contact-banner.jpg'); }

.banner-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.main-banner h1, .light-banner h1 {
    color: var(--white); font-size: 2.8rem; font-weight: 700; margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.tagline { font-size: 1.3rem; color: var(--accent-gold); font-weight: bold; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }

/* --- General Sections --- */
.greeting, .testimonials, .contact-details-box, .notice-container, .institute-courses, .utkarsh-info, .registration-split {
    max-width: 1100px; margin: 0 auto; padding: 60px 20px;
}
.section-title h2, .greeting h2, .testimonials h2, .contact-details-box h2 {
    text-align: center; font-size: 2.5rem; margin-bottom: 30px; color: var(--primary-blue);
}

/* --- Videos --- */
.video-showcase { max-width: 1000px; margin: 30px auto; padding: 0 20px; text-align: center; }
.video-showcase video { width: 100%; max-width: 800px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); border: 3px solid var(--accent-orange); }

/* --- Rating Section --- */
.institute-rating {
    max-width: 900px;
    margin: 20px auto 60px;
    padding: 0 20px;
}

.rating-box {
    background: linear-gradient(135deg, var(--light-bg) 0%, #eef5f9 100%);
    border: 1px solid var(--border-color);
    border-left: 8px solid var(--accent-orange);
    border-radius: 12px;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    flex-wrap: wrap;
}

.rating-content {
    display: flex;
    align-items: center;
    gap: 20px;
    border-right: 2px solid var(--border-color);
    padding-right: 40px;
}

.rating-number {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.stars-outer {
    display: inline-block;
    position: relative;
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: 2px;
}

.stars-outer::before {
    content: "\2605 \2605 \2605 \2605 \2605"; /* 5 empty stars */
    color: #d1e1eb;
}

.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
}

.stars-inner::before {
    content: "\2605 \2605 \2605 \2605 \2605"; /* 5 filled stars */
    color: var(--accent-gold);
}

.rating-text {
    font-size: 1.1rem;
    color: #555;
    margin-top: 5px;
    margin-bottom: 0;
}

.rating-message {
    flex: 1;
    min-width: 280px;
}

.rating-message h3 {
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-size: 1.6rem;
}

.rating-message p {
    color: #444;
    margin-bottom: 0;
    font-size: 1.05rem;
}

/* --- Notice Board Grid --- */
.notice-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px;
}
.btn-notice {
    background: var(--light-bg); border: 2px solid var(--primary-blue); color: var(--primary-blue);
    padding: 15px; text-align: center; text-decoration: none; font-weight: bold; border-radius: 8px;
    transition: all 0.3s; display: flex; align-items: center; justify-content: center;
}
.btn-notice:hover { background: var(--primary-blue); color: var(--white); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* --- Institute Courses Layout --- */
.courses-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.course-card {
    display: flex; flex-direction: column; background: var(--white); border-radius: 12px;
    overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.08); border: 1px solid var(--border-color);
}
@media (min-width: 768px) { .course-card { flex-direction: row; } }
.course-video { flex: 1; background: #000; display: flex; align-items: center; justify-content: center; padding: 10px; }
.course-video video { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.course-info { flex: 1.5; padding: 30px; display: flex; flex-direction: column; }
.course-info h3 { color: var(--accent-orange); font-size: 1.8rem; border-bottom: 2px solid var(--light-bg); padding-bottom: 10px; margin-bottom: 15px; }
.course-summary { font-size: 1.1rem; color: #555; }
.discount-box { background: #eef7e9; border-left: 4px solid #4caf50; padding: 10px 15px; margin: 15px 0; font-size: 0.95rem; color: #2e7d32; }
.btn-register {
    align-self: flex-start; background: var(--accent-orange); color: var(--white); text-decoration: none;
    padding: 12px 30px; font-weight: bold; border-radius: 5px; margin-top: auto; transition: 0.3s;
}
.btn-register:hover { background: var(--primary-blue); }

/* --- Utkarsh Bangla Page --- */
.affiliate-notice { text-align: center; margin-bottom: 40px; padding: 30px; background: var(--light-bg); border-radius: 10px; border-left: 5px solid var(--accent-orange); }
.provider-space { color: var(--accent-orange); font-weight: bold; text-decoration: underline; }
.utkarsh-courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.utkarsh-card {
    background: var(--white); border: 2px solid var(--border-color); padding: 30px; border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column;
}
.utkarsh-card h3 { color: var(--primary-blue); font-size: 1.4rem; }
.utkarsh-card .sector { color: var(--accent-orange); font-size: 0.9rem; margin-bottom: 15px; text-transform: uppercase; }
.course-details-list { list-style: none; margin-bottom: 25px; flex-grow: 1; }
.course-details-list li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.course-details-list li::before { content: '✓'; color: var(--accent-orange); font-weight: bold; position: absolute; left: 0; }

/* --- Register Split Page --- */
.registration-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.reg-box {
    background: var(--light-bg); padding: 50px 30px; text-align: center; border-radius: 15px;
    border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.utkarsh-reg-box { background: #fffcf4; border-color: var(--accent-gold); }
.reg-box h2 { font-size: 2rem; margin-bottom: 20px; }
.btn-reg-large {
    display: inline-block; background: var(--primary-blue); color: var(--white); text-decoration: none;
    padding: 15px 30px; font-size: 1.2rem; font-weight: bold; border-radius: 50px; margin-top: 20px; transition: 0.3s;
}
.btn-reg-large.alt-btn { background: var(--accent-orange); }
.btn-reg-large:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* --- Testimonials --- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.testimonial-box {
    background: var(--light-bg); border-top: 4px solid var(--accent-orange); border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); padding: 30px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.user-img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 3px solid var(--primary-blue); }
.user-review-text p { font-style: italic; color: #555; }
.user-name { font-weight: bold; color: var(--primary-blue); margin-top: 10px; font-style: normal !important; }

/* --- Contact & Footer --- */
.contact-info {
    border: 1px solid var(--border-color); background: var(--light-bg); border-radius: 10px; padding: 50px 30px; text-align: center;
}
.contact-item { font-size: 1.2rem; margin: 15px 0; }

/* NEW SOCIAL LINKS STYLING */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}
.social-icons a {
    display: inline-block;
    transition: transform 0.3s ease;
}
.social-icons a:hover {
    transform: scale(1.2);
}
.social-icons a:hover svg {
    fill: var(--accent-orange);
    transition: fill 0.3s ease;
}

.main-footer { background-color: var(--primary-blue); color: var(--white); text-align: center; padding: 30px; margin-top: auto; }
.main-footer a { color: var(--accent-gold); text-decoration: none; font-weight: bold; }

/* --- Mobile Responsiveness --- */
/* FIX FOR TOP MENU WRAPPING AND PUSHING LAYOUT OUT OF PLACE */
@media (max-width: 992px) {
    .top-nav { 
        display: none; /* Hide horizontal menu completely on mobile/tablet since the side menu is used */
    }
}

@media (max-width: 768px) {
    .main-banner h1, .light-banner h1 { font-size: 2rem; }
    .main-banner .tagline { font-size: 1rem; }
    .course-card { flex-direction: column; }
    .course-video { height: 250px; }
    
    /* Responsive adjustment for Rating box */
    .rating-box {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px 20px;
    }
    .rating-content {
        flex-direction: column;
        border-right: none;
        border-bottom: 2px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 20px;
        gap: 10px;
    }
}
@media (max-width: 480px) {
    .main-banner h1, .light-banner h1 { font-size: 1.6rem; }
    .course-info h3 { font-size: 1.4rem; }
}