/* RCEA - Modern Minimalistic White and Blue Theme */

:root {
    --primary-blue: #0066cc;
    --dark-blue: #004d99;
    --light-blue: #e6f2ff;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--dark-gray);
    background-color: var(--white);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Top Bar */
.header-top-bar {
    background-color: var(--primary-blue);
    color: rgba(255,255,255,0.9);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-contact-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.header-contact-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-contact-info i {
    color: var(--light-blue);
}

.header-social-links {
    display: flex;
    gap: 1rem;
}

.header-social-links a {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.header-social-links a:hover {
    color: var(--light-blue);
    transform: translateY(-2px);
}

/* Header Styles */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.2rem;
    letter-spacing: -0.5px;
}

.logo p {
    color: var(--gray);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.main-nav > ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

/* Ensure dropdown-menu doesn't inherit flex properties */
.dropdown-menu {
    display: block !important;
}

.main-nav a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-blue);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    list-style: none;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0 !important;
    margin: 0.5rem 0 0 0 !important;
    border-radius: 5px;
    z-index: 1000;
    display: block !important;
    flex-direction: column !important;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: block !important;
    list-style: none !important;
    border-bottom: 1px solid #f0f0f0;
    float: none !important;
    clear: both !important;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block !important;
    padding: 0.75rem 1.5rem;
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.3s;
    width: 100% !important;
    box-sizing: border-box;
    float: none !important;
    clear: both !important;
}

.dropdown-menu a:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    padding-left: 1.75rem;
}

/* Dropdown arrow icon */
.dropdown > a i {
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.dropdown:hover > a i {
    transform: rotate(180deg);
}

/* Force vertical stacking of dropdown items */
.dropdown .dropdown-menu {
    display: block !important;
    flex-direction: column !important;
}

.dropdown .dropdown-menu li {
    float: none !important;
    display: block !important;
    width: 100% !important;
    clear: both !important;
}

.dropdown .dropdown-menu a {
    display: block !important;
    width: 100% !important;
    clear: both !important;
}

/* Become a Member Button in Header */
.become-member-btn-li {
    margin-left: 1rem;
}

.become-member-btn-li .btn-become-member {
    gap: 0.6rem;
}

.btn-become-member {
    background-color: var(--primary-blue) !important;
    color: var(--white) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    box-shadow: 0 2px 8px rgba(0,102,204,0.2);
}

.btn-become-member:hover {
    background-color: var(--dark-blue) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,102,204,0.3);
}

.btn-become-member i {
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-blue);
    transition: transform 0.3s;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

/* Home Slider */
.home-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: var(--light-gray);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-slide.active {
    opacity: 1;
    visibility: visible;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slider-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(3px);
}

.slider-title {
    font-size: 2.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slider-subtitle {
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slider-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.slider-btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,102,204,0.4);
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.8);
}

.slider-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.slider-dot:hover {
    background: rgba(255,255,255,0.8);
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

/* Content Justify Style */
.about-content,
.card-text,
.card-body p,
.about-section p,
.about-section li,
.contact-info,
.footer-section p {
    text-align: justify;
}

/* Exceptions - don't justify headings, buttons, etc */
.card-title,
.member-name,
.member-role,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.3px;
}

h2 i, h3 i, h4 i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

/* Exceptions - don't justify headings, buttons, etc */
.card-title,
.member-name,
.member-role,
.btn,
.form-control,
label,
.footer-section h3,
.footer-section h4,
.btn,
.form-control,
label,
.footer-section h3,
.footer-section h4 {
    text-align: left;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 3rem;
    position: relative;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--dark-blue));
    border-radius: 2px;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,102,204,0.15);
    border-color: rgba(0,102,204,0.2);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.card-text {
    color: var(--gray);
    margin-bottom: 1rem;
}

/* Member Card */
.member-card {
    text-align: center;
}

.member-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.member-name {
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--dark-blue);
    margin: 0.3rem 0 0.5rem;
    letter-spacing: -0.3px;
}

.member-role {
    color: var(--primary-blue);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* Event Card */
.event-card {
    position: relative;
}

.event-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
}

/* Events Month Group */
.events-month-group {
    margin-bottom: 4rem;
}

.events-month-title {
    font-size: 1.8rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--light-blue);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.events-month-title i {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

/* Event Card Horizontal (Upcoming Events Page) */
.event-card-horizontal {
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.event-card-image {
    width: 300px;
    flex-shrink: 0;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 200px;
}

.event-card-body {
    flex: 1;
    padding: 1.5rem;
}

@media (max-width: 768px) {
    .event-card-horizontal {
        flex-direction: column;
    }
    
    .event-card-image {
        width: 100%;
        height: 250px;
    }
    
    .event-card-image img {
        min-height: 250px;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

.btn i {
    margin-left: 0.5rem;
}

.btn i:first-child {
    margin-left: 0;
    margin-right: 0.5rem;
}

.btn-secondary {
    background-color: var(--gray);
    color: var(--white);
}

/* About Section */
.about-content {
    background: var(--light-gray);
    padding: 3rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.about-section {
    margin-bottom: 3rem;
}

/* Two Column Layout for About */
.about-2-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image-column {
    width: 100%;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-image-placeholder {
    width: 100%;
    min-height: 400px;
    background: var(--light-blue);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-image-placeholder p {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-blue);
    font-family: 'Poppins', sans-serif;
}

.about-text-column {
    width: 100%;
}

/* Tabs Styles */
.tabs-container {
    margin-top: 2rem;
}

.tabs-nav {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid var(--light-gray);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--gray);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn i {
    font-size: 1rem;
}

.tab-btn:hover {
    color: var(--primary-blue);
}

.tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tabs-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.4s ease;
    border-radius: 8px;
}

.gallery-item:hover img {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.gallery-group {
    margin-bottom: 3rem;
}

.gallery-group-title {
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-blue);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gallery-group-title i {
    color: var(--primary-blue);
}

/* Contact */
.contact-info {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.contact-info-item {
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    color: var(--primary-blue);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.main-footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

.footer-bottom a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }
    
    .main-nav.mobile-active {
        max-height: 500px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .main-nav a {
        padding: 1rem;
        display: block;
    }
    
    .btn-become-member {
        justify-content: center !important;
        text-align: center !important;
    }
    
    .become-member-btn-li {
        margin-left: 0 !important;
        border-top: 1px solid #eee;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown > a {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-top: 0;
        padding: 0;
        width: 100%;
        min-width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 0.5rem 0;
    }
    
    .dropdown-menu li {
        width: 100%;
        display: block;
    }
    
    .dropdown-menu a {
        padding-left: 2rem;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav.mobile-active {
        max-height: 1000px;
    }
    
    .home-slider {
        height: 400px;
    }
    
    .slider-title {
        font-size: 2rem;
    }
    
    .slider-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .slider-content {
        padding: 1.5rem;
        max-width: 90%;
    }
    
    .slider-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .about-2-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image-column {
        order: 1;
    }
    
    .about-text-column {
        order: 2;
    }
    
    .tabs-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .header-top-bar {
        display: none;
    }
    
    .header-contact-info {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .header-top-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .header-content {
        position: relative;
    }
}

@media (max-width: 480px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

