:root {
    --rotaract-blue: #0066CC;
    --rotaract-gold: #FFB81C;
    --dark-bg: #f0f2f5;
    --dark-secondary: #ffffff;
    --text-primary: #1c1e21;
    --text-secondary: #65676b;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation styles */
nav {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-title {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

.logo-link:hover {
    text-decoration: none;
}

.logo-link h1 {
    margin: 0 0 0 10px;
    font-size: 1.2rem;
    white-space: nowrap;
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
}

.logo {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--rotaract-blue);
}

nav a.active {
    color: var(--rotaract-blue);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: white;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding-bottom: 100px;
    margin-top: 73px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 1rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--rotaract-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #0052a3;
}

/* Welcome Section */
.welcome-section {
    background-color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.welcome-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--rotaract-blue);
    margin-bottom: 1.5rem;
}

.welcome-section p {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rotaract-blue);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Facebook Feed Section */
.facebook-feed {
    padding: 4rem 0;
}

.facebook-feed h2 {
    font-family: 'Playfair Display', serif;
    color: var(--rotaract-blue);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.5rem;
}

/* Post Styles */
.posts-container {
    max-width: 800px;
    margin: 0 auto;
}

.facebook-post {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facebook-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #e4e6eb;
    padding-bottom: 10px;
}

.post-date {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.post-message {
    color: var(--text-primary);
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-image {
    margin: 15px 0;
    border-radius: 12px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-image:hover img {
    transform: scale(1.02);
}

.post-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e4e6eb;
}

.view-on-fb {
    display: inline-block;
    color: var(--rotaract-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.view-on-fb:hover {
    color: #0052a3;
}

/* Members Page Styles */
.members-page {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.members-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-intro {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
}

.board-members,
.active-members {
    margin-bottom: 60px;
}

.board-members,
.active-members {
    margin-bottom: 3rem;
}

.board-members h2,
.active-members h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.member-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.member-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member-card:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: 20px;
}

.member-info h3 {
    margin: 0;
    color: #333;
    font-size: 1.4em;
    font-weight: 600;
}

.member-role {
    color: #0066cc;
    font-weight: 600;
    margin: 8px 0;
    font-size: 1.1em;
}

.member-bio {
    color: #666;
    margin: 15px 0;
    line-height: 1.5;
}

.member-social {
    margin-top: 15px;
}

.social-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: #0052a3;
}

/* About Us Page Styles */
.about-us {
    padding: 120px 0 60px;
    max-width: 800px;
    margin: 0 auto;
}

.about-us h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--rotaract-blue);
    text-align: center;
    margin-bottom: 2rem;
}

.info-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--rotaract-blue);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.info-content h3:first-child {
    margin-top: 0;
}

.info-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.info-content ul {
    list-style-position: inside;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.info-content li {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.info-content li::marker {
    color: var(--rotaract-blue);
}

/* Responsive styles for About Us page */
@media (max-width: 768px) {
    .about-us {
        padding: 100px 20px 40px;
    }

    .about-us h2 {
        font-size: 2rem;
    }

    .info-content {
        padding: 1.5rem;
    }

    .info-content h3 {
        font-size: 1.5rem;
    }

    .info-content p,
    .info-content li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-us h2 {
        font-size: 1.8rem;
    }

    .info-content {
        padding: 1rem;
    }

    .info-content h3 {
        font-size: 1.3rem;
    }
}

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

    .hero-content p {
        font-size: 1.2rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .logo-link h1 {
        font-size: 1rem;
    }
    
    .logo {
        height: 40px;
    }
}

/* Carousel Styles */
.carousel {
    position: relative;
    margin: 15px 0;
    border-radius: 12px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 16px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.carousel-indicator.active {
    background: white;
}

/* Responsive carousel */
@media (max-width: 768px) {
    .carousel-container {
        height: 300px;
    }

    .carousel-button {
        padding: 12px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 250px;
    }

    .carousel-button {
        padding: 8px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Join Button Styles */
.join-button-container {
    text-align: center;
    margin: 2rem 0;
}

.join-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--rotaract-blue);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.join-button:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.join-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.3);
}

@media (max-width: 480px) {
    .join-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 2rem;
}

.language-switcher button {
    background: none;
    border: 2px solid var(--rotaract-blue);
    color: var(--rotaract-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.language-switcher button:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.language-switcher button.active {
    background-color: var(--rotaract-blue);
    color: white;
    opacity: 1;
}

@media (max-width: 768px) {
    .language-switcher {
        margin: 1rem 0 0 0;
    }
}

/* Footer */
footer {
    background-color: #fff;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--rotaract-blue);
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--rotaract-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--rotaract-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e4e6eb;
    color: var(--text-secondary);
}

/* Utility Classes */
.loading-message {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.error-message {
    background: #fff3f3;
    border: 1px solid #ffd7d7;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #d63031;
}

.info-message {
    text-align: center;
    padding: 20px;
    color: #2d3436;
    background: #f5f6fa;
    border-radius: 8px;
    border: 1px solid #dfe6e9;
}
