:root {
    --n-background-color: #ffffff;
    --n-text-color: #000000;
    --n-border-color: #000000;
    --n-primary-color: #4caf50;
    /*--n-navbar-bg-color: #003a7e !important;*/
    --n-navbar-bg-color: #0055ab !important;
}


/* Day/Night Mode Styles */
body.day-mode {
    background-color: #ffffff;
    color: #000000;
}

body.night-mode {
    background-color: #121212;
    color: #ffffff;
}

a{
    text-decoration: none;
}
/* Highlight Link Feature */
a.link-highlight {
    color: black !important;
    background-color: yellow !important;
    text-decoration: underline;
}

a.link-highlight:focus {
    outline: 3px solid #ffcc00;
}

/* Visually hidden skip link with focusable styles */
.visually-hidden-focusable {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.visually-hidden-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 10px;
    background-color: #007bff;
    color: white;
    z-index: 1000;
}

.logoTitle{
    color: black !important;
}

.navbar-nav {
    width: 100% !important;
    justify-content: space-between;
}

.navbarDesign {
    background-color: var(--n-navbar-bg-color);
    color: white;
}

.navbarDesign .nav-item > a.nav-link {
    font-weight: 600;
    color: #fff;
}

.navbarDesign .nav-item > a.nav-link:hover {
    font-weight: 600;
    color: yellow;
}
.navbarDesign .dropdown-menu .dropdown-item:focus, .dropdown-item:hover{
    background-color: black;
    color: white;
}
.navbarDesign .nav-item > a.nav-link.active {
    color: yellow;
}

.visitorCountBtn, .visitorCountBtn:hover{
    background: var(--n-navbar-bg-color);
    color: white !important;
}
.dropdown-item.active, .dropdown-item:active{
    background-color: yellow;
    color: black;
}
.dropdown-item{
    color: white;
}

.navbarDesign .navbar-toggler {
    color: #fff !important;
    background-color: white !important;
}

.navbarDesign .dropdown-menu{
    background-color: var(--n-navbar-bg-color);
    color: white;
}
.headerBtn, .accessibility-menu, .headerBtn:hover, .accessibility-menu:hover{
    background: var(--n-navbar-bg-color);
    color: white !important;
}


/*Home Page Design */
.about-section{
    background-image: url("../images/hero-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*Our Supporter*/

/*#supporters-section {*/
/*    background-color: #80808052;*/
/*}*/

.supporters-items {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

img.supporter-image {
    width: 100px;
    height: 100px;
    /*border-radius: 50%;*/
}

footer {
    background-color:var(--n-navbar-bg-color);
    color: white;

}

/*Hero Section*/
/*.hero-section {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    text-align: center;*/
/*    min-height: 50vh;*/
/*    background: #0000ff14;*/
/*    color: black;*/
/*    padding: 0 20px;*/
/*}*/
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh; /* Adjust the height as needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
     background-color: #2a2a2a; /* Example background, adjust as per design */
    text-align: center;
}
#sub-header{
    display: flex;
    justify-content: center;
    align-items: center;
}
#changing-adjectives{
   position: relative;
    line-height:50px;
    font-size: 50px;
    /*color: #0055ab !important;*/
    color: white !important;
    background:#0055ABD6;
    font-weight: bold !important;
    word-break: break-word;
    /*text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);*/
}
/* Accessibility: Ensure Contrast */
.hero-title {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Typing Effect Animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/*.hero-title {*/
/*    animation: blink 0.7s step-end infinite;*/
/*}*/
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}


/*Our News And Events*/
.event-item {
    overflow: hidden;
}

.event-item img {
    transition: transform 0.3s ease-in-out;
}

.event-item:hover img {
    transform: scale(1.1);
}

.event-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.event-item:hover .event-overlay {
    opacity: 1;
}
/*Publications & Researches*/

.video-section iframe {
    border-radius: 8px;
}

.photo-section img {
    border-radius: 8px;
}

.image-item:hover img, .video-section:hover iframe {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.text-center.mt-2 {
    font-size: 1rem;
    font-weight: 500;
}


/* Dropdown hover effect for smooth animation */
/* Dropdown hover and focus effect for smooth animation */
.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Ensures the dropdown only appears on hover or focus */
.nav-item.dropdown .dropdown-menu {
    display: none;
}

/* Optional: Animation for fading effect */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: Improve the spacing and styling of the dropdown */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Ensure the dropdown is shown when focused on the parent */
.nav-item.dropdown:focus-within .nav-link {
    outline: none;
}.menu-item-has-children .dropdown-menu-toggle {
     display: inline-block;
     height: 100%;
     clear: both;
     padding-right: 20px;
     padding-left: 10px;
 }

.dropdown-menu-toggle:before {
    content: "\f107"; /* FontAwesome downwards triangle (caret-down) */
    font-family: "Font Awesome 5 Free"; /* FontAwesome font family */
    font-weight: unset; /* Bold weight for the icon */
    display: inline-block;
    width: .8em;
    text-align: left;
    margin-left: 2px;
}


/*Who We are */
.sub-hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 30vh;
    background: #0000ff14;
    color: #fff;
    padding: 0 20px;
}

.sub-hero-title {
    font-size: 3.5rem; /* Large font size for the main title */
    margin-bottom: 20px;
    color: black;
}

.sub-hero-description {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 40px;
}



/*Card Desgin*/

/* Card Wrapper */
.card-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}
/* Individual Card */
.customeCard {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex: 1 1 calc(33.333% - 20px); /* Ensure equal width */
    max-width: 300px; /* Prevent overly large cards */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

/* Card Image */
.customeCard .card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

/* Card Body */
.customeCard .card-body {
    flex: 1; /* Ensure this section stretches to match other cards */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space between title, description, and link */
}

.customeCard .card-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #333;
}

.customeCard .card-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1; /* Push "Read More" link to the bottom */
}

/* Read More Link */
.customeCard .card-link {
    font-size: 1rem;
    text-decoration: none;
    color: #007bff;
    margin-top: auto; /* Push it to the bottom */
    transition: color 0.3s ease;
}

.customeCard .card-link:hover {
    color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .customeCard .card-wrapper {
        justify-content: space-evenly;
    }

    .customeCard .card {
        flex: 1 1 calc(50% - 20px); /* Two cards per row on tablets */
    }
}

@media (max-width: 480px) {
    .customeCard .card {
        flex: 1 1 100%; /* Full width on small screens */
    }
}


/*Team Cards */


.team-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: scale(1.05);
}

.team-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 15px;
}

/*Social Icons*/

.team-social-icons a {
    color: black;
    margin: 0 10px;
    font-size: 24px;
    transition: color 0.3s ease;
}

.team-social-icons a:hover {
    color: #4caf50;
    /* Twitter blue */
}

.social-icons a {
    color: white;
    margin: 0 10px;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #4caf50;
    /* Twitter blue */
}
.gal_link{
    display: none;
    transition: opacity 0.3s ease;
}

.gal_item:hover .gal_link{
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000cf;
    color: white;

}


/*Who We Are*/


.about-item {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-heading {
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 1s ease, transform 1s ease;
}
.section-heading.visible {
    opacity: 1;
    transform: translateY(0);
}



/*Goverment Cercular Details*/
.audio-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-around;
}

.audio-player {
    background-color: #222;
    color: #fff;
    width: 300px;
    border-radius: 10px;
    padding: 5px 20px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.audio-player h2 {
    margin-bottom: 10px;
    font-size: 18px;
}

.progress-container {
    width: 100%;
    height: 5px;
    background-color: #444;
    margin: 10px 0;
    border-radius: 5px;
    position: relative;
    cursor: pointer;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: #4CAF50;
    border-radius: 5px;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 15px;
    margin-top: 10px;
}

.controls button,
.volume-control {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
}

.controls button:hover {
    color: #4CAF50;
}



.volume-control input {
    width: 80px;
}

.volume-control:hover input {
    display: block;
}

.volume-control i {
    font-size: 24px;
}

/* Watermark text on play button */
.controls button::after {
    content: "🎧 PLAY";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    /* Watermark effect */
    pointer-events: none;
}

/* Responsiveness */
@media (max-width: 600px) {
    .audio-player {
        width: 90%;
    }
}
.audioPlayerControl{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}



/*Modify Contrast IN Nomarl Mode*/
/*#user_and_visitor_count .contrast_modify{*/
/*    color: #FFFFFFBA; */
/*}*/
/* #supporters-heading, */
/* #about-heading, */
/* .video-section h3, */
/* .photo-section h3, */
/* #events-news-heading,*/
/* #trainings-heading{*/
/*    color: #00000096 !important; */
/*}*/
.linkContrastBlack{
   color: #00000096 !important;  
}

#trainings-heading a{
    color: inherit !important;
}

 button#accessibility-menu:focus,
 button.accessibility-menu:focus-visible,
 button#accessibility-menu:hover,
 button#accessibility-menu:active,
 .headerBtn:focus , 
 .headerBtn:hover,
 .headerBtn:active,
.headerBtn:focus-visible 
 {
    outline: 2px solid #ffcc00 !important;
    background: #121212;
    color: white !important;
}


a.btn:focus-visible, .form-control:focus, .form-control:focus-visible {
    border:2px solid black;
    border-color: #000000 !important;
    box-shadow:none;
}




.nav-link:focus {
    outline: 2px solid #ffcc00; /* Highlight color */
    outline-offset: 2px;
    text-decoration: underline;
}
.skipLink{
         display:none;
     }
     
     
/* Accessibility-compliant styles for the Go To Top button */
.go-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0053a6; /* High contrast color for AAA compliance */
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.go-to-top:hover,
.go-to-top:focus {
    background-color: #003974; /* Darker shade for hover/focus */
    outline: 3px solid #ffffff; /* Visible focus outline for AAA compliance */
    outline-offset: 2px;
}

.go-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Hide visually but keep accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

