:root {
    --purple: #6B46C1;
    --dark-blue: #1E3A8A;
    --white: #FFFFFF;
    --light-blue: #93C5FD;
    --light-gray: #f8f9fa;
    --header-bg: #2C3E50;
    --nav-bg: #34495E;
    --accent-color: #E74C3C;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Background Colors */
.bg-purple {
    background-color: var(--purple) !important;
}

.bg-dark-blue {
    background-color: var(--dark-blue) !important;
}

.bg-light-blue {
    background-color: var(--light-blue) !important;
}

/* Text Colors */
.text-purple {
    color: var(--purple) !important;
}

.text-dark-blue {
    color: var(--dark-blue) !important;
}

.text-light-blue {
    color: var(--light-blue) !important;
}

/* Button Styles */
.btn-purple {
    background-color: var(--purple);
    border-color: var(--purple);
    color: var(--white);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-purple:hover {
    background-color: #5A3A9B;
    border-color: #5A3A9B;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(107, 70, 193, 0.3);
}

.btn-dark-blue {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    color: var(--white);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-dark-blue:hover {
    background-color: #172B5E;
    border-color: #172B5E;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.3);
}

.btn-outline-purple {
    border-color: var(--purple);
    color: var(--purple);
    background-color: transparent;
}

.btn-outline-purple:hover {
    background-color: var(--purple);
    border-color: var(--purple);
    color: var(--white);
}

/* Navigation */
.navbar-custom {
    background-color: var(--nav-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Reduced space between nav and slideshow */
nav {
    margin-bottom: 0;
}

/* Reduced space between slideshow and welcome section */
.carousel {
    margin-bottom: 0;
}

section:nth-of-type(2) {
    padding-top: 0.5rem;
    margin-top: 0;
}

/* Welcome section spacing */
section.py-5:not(:first-of-type) {
    padding-top: 0.5rem !important;
    padding-bottom: 2rem !important;
}

section:first-of-type {
    padding-top: 0;
    margin-top: 0;
}

.carousel-inner {
    margin: 0;
}

.navbar-custom .navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 8px 15px !important;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.navbar-custom .navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-custom .navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
    background-color: rgba(231, 76, 60, 0.2);
}

.navbar-custom .navbar-brand {
    color: var(--white) !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-custom .navbar-toggler {
    border-color: var(--white);
    padding: 4px 8px;
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Sticky Header */
.sticky-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: var(--header-bg) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
}

/* Add space for sticky header */
body {
    padding-top: 0;
}

body.sticky-header-active {
    padding-top: 120px;
}

/* Sticky Navigation */
.sticky-nav {
    position: fixed !important;
    top: 120px;
    left: 0;
    right: 0;
    z-index: 1020;
    width: 100%;
}

/* Adjust navigation to stick below header */
.sticky-nav.sticking {
    position: fixed !important;
    top: 120px;
    z-index: 1020;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background-color: var(--nav-bg);
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dropdown-item {
    color: var(--white);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar-custom .navbar-nav .nav-link {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-custom .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu {
        border: none;
        background-color: rgba(52, 73, 94, 0.95);
    }
    
    .dropdown-item {
        color: white;
        padding: 10px 20px;
    }
    
    .dropdown-item:hover {
        background-color: var(--accent-color);
        color: white;
    }
}

/* Header */
header {
    background-color: var(--header-bg) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Navigation */
.navbar-custom {
    background-color: var(--nav-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--accent-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--purple) 100%);
    color: var(--white);
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-section h2 {
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Cards */
.program-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.program-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.program-card .card-body {
    padding: 1.5rem;
}

/* Gallery */
.gallery-item {
    border: 3px solid var(--purple);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Gallery Section Spacing */
section.mt-2 {
    margin-top: 2rem;
    padding-top: 1rem;
}

/* Gallery Cards - Home Page */
.gallery-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0; /* Override default margin since we're using Bootstrap gutters */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    transition: transform 0.3s ease;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.gallery-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.gallery-card .card-text {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3; /* Standard property for better compatibility */
    -webkit-box-orient: vertical;
    box-orient: vertical; /* Standard property */
}

/* Gallery Page Specific Styles */
.gallery-page .gallery-card {
    margin-bottom: 0;
}

/* Ensure proper spacing in gallery rows */
.row.g-3 .col-md-3,
.row.g-3 .col-sm-6,
.row.g-3 .col-md-4,
.row.g-3 .col-lg-4 {
    padding: 0.75rem; /* Bootstrap g-3 = 1.5rem gutters, half on each side */
}

/* Home Page Gallery (2 columns on tablet, 4 on desktop) */
@media (max-width: 768px) {
    .row.g-3 .col-sm-6 {
        padding: 0.5rem; /* Smaller gutters on tablets */
    }
    
    .gallery-card .card-title {
        font-size: 0.85rem;
    }
    
    .gallery-card .card-text {
        font-size: 0.75rem;
        -webkit-line-clamp: 2; /* Fewer lines on smaller screens */
        line-clamp: 2; /* Standard property */
    }
}

@media (max-width: 576px) {
    .row.g-3 .col-sm-6 {
        padding: 0.5rem; /* Consistent gutters on mobile */
    }
    
    .gallery-card .card-title {
        font-size: 0.8rem;
    }
    
    .gallery-card .card-text {
        font-size: 0.7rem;
        -webkit-line-clamp: 2; /* Fewer lines on mobile */
        line-clamp: 2; /* Standard property */
    }
    
    .gallery-image {
        height: 150px;
    }
    
    section.mt-2 {
        margin-top: 1.5rem;
    }
}

/* Gallery Page Responsive (2 columns on tablet, 3 on desktop) */
@media (min-width: 768px) and (max-width: 991px) {
    .gallery-page .row.g-3 .col-md-6 {
        padding: 0.5rem; /* Smaller gutters on tablets */
    }
    
    .gallery-page .gallery-card .card-text {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

@media (min-width: 992px) {
    .gallery-page .row.g-3 .col-lg-4 {
        padding: 0.75rem; /* Standard gutters on desktop */
    }
    
    .gallery-page .gallery-card .card-text {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}

/* Footer */
.footer-custom {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-custom a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-custom a:hover {
    color: var(--white);
}

.footer-custom .social-icon {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-custom .social-icon:hover {
    color: var(--light-blue);
    transform: translateY(-3px);
}

.footer-custom .social-link {
    color: var(--white) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 4px 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-custom .social-link:hover {
    color: var(--light-blue) !important;
    transform: translateX(5px);
}

.footer-custom .social-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Social Icons - keep for header */
.social-icon {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--light-blue);
    transform: translateY(-3px);
}

/* Forms */
.form-control:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 0.2rem rgba(107, 70, 193, 0.25);
}

.form-select:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 0.2rem rgba(107, 70, 193, 0.25);
}

/* Alerts */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Responsive logo sizing */
header img {
    max-height: 60px;
}

@media (max-width: 768px) {
    header img {
        max-height: 45px;
    }
}

@media (max-width: 576px) {
    header img {
        max-height: 35px;
        margin-right: 0.5rem !important;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        min-height: 350px;
        padding: 3rem 0;
    }
    
    .hero-section h2 {
        font-size: 2.5rem;
    }
    
    .program-card {
        margin-bottom: 2rem;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 300px;
        padding: 2rem 0;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .program-card {
        margin-bottom: 1.5rem;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    .footer-custom {
        padding: 2rem 0 1rem;
    }
    
    .sidebar {
        min-height: auto;
    }
    
    .container {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 250px;
        padding: 1.5rem 0;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .program-card .card-body {
        padding: 1rem;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .social-icon {
        font-size: 1.2rem;
        margin: 0 0.3rem;
    }
    
    .container {
        padding: 0 5px;
    }
    
    header .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    header .social-icon {
        font-size: 1.3rem;
    }
}

/* Remove horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Full screen fluid content for specific pages */
.container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 2%;
    box-sizing: border-box;
}

/* Specific page containers - full width */
section .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 2%;
    box-sizing: border-box;
}

/* Full width content containers */
.container-fluid .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 2%;
    box-sizing: border-box;
}

/* Main container full width */
.container-fluid {
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Section spans to cover full screen */
section {
    width: 100%;
    max-width: 100%;
    padding-left: 2%;
    padding-right: 2%;
    box-sizing: border-box;
}

/* Content spans */
section .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 2%;
    box-sizing: border-box;
}

/* Header and Navigation full width */
header, nav {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Reduced gaps between rows */
.row {
    margin-left: -4px;
    margin-right: -4px;
    width: calc(100% + 8px);
    box-sizing: border-box;
}

/* Column spans with reduced gaps */
.col-12, .col-md-6, .col-md-4, .col-md-3, .col-lg-8, .col-lg-4 {
    padding: 0 0px;
    min-width: 0;
}

/* Section spacing reduced */
section {
    padding: 2rem 0;
}

section.py-5 {
    padding: 2rem 0 !important;
}

/* Carousel specific spacing */
.carousel-item .row {
    margin-left: 0;
    margin-right: 0;
}

.carousel-item .col-md-6 {
    padding: 0;
}

/* Program cards reduced spacing */
.program-card, .gallery-item {
    margin-bottom: 1rem;
}

/* Welcome section spacing */
section .container .row {
    margin-bottom: 0;
}

/* Footer spacing */
footer .row {
    margin-bottom: 0;
}

/* Responsive adjustments - maintain full width, prevent horizontal scroll */
@media (max-width: 768px) {
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 3%;
        box-sizing: border-box;
    }
    
    section {
        padding-left: 3%;
        padding-right: 3%;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    section .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 3%;
        box-sizing: border-box;
    }
    
    .row {
        margin-left: -2px;
        margin-right: -2px;
        width: calc(100% + 4px);
        box-sizing: border-box;
    }
    
    .col-12, .col-md-6, .col-md-4, .col-md-3, .col-lg-8, .col-lg-4 {
        padding: 0 2px;
        box-sizing: border-box;
    }
    
    section.py-5 {
        padding: 1.5rem 0 !important;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 4%;
        box-sizing: border-box;
    }
    
    section {
        padding-left: 4%;
        padding-right: 4%;
        padding-top: 1rem;
        padding-bottom: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    section .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 4%;
        box-sizing: border-box;
    }
    
    .row {
        margin-left: -1px;
        margin-right: -1px;
        width: calc(100% + 2px);
        box-sizing: border-box;
    }
    
    .col-12, .col-md-6, .col-md-4, .col-md-3, .col-lg-8, .col-lg-4 {
        padding: 0 1px;
        box-sizing: border-box;
    }
    
    section.py-5 {
        padding: 1rem 0 !important;
    }
}

/* Make images responsive */
img {
    max-width: 100%;
    height: auto;
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .card-img-top {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .card-img-top {
        height: 120px;
    }
}

/* Horizontal Carousel Styles */
.carousel-item {
    /*height: 400px;*/
    height: auto;
}

.carousel-item .row {
    height: 100%;
}

/* Left side - Hero section */
.carousel-item .col-md-6:first-child {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--purple) 100%);
}

/* Right side - Light background */
.carousel-item .col-md-6:last-child {
    background-color: var(--light-gray);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-item {
        height: auto;
        min-height: 500px;
    }
    
    .carousel-item .row {
        flex-direction: column;
    }
    
    .carousel-item .col-md-6 {
        min-height: 250px;
    }
    
    .carousel-item .col-md-6:first-child {
        order: 1;
    }
    
    .carousel-item .col-md-6:last-child {
        order: 2;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        min-height: 600px;
    }
    
    .carousel-item .col-md-6 {
        min-height: 300px;
    }
    
    .carousel-item h3 {
        font-size: 1.5rem;
    }
    
    .carousel-item h4 {
        font-size: 1.3rem;
    }
    
    .carousel-item p {
        font-size: 0.9rem;
    }
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 8px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.2);
}

.carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Small screen only - hide carousel indicators */
@media (max-width: 576px) {
    .carousel-indicators {
        display: none !important;
    }
    
    .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 3px;
        border: 1px solid rgba(255, 255, 255, 0.9);
    }
    
    .carousel-indicators button.active {
        background-color: var(--accent-color);
        border-color: var(--accent-color);
    }
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Slideshow Hero Image Responsive Fixes */
.hero-slide {
    width: 100%;
    min-height: 500px;
    display: flex !important;
    align-items: center;
    position: relative;
}

.hero-image-container {
    width: 100%;
    height: 500px;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
    /* Ensure image loads in all browsers */
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    background-size: cover !important;
}

/* Content container positioning */
.hero-content-container {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    overflow: hidden;
    background: rgba(0, 51, 102, 0.4);
}

/* Additional fixes for cross-browser compatibility */
.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: -1;
}

/* Responsive adjustments for slideshow */
@media (max-width: 992px) {
    .hero-slide {
        min-height: 450px;
    }
    
    .hero-image-container {
        height: 450px;
    }
    
    .carousel-indicators {
        opacity: 0.7;
        bottom: 15px;
    }
}

@media (max-width: 768px) {
    .carousel-indicators {
        display: none !important;
    }
    
    .hero-slide {
        min-height: 400px;
        flex-direction: column !important;
    }
    
    .hero-image-container {
        height: 400px;
        width: 100%;
        position: relative !important;
    }
    
    .hero-content-container {
        position: relative !important;
        width: 100%;
        height: auto;
        min-height: 200px;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
    }
    
    .carousel-item {
        height: auto !important;
        min-height: 600px !important;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .carousel-icon i {
        font-size: 3rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .carousel-indicators {
        display: none !important;
    }
    
    .hero-slide {
        min-height: 300px;
        flex-direction: column !important;
    }
    
    .hero-image-container {
        height: 300px;
        width: 100%;
        position: relative !important;
    }
    
    .hero-content-container {
        position: relative !important;
        width: 100%;
        height: auto;
        min-height: 150px;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
    }
    
    .carousel-item {
        height: auto !important;
        min-height: 450px !important;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .carousel-icon i {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .me-3 {
        margin-right: 1rem !important;
    }
}

/* Animation Classes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__fadeInDown {
    animation: fadeInDown 1s ease-out;
}

.animate__fadeInUp {
    animation: fadeInUp 1s ease-out;
}

.animate__delay-1s {
    animation-delay: 0.5s;
}

/* Section spacing */
section {
    padding: 2rem 0;
}

section.py-5 {
    padding: 2rem 0 !important;
}

/* Card improvements */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Admin Sidebar */
.sidebar {
    min-height: 100vh;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    font-weight: 500;
    color: var(--light-blue);
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.sidebar .nav-link.active {
    background-color: var(--purple);
    color: var(--white);
}

/* Dashboard Cards */
.border-left-purple {
    border-left: 4px solid var(--purple) !important;
}

.border-left-dark-blue {
    border-left: 4px solid var(--dark-blue) !important;
}

.border-left-success {
    border-left: 4px solid #28a745 !important;
}

.border-left-info {
    border-left: 4px solid #17a2b8 !important;
}

/* Success Messages */
.alert-dismissible .btn-close {
    padding: 0.75rem 1.25rem;
}

/* Form validation */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* Additional fluid design improvements */
@media (max-width: 1200px) {
    .navbar-custom .navbar-nav .nav-link {
        padding: 6px 12px !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .navbar-custom .navbar-nav .nav-link {
        padding: 8px 10px !important;
        font-size: 0.85rem;
    }
    
    .footer-custom .col-md-4 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-custom .navbar-nav .nav-link {
        padding: 10px 15px !important;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-custom .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu {
        border: none;
        background-color: rgba(30, 58, 138, 0.9);
    }
    
    .dropdown-item {
        color: white;
        padding: 10px 20px;
    }
    
    .dropdown-item:hover {
        background-color: var(--purple);
        color: white;
    }
    
    .footer-custom .row.py-4 {
        padding: 2rem 0 !important;
    }
    
    .footer-custom h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-custom p, .footer-custom li {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-custom .navbar-toggler {
        padding: 2px 6px;
    }
    
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-section .btn {
        margin-bottom: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
}

/* Ensure proper spacing on all devices */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

@media (max-width: 768px) {
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (max-width: 576px) {
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Better text scaling */
@media (max-width: 768px) {
    .lead {
        font-size: 1rem;
    }
    
    h1, h2, h3, h4, h5, h6 {
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 576px) {
    .lead {
        font-size: 0.95rem;
    }
    
    h1, h2, h3, h4, h5, h6 {
        margin-bottom: 0.6rem;
    }
}
