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

#preloader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #242F3F;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Square Loader */
.loader {
    display: inline-block;
    width: 30px;
    height: 30px;
    position: relative;
    border: 4px solid #FFF;
    animation: loader 2s infinite ease;
}

.loader-inner {
    vertical-align: top;
    display: inline-block;
    width: 100%;
    background-color: #fff;
    animation: loader-inner 2s infinite ease-in;
}

/* Keyframes for loader rotation */
@keyframes loader {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(180deg);
    }

    50% {
        transform: rotate(180deg);
    }

    75% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Keyframes for inner loader fill */
@keyframes loader-inner {
    0% {
        height: 0%;
    }

    25% {
        height: 0%;
    }

    50% {
        height: 100%;
    }

    75% {
        height: 100%;
    }

    100% {
        height: 0%;
    }
}

/* Hide content until preloader ends */
#content {
    display: none;
}

.nav.active {
    color: #ff4500; /* Highlight color for active link */
    font-weight: bold;
    text-decoration: none;
}
.page{
    background: linear-gradient(rgba(0, 0, 0, 0.52),rgba(0, 0, 0, 0.64) ),url('../assests/homepage.jpg') ;
    background-size: cover;
    background-position: center 77px;
    background-repeat: no-repeat;
    position: relative;
    height: 100vh;
    width: 100%;
}
.navbar ul{
    display: flex;
    flex-wrap: wrap;
    /* width: 75vw; */
    font-size: 13px;
    font-weight:550;
    padding: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    justify-content: center;
}
.navbar li{
    color: white;
    list-style: none;
    padding: 15px 20px;
    padding-left: 15px;
    padding-right: 15px;
}
.navbar{
    display: inline-block;
    /* display: flex;
    justify-content: flex-end;
    align-items: center; */
    
    /* width: 450px; */
    /* border: 2px solid red; */
}
.navbar li a{
    text-decoration:none;
    color: black;
    /* font-family: "Open Sans", Sans-serif; */
    font-family: Arial, sans-serif;
    text-transform: uppercase;
}
.navbar ul li::after{
    content: "";
    width: 0%;
    /* height: 10px; */
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.navbar ul li:hover::after
{
    width: 100%;
}

.content{
    width: 70%;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
}
.heading{
    font-size: 2rem;
}
.CDSA{
    padding: 10px;
    padding-top: 0;
    font-size: 2.5rem;
    font-family: 'Times New Roman', Times, serif;
}
.info{
    font-size: 1.2rem;
}
.btn{
    font-size: 1.05rem;
    width: 250px;
    padding: 10px;
    cursor: pointer;
    background-color: transparent;
    border: 2px solid white;
    color: white;
    transition: all 0.5s ease-in-out;
}
.btn:hover{
    background-color: orange;
    transform: scale(1.2);
    border: none;
}

.i1{
    width: 52px;
    margin: auto;
    border-radius: 50%;
    margin-top: 10px;
}


.sideimage{
    float:right;
    overflow: auto;
    font-family: 'Bree Serif', serif;
    font-size: 17px;
    margin: auto;
    margin-top: 0px;
    padding-top: 0px;
}

.daulogo{
    margin-top: 5px;
}
.i2{
    width: 80px;
}
#bars{
    display: none;
}
.navbar .fa{
    display: none;
}
.fa-bars:before{
    color: black;
    font-size: 25px;
}
.wholenavbar{
    background-color: white;
    min-height: 75px;
    width: 95%;
    margin: 0 auto;
    border-radius: 50px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex; /* Flex for horizontal layout */
    align-items: center; /* Vertically center items */
    
}

.nav-split .split-break {
  display: inline;
}

.nav-split .split-bottom {
  display: inline;
}

/* Small screens (<= 1160px) */
@media screen and (max-width: 1160px) {
  .nav-split {
    width: 100%; /* Ensure it fills the nav area */
  }

  .nav-split a {
    display: block;
    text-align: center;
    font-size: 13px;
    line-height: 1.3;
    width: 100%;
  }

  .nav-split .split-break {
    display: block;
    height: 0;
  }

  .nav-split .split-bottom {
    display: block;
    width: 100%;
    text-align: center; /* Center "Submission" */
  }
}




@media(max-width:1500px)
{
    .navbar ul{
        width: 75vw;
    }
    .page{
        background-position: center 105px;
    }
    .daulogo{
        margin-top: 25px;
    }
    .cdsalogo{
        margin-top: 20px;
    }
    .i1{
        margin-top: 0;
    }
}

@media(max-width:1160px)
{
    .daulogo{
        margin-top: 5px;
    }
    .cdsalogo{
        margin-top: 2px;
    }
    .page{
        background-position: center 75px;
    }
    .navbar ul{
        /* margin-top: 20px; */
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;  
        align-items: center;
        width: 380px;
    }
    .navbar ul li{
        display: inline-block;
       
        margin-left: 0;
    }
    .navbar{
        position: fixed;
        background: rgb(216, 211, 211);
        /* height: 75vh; */
        width: 330px;
        top: 0;
        left: -400px;
        text-align: left;
        transition: 1s;
        border-radius: 20px;
    }
    .navbar .fa{
        width: 20px;
        display: inline-block;
        /* margin-left: 10px; */
        margin-right: 20px;
        cursor: pointer;
        color: black;
        font-size: 25px;
    }
    #bars{
        top: 0;
        margin: 0;
        display: inline-block;
        color: white;
        margin-left: 20px;
        margin-top: 5px;
        cursor: pointer;
    }
    #close{
        margin-top: 10px;
        margin-left: 300px;
    }
    ul{
        padding-inline-start: 80px;
    }
    .wholenavbar{
        position: fixed;
    }
    .i1{
        margin-top: 10px;
    }
}
.intro{
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 89%;
    margin: auto;
    margin-top: 40px;
}
.head1{
    font-family: 'Times New Roman', Times, serif;
    font-size: 2rem;
}
.c1{
    margin-top: 0px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
}
.c2{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    /* border: 2px solid red; */
}
.r1{
    /* border: 2px solid red; */
    padding: 10px;
    margin: 20px;
    /* border: 2px solid red; */
    border-radius: 24px;
    background: bisque;
    box-sizing: border-box;
    transition: all 0.5s;
}
.r1 p{
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
.r1:hover{
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.2);
}
@media(max-width:700px)
{
    .c2{
        flex-direction: column;
    }
    .item {
        width: 95%;             /* Takes 90% of parent width */
        height: auto;           /* Height adjusts automatically */
        min-height: 200px;      
        max-width: 500px;      
        margin: 0 auto;         
    }
    /* .page{
        height: 110vh;
    } */
}

@media screen and (max-width: 530px) {
    .item {
        width: 95%;             /* Takes 90% of parent width */
        height: auto;           /* Height adjusts automatically */
        max-height: 350px;      
        max-width: 400px;      
        margin: 0 auto;   /* Smaller minimum height */
    }
    /* .page{
        height: 120vh;
    } */
    .heading{
        font-size: 1.5rem;
    }
    .CDSA{
        font-size: 2rem;
    }
}

@media screen and (max-width: 460px) {
    .item {
        width: 95%;             /* Takes 90% of parent width */
        height: auto;           /* Height adjusts automatically */
        max-height: 320px;      
        max-width: 350px;      
        margin: 0 auto;   /* Smaller minimum height */
    }
    /* .page{
        height: 130vh;
    } */
    .heading{
        font-size: 1.5rem;
    }
    .CDSA{
        font-size: 2rem;
    }
}

@media screen and (max-width: 380px)
{
    .item{
        width: 50%;
        height: auto;           /* Height adjusts automatically */
        max-height: 300px;      
        max-width: 320px;      
        margin: 0 auto; 
    }
}

@media screen and (max-width: 340px)
{
    .item{
        width: 50%;
        height: auto;           /* Height adjusts automatically */
        max-height: 300px;      
        max-width: 300px;      
        margin: 0 auto; 
    }
}

.carousel-wrapper {
    height: 600px;
    width: 100%;
    display: grid;
    grid-template-rows: 500px 100px;
    grid-template-columns: 1fr 30px 30px 30px 30px 30px 30px 30px 1fr;
    align-items: center;
    justify-items: center;
}

main#carousel {
    grid-row: 1 / 2;
    grid-column: 1 / 10;
    width: 100vw;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 600px;
    --items: 7;
    --middle: 4;
    --position: 4;
    pointer-events: none;
}

div.item {
    position: absolute;
    width: 600px;
    height: 450px;
    /* background-color: coral; */
    --r: calc(var(--position) - var(--offset));
    --abs: max(calc(var(--r) * -1), var(--r));
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
    transform: rotateY(calc(-10deg * var(--r)))
        translateX(calc(-300px * var(--r)));
    z-index: calc((var(--position) - var(--abs)));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: calc(1 - (var(--abs) * 0.2));
}

div.item:nth-of-type(1) {
    --offset: 1;
    background-image: url('../assests/DSC_1000.jpg');
}
div.item:nth-of-type(2) {
    --offset: 2;
    background-image: url('../assests/DSC_1001.jpg');
}
div.item:nth-of-type(3) {
    --offset: 3;
    background-image: url('../assests/DSC_1642.jpg');
}
div.item:nth-of-type(4) {
    --offset: 4;
    background-image: url('../assests/DSC_1002.jpg');
}
div.item:nth-of-type(5) {
    --offset: 5;
    background-image: url('../assests/DSC_1437.jpg');
}
div.item:nth-of-type(6) {
    --offset: 6;
    background-image: url('../assests/DSC_1003.jpg');
}
div.item:nth-of-type(7) {
    --offset: 7;
    background-image: url('../assests/DSC_1004.jpg');
}

input:nth-of-type(1) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}
input:nth-of-type(1):checked ~ main#carousel {
    --position: 1;
}

input:nth-of-type(2) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}
input:nth-of-type(2):checked ~ main#carousel {
    --position: 2;
}

input:nth-of-type(3) {
    grid-column: 4 /5;
    grid-row: 2 / 3;
}
input:nth-of-type(3):checked ~ main#carousel {
    --position: 3;
}

input:nth-of-type(4) {
    grid-column: 5 / 6;
    grid-row: 2 / 3;
}
input:nth-of-type(4):checked ~ main#carousel {
    --position: 4;
}

input:nth-of-type(5) {
    grid-column: 6 / 7;
    grid-row: 2 / 3;
}
input:nth-of-type(5):checked ~ main#carousel {
    --position: 5;
}

input:nth-of-type(6) {
    grid-column: 7 / 8;
    grid-row: 2 / 3;
}
input:nth-of-type(6):checked ~ main#carousel {
    --position: 6;
}

input:nth-of-type(7) {
    grid-column: 8 / 9;
    grid-row: 2 / 3;
}
input:nth-of-type(7):checked ~ main#carousel {
    --position: 7;
}

  

