@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Nunito+Sans:wght@400;600;700&display=swap');

.frame {
    background-color: #ddc;
    border-radius: 2px;
    border: 3vmin solid #eee;
    border-top-color: #ddd;
    border-bottom-color: #fff;
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, .25) inset, 0 3px 7px 3px rgba(0, 0, 0, .25);
    box-sizing: border-box;
    display: inline-block;
    height: 34.2vh;
    padding: 0; /* <- key change */
    position: relative;
    text-align: center;
    margin: 1vh 0 0 0;
    float: left;
    &:before {
        border-radius:2px;
        bottom:-2vmin;
        box-shadow:0 2px 5px 0 rgba(0,0,0,.25) inset;
        content:"";
        left:-2vmin;
        position:absolute;
        right:-2vmin;
        top:-2vmin;
    }

}

.frame img {
    width: 100%;
    height: 100%!important;
    object-fit: cover;
    display: block;
    border: none;
}

.frame-banner {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* semi-transparent black */
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
}
#header-title-style{
    position: relative;
    top: 3px;
}
.section-title-container{
    background-color: #5bc1ac;
}
.title-line {
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-line .line {
    display: inline-block;      /* Ensure the span behaves like a block */
    width: 60px;
    height: 2px;
    background-color:#ffffff;
}

.title-line .title-text {
    font-weight: bold;
    letter-spacing: 5px;
}
#habari-card-style{
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #5bc1ac;
}
#card-title-style{
    font-size: 14px;
}
.date {
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    color: #999;
    margin-bottom: 5px;
    font-weight: bold;
}
#card-title-style a{
    color: #5bc1ac;
}
#card-title-style a:hover{
    color: #297f6d;
    transition: 1.05s;
}
.custom-icon {
    font-size: 40px;              /* Icon size */
    width: 65px;                  /* Width of circle */
    height: 65px;                 /* Height of circle */
    background-color: #f0f0f0;    /* Background color */
    color: #000;               /* Icon color */
    border-radius: 50%;           /* Make it round */
    display: flex;                /* Use flex to center */
    align-items: center;          /* Vertically center */
    justify-content: center;      /* Horizontally center */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Optional shadow */
}

.carousel-container {
    position: relative;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    padding: 1rem 0;
}
.video-card {
    display: inline-block;
    vertical-align: top;
    width: 300px;
    margin-right: 1rem;
    white-space: normal; /* allow text inside the card to wrap */
}

.video-caption {
    margin-top: 0.5rem;
    padding: 0 0.5rem;
    overflow: hidden;
}

.video-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    word-wrap: break-word; /* ensures long words break */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;   /* Show only 2 lines */
    -webkit-box-orient: vertical;
}

.video-meta {
    font-size: 0.8rem;
    color: #777;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    z-index: 10;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
}

.scroll-left {
    left: 0;
}

.scroll-right {
    right: 0;
}
#more-details{
    height: auto;
    font-family: 'Nunito Sans', sans-serif;
}
#more-details h1, h2, h3, h4, h5 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}
#more-details-image{
    width: 100%;
}
#paragraph-content{
    text-align: justify;
    font-size: 18px;
}
/* Initial state: slide down from top */
.navbar-nav .nav-item {
    opacity: 0;
    transform: translateY(-20px);
    animation: slideIn 0.5s forwards;
}
.navbar-nav ul li{
    border-bottom: 2px dotted #5bc1ac;
}

/* Add staggered animation delays for each item */
.navbar-nav .nav-item:nth-child(1) { animation-delay: 0.1s; }
.navbar-nav .nav-item:nth-child(2) { animation-delay: 0.2s; }
.navbar-nav .nav-item:nth-child(3) { animation-delay: 0.3s; }
.navbar-nav .nav-item:nth-child(4) { animation-delay: 0.4s; }
.navbar-nav .nav-item:nth-child(5) { animation-delay: 0.5s; }
.navbar-nav .nav-item:nth-child(6) { animation-delay: 0.6s; }
.navbar-nav .nav-item:nth-child(7) { animation-delay: 0.7s; }
.navbar-nav .nav-item:nth-child(8) { animation-delay: 0.8s; }

/* Keyframes for slide-in */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover underline effect */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    background: #5bc1ac;
    left: 0;
    bottom: -4px;
    transition: width 0.3s;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .dropdown-menu {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
    pointer-events: none;
}

.navbar-nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0); /* Animate upward */
    pointer-events: auto;
}
.dropdown-menu {
    border-radius: 0 !important;
}
.sidebar-pages {
    font-family: Arial, sans-serif;
    width: 250px;
}

.sidebar-pages h3 {
    font-size: 16px;
    color: #000;
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.sidebar-pages ul {
    list-style-type: none;
    padding-left: 0;
}

.sidebar-pages ul li {
    margin: 5px 0;
}

.sidebar-pages ul li a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

.sidebar-pages ul li a.active {
    color: #007bff; /* Blue */
    text-decoration: underline;
}
.sidebar-pages ul li {
    margin: 0;
    padding: 5px 0;
    border-bottom: 1px dotted #ccc;
}

.sidebar-pages ul li:last-child {
    border-bottom: none; /* Remove border from last item */
}


.member-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
}

.member-card img {
    width: 100%;
    height: auto;
}

.member-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    padding: 10px;
}

.member-name {
    font-weight: bold;
    font-size: 1rem;
}

.member-role {
    font-size: 0.875rem;
    color: #ccc;
}



.contact-wrapper {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.contact-info {
    padding: 40px;
    color: white;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #5bc1ac;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.social-links {
    margin-top: 30px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #5bc1ac;
    color: #ffffff;
    transform: translateY(-3px);
}

.contact-form {
    padding: 40px;
}

.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #eee;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #5bc1ac;
    box-shadow: none;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
}

.btn-submit {
    background: linear-gradient(135deg, #5bc1ac, #0096ff);
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,98,204,0.3);
}

.map-container {
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

