:root {
    --primary-color: #1f497d;
    --secondary-color: #c7d1de;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
}

/* Custom background if set */
body.custom-bg {
    background-image: url('../../uploads/' + var(--bg-image));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Primary colors */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #164066;
    border-color: #164066;
}

/* Secondary colors */
.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

.text-secondary-custom {
    color: var(--primary-color) !important;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

/* Services section */
.services-section {
    padding: 80px 0;
}

.service-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(31, 73, 125, 0.2);
}

.service-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* News section */
.news-card {
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: scale(1.02);
}

.news-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Social sharing buttons */
.social-share {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(31, 73, 125, 0.05), rgba(199, 209, 222, 0.1));
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.social-share h5 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.social-share .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 25px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-share .btn i {
    font-size: 1.1rem;
}

/* Social share mini buttons for cards */
.social-share-mini {
    display: flex;
    gap: 0.25rem;
}

.social-share-mini .btn {
    padding: 4px 8px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-share-mini .btn:hover {
    transform: scale(1.1);
}

/* Platform-specific colors */
.btn-whatsapp {
    background-color: #25d366;
    border-color: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    border-color: #128c7e;
    color: white;
}

.btn-facebook {
    background-color: #1877f2;
    border-color: #1877f2;
    color: white;
}

.btn-facebook:hover {
    background-color: #166fe5;
    border-color: #166fe5;
    color: white;
}

.btn-twitter {
    background-color: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

.btn-twitter:hover {
    background-color: #0c85d0;
    border-color: #0c85d0;
    color: white;
}

.btn-linkedin {
    background-color: #0077b5;
    border-color: #0077b5;
    color: white;
}

.btn-linkedin:hover {
    background-color: #005885;
    border-color: #005885;
    color: white;
}

.btn-telegram {
    background-color: #0088cc;
    border-color: #0088cc;
    color: white;
}

.btn-telegram:hover {
    background-color: #006699;
    border-color: #006699;
    color: white;
}

.btn-copy {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-copy:hover {
    background-color: #545b62;
    border-color: #545b62;
    color: white;
}

.btn-instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    border: none;
    color: white;
}

.btn-instagram:hover {
    background: linear-gradient(135deg, #6b2d92, #e01a1a, #e09a3c);
    color: white;
}

/* Contact form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Map container */
.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* WhatsApp button */
.whatsapp-btn {
    background-color: #25d366;
    border-color: #25d366;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 12px 30px;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    border-color: #128c7e;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .service-item {
        margin-bottom: 1rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #164066;
}
