/* Unicare Charity Website Styles */

:root {
    --primary-color: #D4AF37;
    --secondary-color: #1B4D7A;
    --accent-color: #0A2647;
    --dark-bg: #0D1B2A;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #D4AF37;
    --info-color: #17a2b8;
    --text-color: #1B2838;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --gold-light: #E8D48B;
    --navy-light: #2E5D8C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Top Bar */
.top-bar {
    background: var(--dark-bg);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-left i,
.top-bar-right i {
    margin-right: 5px;
}

.top-bar-right {
    text-align: right;
}

.top-bar-right a {
    color: white;
    margin-left: 15px;
    transition: opacity 0.3s;
}

.top-bar-right a:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* Language Switcher - Modern Design */
.nav-language-switcher {
    margin-left: 25px;
    padding-left: 25px;
    position: relative;
}

/* Beautiful Divider Between Donate and Language Switcher - Gold & Navy Theme */
.nav-language-switcher::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 35px;
    background: linear-gradient(to bottom,
        transparent 0%,
        #e9ecef 20%,
        #D4AF37 50%,
        #e9ecef 80%,
        transparent 100%);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

/* Decorative dots - Gold & Navy Theme */
.nav-language-switcher::after {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #D4AF37;
    border-radius: 50%;
    box-shadow:
        0 -12px 0 -2px #1B4D7A,
        0 12px 0 -2px #1B4D7A,
        0 0 10px rgba(212, 175, 55, 0.5);
    animation: dotsPulse 2s ease-in-out infinite;
}

@keyframes dotsPulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1.1);
    }
}

.language-switcher {
    display: inline-block;
    position: relative;
}

/* Language Switcher Button - Gold & Navy Color Scheme */
.language-switcher-btn {
    background: linear-gradient(135deg, #1B4D7A 0%, #0A2647 100%);
    border: 2px solid #D4AF37;
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(27, 77, 122, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-switcher-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #D4AF37 0%, #B8960B 100%);
    border-color: #1B4D7A;
}

.language-switcher-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.language-switcher-btn .fa-globe {
    font-size: 16px;
    animation: rotateGlobe 10s linear infinite;
}

@keyframes rotateGlobe {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.language-switcher-btn .lang-flag {
    font-size: 18px;
}

.language-switcher-btn .lang-code {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.language-switcher-btn::after {
    content: '';
    border: none;
    margin-left: 4px;
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid white;
    transition: transform 0.3s;
}

.language-switcher-btn[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Language Dropdown Menu */
.language-dropdown {
    min-width: 280px;
    padding: 0;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    overflow: hidden;
    animation: dropdownFadeIn 0.3s ease;
}

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

/* Dropdown Header - Gold & Navy Theme */
.language-dropdown .dropdown-header {
    background: linear-gradient(135deg, #0A2647 0%, #1B4D7A 100%);
    color: #D4AF37;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.language-dropdown .dropdown-header i {
    margin-right: 8px;
    font-size: 16px;
}

.language-dropdown .dropdown-divider {
    margin: 0;
    border-top: 1px solid #e9ecef;
}

/* Language Option Items - Gold & Navy Theme */
.lang-option {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.lang-option:hover {
    background: linear-gradient(90deg, rgba(27, 77, 122, 0.08) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-left-color: #D4AF37;
}

.lang-option.active {
    background: linear-gradient(90deg, rgba(27, 77, 122, 0.12) 0%, rgba(212, 175, 55, 0.08) 100%);
    border-left-color: #D4AF37;
}

/* Flag Icon */
.lang-flag-large {
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Language Details */
.lang-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lang-native {
    font-size: 15px;
    font-weight: 600;
    color: #2C3E50;
}

.lang-english {
    font-size: 12px;
    color: #6c757d;
    font-weight: 400;
}

/* Check Icon - Gold & Navy Theme */
.lang-check {
    color: #D4AF37;
    font-size: 16px;
    font-weight: bold;
}

.lang-check i {
    animation: checkPulse 0.5s ease;
}

@keyframes checkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Responsive Design */
@media (max-width: 991px) {
    .nav-language-switcher {
        margin: 20px 0 15px 0;
        padding: 20px 0 0 0;
        position: relative;
    }

    /* Beautiful horizontal divider for mobile - Gold & Navy Theme */
    .nav-language-switcher::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        width: 80%;
        height: 1px;
        background: linear-gradient(to right,
            transparent 0%,
            #e9ecef 20%,
            #D4AF37 50%,
            #e9ecef 80%,
            transparent 100%);
        box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
    }

    /* Decorative dots for mobile (horizontal) - Gold & Navy Theme */
    .nav-language-switcher::after {
        content: '';
        position: absolute;
        left: 50%;
        top: -2px;
        transform: translateX(-50%);
        width: 5px;
        height: 5px;
        background: #D4AF37;
        border-radius: 50%;
        box-shadow:
            -12px 0 0 -2px #1B4D7A,
            12px 0 0 -2px #1B4D7A,
            0 0 10px rgba(212, 175, 55, 0.5);
        animation: dotsPulseMobile 2s ease-in-out infinite;
    }

    @keyframes dotsPulseMobile {
        0%, 100% {
            opacity: 1;
            transform: translateX(-50%) scale(1);
        }
        50% {
            opacity: 0.6;
            transform: translateX(-50%) scale(1.1);
        }
    }

    .language-switcher-btn {
        width: 100%;
        justify-content: center;
    }

    .language-dropdown {
        width: 100%;
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    padding: 15px 0;
}

.navbar-nav {
    flex-wrap: nowrap;
}

.navbar-nav .nav-item {
    white-space: nowrap;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand .brand-logo {
    height: 50px;
    width: auto;
    border-radius: 50%;
    object-fit: contain;
}

.navbar-brand span {
    white-space: nowrap;
}

.nav-link {
    font-weight: 500;
    padding: 10px 15px !important;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--primary-color) !important;
}

.btn-donate {
    background: linear-gradient(135deg, #D4AF37 0%, #B8960B 100%);
    border: none;
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 25px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(27, 77, 122, 0.4);
    background: linear-gradient(135deg, #1B4D7A 0%, #0A2647 100%);
}

/* Hero Slider */
.hero-slider {
    position: relative;
}

.hero-slide {
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* Hero Slider Navigation */
.hero-slider .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.hero-slider .owl-nav button {
    pointer-events: auto;
    background: rgba(27, 77, 122, 0.9) !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid #D4AF37;
}

.hero-slider .owl-nav button:hover {
    background: #D4AF37 !important;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
    border-color: #D4AF37;
}

.hero-slider .owl-nav button i {
    color: white;
    font-size: 20px;
}

.hero-slider .owl-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-slider .owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    transition: all 0.3s ease;
}

.hero-slider .owl-dots .owl-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 10px;
}

.hero-slider .owl-dots .owl-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.section-title p {
    font-size: 18px;
    color: #666;
}

/* Cause Cards */
.cause-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cause-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.cause-image {
    height: 250px;
    overflow: hidden;
}

.cause-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.cause-card:hover .cause-image img {
    transform: scale(1.1);
}

.cause-content {
    padding: 25px;
}

.cause-content h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.cause-content p {
    color: #666;
    margin-bottom: 20px;
}

.cause-progress {
    margin-bottom: 20px;
}

.progress {
    height: 10px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: var(--primary-color);
    height: 100%;
    transition: width 0.3s;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
}

/* Purpose Section (Mission & Vision) - Orange Theme */
.purpose-section {
    position: relative;
    background: #f8f9fa;
    padding: 80px 0;
    overflow: hidden;
}

.purpose-overlay {
    position: relative;
    z-index: 1;
}

.purpose-box {
    background: white;
    border-radius: 15px;
    padding: 45px 30px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
}

.purpose-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
    border-color: var(--primary-color);
}

.mission-box {
    border-top: 4px solid #D4AF37;
}

.vision-box {
    border-top: 4px solid #1B4D7A;
}

.purpose-header {
    text-align: center;
    margin-bottom: 25px;
}

.purpose-icon-large {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.purpose-box:hover .purpose-icon-large {
    background: #1B4D7A;
    transform: scale(1.1);
}

.purpose-icon-large i {
    font-size: 42px;
    color: white;
}

.purpose-box h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.purpose-divider {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.purpose-content {
    margin-top: 25px;
}

.purpose-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    text-align: center;
    margin: 0;
}

.purpose-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.purpose-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* Recent Causes Section */
.recent-causes-section {
    background: #f8f9fa;
}

.recent-causes-section .cause-image {
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
}

.featured-badge i {
    margin-right: 5px;
}

.cause-category {
    display: inline-block;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cause-category i {
    margin-right: 5px;
}

.progress-percentage {
    text-align: center;
    margin-top: 12px;
    color: var(--primary-color);
    font-size: 14px;
}

.progress-percentage strong {
    font-size: 18px;
}

.cause-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cause-actions .btn {
    flex: 1;
    padding: 10px 15px;
    font-size: 14px;
}

.cause-actions .btn i {
    margin-right: 5px;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* Fun Facts */
.fun-facts-section {
    background: linear-gradient(135deg, #0A2647 0%, #1B4D7A 100%);
    color: white;
    position: relative;
}

.fun-facts-section .fun-fact i {
    color: #D4AF37;
}

.fun-facts-section .fun-fact h3 {
    color: #D4AF37;
}

.parallax-bg {
    background-attachment: fixed;
}

.fun-fact {
    padding: 30px;
}

.fun-fact i {
    font-size: 50px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.fun-fact h3 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 10px;
}

.fun-fact p {
    font-size: 18px;
    margin: 0;
}

/* Testimonials */
.testimonial-item {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    margin: 10px;
}

.testimonial-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--primary-color);
}

.testimonial-text {
    font-size: 16px;
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-item h5 {
    font-weight: bold;
    margin-bottom: 5px;
}

.testimonial-item span {
    color: #999;
    font-size: 14px;
}

.rating {
    color: #ffc107;
    margin-top: 10px;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #999;
}

.blog-content h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.blog-content h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-content h4 a:hover {
    color: var(--primary-color);
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Call to Action */
.cta-section {
    background: linear-gradient(135deg, #1B4D7A 0%, #0A2647 100%);
    color: white;
    padding: 60px 0;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #D4AF37;
}

.cta-section p {
    font-size: 18px;
    margin: 0;
}

.btn-outline-white {
    border: 2px solid #D4AF37;
    color: #D4AF37;
    background: transparent;
}

.btn-outline-white:hover {
    background: #D4AF37;
    color: #0A2647;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
}

.footer-top {
    padding: 60px 0 40px;
}

.footer h4, .footer h5 {
    margin-bottom: 20px;
    font-weight: bold;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    color: rgba(255,255,255,0.7);
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #D4AF37 0%, #B8960B 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(27, 77, 122, 0.4);
    background: linear-gradient(135deg, #1B4D7A 0%, #0A2647 100%);
    color: white;
}

.btn-outline-primary {
    border: 2px solid #D4AF37;
    color: #D4AF37;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background: #D4AF37;
    color: #0A2647;
    border-color: #D4AF37;
}

/* Owl Carousel Custom */
.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: var(--primary-color);
}

.owl-theme .owl-nav [class*='owl-'] {
    background: var(--primary-color);
    color: white;
}

.owl-theme .owl-nav [class*='owl-']:hover {
    background: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .top-bar-left,
    .top-bar-right {
        text-align: center;
    }

    .cta-section .text-right {
        text-align: center !important;
        margin-top: 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}
