/* Modern Styles for Bermuda Triathlon Association */
:root {
    --primary-color: #0074D9;
    --secondary-color: #FF851B;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-blue: #004080;
    --accent-color: #FFD700;
    --footer-bg: #00264d;
    --footer-text: #ffffff;
    --nav-hover-color: #FF0000;
}

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

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    font-weight: 900;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-blue);
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Header & Navigation Improvements */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.5rem 0;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--nav-hover-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.nav-links a:hover:after,
.nav-links a.active:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--nav-hover-color);
}

/* Content Section Improvements */
.page-header {
    background-color: var(--light-bg);
    padding: 3rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Section Styling */
section {
    padding: 4rem 0;
    margin-bottom: 2rem;
}

section:last-child {
    margin-bottom: 0;
}

section:nth-child(even) {
    background-color: var(--light-bg);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Footer Improvements */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-logo img {
    height: 70px;
    margin-bottom: 1rem;
}

.footer-links h3, 
.footer-contact h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
    transform: translateX(5px);
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--footer-text);
    text-decoration: none;
    margin-right: 1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
}

/* Responsive Improvements */
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 1rem 15px;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Animation Improvements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 15px 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 25px rgba(0,0,0,0.15);
}

/* List Styles */
ul:not(.nav-links):not(.footer-links) {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

ul:not(.nav-links):not(.footer-links) li {
    margin-bottom: 0.5rem;
    position: relative;
}

ul:not(.nav-links):not(.footer-links) li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.mobile-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-color);
}

/* Welcome Section Enhancement */
.welcome {
    padding: 0.5rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(0,64,128,0.05), rgba(0,116,217,0.1));
    color: var(--text-color);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.welcome h1 {
    color: var(--dark-blue);
    font-size: 2rem;
    margin-bottom: 0.25rem;
    text-shadow: none;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.welcome .tagline {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-weight: 400;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.welcome-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.welcome-content p {
    font-family: 'Merriweather', serif;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    width: 95vw;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    letter-spacing: 0.01em;
    padding: 0 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.welcome-content p:last-child {
    margin-bottom: 0;
    padding-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .welcome-content p {
        font-size: 0.9rem;
        padding: 0 1rem;
        white-space: normal;
        width: 100%;
    }
}

/* Hero Section Enhancement */
.hero {
    position: relative;
    overflow: hidden;
    max-height: 600px;
    margin: 0;
    padding: 0;
}

.hero-slider {
    position: relative;
    margin: 0;
    padding: 0;
}

.hero-slide {
    position: relative;
    margin: 0;
    padding: 0;
}

.hero-slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

.slide-caption {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: white;
    background: rgba(0,0,0,0.7);
    padding: 1.5rem 2rem;
    border-radius: 4px;
    max-width: 400px;
}

.slide-caption h2 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.slide-caption p {
    margin: 0;
    opacity: 0.9;
}

/* About Section Enhancement */
.about {
    padding: 50px 0;
    text-align: center;
}

.welcome-message {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* News Section Enhancement */
.latest-news {
    padding: 1.5rem 0;
    background-color: white;
}

.latest-news h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-blue);
    font-size: 1.6rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.news-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 1rem;
    transition: transform 0.3s;
}

.news-item h3 {
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.news-item p {
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-item .btn {
    margin-top: auto;
    display: inline-block;
}

/* Social Media Buttons */
.social-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: center;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--dark-blue);
    color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 120px;
}

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

/* Make X (Twitter) icon match size */
.btn-social .fa-x-twitter {
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0 1px; /* Add slight padding to compensate for thinner icon */
}

.btn-social:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Instagram */
.btn-social:has(.fa-instagram) {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Facebook */
.btn-social:has(.fa-facebook-f) {
    background-color: #1877f2;
}

/* X (Twitter) */
.btn-social:has(.fa-x-twitter) {
    background-color: #000000;
}

.btn-social:has(.fa-instagram):hover {
    background: linear-gradient(45deg, #e6683c 0%, #dc2743 25%, #cc2366 50%, #bc1888 75%, #f09433 100%);
}

.btn-social:has(.fa-facebook-f):hover {
    background-color: #0d6efd;
}

.btn-social:has(.fa-x-twitter):hover {
    background-color: #333333;
}

/* Hero Banner with Background Image */
.hero-banner {
    position: relative;
    background: url('../imgs/Home-Event-19-June-e1497886220764-scaled.jpg') no-repeat center center;
    background-size: cover;
    padding: 3rem 0;
    color: white;
    text-align: center;
    margin: 0;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-content h1 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content .tagline {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-text {
    max-width: 700px;
    margin: 0 auto;
}

.hero-text p {
    color: white;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 4rem 0;
    }

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

    .hero-content .tagline {
        font-size: 1.1rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}

/* Featured Athletes and News Grid Alignment */
.featured-athletes {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

.athlete-image {
    position: relative !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease !important;
}

.athlete-image:hover {
    transform: translateY(-5px) !important;
}

.athlete-image img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    display: block !important;
}

.athlete-caption {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 1rem !important;
    background: linear-gradient(transparent, rgba(0,0,0,0.8)) !important;
    color: white !important;
}

.athlete-caption h3 {
    font-size: 1.2rem !important;
    margin-bottom: 0.25rem !important;
    color: white !important;
}

.athlete-caption p {
    margin: 0 !important;
    font-size: 1rem !important;
    opacity: 0.9 !important;
}

/* News Grid Matching Styles */
.news-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

.news-item {
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    padding: 1.5rem !important;
    transition: transform 0.3s ease !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.news-item:hover {
    transform: translateY(-5px) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .featured-athletes,
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .athlete-image img {
        height: 200px !important;
    }
}

/* Section spacing */
.hero-banner,
.latest-news {
    padding: 3rem 0 !important;
}

/* Rules Page Styles */
.rules-content {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.rules-section {
    margin-bottom: 3rem;
}

.rules-section:last-child {
    margin-bottom: 0;
}

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

.rules-card:hover {
    transform: translateY(-5px);
}

.rules-header {
    background: var(--dark-blue);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rules-header i {
    font-size: 2rem;
    color: var(--accent-color);
}

.rules-header h2 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.rules-body {
    padding: 2rem;
}

.rules-body p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.rules-body p:last-child {
    margin-bottom: 0;
}

.rules-cta {
    margin-top: 2rem;
    text-align: center;
}

.rules-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.rules-cta .btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.rules-cta .btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .rules-content {
        padding: 2rem 0;
    }

    .rules-header {
        padding: 1rem;
    }

    .rules-header i {
        font-size: 1.5rem;
    }

    .rules-header h2 {
        font-size: 1.2rem;
    }

    .rules-body {
        padding: 1.5rem;
    }

    .rules-body p {
        font-size: 1rem;
    }

    .rules-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Membership Page Styles */
.membership-content {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

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

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

.membership-card:hover {
    transform: translateY(-5px);
}

.membership-card.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.02);
}

.membership-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.membership-header {
    background: var(--dark-blue);
    color: white;
    padding: 2rem;
    text-align: center;
}

.membership-header i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.membership-header h2 {
    color: white;
    margin: 0.5rem 0;
    font-size: 1.8rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-top: 1rem;
}

.price span {
    font-size: 1rem;
    opacity: 0.8;
}

.membership-body {
    padding: 2rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.benefits-list li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.membership-cta {
    text-align: center;
}

.membership-cta .btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Steps List */
.steps-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
}

.steps-list li i {
    position: absolute;
    left: 0;
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-weight: bold;
}

.note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 4px;
    margin-top: 2rem;
}

.note i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .membership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .membership-grid {
        grid-template-columns: 1fr;
    }

    .membership-card.featured {
        transform: none;
    }

    .membership-card.featured:hover {
        transform: translateY(-5px);
    }

    .membership-header {
        padding: 1.5rem;
    }

    .membership-body {
        padding: 1.5rem;
    }

    .price {
        font-size: 2rem;
    }

    .benefits-list li {
        font-size: 1rem;
    }
}

/* Contact Page Styles */
.contact-content {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Info Card */
.contact-info-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 2rem;
}

.contact-methods {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
}

.contact-method i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-method h3 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-method p {
    margin: 0;
    line-height: 1.6;
}

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

.contact-method a:hover {
    color: var(--dark-blue);
}

/* Social Connect */
.social-connect {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.social-connect h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-blue);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon.facebook:hover {
    background: #1877f2;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.twitter:hover {
    background: #000000;
}

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

.contact-form-card h2 {
    color: var(--dark-blue);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group label {
    color: var(--dark-blue);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    margin-top: 1rem;
    width: 100%;
    padding: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .contact-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-method {
        padding: 1rem;
    }

    .contact-method i {
        font-size: 1.5rem;
    }

    .social-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* Gallery Page Styles */
.gallery-content {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 100%;
    padding: 0 1rem;
}

.gallery-header h2 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.gallery-header h2 i {
    color: #E1306C;
    font-size: 1.8rem;
}

.gallery-header p {
    font-size: 1.1rem;
}

.gallery-header a {
    color: #E1306C;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.gallery-header a:hover {
    color: var(--dark-blue);
}

.gallery-grid {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

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

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.gallery-caption p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.instagram-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.instagram-link:hover {
    opacity: 1;
}

.instagram-link i {
    font-size: 1.1rem;
}

.gallery-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--dark-blue);
}

.gallery-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .gallery-grid {
        padding: 0;
    }
    
    .gallery-header {
        padding: 0 1rem;
    }

    .gallery-item img {
        height: 250px;
    }

    .gallery-caption {
        padding: 1rem;
    }
}

.instagram-embed,
.elfsight-app-f0816728-5a16-4d44-a8c8-b507a8959ee2 {
    display: block !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center;
}

/* Remove extra padding from the container for this section */
.gallery-content .container {
    padding: 0 !important;
}

/* About Page Styles */
.about-overview {
    padding: 4rem 0;
    background-color: white;
}

/* Hero Banner for About page */
.hero-banner {
    position: relative;
    background: url('../imgs/Home-Event-19-June-e1497886220764-scaled.jpg') no-repeat center center;
    background-size: cover;
    padding: 3rem 0;
    color: white;
    text-align: center;
    margin: 0;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: 1;
}

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

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.overview-text h2 {
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.overview-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.overview-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Feature Cards */
.feature-cards {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.feature-card h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Timeline Section */
.timeline-section {
    padding: 4rem 0;
    background-color: white;
}

.timeline-section h2 {
    text-align: center;
    color: var(--dark-blue);
    margin-bottom: 3rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 1rem;
    position: relative;
    width: 50%;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-date {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -30px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -30px;
}

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

.timeline-content h3 {
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
}

/* Committee Section */
.committee-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.committee-section h2 {
    text-align: center;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

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

.committee-member:hover {
    transform: translateY(-5px);
}

.member-photo img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.member-info {
    padding: 1.5rem;
}

.member-info h3 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.member-role {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.member-bio {
    line-height: 1.6;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(to right, var(--dark-blue), var(--primary-color));
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

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

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--dark-blue);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .overview-content {
        gap: 2rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 4rem;
        padding-right: 1rem;
    }
    
    .timeline-item:nth-child(odd) {
        left: 0;
        padding-right: 1rem;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 4rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-date {
        left: -15px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-date {
        left: -15px;
    }
}

@media (max-width: 768px) {
    .overview-content {
        grid-template-columns: 1fr;
    }
    
    .overview-image {
        order: -1;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .timeline-item {
        padding-left: 3.5rem;
    }
    
    .timeline-date {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }
}