@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html,
body{
    height: 100%;
    width: 100%;
}
.page1{
    min-height: 100vh;
    width: 100%;
    position: relative;
}
nav{
    width: 100%;
    height: 60px;
    background-color: rgb(13, 13, 37);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    padding: 10px 50px;
    position: fixed;
    z-index: 9999999;
    
}
nav h1 a{
    color: white;
    text-decoration: none;
}
nav .explore{
    padding: 10px 10px;
    background-color:#C96868;
    border-radius: 50px;
    border: none;
    font-size: 15px;
    color: white;
    transition: 0.5s;
}

.navelem ul li{
    display: inline-block;
    color: white;
    padding:5px 10px;
    border: 1px solid white;
    border-radius: 50px;
    gap: 30px;
    transition: 0.5s;
    z-index: 99999;
    
    

    
}

.navelem ul li a{
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 10px;
    z-index: 999999;

}
.navelem ul li:hover{
    border: 2px solid white;
    background-color: white;
    z-index: 99999;
    
}
.navelem ul li a:hover{
    color: black;
    background-color: transparent;
    z-index: 99999;
}
.space{
    width: 5%;
}
nav .explore:hover{
    background-color: #FD8B51;
}
ul li {
    position: relative; /* Ensures the dropdown is positioned relative to the parent li */
}

.dropdown {
    display: none;
    position: absolute;
    margin-top: 5px;
    top: 100%; /* Makes sure it appears just below the parent menu item */
    left: 0;
    background-color:  rgb(13, 13, 37);
    z-index: 1; /* Ensures the dropdown is on top */
    padding: 10px 0;
    border-radius: 10px;
}

ul li:hover .dropdown, 
.dropdown:hover {
    display: block; /* Keeps the dropdown visible when hovering over it */
}

.dropdown ul {
    margin: 0;
    padding: 0;
}

.dropdown ul li {
    display: block;
    margin: 10px 0;
    border: none;
    white-space: nowrap;
}
.dropdown ul li:hover{
    background-color:white;
    border-radius:0%;
    
}
/* /* ---------------------------------- */
ul li {
    position: relative; /* Ensures the dropdown is positioned relative to the parent li */
}

.dropdown1 {
    display: none;
    position: absolute;
    margin-top: 5px;
    top: 100%; /* Makes sure it appears just below the parent menu item */
    left: 0;
    background-color:  rgb(13, 13, 37);
    z-index: 1; /* Ensures the dropdown is on top */
    padding: 10px 0;
    border-radius: 10px;
}

ul li:hover .dropdown1, 
.dropdown11:hover {
    display: block; /* Keeps the dropdown visible when hovering over it */
}

.dropdown1 ul {
    margin: 10px;
    padding: 0;
}

.dropdown1 ul li {
    display: block;
    margin: 10px 0;
    border: none;
    white-space: nowrap;
    
}
.dropdown1 ul li:hover{
    background-color:white;
    border-radius:0%;
    color: black;
} 
#menu-icon{
    position: absolute;
    right: 3%;
    font-size: 20px;
    padding: 5px 10px;
    background-color: #C96868;
    color: white;
    border: none;
}
/* ////////////////////////////media queries and side bar//////////// */
.sidebar {
    position: fixed;
    top: 0;
    right: -250px; /* Initially off-screen */
    width: 250px;
    height: 100vh;
    background-color: rgb(13, 13, 37);
    transition: right 0.3s ease; /* Smooth transition */
    z-index: 99999;
    padding: 20px; /* Add some padding */
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 20px 0; /* Space between items */
    color: white;
    
}
.sidebar ul li:hover {
   
    color: black;
    
}

.sidebar ul li a{
    color: white;
    text-decoration: none;
}

.sidebar.open {
    right: 0; /* Move sidebar into view */
}
.sidebar .explore{
    padding: 5px 5px;
    background-color:#C96868;
    border-radius: 50px;
    border: none;
    font-size: 15px;
    color: white;
    transition: 0.5s;
}
/* Media Queries */
@media (max-width: 1024px) {
    .navelem {
        display: none; /* Hide horizontal navigation on small screens */
    }

    .sidebar {
        width: 200px; /* Adjust sidebar width for smaller screens */
        z-index:99999;
    }

    .sidebar.open {
        right: 0; /* Ensure sidebar is visible */
    }

    nav {
        padding: 10px; /* Adjust padding for smaller screens */
    }

    nav h1 {
        font-size: 18px; /* Adjust font size for smaller screens */
    }

    nav .explore {
        font-size: 20px; /* Adjust button size for smaller screens */
        display: none;
    }
   
}
/* ============================================== */
.page1{
    height: 100vh;
    width: 100%;
}
.page2{
    height: 100%;
    width: 100%;
    position: relative;
    background-color: #AF1740;
}
.page1 .topic {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
    position: absolute;
    top: 13%;
    left: 5%;
    background-color: #740938;
    padding: 10px ;
    border-radius: 20px;
    color: white;
}

/* Outer container for Photo Divs */
.page1 .outercontainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80%;
    width: 95%;
    /* background-color: red; */
    z-index: 9999;
    position: absolute;
    top: 20%;
    left: 2.5%;
}

/* Photo Divs */
.outercontainer .photo {
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    background-color:red;
}

/* Large Photo Divs */
.outercontainer .large-photo {
    height: 80%;
    width: 30%;
    transition: 0.5s;
    z-index: -1;
}

/* Small Photo Div */
.outercontainer .small-photo {
    height: 95%;
    width: 65%;
    z-index: -1;
}
.outercontainer .photo1:hover .overlay1{
    height: 100%;
    width: 100%;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.5);

}
.outercontainer .photo2:hover .overlay1{
    height: 100%;
    width: 100%;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.5);

}
.outercontainer .photo3:hover .overlay1{
    height: 100%;
    width: 100%;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.5);

}

/* Background Images for Photo Divs */
.outercontainer .photo1 {
    background-image: url("math3.jpg");
    transition: 0.5s;
}

.outercontainer .photo2 {
    background-image: url("https://www.venkateshwaragroup.in/vgiblog/wp-content/uploads/2022/09/Untitled-design-2-1.jpg"); /* Add path to photo */
}

.outercontainer .photo3 {
    background-image: url("math3\ \(2\).jpg"); /* Add path to photo */
}

/* Page 2: Content Layout */
.page2 .content-container {
    width: 100%;
    height:90%;
    background-color: #f5f5f5;
    padding: 20px;
    /* border-radius: 10px; */
    /* box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2); */
    /* overflow-y: auto; */
    position: absolute;
    top: 5%;
}

.page2 .content-container h1 {
    margin-bottom: 15px;
}

.page2 .content-container p {
    line-height: 1.6;
    color: #333;
    font-family: "Montserrat", sans-serif;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    /* Reduce size of photo divs for tablets */
    .page1 .outercontainer{
        height: 100vh;
        width: 100%;
        display: flex;
        flex-direction: column;
        /* background-color: red; */
    }
    .outercontainer .large-photo {
        height: 100%;
        width: 80%;
        margin-bottom: 20px;
    }

    .outercontainer .small-photo {
        height: 100%;
        width: 80%;
    }
    .page2{
        position: absolute;
        top: 130%;
    }
}

@media (max-width: 768px) {
    /* Tablet adjustments */
    .large-photo, .small-photo {
        width: 25%;
        height: auto;
        z-index: -1;
    }
}

@media (max-width: 480px) {
    /* Mobile: Stack photo divs vertically */
    .page1 .outercontainer {
        height: 100vh;
        width: 100%;
        flex-direction: column;
        /* background-color: red; */
    }

    .outercontainer .large-photo,
    .outercontainer .small-photo {
        width: 90%;
        height: 100%; /* Adjust height to fit screen */
        margin-bottom: 15px;
    }
    .page2{
        min-height: 100%;
    }
    .page2 .content-container p{
        font-size: 15px;
    }
    .page2 .content-container{
        height: 100%;
        width: 100%;
    }
}
/* ============================= */
.page11{
    min-height: 50vh;
    width:100% ;
    background-color: #111;
    position: relative;
    /* top: 120%; */
}
.page11topdiv{
    height: 100px;
    width: 100%;
    /* background-color: red; */
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}
.page11topdiv i{
    font-size: 40px;
    padding:0 20px;
    color: grey;
}
.page11 .line1{
    height: 3px;
    width:27%;
    background-color: grey;
    position: absolute;
    left: 3%
}
.page11 .line2{
    height: 3px;
    width:27%;
    background-color: grey;
    position: absolute;
    right: 3%
}
.page11center{
    height: 120px;
    width: 400px;
    /* background-color: red; */
    position: absolute;
    top: 25%;
    left: 35%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.page11center h2{
    font-size: 30px;
    padding-top: 10px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: rgb(233, 233, 233);
}
.page11center p{
    position: absolute;
    bottom:0%;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;

}
.page11bottom{
    height: 40px;
    width: 100%;
    /* background-color: red; */
    position: absolute;
    top:70% ;
    display: flex;
    align-items: center;
    justify-content: center;

}
.page11bottom a{
    padding-left:30px;
    padding-right: 30px;
    font-size: 18px;
    /* text-decoration: none; */
    /* border: 1px solid white; */
    border-right: 1px solid white;
    /* padding-top: 5px; */
    color: white;
    font-family: "Josefin Sans", sans-serif;
    

}
.myname{
    height: 20px;
    width: 100%;
    background-color: grey;
    position: absolute;
    bottom:5%;
    display: flex;
    align-items: center;
    justify-content: center;

}
#facebook:hover{
    color: #316FF6;
    /* background-color: white; */
    scale: 1.2;
    
}
#twitter:hover{
    color: #1DA1F2;
    scale: 1.2;
}
#youtube:hover{
    color: #CD201F;
    scale: 1.2;
}
#instagram:hover{
    color:#e1306c;
    scale:1.2

}
#tiktok:hover{
    color:#ff0050;
    scale:1.2

}
#linkedin:hover{
    color: #0a66c2;
    scale: 1.2;
}
/* //////////////////////////////// */
/* media queries for last footer */
/* For tablets (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .page11{
        position: relative;
        top: 80%;
    }
    .page11topdiv {
        height: 80px; /* Smaller height */
    }

    .page11topdiv i {
        font-size: 30px; /* Smaller icon size */
    }

    .page11 .line1, .page11 .line2 {
        width: 20%; /* Adjust the width of the lines */
    }

    .page11center {
        top: 30%; /* Center text position */
        left: 30%; /* Slightly centered */
        width: 50%; /* Reduced width for better responsiveness */
    }

    .page11center h2 {
        font-size: 24px; /* Slightly smaller heading size */
    }

    .page11center p {
        font-size: 14px; /* Smaller paragraph size */
    }

    .page11bottom {
        height: 30px; /* Smaller height for bottom div */
    }

    .page11bottom a {
        font-size: 16px; /* Smaller link font size */
        padding: 10px; /* Adjusted padding */
    }

    .myname {
        font-size: 12px; /* Smaller footer text size */
    }
    .page11 .line1{
        display: none;
    }
    .page11 .line2{
        display: none;
    }
}

/* For mobile phones (480px and below) */
@media (max-width: 769px) {
    .page11topdiv {
        height: 60px; /* More compact height */
    }

    .page11topdiv i {
        font-size: 25px; /* Smaller icon size */
    }

    .page11 .line1, .page11 .line2 {
        width: 15%; /* Shorter line width for mobile */
    }

    .page11center {
        top: 35%; /* Adjust center position */
        left: 15%; /* Keep it centered */
        width: 70%; /* Reduced width for mobile */
    }

    .page11center h2 {
        font-size: 20px; /* Smaller heading size */
    }

    .page11center p {
        font-size: 12px; /* Smaller paragraph size */
    }

    .page11bottom {
        height: 25px; /* Reduced height */
    }

    .page11bottom a {
        font-size: 14px; /* Smaller link font */
        padding: 5px; /* Adjusted padding */
    }

    .myname {
        font-size: 10px; /* Reduced footer text size */
    }
    .page11 .line1{
        display: none;
    }
    .page11 .line2{
        display: none;
    }
    .page11{
        position: absolute;
        top: 270%;
    }
}