/* Custom Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --white: #ffffff;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Topbar Styles */
.topbar {
    background-color: var(--primary-color) !important;
    font-size: 0.9rem;
}

.topbar a {
    transition: all 0.3s ease;
}

.topbar a:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.topbar .d-flex {
    gap: 1rem;
}

@media (max-width: 768px) {
    .topbar .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .topbar .me-4 {
        margin-right: 0 !important;
    }
}

/* Navbar Styles */
.navbar {
    /*padding: 1rem 0;*/
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0 !important;
    padding-bottom: 0.3rem; /* reduce if needed */
}

.navbar-brand img {
    max-height: 60px;
}

.organization-name {
    flex: 1;
    margin: 0 2rem;
}

.organization-name h1 {
    color: var(--primary-color);
    font-weight: 700;
}

.organization-name p {
    color: var(--text-color);
}

.search-box {
    max-width: 300px;
}

.search-box .form-control {
    border-radius: 20px 0 0 20px;
    border: 1px solid #ddd;
    height: 38px;
}

.search-box .btn {
    border-radius: 0 20px 20px 0;
    padding: 0.375rem 1rem;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menu Bar Styles */
.menu-bar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.menu-bar .navbar-nav {
    /*gap: 0.5rem;*/
}

.menu-bar .nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.menu-bar .nav-link:hover {
    color: var(--secondary-color) !important;
}

.menu-bar .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-top: 0;
}

.menu-bar .dropdown-item {
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.menu-bar .dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--secondary-color);
}

#home{
  padding-top: 0 !important;
  margin-top: 0 !important;
}
/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    min-height: 75vh;
    display: flex;
    align-items: center;
      padding-top: 0 !important;
  margin-top: 0 !important;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
}

.hero-slider .carousel {
    min-height: 75vh;
}

.hero-slider .carousel-item {
    min-height: 75vh;
}

.hero-slider .carousel-item img {
    object-fit: cover;
    height: 75vh;
    width: 100%;
}

.navbar-nav .nav-link {
    padding: 8px 15px;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.navbar-nav .nav-link:hover {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 6px;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7));
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 50%;
    transform: translateY(50%);
    padding: 0;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.carousel-indicators {
    z-index: 2;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: var(--white);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    opacity: 1;
    background-color: var(--secondary-color);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    z-index: 2;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 20px;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: var(--secondary-color);
}

/* Section Styles */
section {
    padding: 80px 0;
}

section h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 1rem auto;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Button Styles */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 0.8rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Contact Form */
.form-control {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Footer Styles */
footer {
    background-color: var(--dark-color) !important;
}

footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}


/* Submenu fix for Bootstrap */
.dropdown-submenu {
  position: relative;
}



/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 60px 0;
    }

    .card {
        margin-bottom: 30px;
    }

    .hero-slider .carousel-item {
        min-height: 60vh;
    }

    .hero-slider .carousel-item img {
        height: 60vh;
    }

    .carousel-caption h1 {
        font-size: 2.5rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
        padding: 15px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Submenu support for Bootstrap 5 */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;  /* show to the right */
  margin-top: -1px;
  display: none;
}

/* Show submenu on hover */
.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

.dropdown-submenu .dropdown-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: -1px;
}

.dropdown-submenu .dropdown-menu.show {
  display: block;
}

/* Add arrow indicator */
.dropdown-submenu > .dropdown-toggle::after {
  content: "▶";
  float: right;
  margin-left: 5px;
  font-size: 0.7rem;
}

/* Responsive Styles for Navbar and Menu Bar */
@media (max-width: 991px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .organization-name {
        margin: 0.5rem 0;
        text-align: center !important;
    }

    .search-box {
        max-width: 100%;
        margin-top: 0.5rem;
    }

    .menu-bar {
        padding: 0.5rem 0;
    }

    .menu-bar .navbar-collapse {
        background-color: var(--white);
        padding: 1rem;
        border-radius: 4px;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    }

    .menu-bar .navbar-nav {
        gap: 0;
    }

    .menu-bar .nav-link {
        padding: 0.8rem 1rem !important;
    }

    .menu-bar .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.1);
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .menu-bar .dropdown-item {
        color: var(--white);
    }

    .menu-bar .dropdown-item i {
        color: var(--white);
    }

    .menu-bar .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--white);
    }
    
        .marquee {
        overflow: hidden;
        white-space: nowrap;
        box-sizing: border-box;
        animation: marquee 15s linear infinite;
        font-size: 16px;
        font-weight: 500;
        color: #fff;
    }

    .marquee a {
        color: #fff;
        text-decoration: none;
        margin-right: 40px;
        transition: color 0.3s;
    }

    .marquee a:hover {
        color: #ffd700; /* Golden hover effect */
    }

    @keyframes marquee {
        0% { transform: translateX(100%); }
        100% { transform: translateX(-100%); }
    }
}

@media (max-width: 576px) {
    .organization-name h1 {
        font-size: 1.5rem;
    }

    .organization-name p {
        font-size: 0.8rem;
    }

    .search-box {
        max-width: 100%;
    }
} 