html, body {
    scroll-behavior: smooth;
}

/* New Hero Section Styles */
.hero-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: url('img/about-2.png') center center/cover no-repeat;
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: overlay;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 0 0 0; /* Add top padding for navbar height */
    align-items: center; /* Center content vertically */
}

.hero-text-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding-left: 8%;
    align-items: center; /* Center content vertically */
}

.hero-text {
    flex: 0 1 600px;
    padding: 0; /* Remove top/bottom padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text h1 .highlight {
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #f0f0f0;
    margin-bottom: 1rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1.5rem;
}

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
    min-width: 140px;
}

.hero-btn.primary {
    background-color: #1f458b;
    color: white;
    border: none;
}

.hero-btn.primary:hover {
    background-color: #153564;
}

.hero-btn.secondary {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.hero-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.hero-feature {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hero-feature i {
    margin-right: 0.4rem;
}

.community-info {
    margin-top: 0.5rem;
}

.community-info p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    padding: 0;
    border: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    color: white;
    font-size: 2rem;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-indicator a:hover {
    opacity: 1;
}

/* Make sure your content is above the overlay */
.hero-landing > * {
    position: relative;
    z-index: 2;
}

.owl-carousel-item img {
    max-height: 350px;
    object-fit: cover;
}

.content-section {
    visibility: visible !important;
    margin: 0; /* Remove margin between sections causing white lines */
}

/* Hero section specific styles */
.content-section#hero {
    padding: 0;
    margin: 0;
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Main container */
.main-container {
    overflow-y: visible;
}

/* Each section */
.content-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0; /* Remove margins causing white lines */
    padding: 0; /* Remove padding causing white lines */
    position: relative;
}

/* Footer snap section */
#footer-section {
    min-height: 20vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Navbar (standard, not overlay) */
/* Animated gradient navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(90deg, #0a1e3c, #1f458b, #0a1e3c);
    background-size: 200% 200%;
    animation: navbar-gradient-move 6s ease-in-out infinite;
    color: #fff;
    border-bottom: 4px solid #1f458b;
    box-shadow: 0 2px 8px rgba(10,30,60,0.04);
}

@keyframes navbar-gradient-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.content-section#announcements {
    display: flex;
    flex-direction: column;
    align-items: center; /* Optional: center content horizontally */
    padding-top: 60px;
    padding-bottom: 60px;
    margin: 0;
}


.announcements-section {
    background: #0a1e3c;
    color: #fff; /* Optional: makes text white for contrast */
}

/* Make navbar links white on desktop only */
@media (min-width: 992px) {
    .navbar,
    .navbar .navbar-nav .nav-link,
    .navbar .navbar-brand,
    .navbar .navbar-nav .nav-link.active,
    .navbar .navbar-nav .nav-link.show {
        color: #fff !important;
    }

    .navbar .navbar-nav .nav-link:hover,
    .navbar .navbar-nav .nav-link:focus {
        color: #5991e6 !important; /* or any light blue for hover */
    }

    .navbar .btn,
    .navbar .btn i {
        color: #fff;
    }
}

/* Make navbar links dark on mobile */
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link,
    .navbar .navbar-nav .nav-link.active,
    .navbar .navbar-nav .nav-link.show {
        color: var(--dark) !important;
    }

    .navbar .navbar-nav .nav-link:hover,
    .navbar .navbar-nav .nav-link:focus {
        color: var(--primary) !important;
    }
}


.content-section#announcements .btn {
    font-size: 0.92rem;
    padding: 0.3rem 1rem;
}

/* Modern Announcements Section */
.content-section#announcements {
    padding: 4rem 0;
    background-color: #ffffff;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('img/about-1.png');
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.snap-section#announcements::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(0, 74, 173, 0.05);
    z-index: 1;
}

.snap-section#announcements::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(0, 74, 173, 0.04);
    z-index: 1;
}

.announcements-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.announcements-heading {
    text-align: center;
    color: #004AAD;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.announcements-heading::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #004AAD, #5991e6);
    border-radius: 2px;
}

.announcements-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.announcements-layout:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Left Side - Static Announcement Text */
.announcement-text {
    flex: 1;
    padding-right: 2rem;
    border-right: 1px solid rgba(0, 74, 173, 0.1);
    position: relative;
    overflow: hidden;
}

.announcement-text::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 74, 173, 0.03);
    z-index: -1;
}

.announcement-title {
    color: #004AAD;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    transition: all 0.5s ease;
}

.announcement-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #004AAD, #5991e6);
    border-radius: 2px;
}

.announcement-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.announcement-tag {
    background-color: #004AAD;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.announcement-body {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-height: 150px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.view-all-btn {
    display: inline-block;
    padding: 0.7rem 2.5rem;
    background-color: transparent;
    color: #004AAD;
    border: 1px solid #004AAD;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.view-all-btn:hover {
    background-color: #004AAD;
    color: white;
}

/* Right Side - Carousel */
.carousel-container {
    flex: 1;
    position: relative;
}

.carousel-container:before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 74, 173, 0.1), rgba(89, 145, 230, 0.05));
    z-index: 0;
}

.announcement-carousel {
    border: none;
    border-radius: 12px;
    background-color: #e9e9e9;
    height: 400px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.announcement-carousel:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    visibility: hidden;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-slide.active img {
    transform: scale(1.03);
}

/* Carousel Navigation */
.carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 1rem;
    position: relative;
    z-index: 5;
}

.carousel-prev, 
.carousel-next {
    background: linear-gradient(135deg, rgba(0, 74, 173, 0.2), rgba(0, 74, 173, 0.1));
    border: none;
    color: #004AAD;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.carousel-prev:hover, 
.carousel-next:hover {
    background: linear-gradient(135deg, rgba(0, 74, 173, 0.3), rgba(0, 74, 173, 0.2));
    color: #002d69;
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
}

.carousel-prev:active, 
.carousel-next:active {
    transform: scale(0.95);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    padding: 0;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.carousel-dot.active {
    background-color: #004AAD;
    transform: scale(1.2);
}

.carousel-dot.active::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid rgba(0, 74, 173, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Add animated badge styles */
.announcement-tag {
    background-color: #004AAD;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 74, 173, 0.15);
    transition: all 0.3s ease;
}

.announcement-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 74, 173, 0.25);
}

.announcement-tag::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.8s ease;
}

.announcement-tag:hover::after {
    left: 100%;
}

/* Responsive Styles for Announcements */
@media (max-width: 1200px) {
    .announcements-container {
        width: 95%;
    }
    
    .announcements-layout {
        gap: 3rem;
        padding: 2rem;
    }
    
    .announcement-title {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .announcements-layout {
        flex-direction: column;
        gap: 3rem;
        padding: 2rem 1.5rem;
    }
    
    .announcement-text,
    .carousel-container {
        width: 100%;
        max-width: 600px;
    }
    
    .announcement-text {
        padding-right: 0;
        padding-bottom: 2rem;
        border-right: none;
        border-bottom: 1px solid rgba(0, 74, 173, 0.1);
        margin-bottom: 1rem;
    }
    
    .announcement-carousel {
        height: 350px;
    }
    
    .announcements-heading {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .carousel-navigation {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .announcements-layout {
        padding: 1.5rem 1rem;
    }
    
    .announcement-title {
        font-size: 1.8rem;
    }
    
    .announcement-carousel {
        height: 280px;
    }
    
    .view-all-btn {
        padding: 0.6rem 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .announcements-heading {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .announcement-title {
        font-size: 1.8rem;
    }
    
    .announcement-carousel {
        height: 300px;
    }
    
    .view-all-btn {
        padding: 0.6rem 2rem;
    }
}

@media (max-width: 576px) {
    .announcements-heading {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }
    
    .announcement-title {
        font-size: 1.6rem;
    }
    
    .announcement-tags {
        flex-wrap: wrap;
    }
    
    .announcement-carousel {
        height: 250px;
    }
}

.announcement-info-hero h2,
.announcement-info-hero p,
.announcement-info-hero .badge {
    color: #fff;
    /* Dark blue outline using multiple text-shadows */
    text-shadow:
        -1px -1px 0 #0a1e3c,
         1px -1px 0 #0a1e3c,
        -1px  1px 0 #0a1e3c,
         1px  1px 0 #0a1e3c,
         0px  2px 4px rgba(10,30,60,0.7); /* Optional: soft shadow for extra contrast */
}

.carousel-fade .carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 420px; /* Match your .announcement-slide */
}

.carousel-fade .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.7s ease;
    display: block;
    z-index: 1;
    height: 100%;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
    z-index: 2;
    position: absolute;
    height: 100%;
}

.carousel-fade .carousel-item.active {
    position: relative;
    height: 100%;
}

.navbar .navbar-brand h1 {
    color: white !important;
}

@media (max-width: 900px) {
    .announcement-info-hero {
        padding: 1rem;
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    .hero-text-wrapper {
        padding-left: 5%;
    }
    
    .hero-text {
        flex: 0 1 700px;
    }
}

@media (max-width: 992px) {
    .hero-text-wrapper {
        padding: 0 5%;
        justify-content: center;
    }
    
    .hero-text {
        padding: 7rem 0 2rem;
        flex: 0 1 100%;
        display: flex;
        align-items: center;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-features {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-feature {
        font-size: 0.85rem;
    }
    
    .community-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        padding-bottom: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 220px;
        margin-bottom: 0.5rem;
        padding: 0.5rem 1.5rem;
    }
    
    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-feature {
        width: auto;
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
    
    .community-info {
        margin-top: 0.5rem;
    }
    
    .community-info p {
        font-size: 0.85rem;
    }
    
    /* Make scroll indicator smaller and better positioned */
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-indicator i {
        font-size: 1.2rem;
    }
}