/* Global Styles */
:root {
    --primary-color: #2c5282;
    --secondary-color: #4299e1;
    --accent-color: #ed8936;
    --dark-color: #1a202c;
    --light-color: #f7fafc;
    --text-color: #2d3748;
    --text-muted: #718096;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > section:last-of-type,
body > .container:last-of-type {
    flex: 1;
}

/* Navbar */
.navbar {
    padding: 0.75rem 0;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

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

/* Carousel / Slider */
.carousel-slide {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.9) 0%, rgba(66, 153, 225, 0.8) 100%);
}

.slide-1 {
    background-image: url('/assets/images/slide1.jpg');
}

.slide-2 {
    background-image: url('/assets/images/slide2.jpg');
}

.carousel-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.carousel-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.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%);
    opacity: 1;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255,255,255,0.4);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

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

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Content Card */
.content-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.content-card p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Objectives List */
.objectives-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.objectives-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.objectives-list li::before {
    content: '\F26A';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Member Cards */
.member-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.member-image {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--light-color) 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    overflow: hidden;
}

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

.member-image i {
    font-size: 4rem;
    color: var(--text-muted);
}

.member-card h4 {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.member-role {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.member-card-small {
    padding: 20px;
}

.member-image-small {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-color) 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    overflow: hidden;
}

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

.member-image-small i {
    font-size: 2.5rem;
    color: var(--text-muted);
}

.member-card-small h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

/* Event Tabs */
.nav-tabs-custom {
    border: none;
    gap: 10px;
}

.nav-tabs-custom .nav-link {
    border: 2px solid var(--primary-color) !important;
    border-radius: 30px;
    padding: 10px 25px !important;
    color: var(--primary-color) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs-custom .nav-link::after {
    display: none;
}

.nav-tabs-custom .nav-link:hover,
.nav-tabs-custom .nav-link.active {
    background: var(--primary-color);
    color: white !important;
}

/* Event Cards */
.event-card {
    display: flex;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.event-date {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    min-width: 120px;
    flex-shrink: 0;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
}

.event-date .year {
    font-size: 0.85rem;
    opacity: 0.8;
}

.event-info {
    padding: 20px 25px;
    flex: 1;
}

.event-info h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.event-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.event-location i {
    margin-right: 5px;
}

.event-description {
    color: var(--text-color);
    margin: 0;
}

.event-link {
    margin-top: 10px;
    margin-bottom: 0;
}

.event-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.event-link a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.event-past {
    opacity: 0.7;
}

.event-past .event-date {
    background: linear-gradient(135deg, #718096 0%, #a0aec0 100%);
}

.no-events {
    background: var(--light-color);
    border-radius: 15px;
    padding: 40px;
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-info h4 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-info p {
    margin: 0;
    color: var(--text-color);
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* Map Container */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(66, 153, 225, 0.4);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

/* Footer */
.footer {
    background: var(--dark-color);
    margin-top: auto;
}

.footer-text {
    color: #a0aec0;
    font-size: 0.95rem;
}

.footer .heart {
    color: #e53e3e;
}

.footer .mirket-link {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .mirket-link:hover {
    color: #e53e3e;
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        margin-top: 15px;
        border-radius: 10px;
        box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    }

    .nav-link::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        height: 400px;
    }

    .carousel-content h1 {
        font-size: 1.8rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .content-card {
        padding: 25px;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        flex-direction: row;
        gap: 10px;
        padding: 15px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin: 0 auto;
    }
}
