body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9fafb;
    color: var(--foreground);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #1E3A8A;
    --primary-light: #EFF6FF;

    /*Announcement colors*/
    --blue: #0d6efd;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #d63384;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #198754;
    --teal: #20c997;
    --cyan: #0dcaf0;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #1E3A8A;
    --secondary: #6c757d;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;

    /* Services */
    --primary-blue: #1E3A8A;
    --light-blue: #EFF6FF;
    --gray-900: #111827;
    --gray-600: #4B5563;
    --gray-100: #F3F4F6;
}

/* Navbar Styles */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #1E3A8A;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-custom.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 0.5rem 0;
}

.navbar-toggler {
    background-color: #ffffff;
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.navbar-title {
    margin-left: 0.5rem;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-link-custom {
    position: relative;
    color: white;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link-custom:hover {
    color: #BFDBFE;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link-custom:hover::after {
    transform: scaleX(1);
}

.nav-link-custom:hover .nav-chevron {
    opacity: 1;
}

.nav-chevron {
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 0.25rem;
}

/* Login button styles - removes underline and maintains consistency */
.btn-login {
    background-color: white;
    color: #1E3A8A;
    font-weight: 500;
    margin-left: 1rem;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    text-decoration: none !important; /* Ensures no underline */
    display: inline-block; /* For proper button sizing */
}

.btn-login:hover {
    background-color: #EFF6FF;
    text-decoration: none !important;
}

/* Specifically targets the link inside the button */
.btn-login a {
    color: inherit; /* Inherits color from parent button */
    text-decoration: none !important; /* Removes underline */
    display: block; /* Makes the entire button area clickable */
    width: 100%;
    height: 100%;
}

/* Mobile-specific adjustments */
@media (max-width: 991.98px) {
    .btn-login {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .btn-login a {
        padding: 0.5rem 0; /* Adds proper spacing for mobile */
    }
}

.btn-login {
    background-color: white;
    color: #1E3A8A;
    font-weight: 500;
    margin-left: 1rem;
}

.btn-login:hover {
    background-color: #EFF6FF;
}

.mobile-menu {
    border-top: 1px solid #3B82F6;
    margin-top: 0.5rem;
    padding: 1rem 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.mobile-nav-link:hover {
    background-color: #3B82F6;
    text-decoration: none;
}

/* Custom utility classes */
.bg-primary {
    background-color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-muted {
    background-color: var(--muted) !important;
}

.text-muted-foreground {
    color: var(--muted-foreground) !important;
}

.bg-card {
    background-color: var(--card) !important;
}

.border-border {
    border-color: var(--border) !important;
}

.text-primary-foreground {
    color: var(--primary-foreground) !important;
}

.bg-primary-light {
    background-color: var(--primary-light) !important;
}

/* Hero Section with optimized wave rendering */
.hero-section {
    position: relative;
    width: 100%;
    height: 550px;
    background-color: white;
    overflow: hidden;
    margin-top: auto;
}

/* Background with Overlay */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/Background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 58, 138, 0.7);
    z-index: 2;
}

/* Content Styles */
.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 2rem;
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 36rem;
    margin-bottom: 1.5rem;
}

/* CTA Button Styles */
.btn-hero-cta {
    background-color: white;
    color: #1E3A8A;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 0.5rem 2rem;
    border: none;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.btn-hero-cta:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #1E3A8A;
    transform: translateY(-2px);
}

/* Optimized Wave Divider */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    height: 120px;
    overflow: hidden;
}

.hero-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Prevent rendering artifacts */
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
    image-rendering: optimizeQuality;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-content {
        padding: 0 4rem;
    }
}

@media (min-width: 1200px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

/* Back to Top Button */
/*==================================TO TOP================================*/

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1E3A8A;
    color: white;
    border: none;
    border-radius: 15%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    z-index: 1000; /* Ensure the button is on top */
  }
  
  .back-to-top:hover {
    background-color: #0056b3;
  }
  
  .back-to-top.show {
    opacity: 1;
    visibility: visible;
  }
  
  

/* History texts */
.history-gallery h2 span {
    background: linear-gradient(90deg, #0d6efd 0%, #6610f2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.history {
    text-align: justify;
}


/* Icon containers */
.icon-container {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Gallery items */
.gallery-item {
    height: 300px;
    overflow: hidden;
    border-radius: 0.5rem;
    position: relative;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-caption {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Leadership cards */
.leader-card {
    height: 100%;
    overflow: hidden;
}

.leader-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

/* Animations */
.animate-opacity-y {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-opacity-y.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-opacity-x-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-opacity-x-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-opacity-x-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-opacity-x-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Custom buttons */
.btn-custom-secondary {
    background-color: #e5e7eb;
    color: #111827;
}

.btn-custom-secondary:hover {
    background-color: #d1d5db;
}

.btn-custom-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-custom-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Organizational Chart */

.organization-section {
    padding: 4rem 1rem;
    background-color: #f9fafb;
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    color: #4b5563;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.official-card {
    height: 100%;
    background-color: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    overflow: hidden;
}

.official-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.official-avatar {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    object-fit: cover;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: #1e3a8a;
}

.official-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.25rem;
}

.official-position {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 1rem;
}

.official-description {
    color: #4b5563;
    font-size: 0.9rem;
}

.card-content {
    padding: 1.5rem;
    text-align: center;
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.75rem;
    }
}

/* ===== MODERN ORGANIZATION SECTION ===== */
.org-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    position: relative;
}

/* New Section Header Style */
.section-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.section-intro h2 span {
    background: linear-gradient(90deg, #0d6efd 0%, #6610f2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-intro .badge {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.05em;
    border-radius: 999px;
    background-color: #f1f3f5;
    color: #495057;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    text-transform: uppercase;
}

.section-intro h2 {
    font-size: 2.75rem;
    font-weight: 700;
    margin: 1rem 0;
}

.section-intro p {
    font-size: 1.125rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Council Grid Layout */
.council-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Council Member Card */
.council-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: none;
}

/* Image Section */
.card-image {
    height: 240px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e7eb;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-initials {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.7), rgba(102, 16, 242, 0.7));
}

/* Info Section */
.card-info {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-name {
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
    font-size: 1.3rem;
    line-height: 1.3;
}

.card-position {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.75rem;
}

.card-position::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-purple));
    border-radius: 3px;
}

.card-description {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Role Badges */
.role-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(90deg, var(--accent-orange), #ff922b);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Special Styling for Captain */
.captain-card {
    grid-column: 1 / -1;
}

.captain-card .card-image {
    height: 320px;
}

.captain-card .card-name {
    font-size: 1.8rem;
}

.captain-card .card-position {
    font-size: 1.2rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .council-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .card-image {
        height: 220px;
    }
    
    .captain-card .card-image {
        height: 280px;
    }
    
    .section-intro h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section-intro h2 {
        font-size: 2.25rem;
    }
    
    .section-intro p {
        font-size: 1.05rem;
    }
    
    .card-image {
        height: 200px;
    }
    
    .captain-card .card-image {
        height: 240px;
    }
    
    .card-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .org-section {
        padding: 3rem 0;
    }
    
    .council-grid {
        grid-template-columns: 1fr;
    }
    
    .section-intro h2 {
        font-size: 2rem;
    }
    
    .section-intro p {
        font-size: 1rem;
    }
}


 /* Footer */

 .footer {
    background-color: #1e293b;
    color: white;
    padding: 3rem 1rem;
    position: relative;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-map {
    height: 12rem;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #334155;
    margin-bottom: 1rem;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-contact-item,
.footer-hours-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-icon {
    color: #60a5fa;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #60a5fa;
}

.footer-quick-links {
    list-style: none;
    padding-left: 0;
}

.footer-quick-links li {
    margin-bottom: 0.5rem;
}

.footer-quick-links a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.footer-quick-links a:hover {
    color: #60a5fa;
}

.footer-quick-links a::before {
    content: "›";
    color: #60a5fa;
    margin-right: 0.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-link {
    background-color: #1e40af;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.social-link:hover {
    background-color: #1e3a8a;
    color: white;
}

.footer-divider {
    height: 1px;
    background-color: #334155;
    margin: 2rem 0;
}

.footer-copyright {
    color: #94a3b8;
    text-align: center;
}

/* Improved Logo Section */
.footer-logo-container {
    margin-top: 2rem;
    width: 100%;
}

.footer-logos {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 3.5rem;
}

.footer-logo-img {
    height: auto;
    max-height: 120px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

/* Large Desktop (>1200px) */
@media (min-width: 1200px) {
    .footer-logo-container {
        position: absolute;
        right: 1rem;
        top: 1rem;
        width: auto;
        margin-top: 0;
    }

    .footer-logos {
        justify-content: flex-end;
    }

    .footer-logo-img {
        max-height: 150px;
        max-width: 150px;
    }
}

/* Special fix for 1190×900 issue (992px-1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .footer-logo-container {
        position: static;
        margin-top: 2rem;
        margin-left: auto;
        margin-right: auto;
        max-width: 300px;
    }

    .footer-logos {
        justify-content: center;
    }

    .footer-logo-img {
        max-height: 110px;
        max-width: 110px;
    }
}

/* Tablet (768px-991px) */
@media (max-width: 991.98px) and (min-width: 768px) {
    .footer-logo-img {
        max-height: 100px;
        max-width: 100px;
    }
}

/* Mobile (<768px) */
@media (max-width: 767.98px) {
    .footer-logo-img {
        max-height: 90px;
        max-width: 90px;
    }
}


.carousel-control-next {
  right: 0;
background-color: #80808080;
  margin-top: 17.2rem;
  margin-right: 2rem;
  width: 8%;
  border-radius: 5rem;
  height: 15%;
  opacity: 1;
}

.carousel-control-prev {
  left: 0;
background-color: #80808080;
  margin-top: 17.2rem;
  margin-left: 2rem;
  width: 8%;
  border-radius: 5rem;
  height: 15%;
  opacity: 1;
}