/* Chanmyay Vihara Contemporary CSS Styles */
/* Modern, responsive design maintaining the original green color theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Header Styles */
.header {
    position: relative;
    overflow: hidden;
}

.banner {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2d5016 0%, #3b7b15 50%, #4a8f1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../photo_gallery/one.gif') center/cover;
    opacity: 0.7;
    border-radius: 8px 8px 0 0;
}

.banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    justify-content: space-between;
    padding: 0 20px;
}

.banner h1 {
    font-size: 2.5em;
    font-weight: 400;
    margin-bottom: 10px;
}

.banner p {
    font-size: 1.1em;
    opacity: 0.9;
}

.banner-logo {
    height: 150px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    flex-shrink: 0;
	margin-right: 10px;
}

.banner-logo:hover {
    transform: scale(1.05);
}

.banner-text {
    text-align: center;
    flex: 1;
    margin-right: 150px; /* Balance the logo width for true centering */
}

@media (max-width: 768px) {
    .banner {
        height: auto;
        min-height: 180px;
        padding: 15px 10px;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 10px;
        justify-content: center;
    }
    
    .banner-text {
        text-align: center;
        margin-right: 0; /* Remove desktop margin */
        flex: none; /* Reset flex behavior */
    }
    
    .banner-logo {
        height: 70px; /* Smaller logo on mobile */
        margin-top: 5px;
    }
    
    .banner h1 {
        font-size: 1.5em; /* Smaller title on mobile */
        margin-bottom: 5px;
    }
    
    .banner p {
        font-size: 0.9em; /* Smaller subtitle on mobile */
        margin-bottom: 5px;
    }
}

/* Navigation Styles */
.navigation {
    background: linear-gradient(135deg, #3b7b15 50%, #2d5016 100%);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    min-height: 50px;
    clear: both;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-item {
    flex: 1;
    min-width: 120px;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #d4f1c9;
    transform: translateY(-2px);
}

.nav-item:last-child .nav-link {
    border-right: none;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    background: linear-gradient(135deg, #2d5016 0%, #3b7b15 50%, #4a8f1a 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 10px 12px;
    position: absolute;
    right: 15px;
    top: 10px;
    z-index: 1100;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: linear-gradient(135deg, #3b7b15 0%, #4a8f1a 50%, #5ca520 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hamburger {
    display: block;
    width: 28px;
    height: 3px;
    background: #ffffff;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    background: #ffffff;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

.hamburger::after {
    top: 8px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 30px;
    min-height: 600px;
}

.main-content.full-width {
    grid-template-columns: 1fr;
}

/* Content Area */
.content-area {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.content-section.visible {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-header {
    font-size: 2.2em;
    color: #2d5016;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3b7b15;
    font-weight: 300;
}

.content-subheader {
    font-size: 1.4em;
    color: #3b7b15;
    margin: 25px 0 15px 0;
    font-weight: 500;
}

.content-text {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.7;
}

.sayadaw-image {
    float: left;
    margin: 10px 20px 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Contact Information Styling */
.contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #3b7b15;
}

.contact-table {
    width: 100%;
    border-collapse: collapse;
}

.contact-table td {
    padding: 8px;
    vertical-align: top;
}

/* Event and News Styling */
.event-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #3b7b15;
}

.event-date {
    color: #3b7b15;
    font-weight: bold;
    font-size: 1.1em;
}

.event-title {
    color: #2d5016;
    font-size: 1.2em;
    font-weight: 500;
    margin: 5px 0;
}

.event-description {
    line-height: 1.6;
}

/* Photo Gallery Styles */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.photo-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.photo-caption {
    padding: 15px;
    text-align: center;
    background: #f8f9fa;
}

/* Teaching Styles */
.teaching-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #3b7b15;
}

.teaching-title {
    color: #2d5016;
    font-size: 1.3em;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Practice Styles */
.practice-step {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #3b7b15;
}

.practice-number {
    color: #3b7b15;
    font-size: 1.5em;
    font-weight: bold;
    float: left;
    margin-right: 15px;
    width: 30px;
    height: 30px;
    background: #f0f7ed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Donation Styles */
.donation-method {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #3b7b15;
}

.donation-title {
    color: #2d5016;
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 10px;
}

.donation-details {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
}

/* Sidebar Styles */
.sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-title {
    background: linear-gradient(135deg, #3b7b15 0%, #2d5016 100%);
    color: white;
    padding: 12px 15px;
    margin: -20px -20px 15px -20px;
    font-size: 1.1em;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
}

.sidebar-section:first-child .sidebar-title {
    margin-top: -20px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: #2d5016;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-link:hover {
    color: #3b7b15;
    padding-left: 10px;
}

.sidebar-link:last-child {
    border-bottom: none;
}

.sidebar-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    border-radius: 50%;
    background: #3b7b15;
}

.bio-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    border-radius: 2px;
}

/* Forms and Buttons */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    color: #2d5016;
    font-weight: 500;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: #3b7b15;
}

.btn {
    background: linear-gradient(135deg, #3b7b15 0%, #2d5016 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 123, 21, 0.3);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.btn-secondary:hover {
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.table th {
    background: #f8f9fa;
    color: #2d5016;
    font-weight: 600;
}

.table tr:hover {
    background: #f8f9fa;
}

/* Lists */
.custom-list {
    list-style: none;
    padding: 0;
    margin-left: 20px;
}

.custom-list li {
    position: relative;
    padding: 10px 0 10px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.custom-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #3b7b15;
    border-radius: 50%;
}

.custom-list li:last-child {
    border-bottom: none;
}

/* Alerts and Messages */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin: 15px 0;
    border-left: 4px solid;
}

.alert-info {
    background: #e3f2fd;
    border-left-color: #2196f3;
    color: #0d47a1;
}

.alert-success {
    background: #e8f5e8;
    border-left-color: #4caf50;
    color: #1b5e20;
}

.alert-warning {
    background: #fff3cd;
    border-left-color: #ff9800;
    color: #e65100;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 15px 0;
    overflow: hidden;
}

.card-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    color: #2d5016;
    font-weight: 500;
}

.card-header .nav-link {
    color: #2d5016;
    font-weight: 600;
    text-decoration: none;
    padding: 0;
    border: none;
    text-align: left;
    display: inline;
    transition: color 0.3s ease;
}

.card-header .nav-link:hover {
    color: #3b7b15;
    background: transparent;
    transform: none;
}

.card-body {
    padding: 20px;
}

.card-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 20px 30px;
    color: #666;
    font-size: 0.9em;
    border-top: 1px solid #e9ecef;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Responsive Design */
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 8px;
    }
    
    .banner h1 {
        font-size: 1.8em;
    }
    
    .banner p {
        font-size: 1em;
    }
    
    /* Show hamburger menu */
    .menu-toggle {
        display: block;
    }
    
    /* Hide navigation by default on mobile */
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        position: relative;
        z-index: 1000;
    }
    
    /* Show navigation when active */
    .nav-list.active {
        display: flex;
    }
    
    .nav-item {
        min-width: 100%;
    }
    
    .nav-link {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .main-content {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 15px;
    }
    
    .content-area, .sidebar {
        padding: 20px;
    }
    
    .sayadaw-image {
        float: none;
        display: block;
        margin: 10px auto;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .content-header {
        font-size: 1.8em;
    }
    
    .content-subheader {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .banner {
        min-height: 150px;
        padding: 10px 5px;
    }
    
    .banner-logo {
        height: 60px;
    }
    
    .banner h1 {
        font-size: 1.3em;
        margin-bottom: 3px;
    }
    
    .banner p {
        font-size: 0.85em;
        margin-bottom: 3px;
    }
    
    .content-area, .sidebar {
        padding: 15px;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
}

/* Links */
a {
    color: #3b7b15;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2d5016;
    text-decoration: underline;
}

/* Print Styles */
@media print {
    .navigation, .sidebar, .footer {
        display: none;
    }
    
    .container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .banner {
        background: #3b7b15 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}