/* --- Global Variables & Base Styles --- */
:root {
    --primary-color: #000080; /* Deep Blue */
    --secondary-color: #f2f7fb; /* Very Light Blue/Grey */
    --accent-color: #3cb371; /* Medium Sea Green */
    --text-dark: #2c3e50; /* Darker Text */
    --text-light: #7f8c8d; /* Lighter Text */
    --white: #ffffff;
    --black: #000000;

    /* Unique Color Additions/Variations */
    --primary-light: #4646a3; /* Lighter shade of primary for accents */
    --accent-alt: #48d183; /* Slightly lighter accent for text highlights */
    --dark-blue-bg: #1e2c40; /* Dark background for footer/dark sections */

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
    --base-font-size: 1rem; /* 16px */
    --nav-link-font-size: 1rem;
    --p-font-size: 1rem; /* Paragraph font size */

    /* Spacing */
    --section-padding-lg: 120px; /* Increased padding */
    --section-padding-md: 90px;
    --section-padding-sm: 70px;

    /* Borders & Shadows */
    --border-radius-soft: 12px; /* Slightly more rounded */
    --transition-speed: 0.4s; /* Slightly slower for more fluid animations */
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--base-font-size);
    line-height: 1.7; /* Better readability */
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 0.6em;
}

h1 { font-size: 3.8rem; font-weight: 800; }
h2 { font-size: 2.8rem; font-weight: 700; }
h3 { font-size: 2rem; font-weight: 700; }
h4 { font-size: 1.6rem; font-weight: 600; }
p { font-size: var(--p-font-size); margin-bottom: 1.2rem; }

a {
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}
a:hover {
    text-decoration: none;
}

/* Reusable Section Padding */
.section-padding {
    padding: var(--section-padding-md) 0;
}
@media (min-width: 992px) {
    .section-padding {
        padding: var(--section-padding-lg) 0;
    }
}
@media (max-width: 767px) {
    .section-padding {
        padding: var(--section-padding-sm) 0;
    }
}

.bg-light-gray-unique {
    background-color: var(--secondary-color);
    /* Adding a subtle texture or pattern for uniqueness */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239FB4C8' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zm0 30V30h-2v4h-4v2h4v4h2v-4h4v-2h-4zM14 9V5H8v2h2v2h4zm-6 4V9H2v2h2v2h4zm2 2V11H4v2h2v2h4zm0 0v-4H4v2h2v2h4zM8 24v-4H2v2h2v2h4zm2 2v-4H4v2h2v2h4zm0 0v-4H4v2h2v2h4zM36 49v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V15h-2v4h-4v2h4v4h2v-4h4v-2h-4zM14 44v-4H8v2h2v2h4zm-6 4v-4H2v2h2v2h4zm2 2v-4H4v2h2v2h4zm0 0v-4H4v2h2v2h4zM49 14h-4v-2h4V8h2v4h4v2h-4zm0 0h-4v-2h4V8h2v4h4v2h-4zm0 0h-4v-2h4V8h2v4h4v2h-4zm0 0h-4v-2h4V8h2v4h4v2h-4zM49 14h-4v-2h4V8h2v4h4v2h-4zm0 0h-4v-2h4V8h2v4h4v2h-4zm0 0h-4v-2h4V8h2v4h4v2h-4zm0 0h-4v-2h4V8h2v4h4v2h-4zM49 14h-4v-2h4V8h2v4h4v2h-4zm0 0h-4v-2h4V8h2v4h4v2h-4zm0 0h-4v-2h4V8h2v4h4v2h-4zm0 0h-4v-2h4V8h2v4h4v2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.text-accent-alt {
    color: var(--accent-alt);
}

.section-title {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 50px;
    font-weight: 700;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px; /* Longer line */
    height: 4px; /* Thicker line */
    background-color: var(--accent-color);
    border-radius: 2px;
}
.section-title.text-start::after {
    left: 0;
    transform: translateX(0);
}


/*========================
/*======Navbar============
/*==========================*/
.navbar {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    backdrop-filter: blur(8px); /* Frosted glass effect */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) ease-in-out;
    z-index: 1000;
}

.navbar .navbar-brand {
    padding: 0;
    line-height: 1;
}
.navbar .navbar-brand img {
    height: 70px; 
    transition: transform var(--transition-speed) ease-out;
}
.navbar .navbar-brand img:hover {
    transform: scale(1.05) rotate(2deg); 
}

/* Custom Toggler for animation */
.navbar .navbar-toggler {
    border: none;
    outline: none;
    padding: 0;
    position: relative;
    width: 38px;
    height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
}
.navbar .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}
.navbar .navbar-toggler-icon {
    display: block;
    position: relative;
    background-color: var(--primary-color);
    height: 3px;
    width: 100%;
    transition: all var(--transition-speed) ease;
    border-radius: 2px;
}
.navbar .navbar-toggler-icon::before,
.navbar .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary-color);
    height: 3px;
    width: 100%;
    left: 0;
    transition: all var(--transition-speed) ease;
    border-radius: 2px;
}
.navbar .navbar-toggler-icon::before { top: -10px; } 
.navbar .navbar-toggler-icon::after { top: 10px; } 

.navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon { background-color: transparent; }
.navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before { transform: translateY(10px) rotate(45deg); }
.navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after { transform: translateY(-10px) rotate(-45deg); }



.navbar .navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: var(--nav-link-font-size);
    padding: 8px 15px; /* Padding to create pill shape */
    border-radius: 30px; /* Pill shape */
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, background-color 0.3s ease;
}


.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary-color) !important; 
}

.navbar .navbar-nav .nav-link:hover::before,
.navbar .navbar-nav .nav-link.active::before {
    transform: scale(1); 
}

/* Dropdown Styling */
.navbar .navbar-nav .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-medium);
    border-radius: var(--border-radius-soft);
    padding: 10px 0;
    background-color: var(--white);
    margin-top: 15px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.navbar .navbar-nav .dropdown:hover .dropdown-menu,
.navbar .navbar-nav .dropdown-menu.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.navbar .navbar-nav .dropdown-item {
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 22px;
    transition: all 0.2s ease;
    font-size: var(--p-font-size);
}


/* Multi-level Dropdown */
.navbar .navbar-nav .dropend .dropdown-menu {
    margin-top: 0;
    margin-left: 15px;
    border-left: 3px solid var(--accent-color); /* Thicker highlight */
}
.navbar .navbar-nav .dropend:hover > .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.navbar .navbar-nav .dropend .dropdown-toggle::after {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    border: none;
    vertical-align: middle;
    margin-left: .5em;
    transition: transform 0.3s ease;
}
.navbar .navbar-nav .dropend:hover > .dropdown-toggle::after {
    transform: rotate(90deg);
}

/* Call to Action Buttons (Navbar) */
.navbar .nav-action-primary,
.navbar .nav-action-secondary {
    border-radius: 50px; /* More rounded, fully pill-like */
    padding: 10px 28px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-light);
}

.navbar .nav-action-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white) !important;
}
.navbar .nav-action-primary:hover {
    background-color: #3e8e41; /* Darker accent */
    border-color: #3e8e41;
    transform: translateY(-4px); /* More pronounced lift */
    box-shadow: 0 10px 25px rgba(60, 179, 113, 0.4);
}

.navbar .nav-action-secondary {
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    background-color: transparent;
}
.navbar .nav-action-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 128, 0.3);
}



/*========================
/*======Hero Section============
/*==========================*/
.hero-section-half-overlay {
    min-height: 100vh;
    background-color: var(--primary-color); 
    display: flex;
    align-items: center; 
    justify-content: flex-start; 
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Background Carousel Styling */
#heroBackgroundCarouselHalf { /* New ID */
    z-index: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

#heroBackgroundCarouselHalf .carousel-inner {
    height: 100%;
}

#heroBackgroundCarouselHalf .carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
    height: 100%;
}

/* Semi-Transparent Dark Overlay (Lighter, as content block has its own background) */
.hero-overlay-half-dark { 
    background: rgba(0, 0, 0, 0.2); 
    z-index: 1;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Half-Width Content Block */
.hero-content-half-block {
    position: relative;
    z-index: 2; 
    width: 55%; 
    min-height: 100vh; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    background-color: rgba(var(--primary-light-rgb), 0.1); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
    border-right: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.4); 
    padding-left: calc((100vw - 1140px) / 2 + 15px); 
    padding-right: 40px; 
    text-align: left;
}

/* Inner content padding for responsiveness */
.half-block-inner {
    max-width: 600px; 
}

.hero-content-half-block h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1.2;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    color: var(--white); /* Ensure text color is white */
}

.hero-content-half-block .lead-half { /* New class */
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.7;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    color: var(--white); /* Ensure text color is white */
}

/* Subtle Animated Border Accent */
.half-block-accent-line {
    width: 5px; /* Thin line */
    height: 100%;
    background-color: var(--primary-color); /* Accent color */
    position: absolute;
    top: 0;
    right: 0; /* Positioned at the right edge of the content block */
    transform: scaleY(0); /* Start hidden */
    transform-origin: top;
    animation: slideInLine 1.5s ease-out forwards; /* Animation */
    animation-delay: 1.8s; /* After content loads */
}

@keyframes slideInLine {
    to {
        transform: scaleY(1); /* Reveal line */
    }
}


/* Button Styling for half-overlay layout */
.hero-content-half-block .btn {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* New custom button styles for half-overlay */
.custom-btn-half {
    background-color: var(--accent-color);
    color: var(--white);
    border: 1px solid var(--accent-color);
}
.custom-btn-half:hover {
    background-color: var(--accent-alt);
    border-color: var(--accent-alt);
    color: var(--white);
    transform: translateY(-2px);
}
.custom-btn-half-outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--primary-color);
}
.custom-btn-half-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}



/*========================
/*======About Section============
/*==========================*/
.about-section-tabbed-content {
    background-color: var(--secondary-color); /* Light background */
    color: var(--text-dark);
    padding-top: var(--section-padding-lg);
    padding-bottom: var(--section-padding-lg);
}

.about-section-tabbed-content .section-title-tabbed-content {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 20px;
}
.about-section-tabbed-content .section-title-tabbed-content::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.about-section-tabbed-content .lead {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Custom Tab Navigation (Pills style) */
.custom-tabs-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    background-color: transparent;
    border: none;
    border-radius: 50px; /* Pill shape */
    padding: 10px 25px;
    margin: 0 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.custom-tabs-nav .nav-link:hover {
    color: var(--primary-color);
    /* Ensure --primary-color-rgb is defined in your :root for this to work */
    background-color: rgba(var(--primary-color-rgb), 0.05);
}
.custom-tabs-nav .nav-link.active {
    color: var(--white);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    /* Ensure --primary-color-rgb is defined in your :root for this to work */
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.2);
}

/* Custom Tab Content Area */
.custom-tab-content {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    min-height: 450px; /* Ensures consistent height */
    display: flex; /* For fade transition */
    flex-direction: column;
    justify-content: center;
}
.custom-tab-content .tab-pane {
    height: 100%;
    flex-direction: column;
    justify-content: center;
}
.custom-tab-content .tab-pane img {
    max-height: 350px; /* Constrain image height */
    object-fit: cover;
    width: 100%; /* Ensure image fills its column */
}

/* Text & Icon List within Tabs */
.text-primary-tabbed {
    color: var(--primary-color) !important;
}
.text-secondary-tabbed {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-light);
}
.icon-list-tabbed li {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.icon-list-tabbed .text-accent-tabbed {
    color: var(--accent-color) !important;
}


/* Custom Button */
.custom-btn-tabbed {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    /* Ensure --accent-color-rgb is defined in your :root for this to work */
    box-shadow: 0 5px 15px rgba(var(--accent-color-rgb), 0.3);
}
.custom-btn-tabbed:hover {
    background-color: var(--accent-alt);
    border-color: var(--accent-alt);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--accent-color-rgb), 0.4);
}



/*========================
/*======About Section============
/*==========================*/
.bg-light-gray-unique {
    position: relative;
    padding-top: var(--section-padding-md); /* Adjust padding due to wave */
    padding-bottom: var(--section-padding-md);
}
#programs{

    border-top: 20px solid var(--primary-color);
}
.programs-wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--secondary-color);
    clip-path: ellipse(100% 50% at 50% 0%); /* Top ellipse wave */
    transform: translateY(-50%); /* Half of it upwards */
    z-index: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
.programs-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--secondary-color);
    clip-path: ellipse(100% 50% at 50% 100%); /* Bottom ellipse wave */
    transform: translateY(50%);
    z-index: 0;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05);
}

.program-card-unique {
    background-color: var(--white);
    border-radius: var(--border-radius-soft);
    padding: 35px 25px;
    text-align: center;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}
.program-card-unique::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    transform: translateY(100%); /* Starts off-screen at bottom */
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 0;
    border-radius: var(--border-radius-soft);
}
.program-card-unique:hover::before {
    transform: translateY(0); /* Slides up on hover */
}
.program-card-unique:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}
.program-card-unique * {
    position: relative; /* Ensure content is above pseudo-element */
    z-index: 1;
    transition: color 0.3s ease;
}

.program-icon-wrapper {
    background-color: var(--secondary-color); /* Light background for icon */
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}
.program-card-unique:hover .program-icon-wrapper {
    background-color: var(--accent-color);
    transform: scale(1.1); /* Pop effect */
}

.program-icon {
    font-size: 3.2rem;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}
.program-card-unique:hover .program-icon {
    color: var(--white);
}

.program-card-unique .card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--primary-color);
}
.program-card-unique:hover .card-title {
    color: var(--white);
}

.program-card-unique .card-text {
    color: var(--text-light);
    font-size: 0.98rem;
    margin-bottom: 20px;
}
.program-card-unique:hover .card-text {
    color: rgba(255, 255, 255, 0.9);
}

.read-more-link-unique {
    color: var(--accent-color) !important;
    font-weight: 600;
    display: inline-block;
    font-size: 0.95rem;
    position: relative;
}
.program-card-unique:hover .read-more-link-unique {
    color: var(--white) !important; /* Link becomes white on card hover */
}
.read-more-link-unique i {
    transition: transform var(--transition-speed) ease;
}
.read-more-link-unique:hover i {
    transform: translateX(8px);
}


/* --- Call to Action Section (Unique Design) --- */
.cta-section-unique {
    padding: var(--section-padding-md) 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}
.overlay-unique {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 128, 0.85); /* Darker, stronger overlay */
    z-index: 0;
    /* Adding subtle pattern */
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.08' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20V40zm20 0L40 20V0H20v20L0 40h20z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 40px 40px;
}
.cta-section-unique h2 {
    font-size: 3.2rem;
    color: var(--white);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.cta-section-unique p.lead {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-btn-unique-main {
    background-color: var(--accent-alt); /* Lighter accent for higher contrast */
    border: 3px solid var(--accent-alt); /* Thicker border */
    color: var(--white) !important;
    padding: 18px 45px; /* More prominent */
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 10px 25px rgba(60, 179, 113, 0.5);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}
.cta-btn-unique-main::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s ease;
}
.cta-btn-unique-main:hover::before {
    opacity: 1;
    transform: scale(1);
}
.cta-btn-unique-main:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-7px);
    box-shadow: 0 18px 35px rgba(60, 179, 113, 0.6);
}

/* CTA Section Wave Divider */
.cta-section-unique-wave {
    position: absolute;
    bottom: -1px; /* To prevent tiny gap */
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--white);
    clip-path: polygon(0 0, 100% 30%, 100% 100%, 0% 100%); /* Angled bottom cut */
    z-index: 1;
}



/*========================
/*======News Section============
/*==========================*/
.news-card-unique {
    background-color: var(--white);
    border-radius: var(--border-radius-soft);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-light);
}
.news-card-unique:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}
.news-card-unique .news-img-wrapper {
    position: relative;
    overflow: hidden;
}
.news-card-unique img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}
.news-card-unique:hover img {
    transform: scale(1.08);
}
.news-card-unique .news-category-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.news-card-unique .card-body {
    padding: 25px;
}
.news-meta-unique {
    font-size: 0.9rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 10px;
}
.news-meta-unique i {
    color: var(--accent-color);
}
.news-card-unique .card-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}
.news-card-unique .card-text {
    font-size: 0.98rem;
    color: var(--text-light);
    margin-bottom: 18px;
}


/*========================
/*======Gallery Section============
/*==========================*/
.gallery-item-unique {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-soft);
    cursor: pointer;
    box-shadow: var(--shadow-light);
}
.gallery-item-unique img {
    width: 100%;
    height: 280px; /* Taller images for impact */
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}
.gallery-item-unique:hover img {
    transform: scale(1.08);
}
.gallery-overlay-unique {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 128, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    border-radius: var(--border-radius-soft);
}
.gallery-item-unique:hover .gallery-overlay-unique {
    opacity: 1;
}
.gallery-overlay-unique i {
    font-size: 3rem;
    color: var(--white);
    transform: scale(0.6);
    transition: transform var(--transition-speed) ease;
}
.gallery-item-unique:hover .gallery-overlay-unique i {
    transform: scale(1);
}

/* Gallery Modal Override */
.modal-content {
    background-color: transparent !important;
    border: none !important;
}
.modal-body {
    background-color: transparent !important;
}
#modalImage {
    max-height: 90vh; /* Allow larger image in modal */
    object-fit: contain;
}

/* Gallery Section Skew Divider */
.gallery-skew-bottom-left {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 250px;
    height: 100px;
    background-color: var(--primary-color); /* Matches contact section */
    transform: skewY(5deg); /* Angle upwards from left */
    transform-origin: bottom left;
    z-index: 0;
}

/*========================
/*======Partnership Section============
/*==========================*/
.partnerships-section {
    background-color: var(--secondary-color); /* Light background */
    color: var(--text-dark);
    padding-top: var(--section-padding-lg); /* Uses the large padding variable for top */
    padding-bottom: var(--section-padding-lg); /* Uses the large padding variable for bottom */
}

.partnerships-section .section-title-partnerships {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 20px;
}
.partnerships-section .section-title-partnerships::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.partnerships-section .lead {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Partner Card Styling */
.partner-card {
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Distribute space */
    padding: 25px; /* Adjust internal padding */
    height: 100%; /* Ensure cards in a row have same height */
}
.partner-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.partner-card .partner-logo {
    width: 50% !important;
    max-height: 90px; /* Standardize logo height */
    width: auto; /* Maintain aspect ratio */
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}


.partner-card h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.3;
    margin-top: 15px; /* Space between logo and title */
}
.partner-card p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1; /* Allow description to take available space */
    display: flex; /* For vertical centering if text is short */
    align-items: center; /* Vertical center */
    margin-bottom: 15px; /* Space before button */
}

/* Text Colors */
.text-primary-partnerships {
    color: var(--primary-color) !important;
}
.text-secondary-partnerships {
    color: var(--text-light) !important;
}

/* Custom Outline Button for Partners */
.btn-outline-primary-partnerships {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    /* Ensure --primary-color-rgb is defined in your :root for this to work */
    box-shadow: 0 4px 10px rgba(var(--primary-color-rgb), 0.2);
}
.btn-outline-primary-partnerships:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--primary-color-rgb), 0.2);
}

/* Bottom Call to Action */
.partnerships-section .lead-sm {
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.custom-btn-partnerships {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    /* Ensure --accent-color-rgb is defined in your :root for this to work */
    box-shadow: 0 5px 15px rgba(var(--accent-color-rgb), 0.3);
}
.custom-btn-partnerships:hover {
    background-color: var(--accent-alt);
    border-color: var(--accent-alt);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--accent-color-rgb), 0.4);
}




/*========================
/*======Footer Section============
/*==========================*/
.site-footer-unique {
    background-color: var(--dark-blue-bg); /* Deeper, richer dark blue */
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    padding-top: 60px;
    padding-bottom: 30px;
}
.site-footer-unique .footer-title-unique {
    color: var(--white);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
}
.site-footer-unique .footer-title-unique::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px; /* Further down */
    width: 60px; /* Wider */
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}
.site-footer-unique .footer-link-unique {
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 6px 0;
    display: inline-block;
    position: relative;
    overflow: hidden;
}
.site-footer-unique .footer-link-unique::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}
.site-footer-unique .footer-link-unique:hover {
    color: var(--white) !important;
    transform: translateX(5px);
}
.site-footer-unique .footer-link-unique:hover::after {
    transform: scaleX(1);
}

.site-footer-unique .footer-contact-info-unique li {
    margin-bottom: 12px;
}
.site-footer-unique .footer-contact-info-unique li i {
    color: var(--accent-color);
    margin-right: 12px;
}

.social-links-unique .social-icon-footer-unique {
    display: inline-flex;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-speed) ease;
}
.social-links-unique .social-icon-footer-unique:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.text-light-gray-unique {
    color: rgba(255, 255, 255, 0.75);
}

/* WOW.js default visibility handling (important for animations) */
.wow {
    visibility: hidden;
}

/*========================
/*======Responsive Adjustments============
/*==========================*/
@media (max-width: 1200px) {
    /* Hero */
     h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.8rem; }

    .hero-section-unique {
        min-height: 60vh;
    }
    .hero-section-unique h1 {
        font-size: 2.5rem;
    }
    .hero-section-unique p.lead {
        font-size: 1rem;
    }
    .hero-btn-unique-primary, .hero-btn-unique-secondary {
        font-size: 1rem;
        padding: 12px 25px;
    }
    .hero-wave-bottom { display: none; }


    /* About */
    .about-image-wrapper-unique {
        transform: none; /* Remove tilt */
        margin-bottom: 40px;
    }
    .about-experience-badge {
        position: static; /* Stack naturally */
        margin-top: 20px;
        transform: none;
        width: 100%;
        border-radius: var(--border-radius-soft);
        padding: 15px;
        text-align: center;
        box-shadow: var(--shadow-light); /* Lighter shadow */
    }
    .about-skew-top-right { display: none; }

    .about-section-tabbed-content .section-title-tabbed-content {
        font-size: 2.8rem;
    }
    .about-section-tabbed-content .lead {
        font-size: 1.15rem;
    }
    .custom-tabs-nav .nav-link {
        padding: 8px 20px;
        font-size: 0.95rem;
    }
    .custom-tab-content .tab-pane img {
        max-height: 300px;
    }

    /* Program */
    .programs-wave-top, .programs-wave-bottom { display: none; } /* Hide complex waves on mobile */
    .bg-light-gray-unique {
        background-image: none; /* No texture on mobile */
    }

    .cta-section-unique h2 { font-size: 2.5rem; }
    .cta-section-unique p.lead { font-size: 1.1rem; }
    .cta-btn-unique-main {
        font-size: 1.1rem;
        padding: 15px 30px;
        width: 90%;
    }
    .cta-section-unique-wave { display: none; } /* Hide complex wave on mobile */
    .overlay-unique {
        background-image: none; /* No pattern on mobile */
    }

    /* Partnership */
    .partnerships-section .section-title-partnerships {
        font-size: 2.8rem;
    }
    .partnerships-section .lead {
        font-size: 1.15rem;
    }
    .partner-card .partner-logo {
        max-height: 80px;
    }
    .partner-card h4 {
        font-size: 1.35rem;
    }

}
@media (max-width: 992px) {
    .hero-content-half-block {
        padding-left: calc((100vw - 1320px) / 2 + 15px);
    }
    .navbar .navbar-toggler {
        display: flex;
    }
    .navbar {
        padding: 0.7rem 0;
        background-color: var(--white);
        backdrop-filter: none;
    }
    .navbar .navbar-brand img { height: 55px; }

    .navbar .navbar-collapse {
        background-color: var(--white);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding: 15px;
        margin-top: 10px;
        border-radius: var(--border-radius-soft);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        max-height: calc(100vh - 80px);
    }
    .navbar .navbar-nav .nav-item { margin: 8px 0; }
    .navbar .navbar-nav .nav-link {
        padding: 12px 20px;
        text-align: left;
        font-size: 0.95rem;
        border-radius: var(--border-radius-soft); 
    }
    .navbar .navbar-nav .nav-link::before { display: none; } 
    .navbar .navbar-nav .nav-link.active {
        background-color: var(--secondary-color);
        color: var(--primary-color) !important;
    }
    .navbar .navbar-nav .nav-link:hover {
        background-color: var(--secondary-color);
        color: var(--primary-color) !important;
    }
    .navbar .nav-action-v7-primary,
    .navbar .nav-action-v7-secondary {
        display: block;
        width: 100%;
        margin: 10px 0;
        font-size: 0.9rem;
        padding: 12px 20px;
        text-align: center;
    }
    .navbar .navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none;
        border-top: 1px dashed rgba(0,0,0,0.1);
        border-bottom: 1px dashed rgba(0,0,0,0.1);
        border-radius: 0;
        padding: 0;
        margin: 5px 0;
    }
    .navbar .navbar-nav .dropdown-item {
        text-align: left;
        padding: 10px 30px; 
    }
    .navbar .navbar-nav .dropend .dropdown-toggle::after {
        display: inline-block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%) rotate(0deg);
    }


    /* Hero Section */
    .hero-section-half-overlay {
        min-height: 80vh; /* Adjust height */
        text-align: center; /* Center text */
    }
    .hero-content-half-block {
        width: 60%; /* Becomes full-width on smaller screens */
        min-height: auto; /* Allow height to adjust to content */
        padding: 60px 0px; /* Adjust padding */
        border-right: none; /* Remove vertical border */
        box-shadow: 0 5px 30px rgba(0, 0, 0, 0.4); /* General shadow */
        background-color: rgba(var(--primary-light-rgb), 0.2); /* Slightly more opaque for readability */
        border-radius: 15px; /* Add some border radius */
    }
    .hero-content-half-block .half-block-inner {
        max-width: 100%; /* No max-width on inner content */
    }
    .half-block-accent-line {
        display: none; /* Hide accent line on mobile */
    }
    .hero-content-half-block h1 {
        font-size: 2.5rem;
    }
    .hero-content-half-block .lead-half {
        font-size: 1.15rem;
    }
    .hero-content-half-block .d-flex {
        flex-direction: column !important;
    }
    .hero-content-half-block .btn.me-md-3.mb-3.mb-md-0 {
        margin-right: 0 !important;
        margin-bottom: 15px !important;
    }

    /* About */
    .about-section-tabbed-content {
        padding-top: var(--section-padding-md);
        padding-bottom: var(--section-padding-md);
    }
    .about-section-tabbed-content .section-title-tabbed-content {
        font-size: 2.5rem;
    }
    .about-section-tabbed-content .lead {
        font-size: 1.05rem;
    }
    .custom-tabs-nav {
        flex-wrap: wrap; /* Allow tabs to wrap */
        margin-bottom: 30px !important;
    }
    .custom-tabs-nav .nav-item {
        margin-bottom: 10px; /* Space between wrapped tabs */
    }
    .custom-tab-content {
        min-height: unset; /* Remove fixed height on mobile */
        padding: 20px !important;
    }
    .custom-tab-content .tab-pane {
        padding: 0 !important;
        text-align: center;
    }
    .custom-tab-content .tab-pane img {
        margin-bottom: 20px;
        max-height: 250px;
    }
    .custom-tab-content .tab-pane .col-md-6 {
        order: unset !important; /* Reset order for stacking */
    }
    .custom-btn-tabbed {
        width: 100%;
        max-width: 300px;
    }

    /* Partnership */
    .partnerships-section {
        padding-top: var(--section-padding-md); 
        padding-bottom: var(--section-padding-md); 
    }
    .partnerships-section .section-title-partnerships {
        font-size: 2.5rem;
    }
    .partnerships-section .lead {
        font-size: 1.05rem;
    }
    .partner-card {
        padding: 20px;
    }
    .partner-card .partner-logo {
        max-height: 70px;
    }
    .partner-card h4 {
        font-size: 1.25rem;
    }
    .partner-card p {
        font-size: 0.9rem;
    }
    .custom-btn-partnerships {
        width: 100%;
        max-width: 300px;
    }

    
    /* news */
    .news-card-unique img { height: 200px; }
    .gallery-item-unique img { height: 220px; }
    .gallery-skew-bottom-left { display: none; }

    /* footer */
    .contact-form-unique, .contact-info-unique {
        margin-bottom: 30px;
        padding: 30px;
    }
    .contact-details-unique li, .social-links-unique .social-icon-unique {
        font-size: 1rem;
    }
    .social-links-unique .social-icon-unique {
        width: 40px; height: 40px; font-size: 1.1rem; margin-right: 8px;
    }

    .site-footer-unique { padding-top: 40px; }
    .site-footer-unique .footer-title-unique {
        text-align: center;
    }
    .site-footer-unique .footer-title-unique::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .site-footer-unique ul {
        text-align: center;
    }
    .site-footer-unique .social-links-unique {
        text-align: center;
    }
}


@media (max-width: 768px) {
    .hero-section-half-overlay {
        min-height: 70vh;
    }
    .hero-content-half-block {
        padding: 40px 25px;
    }
    .hero-content-half-block h1 {
        font-size: 2.5rem;
    }
    .hero-content-half-block .lead-half {
        font-size: 1rem;
    }
    .hero-content-half-block .btn {
        padding: 12px 28px;
        font-size: 1rem;
    }

    /* About */
    .about-section-tabbed-content {
        padding-top: var(--section-padding-sm);
        padding-bottom: var(--section-padding-sm);
    }
    .about-section-tabbed-content .section-title-tabbed-content {
        font-size: 2.2rem;
    }
    .about-section-tabbed-content .lead {
        font-size: 0.95rem;
    }
    .custom-tabs-nav .nav-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    .custom-tab-content .tab-pane img {
        max-height: 200px;
    }
    .custom-btn-tabbed {
        padding: 12px 28px;
        font-size: 1rem;
    }

    /* Program Section */
    .cta-section-unique h2 { font-size: 2.5rem; }
    .cta-section-unique p.lead { font-size: 1.1rem; }
    .cta-btn-unique-main {
        padding: 15px 30px;
        font-size: 1.1rem;
        width: 90%;
    }
    .cta-section-unique-wave {
        height: 60px;
        clip-path: polygon(0 0, 100% 20%, 100% 100%, 0% 100%);
    }

    /* Partnership */
    .partnerships-section {
        padding-top: var(--section-padding-sm); /* Adjusts padding for small screens */
        padding-bottom: var(--section-padding-sm); /* Adjusts padding for small screens */
    }
    .partnerships-section .section-title-partnerships {
        font-size: 2.2rem;
    }
    .partnerships-section .lead {
        font-size: 0.95rem;
    }
    .partner-card {
        margin-bottom: 20px; /* Add space when stacked */
    }
    .partner-card .partner-logo {
        max-height: 60px;
    }
    .partner-card h4 {
        font-size: 1.1rem;
    }
    .partner-card p {
        font-size: 0.85rem;
    }
    .btn-outline-primary-partnerships {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
    .custom-btn-partnerships {
        padding: 12px 28px;
        font-size: 1rem;
    }
}


@media (max-width: 576px) {

    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }

    .hero-section-unique h1 { font-size: 2rem; }
    .hero-section-unique p.lead { font-size: 0.95rem; }

    .hero-content-half-block {
        width: 95%;
        padding: 30px 20px;
    }
    .hero-content-half-block h1 {
        font-size: 2rem;
    }
    .hero-content-half-block .lead-half {
        font-size: 0.9rem;
    }


    /* About */
    .about-section-tabbed-content .section-title-tabbed-content {
        font-size: 1.8rem;
    }
    .custom-tabs-nav .nav-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    /* Partnership */
    .partnerships-section .section-title-partnerships {
        font-size: 1.8rem;
    }
    .partner-card .partner-logo {
        max-height: 50px;
    }

    .program-card-unique, .news-card-unique, .gallery-item-unique {
        padding: 25px;
    }

    .news-card-unique img { height: 160px; }
    .gallery-item-unique img { height: 180px; }

    .contact-form-unique, .contact-info-unique {
        padding: 25px;
    }
}