/* 
 * Ankara Kızılay Rotary Kulübü Frontend CSS
 * Based on Rotary.org design
 */

:root {
    --rotary-blue: #0050a2;
    --rotary-gold: #f7a81b;
    --rotary-dark-blue: #01579b;
    --rotary-light-blue: #0c8ede;
    --rotary-light-gray: #f5f5f5;
    --rotary-dark-gray: #333333;
}

/* General Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    color: var(--rotary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--rotary-light-blue);
}

.btn-primary {
    background-color: var(--rotary-blue);
    border-color: var(--rotary-blue);
}

.btn-primary:hover {
    background-color: var(--rotary-dark-blue);
    border-color: var(--rotary-dark-blue);
}

.btn-secondary {
    background-color: var(--rotary-gold);
    border-color: var(--rotary-gold);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #e09400;
    border-color: #e09400;
}

.section-title {
    position: relative;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--rotary-dark-blue);
}

.section-title:after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: var(--rotary-gold);
    margin-top: 10px;
}

/* Header Styles */
.header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    background-color: var(--rotary-blue);
}

.header-contact span {
    font-size: 14px;
}

.header-social a {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.header-social a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.navbar {
    padding: 15px 0;
}

.navbar-brand img {
    max-height: 60px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    padding: 10px 15px;
    color: var(--rotary-dark-gray);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    color: var(--rotary-blue);
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0;
}

.navbar-nav .dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--rotary-light-gray);
    color: var(--rotary-blue);
}

/* Hero Section */
.hero-section {
    position: relative;
}

.carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
}

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

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-left: 5px solid var(--rotary-gold);
    text-align: left;
    left: 10%;
    right: 10%;
    bottom: 100px;
    max-width: 600px;
}

.carousel-caption h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.carousel-caption p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: #fff;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* Causes Section */
.causes-section {
    padding: 80px 0;
    background-color: var(--rotary-light-gray);
}

.cause-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.cause-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cause-image {
    height: 200px;
    overflow: hidden;
}

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

.cause-card:hover .cause-image img {
    transform: scale(1.1);
}

.cause-content {
    padding: 20px;
}

.cause-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.cause-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.project-image {
    height: 250px;
    overflow: hidden;
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: #fff;
    transition: all 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.project-overlay p {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.8;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background-color: var(--rotary-light-gray);
}

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

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

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-date {
    display: inline-block;
    background: var(--rotary-gold);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.news-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* Events Section */
.events-section {
    padding: 80px 0;
}

.event-card {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    background: var(--rotary-blue);
    color: #fff;
    padding: 15px;
    text-align: center;
}

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

.event-date .month {
    font-size: 16px;
    text-transform: uppercase;
}

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

.event-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.event-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.event-details {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.event-details i {
    margin-right: 5px;
    color: var(--rotary-gold);
}

.event-details span {
    margin-right: 15px;
}

/* Call to Action */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 80, 162, 0.9), rgba(0, 80, 162, 0.9)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons .btn {
    margin: 0 10px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background-color: var(--rotary-dark-gray);
    color: #fff;
    padding: 80px 0 0;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 60px;
}

.footer-about p {
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
}

.footer-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--rotary-gold);
    margin-top: 10px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--rotary-gold);
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--rotary-gold);
    font-size: 18px;
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--rotary-gold);
    color: #fff;
}

.footer-bottom {
    background-color: #222;
    padding: 20px 0;
    margin-top: 60px;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .navbar-brand img {
        max-height: 50px;
    }
    
    .carousel-item {
        height: 500px;
    }
    
    .carousel-caption {
        bottom: 50px;
    }
    
    .carousel-caption h2 {
        font-size: 28px;
    }
    
    .carousel-caption p {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .header-contact {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .header-social {
        text-align: center;
    }
    
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        left: 5%;
        right: 5%;
        bottom: 30px;
        padding: 20px;
    }
    
    .carousel-caption h2 {
        font-size: 24px;
    }
    
    .carousel-caption p {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        width: 100%;
        padding: 10px;
    }
}

@media (max-width: 575px) {
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption {
        padding: 15px;
    }
    
    .carousel-caption h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .carousel-caption p {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
    
    .cta-section p {
        font-size: 16px;
    }
    
    .cta-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
}
