/* About Page Specific Styles - FIXED ACTIVE LINK & MOBILE OVERFLOW */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    padding-top: 82px; /* For fixed navbar */
    background-color: #fef9f3;
    color: #333;
    line-height: 1.7;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

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

/* FIXED: Fixed Navbar with ACTIVE LINK STYLES */
header {
    background: linear-gradient(135deg, #0c3b2e 0%, #1a5c48 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(12, 59, 46, 0.2);
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    color: #ffb400;
    font-size: 32px;
    margin-right: 12px;
    text-shadow: 0 0 5px rgba(255, 180, 0, 0.3);
}

.logo-text {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.logo-text span {
    color: #ffb400;
}

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

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
    word-wrap: break-word;
}

.nav-links a:hover {
    color: #ffb400;
}

/* FIXED: SPECIFIC SELECTOR for active link - WORKING SOLUTION */
.nav-links li a.active {
    color: #ffb400 !important;
    font-weight: 600;
}

.nav-links li a.active::after,
.nav-links li a[href*="about.html"]::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #ffb400;
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

/* Apply active style to current page regardless of case */
.nav-links li a[href*="about.html"],
.nav-links li a[href*="About.html"] {
    color: #ffb400 !important;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
}

.mobile-menu-btn:hover {
    color: #ffb400;
}

/* About Hero Section */
.about-hero {
    background: linear-gradient(rgba(6, 24, 22, 0.85), rgba(26, 92, 72, 0.85)), 
                url('images/background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    margin-top: -82px;
    width: 100%;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.3) 100%);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
}

.about-hero h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-hero p {
    font-size: 1.4rem;
    margin: 0 auto 50px;
    color: #f0f0f0;
    max-width: 700px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    word-wrap: break-word;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
    padding: 0 20px;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.stat-item:hover {
    background: rgba(255, 180, 0, 0.2);
    transform: translateY(-5px);
    border-color: rgba(255, 180, 0, 0.3);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #ffb400, #ff9800);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffb400;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 70px;
    width: 100%;
    padding: 0 15px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: #0c3b2e;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    word-wrap: break-word;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #ffb400, #ff9800);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 25px auto 0;
    font-size: 1.2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    word-wrap: break-word;
}

/* Story Section */
.story-section {
    padding: 100px 0;
    background-color: #fff;
    width: 100%;
    overflow: hidden;
}

/* Story Timeline */
.story-timeline {
    max-width: 800px;
    margin: 60px auto 0;
    position: relative;
    width: 100%;
    padding: 0 15px;
}

.story-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: linear-gradient(to bottom, #0c3b2e, #ffb400);
    border-radius: 3px;
}

.timeline-item {
    display: flex;
    margin-bottom: 60px;
    position: relative;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 120px;
    height: 120px;
    background: linear-gradient(135deg, #0c3b2e 0%, #1a5c48 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(12, 59, 46, 0.2);
    border: 5px solid white;
}

.timeline-item:nth-child(odd) .timeline-year {
    margin-left: -60px;
}

.timeline-item:nth-child(even) .timeline-year {
    margin-right: -60px;
}

.timeline-content {
    flex: 1;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    position: relative;
    border: 1px solid #f0f0f0;
    width: calc(100% - 140px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 40px;
    text-align: left;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 40px;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
    border: 1px solid #f0f0f0;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
    border-left: none;
    border-bottom: none;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
    border-right: none;
    border-top: none;
}

.timeline-content h3 {
    font-size: 1.8rem;
    color: #0c3b2e;
    margin-bottom: 15px;
    word-wrap: break-word;
}

.timeline-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    word-wrap: break-word;
}

/* Philosophy Section */
.philosophy-section {
    padding: 100px 0;
    width: 100%;
    overflow: hidden;
}

.alt-bg {
    background: linear-gradient(135deg, #fef9f3 0%, #f5e9d9 100%);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    width: 100%;
}

.philosophy-content {
    padding-right: 20px;
}

.principles {
    margin-top: 40px;
}

.principle-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    width: 100%;
}

.principle-item:hover {
    background: white;
    border-color: #f0f0f0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transform: translateX(10px);
}

.principle-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffb400 0%, #ff9800 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #0c3b2e;
    box-shadow: 0 5px 15px rgba(255, 180, 0, 0.3);
}

.principle-content h3 {
    font-size: 1.5rem;
    color: #0c3b2e;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.principle-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    word-wrap: break-word;
}

.philosophy-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.philosophy-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    max-width: 100%;
}

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

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(12, 59, 46, 0.9), transparent);
    color: white;
    padding: 40px;
}

.image-overlay h4 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ffb400;
    word-wrap: break-word;
}

.image-overlay p {
    color: #e0e0e0;
    margin: 0;
    font-size: 1.1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    word-wrap: break-word;
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background-color: #fff;
    width: 100%;
    overflow: hidden;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
    width: 100%;
}

.team-member {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.member-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    width: 100%;
}

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

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(12, 59, 46, 0.9);
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.team-member:hover .member-social {
    transform: translateY(0);
}

.member-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.member-social a:hover {
    background: #ffb400;
    transform: translateY(-3px);
}

.member-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.member-info h3 {
    font-size: 1.6rem;
    color: #0c3b2e;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.member-role {
    color: #ff9800;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
}

.member-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    word-wrap: break-word;
}

.member-specialty {
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.member-specialty span:first-child {
    display: block;
    color: #0c3b2e;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.specialty-tags span {
    background: #f0f9f0;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Awards Section */
.awards-section {
    padding: 100px 0;
    width: 100%;
    overflow: hidden;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
    width: 100%;
}

.award-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.award-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    border-color: #ffb400;
}

.award-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #0c3b2e, #ffb400);
}

.award-icon {
    font-size: 3rem;
    color: #ffb400;
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.award-item h3 {
    font-size: 1.4rem;
    color: #0c3b2e;
    margin-bottom: 10px;
    line-height: 1.4;
    word-wrap: break-word;
}

.award-item p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    word-wrap: break-word;
}

.award-year {
    display: inline-block;
    background: #f0f9f0;
    color: #2e7d32;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Visit Section */
.visit-section {
    padding: 100px 0 30px;
    background-color: #fff;
    width: 100%;
    overflow: hidden;
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    width: 100%;
}

.visit-details {
    margin: 40px 0;
}

.detail-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    width: 100%;
}

.detail-item:hover {
    background: white;
    border-color: #f0f0f0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.detail-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0c3b2e 0%, #1a5c48 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.detail-content h4 {
    font-size: 1.4rem;
    color: #0c3b2e;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.detail-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    word-wrap: break-word;
}

.detail-content strong {
    color: #0c3b2e;
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(to right, #0c3b2e, #1a5c48);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(12, 59, 46, 0.2);
    width: auto;
}

.btn-primary:hover {
    background: linear-gradient(to right, #1a5c48, #0c3b2e);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(12, 59, 46, 0.3);
}

.btn-secondary {
    background: white;
    color: #0c3b2e;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #0c3b2e;
    width: auto;
}

.btn-secondary:hover {
    background: #0c3b2e;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(12, 59, 46, 0.2);
}

.visit-map {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    border-radius: 15px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    border: 2px dashed #ddd;
    width: 100%;
}

.map-placeholder {
    text-align: center;
    color: #666;
    width: 100%;
}

.map-placeholder i {
    font-size: 4rem;
    color: #0c3b2e;
    margin-bottom: 20px;
}

.map-placeholder h4 {
    font-size: 1.8rem;
    color: #0c3b2e;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.map-placeholder p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    word-wrap: break-word;
}

.map-note {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    margin-bottom: 30px;
}

.btn-map {
    background: linear-gradient(to right, #ffb400, #ff9800);
    color: #0c3b2e;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(255, 180, 0, 0.3);
}

.btn-map:hover {
    background: linear-gradient(to right, #ff9800, #ffb400);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 180, 0, 0.4);
}

/* Map Modal */
.map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.map-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.map-modal-header {
    background: linear-gradient(135deg, #0c3b2e 0%, #1a5c48 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    word-wrap: break-word;
}

.map-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.map-modal-close:hover {
    color: #ffb400;
}

.map-modal-body {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.map-container {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
    width: 100%;
}

.map-placeholder-large {
    text-align: center;
    width: 100%;
}

.map-placeholder-large i {
    font-size: 4rem;
    color: #0c3b2e;
    margin-bottom: 20px;
}

.map-placeholder-large h4 {
    font-size: 1.8rem;
    color: #0c3b2e;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.map-placeholder-large p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    word-wrap: break-word;
}

.map-address {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    margin: 20px 0;
    border: 1px solid #f0f0f0;
    width: 100%;
}

.map-address strong {
    color: #0c3b2e;
}

.map-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.btn-map-action {
    background: linear-gradient(to right, #0c3b2e, #1a5c48);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    text-align: center;
    width: 100%;
}

.btn-map-action:hover {
    background: linear-gradient(to right, #1a5c48, #0c3b2e);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(12, 59, 46, 0.2);
}

.map-directions {
    padding-left: 20px;
    border-left: 3px solid #ffb400;
}

.map-directions h4 {
    font-size: 1.5rem;
    color: #0c3b2e;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    word-wrap: break-word;
}

.direction-method {
    margin-bottom: 25px;
    width: 100%;
}

.direction-method h5 {
    font-size: 1.2rem;
    color: #0c3b2e;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    word-wrap: break-word;
}

.direction-method p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    word-wrap: break-word;
}

/* Footer */
footer {
    background-color: #0a2a21;
    color: #fff;
    padding: 80px 0 30px;
    width: 100%;
    overflow: hidden;
}

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

.footer-logo {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffb400;
}

.footer-about p {
    color: #bbb;
    margin-bottom: 25px;
    line-height: 1.8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    word-wrap: break-word;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: #ffb400;
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3, .footer-hours h3 {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #fff;
    position: relative;
    padding-bottom: 12px;
    word-wrap: break-word;
}

.footer-links h3::after, .footer-contact h3::after, .footer-hours h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #ffb400;
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

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

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

/* FIXED: Footer active link */
.footer-links a.active {
    color: #ffb400 !important;
    font-weight: 600;
}

.footer-links a.active i {
    color: #ffb400 !important;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    word-wrap: break-word;
}

.footer-links a i {
    margin-right: 10px;
    color: #ffb400;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ffb400;
    transform: translateX(5px);
}

.footer-contact p, .footer-hours p {
    color: #bbb;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    word-wrap: break-word;
}

.footer-contact i, .footer-hours i {
    margin-right: 15px;
    color: #ffb400;
    width: 20px;
    text-align: center;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.95rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    word-wrap: break-word;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .philosophy-grid,
    .visit-grid,
    .map-modal-body {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .philosophy-content {
        padding-right: 0;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 0 25px;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 82px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #0c3b2e 0%, #1a5c48 100%);
        flex-direction: column;
        align-items: center;
        padding: 25px 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: all 0.5s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        z-index: 999;
        max-height: calc(100vh - 82px);
        overflow-y: auto;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-links li {
        margin: 18px 0;
        margin-left: 0;
    }
    
    /* Hero Section */
    .about-hero {
        padding: 100px 0 80px;
    }
    
    .about-hero h1 {
        font-size: 2.8rem;
    }
    
    .about-hero p {
        font-size: 1.2rem;
        padding: 0 10px;
    }
    
    /* Timeline Mobile Fix */
    .story-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-left: 60px;
        width: calc(100% - 60px);
    }
    
    .timeline-year {
        flex: 0 0 80px;
        height: 80px;
        font-size: 1.4rem;
        position: absolute;
        left: -60px;
        top: 0;
        margin: 0;
    }
    
    .timeline-content {
        margin: 0 !important;
        text-align: left !important;
        width: 100%;
        padding: 20px;
    }
    
    .timeline-content::before {
        left: -10px !important;
        right: auto !important;
        border-right: none !important;
        border-top: none !important;
        border-left: 1px solid #f0f0f0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    /* Stats Grid */
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    /* Team Grid */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 15px 25px;
    }
    
    /* Container padding */
    .container {
        padding: 0 20px;
    }
    
    /* Section padding */
    .story-section,
    .philosophy-section,
    .team-section,
    .awards-section,
    .visit-section {
        padding: 70px 0;
    }
    
    /* Modal fixes */
    .map-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .map-modal-body {
        padding: 20px;
        gap: 30px;
    }
    
    /* Awards grid */
    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    /* Base adjustments */
    body {
        padding-top: 70px;
    }
    
    .navbar {
        padding: 15px 0;
    }
    
    .logo-icon {
        font-size: 26px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .nav-links {
        top: 70px;
        max-height: calc(100vh - 70px);
    }
    
    /* Hero Section */
    .about-hero {
        padding: 80px 0 60px;
        margin-top: -70px;
    }
    
    .about-hero h1 {
        font-size: 2.2rem;
        padding: 0 10px;
    }
    
    .about-hero p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Section Titles */
    .section-title {
        margin-bottom: 50px;
    }
    
    .section-title h2 {
        font-size: 2rem;
        padding: 0 10px;
    }
    
    .section-title h2::after {
        width: 60px;
        bottom: -12px;
    }
    
    .section-title p {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    /* Timeline */
    .timeline-item {
        margin-left: 40px;
        width: calc(100% - 40px);
    }
    
    .timeline-year {
        width: 70px;
        height: 70px;
        left: -40px;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    /* Principle Items */
    .principle-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .principle-icon {
        margin: 0 auto 15px;
    }
    
    /* Detail Items */
    .detail-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .detail-icon {
        margin: 0 auto 15px;
    }
    
    /* Team Members */
    .member-info {
        padding: 20px;
    }
    
    /* Awards */
    .awards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .award-item {
        padding: 20px 15px;
    }
    
    /* Modal */
    .map-modal-body {
        padding: 15px;
        gap: 20px;
    }
    
    .map-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .map-placeholder-large h4 {
        font-size: 1.4rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-links h3, 
    .footer-contact h3, 
    .footer-hours h3 {
        font-size: 1.2rem;
    }
    
    /* Container padding for very small screens */
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    /* Extra small screen fixes */
    .about-hero h1 {
        font-size: 1.8rem;
    }
    
    .about-hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .timeline-year {
        width: 60px;
        height: 60px;
        left: -35px;
        font-size: 1rem;
    }
    
    .timeline-content h3 {
        font-size: 1.4rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Prevent image overflow */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure all text elements wrap properly */
h1, h2, h3, h4, h5, h6, p, span, a, li, td, th {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Fix for any remaining overflow issues */
section, div, article, aside, header, footer, nav {
    max-width: 100%;
    box-sizing: border-box;
}

/* Animation for stats counter (if using JS) */
.stat-number.animated {
    animation: countUp 2s ease-out;
}

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