/* --------------------------Global styles -----------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@400;700&display=swap');

html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Prompt', sans-serif;
    margin: 0;
    padding: 0;
    color: white;
    background-color: #f7f7f7;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) #f9f9f9;
    overflow-x: hidden;
}

/* Navigation styles */
#navigation, #navbar {
    position: fixed;
    width: 100%;
    z-index: 1000; /* Ensure it's above other content */
}

nav img {
    max-width: 100%;
}

.nav-link {
    position: relative;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none; /* Hide dropdown by default */
    position: absolute; /* Position it absolutely */
    background: white; /* Background color */
    min-width: 200px; /* Minimum width of dropdown */
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    z-index: 1; /* Ensure it appears above other content */
    padding: 10px 0; /* Padding for dropdown */
    margin: 0; /* Remove margin */
    list-style: none; /* Remove default list styles */
}

.dropdown-menu li {
    position: relative; /* Required for submenu positioning */
}

.dropdown-menu li a {
    padding: 10px 20px; /* Spacing for dropdown items */
    display: block; /* Make links block elements */
    color: black;
    transition: padding-left 0.3s ease, border-left 0.3s ease; /* Smooth transition for padding */
}

.dropdown-menu li a:hover {
    padding-left: 20px; /* Indent on hover */
    border-left: 2px solid #3ca0e7; /* Left border on hover */
}

.dropdown:hover > .dropdown-menu {
    display: block; /* Show dropdown on hover */
}

/* Submenu Styles */
.dropdown-submenu {
    display: none; /* Hide submenu by default */
    position: absolute; /* Position it absolutely */
    left: 100%; /* Align to the right of the parent */
    top: 0; /* Align to the top of the parent */
    background: white; /* Background color */
    min-width: 200px; /* Minimum width of submenu */
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    z-index: 1; /* Ensure it appears above other content */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove margin */
    list-style: none; /* Remove default list styles */
}

.dropdown-menu li:hover > .dropdown-submenu {
    display: block; /* Show submenu on hover */
}


/* Mobile styles for dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: relative; /* Change to relative for mobile */
        min-width: 100%; /* Full width dropdown */
        left: 0; /* Reset left position */
        box-shadow: none; /* Remove shadow on mobile for simplicity */
    }

    .dropdown-submenu {
        position: relative; /* Change to relative for mobile */
        left: 30px; /* Reset left position */
        min-width: 100%; /* Ensure full width submenu */
        box-shadow: none; /* Remove shadow on mobile */
    }

    /* Mobile styles for nav-link */
    .nav-link {
        width: 100%; /* Make the button full width */
        text-align: center; /* Center the text inside the button */
        padding: 10px 0; /* Add some vertical padding for aesthetics */
    }
}
/* ------------------------------------------------------ */

#menu-items a:hover {
    color: blue;
}

#menu-items span:hover {
    color: blue;
}

.form-shadow {
    box-shadow: 4px 8px 20px rgba(0, 0, 0, 0.4);
}

.side-panel {
    width: 250px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.side-panel.open {
    transform: translateX(0);
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    #navbar{
        color: black;
    }
    
}

@media (max-width: 640px) {
    #main-content {
        height: 200vh; /* Adjusted height for smaller screens */
    }
    #navbar{
        color: black;
    }
}

.bg-white-scrolled {
    background-color: white;
}
#navbar.bg-white-scrolled {
    color: black; /* Ensure text color changes */
}



/* ---------------------------- ANIMATION FADE IN FADE OUT ------------------------------------*/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: var(--animation-delay, .5s); /* Default to 0.5s if not set */
}

.fade-out {
    opacity: 1;
    animation: fadeOut 1s ease-in forwards;
    animation-delay: var(--animation-delay, .5s); /* Default to 0.5s if not set */
}
.zoom-content {
    zoom: 0.95;
    transform: scale(0.95);
}
.zoom-content80 {
    zoom: 0.80;
    transform: scale(0.80);
}

/* ------------------------------------ */
header{
    width: 1140px;
    max-width: 80%;
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
}
header a{
    color: #eee;
    margin-right: 40px;
}
/* carousel */
.carousel{
    height: 100vh;
    margin-top: -56px;
    width: 100vw;
    overflow: hidden;
    position: relative;
}
.carousel .list .item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}
.carousel .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel .list .item .content{
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
}
.carousel .list .item .author{
    font-weight: bold;
    letter-spacing: 10px;
}
.carousel .list .item .title,
.carousel .list .item .topic{
    font-size: 3em;
    font-weight: bold;
    line-height: 1.3em;
}
.carousel .list .item .topic{
    color: #f1683a;
}
.carousel .list .item .buttons{
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}
.carousel .list .item .buttons button{
    border: none;
    background-color: #eee;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
}
.carousel .list .item .buttons button:nth-child(2){
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}
/* thumbail */
.thumbnail{
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}
.thumbnail .item{
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}
.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.thumbnail .item .content{
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}
.thumbnail .item .content .title{
    font-weight: 500;
}
.thumbnail .item .content .description{
    font-weight: 300;
}
/* arrows */
.arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}
.arrows button:hover{
    background-color: #fff;
    color: #000;
}

/* animation */
.carousel .list .item:nth-child(1){
    z-index: 1;
}

/* animation text in first item */

.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons
{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}
.carousel .list .item:nth-child(1) .content .title{
    animation-delay: 1.2s!important;
}
.carousel .list .item:nth-child(1) .content .topic{
    animation-delay: 1.4s!important;
}
.carousel .list .item:nth-child(1) .content .des{
    animation-delay: 1.6s!important;
}
.carousel .list .item:nth-child(1) .content .buttons{
    animation-delay: 1.8s!important;
}
/* create animation when next click */
.carousel.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel.next .thumbnail .item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.prev .list .item img{
    z-index: 100;
}
@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}
.carousel.next .thumbnail{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}

/* running time */

.carousel .time{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}

.carousel.next .time,
.carousel.prev .time{
    animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}


/* prev click */

.carousel.prev .list .item:nth-child(2){
    z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousel.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button{
    pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons
{
    animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}
@media screen and (max-width: 678px) {
    .carousel .list .item .content{
        padding-right: 0;
    }
    .carousel .list .item .content .title{
        font-size: 30px;
    }
}




/* ----------------------------------- */
.outerdiv
{
    font-family: 'Prompt', sans-serif;
    min-height: 100vh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    color: #333;
}

.innerdiv
{
	transform: scale(0.9);
	display: grid;
	grid-gap: 1.5rem;
	grid-template-rows: repeat(3, 28rem); /* Adjusted for more rows */
    grid-template-columns: repeat(4, 17rem);
}
.eachdiv
{
	padding: 1rem 2rem;
    border-radius: 0.8rem;
    box-shadow: 5px 5px 20px #6d6b6b6b;
    color: white;
}
.div1
{
	background: #cffafe;
    color:#000;
    font-size: 15px;
    grid-column: 1/4;
    grid-row: 1/2;
}
.div2
{
	background:#bae6fd;
    color: #000;
    font-size: 15px;
    grid-column: 4/6;
    grid-row: 1/2;
}
.div3
{
	background: #3b82f6;
    grid-column: 1/3;
    grid-row: 2/3;
    font-size: 15px;
    color: black;
}
.div4
{
	background: #22d3ee;
    color: #000;
    font-size: 15px;
	grid-column: 3/4;
    grid-row: 2/4;
    color: black;
}
.div5
{
	background: #7dd3fc;
    color: #000;
    font-size: 14px;
	grid-column: 4/6;
    grid-row: 2/3;
}
.div6{
    background: #60a5fa;
    grid-column: 1/3;
    grid-row: 3/3;
}
.div7
{
	background:#e0e7ff;
    grid-column: 4/6;
    grid-row: 3/3;
}
.div8
{
	background: #67e8f9;
    grid-column: 1/4;
    grid-row: 4/5;
    color: black;
}
.div9
{
	background: #a5f3fc;
    grid-column: 4/6;
    grid-row: 4/5;
    color: black;
}
.div10
{
	background: #2563eb;
    grid-column: 1/6;
    grid-row: 5/5;
    color: black;
}
.userdetails
{
	display: flex;
}
.imgbox
{
	margin-right: 1rem;
}
.imgbox img
{
	border-radius: 40%;
	width: 2rem;
	border: 2px solid #cec5c5;
}
.detbox
{
	display: flex;
    flex-direction: column;
    justify-content: center;
}
.detbox p
{
	margin: 0;
}
.detbox .name
{
	color: hsl(0, 0%, 0%);
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
    font-weight: 600;
}
.detbox .name.dark
{
	color: #49505A;
}
.detbox .designation
{
	color: hsl(0, 0%, 0%);
    opacity: 50%;
    font-size: 0.8rem;
}
.detbox .designation.dark
{
	color: #49505A;
}

@media only screen and (max-width: 1000px)
{
    .outerdiv{
        margin-top: -10px;
    }
	.innerdiv
	{
		transform: scale(0.7);
	}
}
@media only screen and (max-width: 800px)
{
    .outerdiv{
        margin-top: -10px;
    }
	.innerdiv
	{
		transform: scale(0.6);
	}
}
@media only screen and (max-width: 600px)
{
    .outerdiv{
        margin-top: -10px;
    }
	.div1 {
		background-position-x: 10rem;
	}
	.innerdiv
	{
		display: flex; 
		flex-direction: column;
		transform: scale(1);
		margin: 2rem;
		margin-bottom: 5rem;
	}
	.attribution
	{
		position: relative;
	}
}






/*-------------------------- Footer section------------------------- */
.footer {
    background-color: #1e3a8a; 
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%; 
    bottom: 0; 
    z-index: 1002; 
}

.footer p {
    font-size: 0.8rem;
}

::selection {
  background-color: #51ff3dd9; /* Your desired background color */
  color: #008004;           /* Your desired text color */
}

