    
    html {
  scroll-behavior: smooth;
}
        
        @import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
        
        :root {
            --carphil-blue: #1478C7;
            --carphil-light: #e8f4fc;
            --carphil-dark: #0a5a9e;
            --carphil-gold: #f3bc1e;
            --carphil-vibrant-red: #f3bc1e;
        }
        
        /* Top Bar Styles */
.top-bar {
    background: #0a5a9e;
    color: #fff;
    font-size: 0.85rem;
    
}



h4{
    color: var(--carphil-blue);
}

.top-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.top-link:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 10px;
}

.top-social-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.2s ease;
}

.top-social-link:hover {
    color: #fff;
}

/* Navbar Styles */
/* Default: logo on top, nav below */
/* Logo header section */
.logo-header {
    transition: opacity 0.3s ease, height 0.3s ease;
}

/* Colored span background for nav menu */
#navMenuBar {
    background-color: #F2F7FF; /* Replace with your chosen hex */
    border-radius: 4px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Fixed navbar after scroll */
.fixed-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.fixed-navbar .navbar-brand {
    display: inline-block !important;
}

.fixed-navbar #navMenuBar {
    background-color: transparent;
}

  .nav-link {
            font-weight: 500;
            padding: 10px 15px !important;
            position: relative;
            color: var(--carphil-blue);
        }
        
        .nav-link: active{
           color: var(--carphil-blue); 
        }
        
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background-color: var(--carphil-blue);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }
        
        .nav-link:hover::after,
        .nav-link.active::after {
            width: 70%;
        }*/

   /* Navbar styling 
      #navbar {
    background-color: white;
    transition: all 0.4s ease;
    z-index: 9999;
    border-bottom: 1px solid #eee;
}

.nav-links-wrapper {
    background-color: #F2F7FF; 
    width: 100%;
    padding: 0.5rem 0;
}

.navbar-scrolled {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.navbar-scrolled .navbar-brand {
    margin: 0 !important;
    transform: scale(0.9);
}

.navbar-scrolled .nav-links-wrapper {
    background-color: transparent;
    padding: 0;
    margin-left: auto;
}

.navbar-scrolled #navLinks {
    justify-content: flex-end;
}

        .nav-link {
            font-weight: 500;
            padding: 10px 15px !important;
            position: relative;
            color: var(--carphil-blue);
        }
        
        .nav-link: active{
           color: var(--carphil-blue); 
        }
        
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background-color: var(--carphil-blue);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }
        
        .nav-link:hover::after,
        .nav-link.active::after {
            width: 70%;
        }*/
        
        body {
            font-family: "Inter", sans-serif;
            overflow-x: hidden;
        }
        
        .bg-carphil {
            background-color: var(--carphil-vibrant-red);
        }
        
        .bg-carphil-2{
            background-color: var(--carphil-dark);
        }
        
        .btn-carphil {
            background-color: var(--carphil-blue);
            border-color: var(--carphil-blue);
            color: white;
            transition: all 0.3s ease;
        }
        
        .btn-carphil:hover {
            background-color: var(--carphil-dark);
            border-color: var(--carphil-dark);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(20, 120, 199, 0.4);
        }
        
        .text-carphil {
            color: var(--carphil-blue);
        }
        
        .text-carphil-header{
            color: var(--carphil-vibrant-red);
            border: 1px solid var(--carphil-vibrant-red); 
            padding: 5px; 
            letter-spacing: 2px;
        }
        
     .hero-section {
            position: relative;
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
        }
        
        @media (max-width: 768px) {
            .hero-section h1 {
                font-size: 2.5rem;
            }
            
            .hero-section .btn {
                padding: 0.5rem 1.5rem !important;
                font-size: 1rem;
            }
            
            .hero-section .lead {
                font-size: 1rem !important;
            }
        }
        
        .feature-card {
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            height: 100%;
            border: none;
        }
        
        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 35px rgba(20, 120, 199, 0.2);
        }
        
        .feature-icon {
            font-size: 2.5rem;
            color: var(--carphil-blue);
            margin-bottom: 20px;
        }
        
        .speaker-card {
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            cursor: pointer;
            border: none;
        }
        
        .speaker-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(20, 120, 199, 0.15);
        }
        
        .speaker-img-container {
            height: 220px;
            overflow: hidden;
        }
        
        .speaker-img {
            transition: all 0.5s ease;
            height: 100%;
            width: 100%;
            object-fit: cover;
        }
        
        .speaker-card:hover .speaker-img {
            transform: scale(1.05);
        }
        
      /* Countdown Section Styles */
/* Overlapping Countdown Styles */
.countdown-overlap-container {
    position: relative;
    z-index: 100;
}

.countdown-overlap-inner {
    background-color: #0a5a9e;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(10, 90, 158, 0.3);
    max-width: 50%;
    margin: 0 auto;
    position: relative;
      margin-top: -50px;
    margin-bottom: -50px;
    overflow: hidden;
}

/* Background pattern */
.countdown-overlap-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: 0;
}

/* Grid layout */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.countdown-digit {
    width: 100%;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Highlight effect on the top */
.countdown-digit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
}

/* Shadow effect on the bottom */
.countdown-digit::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.countdown-digit span {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.countdown-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* Animation for changing seconds */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

/* Responsive styles */
@media (max-width: 991px) {
    .countdown-digit {
        height: 100px;
    }
    
    .countdown-digit span {
        font-size: 3rem;
    }
}

@media (max-width: 767px) {
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .countdown-digit {
        height: 90px;
    }
    
    .countdown-digit span {
        font-size: 2.5rem;
    }
    
    .countdown-overlap-inner {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .countdown-digit {
        height: 70px;
    }
    
    .countdown-digit span {
        font-size: 2rem;
    }
    
    .countdown-overlap-inner {
        padding: 1rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
}


/* Responsive Styles */
@media (max-width: 768px) {
    .top-bar .d-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .top-bar .d-flex:last-child {
        margin-top: 0.5rem;
    }
    
    .countdown-digit-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .countdown-digit span {
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .social-links {
        margin-top: 0.5rem;
    }
    
    .countdown-digit-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .countdown-digit span {
        font-size: 1.5rem;
    }
}
/* Animation for seconds digit */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

/* Flipping animation for digits */
@keyframes flipTop {
    0% {
        transform: rotateX(0deg);
        z-index: 2;
    }
    100% {
        transform: rotateX(-90deg);
        z-index: 0;
    }
}

@keyframes flipBottom {
    0% {
        transform: rotateX(90deg);
        z-index: 0;
    }
    100% {
        transform: rotateX(0deg);
        z-index: 2;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .countdown-digit-wrapper {
        width: 70px;
        height: 85px;
    }
    
    .countdown-digit span {
        font-size: 2.5rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .countdown-digit-wrapper {
        width: 60px;
        height: 70px;
    }
    
    .countdown-digit span {
        font-size: 2rem;
    }
}
        
        .schedule-tab .nav-link {
            border-radius: 30px;
            padding: 10px 20px;
            margin-right: 10px;
            margin-bottom: 10px;
            color: #666;
            font-weight: 500;
        }
        
        .schedule-tab .nav-link.active {
            background-color: var(--carphil-blue);
            color: white;
        }
        
        .schedule-item {
            border-left: 3px solid var(--carphil-blue);
            padding-left: 20px;
            margin-bottom: 30px;
            position: relative;
        }
        
        .schedule-item::before {
            content: '';
            position: absolute;
            left: -9px;
            top: 0;
            width: 15px;
            height: 15px;
            border-radius: 50%;
            background-color: var(--carphil-blue);
        }
        
        .schedule-time {
            font-weight: bold;
            color: var(--carphil-dark);
        }
        
        .schedule-location{
           text-decoration: underline; 
        }
        
        /* Schedule event details: objectives list with visible bullets */
        .objectives-list {
            list-style-type: disc;
            padding-left: 1.5rem;
            margin-bottom: 0.75rem;
        }
        .objectives-list li.objective-item {
            margin-bottom: 0.35rem;
            display: list-item;
        }
        
        .floating-shapes {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: 0;
            overflow: hidden;
        }
        
        .shape {
            position: absolute;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
        }
        
        #registration-form .form-control {
            border-radius: 8px;
            padding: 12px 15px;
            border: 1px solid #ddd;
        }
        
        #registration-form .form-control:focus {
            border-color: var(--carphil-blue);
            box-shadow: 0 0 0 0.25rem rgba(20, 120, 199, 0.25);
        }
        
        .badge-carphil {
            background-color: var(--carphil-light);
            color: var(--carphil-blue);
            font-weight: 500;
            padding: 5px 15px;
            border-radius: 20px;
        }
        
        .session-card {
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
            cursor: pointer;
            height: 100%;
        }
        
        .session-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        
        .session-card .card-footer {
            background-color: white;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
        }
        
        footer {
            background-color: #2c3e50;
            color: rgba(255, 255, 255, 0.8);
        }
        
        footer a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        footer a:hover {
            color: white;
            text-decoration: none;
        }
        
        .social-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
            margin-right: 10px;
            transition: all 0.3s ease;
        }
        
        .social-icon:hover {
            background-color: var(--carphil-blue);
            transform: translateY(-3px);
        }
        
        /* For animations */
        .animate-up {
            transition: all 0.5s ease;
        }
        
        .animate-up:hover {
            transform: translateY(-10px);
        }
        
  
        
        /* Interactive elements */
        .topic-pill {
            display: inline-block;
            padding: 5px 15px;
            border-radius: 20px;
            background-color: var(--carphil-light);
            color: var(--carphil-blue);
            margin-right: 10px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .topic-pill:hover {
            background-color: var(--carphil-blue);
            color: white;
            transform: translateY(-2px);
        }
        
        .avatar-stack {
            display: flex;
            margin-left: 10px;
        }
        
        .avatar-stack img {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: 2px solid white;
            margin-left: -10px;
        }
        
            /* Custom styles for Why Jamaica section */
    .why-location-section {
        overflow: hidden;
    }
    
    .why-location-section .lead {
        font-weight: 500;
    }
    
    @media (max-width: 991.98px) {
        .why-location-section .col-lg-7 img {
            max-height: 400px;
            width: 100%;
            object-fit: cover;
        }
    }
    
    .text-primary {
        color: #1478C7 !important;
    }
    
    
    
/* Core Objectives */    
    #core-objectives {
    position: relative;
}

#core-objectives .card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

#core-objectives .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(20, 120, 199, 0.15);
}

.objective-icon-wrapper {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.objective-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(20, 120, 199, 0.2);
}

.objective-icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--carphil-blue);
    opacity: 0.2;
    top: 10px;
    left: 10px;
    border-radius: 20px;
    z-index: 0;
}

.objective-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.objective-list li {
    margin-bottom: 1rem;
}

.objective-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.objective-check {
    background-color: rgba(20, 120, 199, 0.1);
    color: var(--carphil-blue);
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.2rem;
}

.objective-item p {
    margin-bottom: 0;
    line-height: 1.5;
}

.opacity-10 {
    opacity: 0.1;
}

@media (max-width: 991.98px) {
    #core-objectives .card {
        margin-bottom: 1.5rem;
    }
    
    .objective-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    #core-objectives .card-body {
        padding: 1.5rem !important;
    }
}


/* Wave Divider Styles - Fixed Positioning */
.custom-wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
}

.custom-wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

/* Animation for the wave effect */
@keyframes wave-animation {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-25px);
    }
    100% {
        transform: translateX(0);
    }
}

.custom-wave-divider path {
    animation: wave-animation 15s ease-in-out infinite;
}

/* Ensure proper spacing between sections */
#about {
    padding-bottom: 100px; /* Add space for the wave */
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

#purpose {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-wave-divider svg {
        height: 80px;
    }
    
    #about {
        padding-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .custom-wave-divider svg {
        height: 60px;
    }
    
    #about {
        padding-bottom: 30px;
    }
}


/* Top Wave Divider Styles */
.custom-wave-divider-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
}

.custom-wave-divider-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

/* Animation for wave effect */
@keyframes wave-animation {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-25px);
    }
    100% {
        transform: translateX(0);
    }
}

.custom-wave-divider path,
.custom-wave-divider-top path {
    animation: wave-animation 15s ease-in-out infinite;
}

/* Top wave animation should go in the opposite direction */
@keyframes wave-animation-reverse {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(25px);
    }
    100% {
        transform: translateX(0);
    }
}

.custom-wave-divider-top path {
    animation: wave-animation-reverse 15s ease-in-out infinite;
}

@media (max-width: 991.98px) {
    #core-objectives {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .custom-wave-divider-top svg,
    .custom-wave-divider svg {
        height: 80px;
    }
    
    #core-objectives .card {
        margin-bottom: 1.5rem;
    }
    
    .objective-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    #core-objectives {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .custom-wave-divider-top svg,
    .custom-wave-divider svg {
        height: 60px;
    }
    
    #core-objectives .card-body {
        padding: 1.5rem !important;
    }
}

@media (max-width: 575.98px) {
    #core-objectives {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .custom-wave-divider-top svg,
    .custom-wave-divider svg {
        height: 40px;
    }
}


/* event */

 .event-card {
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            height: 100%;
            transition: transform 0.3s ease;
            overflow: hidden;
        }
        .event-card:hover {
            transform: translateY(-5px);
        }
        .event-header {
            background-color: var(--carphil-blue);
            color: white;
            padding: 20px;
        }
        .card-body {
            padding: 25px;
        }
        .price-tag {
            font-size: 2.5rem;
            font-weight: 700;
            color: #333;
        }
        .btn-register {
            background-color: #f9b847;
            border: none;
            color: #333;
            font-weight: 600;
            padding: 10px 25px;
            border-radius: 30px;
            transition: all 0.3s ease;
        }
        .btn-register:hover {
            background-color: #e69f29;
            transform: scale(1.05);
        }
      
        .event-date {
            color: #f9b847;
            font-weight: 600;
        }
        .location {
            font-style: italic;
            color: #666;
        }
        .membership-offer {
            background-color: #f8f9fa;
            border-left: 4px solid var(--carphil-blue);
            padding: 15px;
            margin-top: 15px;
            border-radius: 5px;
        }
        .discount-badge {
            background-color: #dc3545;
            color: white;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            position: absolute;
            top: 15px;
            right: 15px;
        }
 .ct-event-title {
    color: #1A4074 !important;
}    


.bg-purple { 
  background-color: #6f42c1 !important; 
  color: white !important;
}

.bg-orange { 
  background-color: #fd7e14 !important; 
  color: white !important;
}

.bg-teal { 
  background-color: #20c997 !important; 
  color: white !important;
}

.bg-indigo { 
  background-color: #6610f2 !important; 
  color: white !important;
}

.bg-gold { 
  background-color: #ffc107 !important; 
  color: black !important;
}

.bg-pink { 
  background-color: #e83e8c !important; 
  color: white !important;
}

.bg-gradient {
  background: linear-gradient(45deg, #007bff, #6610f2) !important;
  color: white !important;
}

/* Ensure badges are visible */
.badge {
  display: inline-block !important;
  padding: 0.35em 0.65em !important;
  font-size: 0.75em !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  vertical-align: baseline !important;
  border-radius: 0.375rem !important;
}



/* partners*/
.cariphil-partners-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 140px 0 80px 0; /* Extra top padding for wave */
    position: relative;
    z-index: 2;
}

.cariphil-partner-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cariphil-partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.cariphil-partner-tier {
    background: linear-gradient(135deg, #0a5a9e, #1e7cbf);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.cariphil-partner-tier::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 10px solid #1e7cbf;
}

.cariphil-tier-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cariphil-tier-amount {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

.cariphil-partner-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cariphil-partner-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
    flex-grow: 1;
}

.cariphil-action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cariphil-btn-read-more {
    background: transparent;
    color: #0a5a9e;
    border: 2px solid #0a5a9e;
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.cariphil-btn-read-more:hover {
    background: #0a5a9e;
    color: white;
    transform: translateY(-2px);
}

.cariphil-btn-donate {
    background: linear-gradient(135deg, #f3bc1e, #e6a91a);
    color: #000;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.cariphil-btn-donate:hover {
    background: linear-gradient(135deg, #e6a91a, #d99c17);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 188, 30, 0.3);
}

.cariphil-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.cariphil-section-subtitle {
    color: #0a5a9e;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.cariphil-section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #0a5a9e;
    margin-bottom: 25px;
    line-height: 1.2;
}

.cariphil-section-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.cariphil-special-opportunity {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border: 2px solid #f3bc1e;
    position: relative;
}

.cariphil-special-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #f3bc1e;
    color: #000;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .cariphil-section-title {
        font-size: 2.2rem;
    }
    
    .cariphil-tier-title {
        font-size: 1.3rem;
    }
    
    .cariphil-action-buttons {
        flex-direction: column;
    }
}

/* Schedule */
.text-carphil-header { color: #0a5a9e; }
        .bg-carphil { background-color: #0a5a9e; }
        .schedule-item { border: .5px solid rgb(222, 226, 230); padding-bottom: 1rem; margin-bottom: 1rem; }
        .schedule-item:last-child { border-bottom: none; margin-bottom: 0; }
        .schedule-time { font-weight: 600; color: #666; }
        .schedule-location { font-style: italic; color: #888; margin-bottom: 0.5rem; }
        
        
/* Sponsorship page */        
      .cariphil-sponsorship-package {
            background: white;
            border-radius: 15px;
            padding: 40px;
            margin-bottom: 40px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 2px solid transparent;
        }
        
        .cariphil-package-amount {
            font-size: 1.2rem;
            font-weight: 600;
            color: #007bff;
        }
        
        
               .cariphil-benefits-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #212529;
            margin-bottom: 15px;
        }
        
        .cariphil-benefits-subtitle {
            font-style: italic;
            font-weight: 500;
            color: #495057;
            margin-top: 20px;
            margin-bottom: 10px;
        }
        
        .cariphil-benefits-list {
            list-style: none;
            padding-left: 0;
        }
        
        .cariphil-benefits-list li {
            padding: 8px 0;
            padding-left: 25px;
            position: relative;
            color: #495057;
            line-height: 1.5;
        }
        
        .cariphil-benefits-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #28a745;
            font-weight: bold;
            font-size: 1.1rem;
        }
        
        
/* modal */
 .modal {
            z-index: 10050 !important; /* Higher than your navbar's 9999 */
        }
        
        .modal-backdrop {
            z-index: 10040 !important; /* Just below the modal but above navbar */
        }
        
        /* Ensure modal content is properly styled */
        .modal-content {
            position: relative;
            z-index: 10051;
        }
        
        /* Fix scrolling issues */
        .modal-dialog {
            max-height: calc(100vh - 60px); /* Account for navbar height */
            margin-top: 30px;
            margin-bottom: 30px;
        }
        
        .modal-body {
            max-height: calc(100vh - 200px); /* Allow for header and footer */
            overflow-y: auto;
            padding: 1.5rem;
        }


 /* Popup overlay */
        .popup-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            padding: 20px;
            overflow-y: auto;
        }

        .popup-overlay.active {
            display: flex;
        }

        /* Popup box */
        .popup {
            background: white;
            padding: 40px;
            border-radius: 12px;
            max-width: 950px;
            width: 100%;
            position: relative;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            animation: slideDown 0.4s ease;
            max-height: 90vh;
            overflow-y: auto;
            margin: auto;
        }

        @keyframes slideDown {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        /* Close button */
        .close-btn {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 28px;
            cursor: pointer;
            background: none;
            border: none;
            color: #999;
            line-height: 1;
            transition: color 0.2s;
        }

        .close-btn:hover {
            color: #333;
        }

        .popup-header {
            border-bottom: 3px solid #e74c3c;
            padding-bottom: 20px;
            margin-bottom: 25px;
        }

        .popup h2 {
            color: #e74c3c;
            font-size: 22px;
            margin-bottom: 10px;
            line-height: 1.4;
        }

        .popup h3 {
            color: #2c3e50;
            font-size: 18px;
            margin: 20px 0 10px 0;
        }

        .popup p {
            color: #555;
            line-height: 1.8;
            margin-bottom: 15px;
            text-align: justify;
        }

        .important-dates {
            background-color: #fff3cd;
            border-left: 4px solid #ffc107;
            padding: 15px;
            margin: 20px 0;
        }

        .important-dates strong {
            color: #856404;
        }

        .call-to-action {
            background-color: #e8f5e9;
            border-left: 4px solid #4caf50;
            padding: 15px;
            margin: 20px 0;
        }

        .call-to-action a {
            color: #2e7d32;
            font-weight: bold;
            text-decoration: none;
        }

        .call-to-action a:hover {
            text-decoration: underline;
        }

        .signature {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #ddd;
        }

        .signature p {
            margin-bottom: 5px;
        }

        .signature strong {
            color: #2c3e50;
        }

        
