:root {
    --primary: #1a3e6f;
    --secondary: #d32f2f;
    --accent: #f9a825;
    --white: #ffffff;
    --dark: #2c3e50;
    --light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #444;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

/* Layout Sections */
.section {
    padding: 80px 0;
}

.page-header {
    background: #15488c;
    color: white;
    padding: 120px 0 50px;
    text-align: center;
    margin-top: -80px;
}

.page-header h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
    margin-top: 17px;
    
}

.section-title {
    position: relative;
    margin-bottom: 60px;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Header */
.header-top {
    background: var(--primary);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.header-top a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-top a:hover {
    color: var(--accent);
}

.header-main {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand img {
    height: 60px;
    transition: all 0.3s ease;
}

/* Navigation */
.desktop-menu .nav-link {
    font-weight: 600;
    color: var(--primary) !important;
    margin: 0 3px;
    padding: 12px 18px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.desktop-menu .nav-link:hover, 
.desktop-menu .nav-link.active {
    color: var(--accent) !important;
}

.desktop-menu .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.desktop-menu .nav-link:hover:after, 
.desktop-menu .nav-link.active:after {
    width: calc(100% - 36px);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 15px 0;
    margin-top: 15px;
    border-left: 4px solid var(--accent);
    min-width: 280px;
}

.dropdown-item {
    padding: 12px 25px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(26, 62, 111, 0.05) 0%, rgba(211, 47, 47, 0.05) 100%);
    color: var(--secondary);
    padding-left: 30px;
    transform: translateX(5px);
}

.dropdown-toggle:after {
    border: none;
    font-family: "Font Awesome 6 Free";
    content: "\f107";
    font-weight: 900;
    margin-left: 8px;
    transition: transform 0.3s ease;
    vertical-align: 0;
}

.dropdown-toggle.show:after {
    transform: rotate(180deg);
}

/* Offcanvas */
.offcanvas {
    background: var(--primary);
    color: white;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
}

.btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

.offcanvas-body {
    padding: 0;
}

.offcanvas-menu .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    transition: all 0.3s ease;
}

.offcanvas-menu .nav-link:hover,
.offcanvas-menu .nav-link.active {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 30px;
}

.offcanvas-dropdown {
    background: rgba(255, 255, 255, 0.05);
}

.offcanvas-dropdown .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 25px 12px 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.offcanvas-dropdown .dropdown-item:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Toggle */
.navbar-toggler {
    border: none;
    padding: 8px 12px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Carousel */
.hero-carousel {
    margin-top: -80px;
}

.carousel-item {
    height: 80vh;
    min-height: 700px;
    position: relative;
    overflow: hidden;
}

.carousel-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    max-width: 100%;
    height: auto;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 62, 111, 0.8), rgba(26, 62, 111, 0.5));
    z-index: 1;
}

.carousel-caption {
    bottom: 30%;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

.carousel-caption h1 {
    font-size: 27px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 15px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--secondary);
    opacity: 1;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    border: 2px solid white;
    background: transparent;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.2);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 200px;
    width: 100%;
}

.contact-card,
.cta-card {
    background: white;
    border-radius: 12px;
    padding: 30px 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    color: #1a3e6f;
}

.contact-card:hover,
.cta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Icons */
.service-icon,
.cta-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
}

/* Special Sections */
.president-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.president-img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;

}

blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    font-style: italic;
    color: #262222;
}

.gallery-section {
    background: var(--light);
}

.cta-section {
    background: linear-gradient(rgba(26, 62, 111, 0.9), rgba(26, 62, 111, 0.9)), url('https://images.unsplash.com/photo-1532629345422-7515f3d16bb6?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 27px;
}

/* Gallery */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 62, 111, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 0 10px;
}

/* Partners */
.partner-logo {
    height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    max-width: 100%;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #b71c1c;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 62, 111, 0.2);
}

/* Form Styles */
.contact-form {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 62, 111, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Map */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Social */
.social-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.social-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.social-btn:hover:before {
    transform: translateY(0);
}

.whatsapp { background: #25D366; }
.facebook { background: #3b5998; }
.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.social-tooltip {
    position: absolute;
    right: 70px;
    background: var(--dark);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.social-tooltip:after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-left: 5px solid var(--dark);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.social-btn:hover .social-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(248, 245, 245, 0.87);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background: #1a3e6f;
    color: white;
    padding: 60px 0 20px;
}

footer h5 {
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Breadcrumb */
.page-header .breadcrumb {
    background: transparent;
    justify-content: center;
    margin-bottom: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: var(--accent);
}

/* Contact Info */
.contact-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.contact-info {
    color: #666;
    margin-bottom: 20px;
}

.contact-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 991px) {
    .desktop-menu,
    .header-top {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .mobile-toggle {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .section,
    .cta-section {
        padding: 60px 0;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 1.2rem;
    }
    
    .carousel-item {
        height: 60vh;
        min-height: 400px;
    }
    
    .carousel-image {
        width: 100%;
        height: auto;
        min-height: 100%;
    }
    
    .carousel-caption {
        bottom: 20%;
        text-align: center;
        padding: 0 15px;
    }
    
    .carousel-caption h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .carousel-caption .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        margin: 0 5px;
    }
    
    .cta-section h2 {
        font-size: 22px;
    }
    
    footer {
        padding: 40px 0 20px;
    }
    
    .social-floating {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    
    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 50vh;
        min-height: 350px;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .carousel-caption {
        bottom: 15%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/************il faux ajoputer ca de base************/
        
        /* Section Styles */
        .section {
            padding: 80px 0;
        }
        
        @media (max-width: 768px) {
            .section {
                padding: 60px 0;
            }
        }
        
        .section-title {
            position: relative;
            margin-bottom: 60px;
            text-align: center;
        }
        
        .section-title:after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--accent);
        }
        
        /* Action Cards */
        .action-card {
            background: white;
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease;
            height: 100%;
        }
        
        .action-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }
        
        .action-icon {
            width: 70px;
            height: 70px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            font-size: 1.8rem;
        }
        
        .action-title {
            font-size: 1.3rem;
            margin-bottom: 15px;
            color: var(--primary);
        }
        
        /* Historical Images */
        .historical-img {
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
            transition: transform 0.3s ease;
        }
        
        .historical-img:hover {
            transform: scale(1.02);
        }
        
        .historical-img img {
            width: 100%;
            height: 300px;
            object-fit: cover;
        }
        
        .img-caption {
            padding: 15px;
            background: white;
            font-style: italic;
            color: #666;
            text-align: center;
        }

        