/* Base styles cloned from Duane site with foundation-specific tweaks */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: #333; background-color: #ffffff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
p { margin-bottom: 1rem; font-size: 1.1rem; line-height: 1.7; }

.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: 500; font-size: 1rem; transition: all 0.3s ease; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%); color: white; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6); color: white; }
.btn-secondary { background: transparent; color: #2563EB; border: 2px solid #2563EB; }
.btn-secondary:hover { background: #2563EB; color: white; transform: translateY(-2px); }

.navbar { position: fixed; top: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); z-index: 1000; padding: 1rem 0; transition: all 0.3s ease; box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.nav-logo h2 { color: #2563EB; font-size: 1.5rem; margin: 0; }
.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-link { text-decoration: none; color: #333; font-weight: 500; transition: color 0.3s ease; position: relative; }
.nav-link:hover { color: #2563EB; }
.nav-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: #2563EB; transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }
.hamburger { display: none; flex-direction: column; cursor: pointer; }
.bar { width: 25px; height: 3px; background-color: #333; margin: 3px 0; transition: 0.3s; }

.hero { height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%); color: white; }
.hero-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-image { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; filter: blur(1px); transition: all 0.3s ease; }
.hero-content { text-align: center; z-index: 2; position: relative; max-width: 800px; padding: 0 20px; }
.hero-title { font-size: 4rem; margin-bottom: 1.5rem; animation: fadeInUp 1s ease; }
.hero-subtitle { font-size: 1.3rem; margin-bottom: 2rem; opacity: 0.9; animation: fadeInUp 1s ease 0.3s both; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; margin-bottom: 3rem; animation: fadeInUp 1s ease 0.6s both; }
.hero-email { animation: fadeInUp 1s ease 0.9s both; }
.hero-email p { margin-bottom: 0.5rem; font-size: 1rem; }
.hero-email-link { color: white; text-decoration: none; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 25px; transition: all 0.3s ease; }
.hero-email-link:hover { background: rgba(255, 255, 255, 0.1); color: white; transform: translateY(-2px); }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { color: #1F2937; margin-bottom: 1rem; }
.section-subtitle { color: #6B7280; font-size: 1.2rem; max-width: 600px; margin: 0 auto; }

.about { background: #F9FAFB; }
.about-content { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; align-items: start; }
.about-image-container { width: 100%; margin-bottom: 2rem; }
.about-image { width: 100%; height: 300px; object-fit: cover; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 2rem 0; }
.stat-item { text-align: center; padding: 1.5rem; background: white; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }
.stat-number { font-size: 2.5rem; font-weight: 700; color: #2563EB; margin-bottom: 0.5rem; }
.stat-label { color: #6B7280; font-weight: 500; }
.foundation-info { background: white; padding: 2rem; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); margin-top: 2rem; }
.foundation-info h3 { color: #2563EB; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info-item { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid #E5E7EB; }
.info-label { font-weight: 600; color: #374151; }
.info-value { color: #2563EB; font-weight: 500; }
.about-info { display: grid; gap: 1.5rem; }
.info-card { background: white; padding: 2rem; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); text-align: center; transition: transform 0.3s ease; }
.info-card:hover { transform: translateY(-5px); }
.info-card i { font-size: 2.5rem; color: #2563EB; margin-bottom: 1rem; }
.info-card h3 { color: #1F2937; margin-bottom: 0.5rem; }
.info-card p { color: #6B7280; margin: 0; }

.mission { background: white; }
.mission-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.mission-image { width: 100%; height: 400px; object-fit: cover; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.mission-text h2 { color: #1F2937; margin-bottom: 1.5rem; }
.mission-description, .mission-belief { color: #6B7280; margin-bottom: 1.5rem; }
.mission-values { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.value-item { padding: 1.5rem; background: #F9FAFB; border-radius: 10px; text-align: center; }
.value-item i { font-size: 2rem; color: #2563EB; margin-bottom: 1rem; }
.value-item h3 { color: #1F2937; margin-bottom: 0.5rem; font-size: 1.2rem; }
.value-item p { color: #6B7280; margin: 0; font-size: 0.9rem; }

.programs { background: #F9FAFB; }
.programs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.program-card { background: white; padding: 2.5rem; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; overflow: hidden; }
.program-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%); }
.program-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); }
.program-icon { width: 60px; height: 60px; background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%); border-radius: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.program-icon i { font-size: 1.8rem; color: white; }
.program-card h3 { color: #1F2937; margin-bottom: 1rem; }
.program-card p { color: #6B7280; margin-bottom: 1.5rem; }
.program-features { list-style: none; padding: 0; }
.program-features li { padding: 0.5rem 0; color: #6B7280; position: relative; padding-left: 1.5rem; }
.program-features li::before { content: '✓'; position: absolute; left: 0; color: #2563EB; font-weight: bold; }

.gallery { background: white; }
.carousel-item img { height: 500px; object-fit: cover; border-radius: 15px; }
.carousel-caption { background: rgba(0, 0, 0, 0.7); border-radius: 10px; padding: 1rem 2rem; bottom: 2rem; left: 50%; transform: translateX(-50%); width: auto; max-width: 80%; }
.carousel-caption h5 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.carousel-indicators button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #2563EB; background: transparent; margin: 0 5px; }
.carousel-indicators button.active { background: #2563EB; }

.impact { background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%); color: white; }
.impact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.impact-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.impact-stat { text-align: center; padding: 2rem; background: rgba(255, 255, 255, 0.1); border-radius: 15px; backdrop-filter: blur(10px); }
.stat-icon { font-size: 2.5rem; margin-bottom: 1rem; color: #93C5FD; }
.stat-number { font-size: 3rem; font-weight: 700; margin-bottom: 0.5rem; color: white; }
.stat-label { color: #E5E7EB; font-weight: 500; }

.documents { background: white; position: relative; }
.documents-content { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; margin-bottom: 3rem; }
.document-card { background: #F9FAFB; padding: 2.5rem; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); border-left: 4px solid #2563EB; position: sticky; top: 100px; }
.document-icon { width: 60px; height: 60px; background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%); border-radius: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.document-icon i { font-size: 1.8rem; color: white; }
.document-card h3 { color: #1F2937; margin-bottom: 1rem; }
.document-card p { color: #6B7280; margin-bottom: 2rem; line-height: 1.6; }
.document-details { margin: 2rem 0; background: white; padding: 1.5rem; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.detail-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid #E5E7EB; }
.detail-item:last-child { border-bottom: none; }
.detail-label { font-weight: 600; color: #374151; font-size: 0.9rem; }
.detail-value { color: #2563EB; font-weight: 500; font-size: 0.9rem; text-align: right; }
.document-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.document-actions .btn { flex: 1; min-width: 150px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.document-viewer { background: #F9FAFB; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); position: relative; min-height: 600px; }
.iframe-container { width: 100%; height: 600px; position: relative; background: white; }
.iframe-container iframe { width: 100%; height: 100%; border: none; border-radius: 15px; background: white; }
.document-fallback { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%); align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.fallback-content { max-width: 300px; }
.fallback-content i { font-size: 4rem; color: #2563EB; margin-bottom: 1rem; }
.fallback-content h4 { color: #1F2937; margin-bottom: 1rem; }
.fallback-content p { color: #6B7280; margin-bottom: 2rem; line-height: 1.6; }
.transparency-note { background: linear-gradient(135deg, #EBF8FF 0%, #DBEAFE 100%); border-radius: 15px; padding: 2rem; border-left: 4px solid #2563EB; }
.note-content { display: flex; align-items: flex-start; gap: 1rem; }
.note-content i { font-size: 1.5rem; color: #2563EB; margin-top: 0.2rem; flex-shrink: 0; }
.note-text h4 { color: #1F2937; margin-bottom: 0.5rem; font-size: 1.2rem; }
.note-text p { color: #374151; margin: 0; line-height: 1.6; }

@media (max-width: 1024px) {
  .documents-content { grid-template-columns: 1fr; gap: 2rem; }
  .document-card { position: static; }
  .iframe-container { height: 500px; }
}

@media (max-width: 768px) {
  .nav-menu { position: fixed; left: -100%; top: 70px; flex-direction: column; background: white; width: 100%; text-align: center; transition: 0.3s; box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05); padding: 2rem 0; }
  .nav-menu.active { left: 0; }
  .hamburger { display: flex; }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero-title { font-size: 2.5rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .about-content, .mission-content, .contact-content { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .carousel-item img { height: 300px; }
}

.contact { background: #F9FAFB; }
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info { display: grid; gap: 2rem; }
.contact-card { background: white; padding: 2rem; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease; }
.contact-card:hover { transform: translateY(-5px); }
.contact-icon { width: 60px; height: 60px; background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%); border-radius: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.contact-icon i { font-size: 1.5rem; color: white; }
.contact-card h3 { color: #1F2937; margin-bottom: 1rem; }
.contact-card p { color: #6B7280; margin-bottom: 1rem; }
.contact-link { color: #2563EB; text-decoration: none; font-weight: 500; }
.contact-link:hover { text-decoration: underline; }
.contact-address { color: #6B7280; font-style: normal; line-height: 1.6; }
.contact-form-section { background: white; padding: 2.5rem; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }
.contact-form-section h3 { color: #1F2937; margin-bottom: 2rem; }
.contact-form { display: grid; gap: 1.5rem; }
.form-group { display: grid; gap: 0.5rem; }
.form-group label { font-weight: 500; color: #374151; }
.form-group input, .form-group select, .form-group textarea { padding: 0.75rem; border: 2px solid #E5E7EB; border-radius: 8px; 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: #2563EB; }
.form-group textarea { resize: vertical; min-height: 120px; }

.footer { background: #1F2937; color: white; padding: 3rem 0 1rem; }
.footer-content { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; margin-bottom: 2rem; }
.footer-info h3 { color: #2563EB; margin-bottom: 1rem; }
.footer-info p { color: #D1D5DB; margin-bottom: 1.5rem; }
.footer-contact p { color: #D1D5DB; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-contact i { color: #2563EB; width: 16px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-section h4 { color: white; margin-bottom: 1rem; font-size: 1.1rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section ul li a { color: #D1D5DB; text-decoration: none; transition: color 0.3s ease; }
.footer-section ul li a:hover { color: #2563EB; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 1rem; }
.footer-bottom-content { text-align: center; color: #9CA3AF; }
.footer-bottom-content p { margin-bottom: 0.5rem; }

/* iframe loading helper */
.iframe-container::before { content: 'Loading document...'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #6B7280; font-size: 1.1rem; z-index: 1; }
.iframe-container iframe { opacity: 0; transition: opacity 0.3s ease; }
.iframe-container iframe.loaded { opacity: 1; }
.iframe-container.loaded::before { display: none; }

