/* ===== GLOBAL STYLES ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px; /* Accounts for fixed nav */
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ===== NAVIGATION BAR ===== */
nav {
    background: linear-gradient(135deg, #1E3C72, #2A5298);
    color: white;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
}

/* Logo Styles */
.clan-logo {
    color: white;
    font-weight: bold;
    font-size: 1.3rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 15px;
    position: relative;
    z-index: 1002;
}

.clan-logo:hover {
    color: #FFD700;
}

.nav-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0 10px;
    margin-left: auto; /* Push other items to the right */
}

.nav-links li {
    display: inline-block;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: block;
    padding: 20px 0;
    position: relative;
}

nav a:hover {
    color: #FFD700;
    transform: translateY(-2px);
}

/* Register Button */
.register-btn-container {
    margin-left: 20px;
	    gap: 20px;

}

.register-btn {
    background: #FFD700;
    color: #1E3C72;
    padding: 8px 10px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register-btn:hover {
    background: #FFCC00;
    transform: translateY(-2px);
}

/* ===== SEARCH FORM ===== */
.search-form {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.search-form input[type="text"] {
    padding: 10px 15px;
    width: 200px;
    border-radius: 30px;
    border: none;
    margin-right: 10px;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-form input[type="text"]:focus {
    outline: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    width: 220px;
}

.search-form button {
    padding: 10px 20px;
    background: #FFD700;
    color: #1E3C72;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-form button:hover {
    background: #FFCC00;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.search-form button i {
    font-size: 1rem;
}

/* Page Search Bar */
.page-search-bar {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
    position: relative;
    z-index: 5;
}

.page-search-bar form {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 500px;
}

.page-search-bar input[type="text"] {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 30px;
    flex-grow: 1;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.page-search-bar input[type="text"]:focus {
    outline: none;
    border-color: #4a6ea9;
    box-shadow: 0 0 0 2px rgba(74, 110, 169, 0.2);
}

.page-search-bar button {
    padding: 10px 20px;
    background-color: #4a6ea9;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-search-bar button:hover {
    background-color: #3a5e99;
    transform: translateY(-2px);
}

.page-search-bar button i {
    font-size: 1rem;
}

/* Mobile Navigation */
.mobile-nav-header {
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-links {
        gap: 10px;
    }
    nav a {
        font-size: 1rem;
        padding: 15px 0;
    }
    .search-form input[type="text"] {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .mobile-nav-header {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-content {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #1E3C72, #2A5298);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        flex-direction: column;
        align-items: flex-start;
        display: none;
    }

    .nav-content.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin-right: 0;
    }

    .search-form {
        width: 100%;
        margin: 15px 0 0 0;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search-form input[type="text"] {
        width: 100%;
        margin-right: 0;
    }

    .register-btn-container {
        width: 100%;
        margin: 15px 0 0 0;
    }
    
    .page-search-bar {
        padding: 10px;
    }
    
    .page-search-bar form {
        flex-direction: column;
        gap: 10px;
    }
    
    .page-search-bar button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .nav-container {
        padding: 0 10px;
    }

    .search-form input[type="text"] {
        font-size: 0.85rem;
    }

    nav a {
        font-size: 0.95rem;
    }

    .register-btn {
        font-size: 0.85rem;
        padding: 0.7rem 1rem !important;
    }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.block {
    display: block !important;
}

.flex {
    display: flex !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}
/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 80%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: #fefefe;
    margin: 20px auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
    outline: none;
}

.close-modal:hover {
    color: #333;
}
/* ===== PERSON DETAILS ===== */
.person-details {
    padding: 20px;
}

.person-details h2 {
    color: #2A5298;
    margin-top: 20px;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 10px;
}
/* Enkiiko Page Styles */
.page-title {
    color: #2A5298;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid #FFD700;
}

.meetings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.meeting-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.meeting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.meeting-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.meeting-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.meeting-card:hover .meeting-image img {
    transform: scale(1.05);
}

.no-image {
    background: linear-gradient(135deg, #1E3C72, #2A5298);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.meeting-details {
    padding: 20px;
}

.meeting-details h2 {
    color: #2A5298;
    margin-top: 0;
    font-size: 1.5rem;
}

.meeting-meta {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    color: #666;
    font-size: 0.9rem;
}

.meeting-meta i {
    color: #4CAF50;
    margin-right: 5px;
}

.meeting-description {
    margin: 15px 0;
    color: #444;
    line-height: 1.6;
}

.meeting-resolutions {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.meeting-resolutions h3 {
    color: #2A5298;
    margin-top: 0;
    font-size: 1.2rem;
}

.meeting-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.attendees {
    color: #666;
    font-size: 0.9rem;
}

.read-more {
    color: #2A5298;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: #1E3C72;
    text-decoration: underline;
}

.no-meetings {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-meetings p {
    color: #666;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .meetings-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .meetings-grid {
        grid-template-columns: 1fr;
    }
    
    .meeting-meta {
        flex-direction: column;
        gap: 5px;
    }
}