/* 30 Men Foundation - Main Stylesheet */
/* Theme Colors: White and Gold */

:root {
    --primary-gold: #D4AF37;
    --dark-gold: #B8941E;
    --light-gold: #F4E4C1;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFC107;
    --info: #17A2B8;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* Header & Navigation */
.main-header {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-login, .btn-register {
    background-color: var(--white);
    color: var(--primary-gold) !important;
    padding: 10px 25px !important;
    border-radius: 25px;
    font-weight: 600;
}

.btn-register {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white) !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 200px;
    list-style: none;
    padding: 10px 0;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    color: var(--text-dark) !important;
    padding: 10px 20px;
    display: block;
}

.dropdown-menu li a:hover {
    background-color: var(--light-gold);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 400px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(212, 175, 55, 0.9), rgba(184, 148, 30, 0.9)), url('../images/hero-bg.jpg') center/cover;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

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

.btn-primary:hover {
    background-color: var(--off-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

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

.btn-gold:hover {
    background-color: var(--dark-gold);
}

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

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

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.card p {
    color: var(--text-light);
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E0E0E0;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

select.form-control {
    cursor: pointer;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert-danger {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert-warning {
    background-color: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEEBA;
}

.alert-info {
    background-color: #D1ECF1;
    color: #0C5460;
    border: 1px solid #BEE5EB;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

table thead {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: var(--white);
}

table th, table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #E0E0E0;
}

table tbody tr:hover {
    background-color: var(--light-gold);
}

/* Dashboard */
.dashboard {
    padding: 40px 0;
}

.dashboard-header {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-gold);
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background-color: var(--success);
    color: var(--white);
}

.badge-warning {
    background-color: var(--warning);
    color: var(--text-dark);
}

.badge-danger {
    background-color: var(--danger);
    color: var(--white);
}

.badge-info {
    background-color: var(--info);
    color: var(--white);
}

.badge-primary {
    background-color: var(--primary-gold);
    color: var(--white);
}

/* Footer */
.main-footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary-gold);
    margin-bottom: 20px;
}

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

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

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-gold);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--white);
    color: var(--primary-gold);
    transform: translateY(-3px);
}

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

.contact-info i {
    color: var(--primary-gold);
    margin-top: 3px;
}

.vision-text {
    font-style: italic;
    font-weight: 600;
    color: var(--primary-gold);
}

.tagline {
    color: var(--light-gold);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-gold);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dark-gold);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .nav-menu.active {
        display: flex;
    }

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

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

    .section-title h2 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-gold {
    color: var(--primary-gold);
}

.bg-gold {
    background-color: var(--primary-gold);
}

.bg-light {
    background-color: var(--off-white);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* ========== GALLERY STYLES ========== */

/* Homepage Gallery Grid */
.gallery-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 15px;
    margin-top: 40px;
}

.gallery-item-home {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-item-home.gallery-item-large {
    grid-row: span 2;
}

.gallery-item-home img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item-home:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 30px 15px 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item-home:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Gallery Page - Masonry Grid */
.gallery-masonry {
    columns: 3;
    column-gap: 15px;
}

.gallery-masonry-item {
    break-inside: avoid;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-masonry-item:hover img {
    transform: scale(1.05);
}

.gallery-masonry-item .gallery-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-masonry-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-masonry-item .gallery-overlay span {
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-gold);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    background: rgba(255,255,255,0.1);
    border: none;
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 10000;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-gold);
}

.lightbox-counter {
    color: white;
    margin-top: 15px;
    font-size: 0.95rem;
}

/* ========== BLOG STYLES ========== */

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Blog Card */
.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
}

.blog-card-image {
    height: 220px;
    overflow: hidden;
}

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

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

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-date {
    color: var(--primary-gold);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-card-content h3 {
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-content h3 a:hover {
    color: var(--primary-gold);
}

.blog-card-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-read-more {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.blog-read-more:hover {
    color: var(--dark-gold);
    letter-spacing: 0.5px;
}

/* Blog Post Layout */
.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.blog-post-featured {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.blog-post-featured img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.blog-post-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.blog-post-body h2,
.blog-post-body h3 {
    color: var(--primary-gold);
    margin: 30px 0 15px;
}

.blog-post-body p {
    margin-bottom: 20px;
}

.blog-post-body blockquote {
    border-left: 4px solid var(--primary-gold);
    padding: 15px 25px;
    margin: 25px 0;
    background: var(--off-white);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-light);
}

.blog-post-body ul, .blog-post-body ol {
    margin: 15px 0 15px 20px;
}

.blog-post-body li {
    margin-bottom: 8px;
}

.blog-post-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

/* Blog Post Navigation */
.blog-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--off-white);
}

.blog-nav-link {
    padding: 20px;
    background: var(--off-white);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.blog-nav-link:hover {
    background: var(--light-gold);
}

.blog-nav-link span {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-gold);
    margin-bottom: 5px;
}

.blog-nav-link strong {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.blog-nav-next {
    text-align: right;
}

/* Blog Sidebar */
.blog-sidebar-widget {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.blog-sidebar-widget h3 {
    color: var(--primary-gold);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--off-white);
}

.blog-sidebar-list {
    list-style: none;
}

.blog-sidebar-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--off-white);
}

.blog-sidebar-list li:last-child {
    border-bottom: none;
}

.blog-sidebar-list li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    margin-bottom: 3px;
}

.blog-sidebar-list li a:hover {
    color: var(--primary-gold);
}

.blog-sidebar-list li small {
    color: var(--text-light);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination-btn {
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    background: var(--white);
    border: 2px solid #E0E0E0;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary-gold);
    color: white;
    border-color: var(--primary-gold);
}

/* ========== RESPONSIVE - Gallery & Blog ========== */
@media (max-width: 1024px) {
    .blog-post-layout {
        grid-template-columns: 1fr;
    }

    .gallery-masonry {
        columns: 2;
    }
}

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

    .gallery-item-home.gallery-item-large {
        grid-row: span 1;
    }

    .gallery-masonry {
        columns: 2;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gallery-grid-home {
        grid-template-columns: 1fr;
    }

    .gallery-masonry {
        columns: 1;
    }

    .nav-menu {
        gap: 10px;
    }
}
