/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
}

/* Container */
.containers {
    width: 100%;
    min-height: 100vh;
}

/* Box inside Container */
.box {
    width: 100%;
}

/* ==========================
   NAVBAR STYLES
========================== */
nav {
    width: 100%;
    background: linear-gradient(to right, #0A2647, #144272, #205295, #2C74B3);
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    position: relative;
    z-index: 10;
}

.logo img {
    width: 90px;
    height: auto;
}

/* Menu list styling */
nav ul {
    list-style: none;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

nav ul li {
    position: relative;
    display: inline-block; /* ensures dropdown aligns under its link */
}

/* Links inside Navbar */
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #F99417;
}

/* Ensure dropdown positions relative to parent */
.dropdown {
    position: relative;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;            /* Align left with parent */
    right: auto;        /* Disable right alignment */
    background: #2C2C2C;
    list-style: none;
    padding: 0.5rem 0;
    min-width: 180px;
    display: none;
    flex-direction: column;
    border-radius: 6px;
    text-align: left;
    z-index: 999;   
    transform: translateX(0);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s ease;    /* Make sure it's above other content */
}

.dropdown-menu li a {
    padding: 0.5rem 1rem;
    display: block;
    color: #205295;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    color: #F99417;
}

/* Show dropdown on hover (desktop) */
.dropdown:hover .dropdown-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    color: #F99417;
}

/* Submenu container */
.dropdown-submenu {
    position: relative;
}

/* Hide submenu by default */
.dropdown-submenu .submenu {
    position: absolute;
    background: #fff;
    top: 0;
    left: 100%;
    min-width: 180px;
    padding: 0.5rem 0;
    border-radius: 6px;
    display: none;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.2s ease;
    z-index: 1000;

    /* ✅ Add your border here */
    border: 1px solid #e8ecf0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Show submenu on hover */
.dropdown-submenu:hover > .submenu {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Submenu links */
.dropdown-submenu .submenu li a {
    padding: 0.5rem 1rem;
    color: #205295;
    white-space: nowrap;
}

.dropdown-submenu .submenu li a:hover, 
.submenu li a:active {
    color: #F99417;
}

/* Floating Button */
#chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 65px;
    height: 65px;
    background: #ffc107;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    z-index: 9999;
}

/* Popup */
#chat-popup {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

.chat-header {
    background: #003366;
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

#close-chat {
    cursor: pointer;
}

#chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}

.bot-message {
    background: #f1f1f1;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.user-message {
    background: #003366;
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: right;
}

.chat-input {
    display: flex;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    border: none;
    padding: 10px;
}

.chat-input button {
    border: none;
    background: #ffc107;
    padding: 10px 15px;
    cursor: pointer;
}


@media (max-width: 1200px) {
    .dropdown-submenu .submenu {
      left: auto;
      right: 100%;
    }
  }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
}

/* Icons */
.icons a {
    color: #fff;
    margin-left: 1rem;
    font-size: 1.2rem;
}


/* ==========================
   HERO SECTION STYLES
========================== */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem;
    gap: 2rem;
    flex-wrap: wrap;
    background: #fff;
    color: #3c3e3f;
    height: 100vh; /* Full viewport height */
    overflow: hidden; /* Prevents scroll */
}

/* Hero Content */
.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
}

.hero-content h3 {
    font-size: 2rem;
    margin-top: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-top: 1rem;
}

.button-group {
    margin-top: 1.5rem;
}

.button-group .btn {
    margin-right: 1rem;
}

/* Hero Image */
.hero-image {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center; /* Centers the image */
    align-items: center;
    height: 100%; /* Takes full height of the section */
}

.hero-image img {
    width: 100%;
    max-width: 1200px; /* Prevents the image from becoming too large */
    height: auto; /* Maintains aspect ratio */
    object-fit: contain; /* Ensures the image fits inside the container without stretching */
}

/* ==========================
   RESPONSIVE DESIGN FOR HERO SECTION
========================== */

/* Mobile (≤767px) */
@media screen and (max-width: 767px) {
    .hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h3 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .button-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    .button-group .btn {
        width: 100%;
    }

    .hero-image {
        margin-top: 1rem;
        max-width: 100%;
    }

    .hero-image img {
        width: 100%;
    }
}

/* Tablet (768–1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h3 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-image img {
        max-width: 75%;
    }
}

/* Desktop (≥1024px) */
@media screen and (min-width: 1024px) {
    .hero-section {
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content h3 {
        font-size: 2rem;
    }

    .hero-image img {
        max-width: 100%; /* Increases image size on desktop */
    }
}



/* ==========================
   DOCUMENT SECTION STYLES
========================== */
.contains_document {
    padding: 2rem;
}

.div1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.div1 h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    color: #424141; /* Grey color for text */
}


/* Document Links */
.pdf {
    background-color: #f1f1f1;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: 0.3s;
}

.pdf:hover {
    background-color: #e2e2e2;
}

.pdf a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.pdf a:hover {
    color: #F99417;
}

.pdf .pdf_logo {
    max-width: 30px;
    margin-right: 10px;
    vertical-align: middle;
}

/* ==========================
   BUTTON STYLES
========================== */
button {
    padding: 0.5rem 1rem;
    background-color: #F99417;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

button:hover {
    background-color: #FFB84C;
}

/* ==========================
   RESPONSIVE DESIGN
========================== */

/* Mobile (≤767px) */
@media screen and (max-width: 767px) {
    nav {
        flex-wrap: wrap;
    }

    /* Show the hamburger icon */
    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.8rem;
        color: #fff;
    }

    /* Mobile menu container */
    nav ul {
        flex-direction: column;
        width: 100%;
        background: #1E1E1E;
        position: absolute;
        top: 60px;
        left: 0;
        display: none;
        padding: 1rem 0;
        z-index: 999;
    }

    /* Show when active */
    nav ul.active {
        display: flex;
    }

    /* Menu items */
    nav ul li {
        width: 100%;
        text-align: left; /* align left instead of center */
        padding: 0.8rem 1.5rem;
        position: relative;
    }

    nav ul li a {
        display: block;
        width: 100%;
        color: #fff;
        text-decoration: none;
    }

    nav ul li a.active {
        color: #F99417;
    }

    /* Dropdown menus for mobile */
    .dropdown-menu,
    .dropdown-submenu .submenu {
        position: static; /* disable absolute positioning */
        /* background: #2C2C2C; */
        display: none;
        flex-direction: column;
        padding-left: 1rem; /* indent submenus */
        border-left: 2px solid #F99417;
        margin-top: 0.5rem;
    }

    /* Show dropdown when parent is clicked or toggled */
    .dropdown.open > .dropdown-menu,
    .dropdown-submenu.open > .submenu {
        display: flex;
    }

    /* Submenu links */
    .dropdown-menu li a,
    .dropdown-submenu .submenu li a {
        color: #646262;
        padding: 0.5rem 1rem;
    }

    .dropdown-menu li a:hover,
    .dropdown-submenu .submenu li a:hover {
        color: #F99417;
    }


    .contains_document {
        padding: 1rem;
    }

    .div1 {
        display: block; /* Default block layout */
        text-align: center; /* Center the content */
    }

    .div1 .btn {
        margin-top: 1rem; /* Adds space between the button and heading */
    }

    .div1 h3 {
        font-size: 1.2rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .saction1, .saction2 {
        padding: 0;
        text-align: center;
    }

    .saction1 h1 {
        font-size: 2rem;
    }

    .saction1 h3 {
        font-size: 1.5rem;
    }

    .saction2 img {
        width: 80%;
        margin-top: 1rem;
    }

    
}

/* Tablet (768–1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .contains_document {
        padding: 2rem;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .saction1 h1 {
        font-size: 2.5rem;
    }

    .saction1 h3 {
        font-size: 1.8rem;
    }

    .saction2 img {
        max-width: 75%;
    }
}

/* Desktop (≥1024px) */
@media screen and (min-width: 1024px) {
    .contains_document {
        padding: 3rem;
    }

    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .div1 h3 {
        font-size: 1.8rem;
    }

    .saction1 h1 {
        font-size: 3rem;
    }

    .saction1 h3 {
        font-size: 2rem;
    }

    .saction2 img {
        max-width: 60%;
    }
}

/* ==========================
   VIDEO CONTAINER STYLES
========================== */
.contains_video {
    padding: 0.5rem;
}

.video-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.video-container .main-video {
    width: 100%;
    height: auto;
    max-height: 500px;
}

.video-container .title {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    color: #333;
}

.video-container .video-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.video-container .video-thumbnail:hover {
    opacity: 0.8;
}

/* ==========================
   RESPONSIVE DESIGN FOR VIDEO CONTAINER
========================== */

/* Mobile (≤767px) */
@media screen and (max-width: 767px) {
    .contains_video {
        padding: 1rem;
    }

    .video-container {
        gap: 0.5rem;
    }

    .video-container .main-video {
        max-height: 300px;
    }

    .video-container .title {
        font-size: 1rem;
    }
}

/* Tablet (768–1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .video-container .main-video {
        max-height: 400px;
    }

    .video-container .title {
        font-size: 1.1rem;
    }
}

/* Desktop (≥1024px) */
@media screen and (min-width: 1024px) {
    .video-container .main-video {
        max-height: 500px;
    }

    .video-container .title {
        font-size: 1.2rem;
    }
}

/* Highlight active submenu link */
.dropdown .dropdown-menu .dropdown-submenu .submenu li a.active {
    color: #F99417 !important;
    font-weight: 600;
}
