/* ===================================
   Clean Institutional Design
   Geng Surau Putrajaya
   =================================== */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: #2d3748;
    background-color: #ffffff;
}

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

/* ===== HEADER SECTION ===== */
.main-header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #ffffff;
    padding: 25px 0;
    border-bottom: 1px solid #e2e8f0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    padding: 5px;
    border: 3px solid #fbbf24;
}

.logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    overflow: hidden;
    background: transparent;
}

.logo-circle i {
    font-size: 28px;
    color: #2c5282;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
}

.org-title h1 {
    color: #1a202c;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    text-shadow: none;
}

.tagline {
    color: #718096;
    font-size: 13px;
    font-weight: 400;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    position: relative;
}

.social-media {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    font-size: 20px;
    color: #718096;
    transition: color 0.2s ease;
}

.social-icon:hover {
    color: #2c5282;
}

/* ===== PRAYER TIMES LIVE WIDGET ===== */
.prayer-times-live {
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
    border-radius: 6px;
    padding: 8px 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 480px;
}

.prayer-widget-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.current-time-section {
    display: flex;
    align-items: center;
    gap: 5px;
}

.current-time-section i {
    color: #fbbf24;
    font-size: 14px;
}

.current-time {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.current-dates {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.gregorian-date {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.hijri-date {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.75);
}

.prayer-zone-label {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 3px;
}

.prayer-zone-label i {
    font-size: 6px;
}

.prayer-times-compact {
    display: flex;
    gap: 5px;
    flex: 1;
    align-items: center;
}

.prayer-time-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 5px 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    min-width: 0;
}

.prayer-time-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.prayer-name-compact {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-bottom: 2px;
    white-space: nowrap;
}

.prayer-time-compact {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
}

/* Current prayer highlight */
.prayer-time-item.current-prayer {
    background: rgba(251, 191, 36, 0.25);
    border: 1px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.prayer-time-item.current-prayer .prayer-name-compact {
    color: #fbbf24;
}

.prayer-time-item.current-prayer .prayer-time-compact {
    color: #fbbf24;
}

/* Passed prayers */
.prayer-time-item.prayer-passed {
    opacity: 0.5;
}

.prayer-times-error {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.prayer-times-error i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #fbbf24;
}

.prayer-times-error p {
    font-size: 13px;
    margin: 0;
}

/* ===== NAVIGATION ===== */
.main-nav {
    background: #f7fafc;
    border-top: none;
}

.main-nav .container {
    position: relative;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: #2c5282;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    margin-right: 50px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 16px 24px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
    border-right: none;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: transparent;
    color: #2c5282;
    transform: none;
}

/* Minimal underline effect */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c5282;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* ===== HERO SLIDER - Modern Design ===== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #f7fafc;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

/* No pattern on carousel - clean design */
.slide::before {
    display: none;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    padding: 50px 80px 60px;
    z-index: 2;
}

.slide-caption h2 {
    color: white;
    font-size: 48px;
    margin-bottom: 0px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    letter-spacing: -0.5px;
    max-width: 900px;
}

.slide-caption p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 20px;
    font-weight: 400;
    max-width: 700px;
    line-height: 1.6;
}

/* Modern Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #2c5282;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-btn:hover {
    background: white;
    color: #1a202c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

/* Modern Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: white;
    width: 32px;
    border-radius: 5px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
    background: white;
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.welcome-section h2 {
    font-size: 32px;
    color: #1a202c;
    margin-bottom: 24px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.welcome-section p {
    font-size: 18px;
    line-height: 1.9;
    max-width: 900px;
    margin: 0 auto;
    color: #4a5568;
    position: relative;
    z-index: 1;
}

/* ===== QUICK LINKS / INFO CARDS ===== */
.quick-links {
    padding: 80px 0;
    background: #f7fafc;
    position: relative;
    overflow: hidden;
}

/* No pattern on gray backgrounds */
.quick-links::before {
    display: none;
}

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

/* Flip Card Effect */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 300px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.flip-card-front {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flip-card-front img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.flip-card-front i {
    margin-bottom: 20px;
    color: #fbbf24;
}

.flip-card-front h3 {
    font-size: 22px;
    margin: 0;
}

.flip-card-back {
    background: white;
    color: #333;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 3px solid #fbbf24;
}

.flip-card-back p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-link {
    display: inline-block;
    padding: 10px 25px;
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.card-link:hover {
    background: #fbbf24;
    color: #1e3a8a;
    transform: scale(1.05);
}

/* ===== LATEST NEWS SECTION ===== */
.latest-news {
    padding: 60px 0;
    background: white;
}

.latest-news h2 {
    text-align: center;
    font-size: 36px;
    color: #1e3a8a;
    margin-bottom: 40px;
}

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

.news-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: #fbbf24;
    font-size: 14px;
    font-weight: 600;
}

.news-content h3 {
    color: #1e3a8a;
    margin: 10px 0;
    font-size: 20px;
}

.news-content p {
    color: #555;
    margin-bottom: 15px;
}

.read-more {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #fbbf24;
}

/* ===== EMERGENCY ALERTS ===== */
.emergency-alerts {
    padding: 40px 0;
    background: #fef3c7;
}

.emergency-alerts h2 {
    text-align: center;
    color: #92400e;
    margin-bottom: 20px;
}

.alert-box {
    background: white;
    padding: 20px;
    border-left: 5px solid #f59e0b;
    border-radius: 5px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-box.urgent {
    border-left-color: #dc2626;
}

.alert-box.info {
    border-left-color: #3b82f6;
}

.alert-icon {
    font-size: 28px;
    color: #f59e0b;
}

.alert-box.urgent .alert-icon {
    color: #dc2626;
}

.alert-box.info .alert-icon {
    color: #3b82f6;
}

.alert-content {
    flex: 1;
}

.alert-content h3 {
    color: #1e3a8a;
    margin-bottom: 10px;
}

.alert-content p {
    margin: 0;
    color: #555;
}

.alert-date {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #888;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: #f7fafc;
    padding: 80px 0 60px 0;
    text-align: center;
    color: #1a202c;
    border-bottom: 1px solid #e2e8f0;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 12px;
    text-shadow: none;
    font-weight: 600;
    color: #1a202c;
}

.page-header p {
    font-size: 16px;
    color: #718096;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== CONTENT SECTION ===== */
.content-section {
    padding: 80px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 30px;
    color: #1a202c;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Minimal Border Decoration */
.islamic-border {
    width: 60px;
    height: 3px;
    background: #2c5282;
    margin: 0 auto;
    position: relative;
}

.islamic-border::before,
.islamic-border::after {
    display: none;
}

/* ===== CONTENT WITH IMAGE ===== */
.content-with-image {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.text-content p {
    margin-bottom: 20px;
    line-height: 1.9;
    color: #4a5568;
    text-align: left;
}

.image-content img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ===== VISION MISSION ===== */
.vision-mission {
    padding: 80px 0;
    background: #f7fafc;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.vm-card {
    background: white;
    padding: 50px 40px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border-left: 3px solid #2c5282;
}

/* Removed Pattern Background */
.islamic-pattern-bg {
    display: none;
}

.vm-card h3 {
    color: #1a202c;
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    font-weight: 600;
}

.vm-card p,
.vm-card ul {
    color: #4a5568;
    line-height: 1.9;
    position: relative;
}

.vm-card ul {
    list-style: none;
    padding-left: 0;
}

.vm-card ul li {
    padding-left: 24px;
    margin-bottom: 12px;
    position: relative;
}

.vm-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2c5282;
    font-size: 20px;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #e2e8f0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(even) .timeline-year {
    order: 2;
}

.timeline-item:nth-child(even) .timeline-content {
    order: 1;
    text-align: right;
}

.timeline-year {
    font-size: 36px;
    font-weight: 600;
    color: #2c5282;
    text-align: right;
    padding-right: 50px;
}

.timeline-item:nth-child(even) .timeline-year {
    text-align: left;
    padding-left: 50px;
    padding-right: 0;
}

.timeline-content {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.timeline-content h4 {
    color: #1a202c;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 18px;
}

.timeline-content p {
    color: #718096;
    line-height: 1.8;
}

/* ===== COMMITTEE SECTION ===== */
.committee-section {
    padding: 80px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.committee-card {
    background: #f7fafc;
    padding: 30px 20px;
    border-radius: 4px;
    box-shadow: none;
    text-align: center;
    transition: box-shadow 0.2s ease;
    border: 1px solid #e2e8f0;
}

.committee-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.member-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #2c5282;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.committee-card h4 {
    color: #1a202c;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 16px;
}

.position {
    color: #2c5282;
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 14px;
}

.bio {
    color: #718096;
    font-size: 13px;
    line-height: 1.7;
}

/* ===== VALUES SECTION ===== */
.values-section {
    padding: 80px 0;
    background: #f7fafc;
}

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

.value-item {
    background: white;
    padding: 40px 30px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
    border: 1px solid #e2e8f0;
}

.value-item:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.value-icon {
    font-size: 40px;
    color: #2c5282;
    margin-bottom: 18px;
}

.value-item h4 {
    color: #1a202c;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.value-item p {
    color: #718096;
    line-height: 1.8;
    font-size: 14px;
}

/* ===== EVENTS GRID ===== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.event-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    padding: 20px;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.event-date {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date .day {
    font-size: 36px;
    font-weight: 700;
    display: block;
}

.event-date .month {
    font-size: 14px;
    color: #fbbf24;
}

.event-details {
    flex: 1;
}

.event-details h3 {
    color: #1e3a8a;
    margin-bottom: 10px;
}

.event-time,
.event-location {
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.event-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.event-link {
    display: inline-block;
    padding: 8px 20px;
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.event-link:hover {
    background: #fbbf24;
    color: #1e3a8a;
}

/* ===== PROGRAMS SECTION ===== */
.programs-section {
    padding: 60px 0;
    background: #f9fafb;
}

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

.program-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.program-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.program-content {
    padding: 25px;
}

.program-content h3 {
    color: #1e3a8a;
    margin-bottom: 10px;
}

.program-schedule {
    color: #fbbf24;
    font-weight: 600;
    margin-bottom: 15px;
}

.program-content p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.program-features {
    list-style: none;
    padding: 0;
}

.program-features li {
    padding-left: 25px;
    margin-bottom: 8px;
    position: relative;
    color: #666;
}

.program-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #fbbf24;
    font-weight: 700;
}

/* ===== SPECIAL EVENTS ===== */
.special-events {
    padding: 60px 0;
    background: white;
}

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

.special-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.special-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.special-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #fbbf24;
}

.special-card h3 {
    margin-bottom: 15px;
}

.special-card p {
    line-height: 1.6;
    opacity: 0.9;
}

/* ===== DOWNLOAD SECTION ===== */
.download-section {
    padding: 60px 0;
    background: #f9fafb;
}

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

.download-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.download-icon {
    font-size: 48px;
    color: #1e3a8a;
    margin-bottom: 15px;
    display: block;
}

.download-item h4 {
    color: #1e3a8a;
    margin-bottom: 10px;
}

.download-item p {
    color: #666;
    margin-bottom: 20px;
}

.download-btn {
    display: inline-block;
    padding: 10px 30px;
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #fbbf24;
    color: #1e3a8a;
}

/* ===== NEWS SECTION ===== */
.news-list {
    margin-top: 30px;
}

.news-article {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.news-article:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

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

.news-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #fbbf24;
    color: #1e3a8a;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.news-body {
    padding: 30px;
}

.news-body h3 {
    color: #1e3a8a;
    font-size: 28px;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #888;
}

.news-author,
.news-date {
    display: flex;
    align-items: center;
}

.news-body p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.news-body ul,
.news-body ol {
    margin-left: 20px;
    margin-bottom: 15px;
    color: #555;
}

.news-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.quote-box {
    background: #f9fafb;
    border-left: 4px solid #fbbf24;
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

.meeting-details {
    background: #f9fafb;
    padding: 20px;
    border-radius: 5px;
    margin: 15px 0;
}

.meeting-details p {
    margin-bottom: 8px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #fbbf24;
    color: #1e3a8a;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.newsletter-box {
    text-align: center;
    color: white;
}

.newsletter-box h2 {
    margin-bottom: 15px;
}

.newsletter-box p {
    margin-bottom: 30px;
    color: #fbbf24;
}

.newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.btn-subscribe {
    padding: 15px 30px;
    background: #fbbf24;
    color: #1e3a8a;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background: white;
    transform: scale(1.05);
}

/* ===== ARCHIVE SECTION ===== */
.archive-section {
    padding: 60px 0;
    background: white;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.archive-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background: #f9fafb;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.archive-link:hover {
    background: #1e3a8a;
    border-color: #fbbf24;
}

.archive-year {
    font-size: 36px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.archive-link:hover .archive-year {
    color: #fbbf24;
}

.archive-label {
    color: #666;
}

.archive-link:hover .archive-label {
    color: white;
}

/* ===== CONTACT PAGE ===== */
.contact-info-section {
    padding: 60px 0;
    background: #f9fafb;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 48px;
    color: #fbbf24;
    margin-bottom: 15px;
}

.contact-card h3 {
    color: #1e3a8a;
    margin-bottom: 15px;
}

.contact-card p,
.contact-card a {
    color: #555;
    margin-bottom: 8px;
    text-decoration: none;
}

.contact-card a:hover {
    color: #1e3a8a;
}

/* ===== CONTACT FORM ===== */
.contact-form-section {
    padding: 60px 0;
    background: white;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-intro {
    margin-bottom: 40px;
}

.form-intro p {
    text-align: center;
    color: #666;
    margin-top: 15px;
}

.contact-form {
    background: #f9fafb;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    color: #1e3a8a;
    font-weight: 600;
    margin-bottom: 8px;
}

.required {
    color: #dc2626;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fbbf24;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-submit,
.btn-reset {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit {
    background: #1e3a8a;
    color: white;
}

.btn-submit:hover {
    background: #fbbf24;
    color: #1e3a8a;
    transform: scale(1.05);
}

.btn-reset {
    background: #e5e7eb;
    color: #555;
}

.btn-reset:hover {
    background: #d1d5db;
}

/* ===== FEEDBACK SECTION ===== */
.feedback-section {
    padding: 60px 0;
    background: #f9fafb;
}

.feedback-box {
    max-width: 600px;
    margin: 30px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.feedback-box p {
    color: #666;
    margin-bottom: 25px;
}

.quick-feedback-form input,
.quick-feedback-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.quick-feedback-form input:focus,
.quick-feedback-form textarea:focus {
    outline: none;
    border-color: #fbbf24;
}

/* ===== REGISTRATION SECTION ===== */
.registration-section {
    padding: 60px 0;
    background: white;
}

.registration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.registration-card {
    background: #f9fafb;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.registration-card h3 {
    color: #1e3a8a;
    margin-bottom: 10px;
}

.registration-card p {
    color: #666;
    margin-bottom: 25px;
}

.mini-form input,
.mini-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    font-size: 14px;
}

.mini-form input:focus,
.mini-form select:focus {
    outline: none;
    border-color: #fbbf24;
}

/* ===== DONATION SECTION ===== */
.donation-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
}

.donation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.donation-text h3,
.donation-details h3 {
    margin-bottom: 20px;
    color: #1a202c;
}

.donation-text h4 {
    margin: 20px 0 10px;
    color: #2c5282;
}

.donation-text p {
    color: #4a5568;
    line-height: 1.9;
}

.donation-text ul {
    list-style: none;
    padding: 0;
}

.donation-text li {
    padding-left: 25px;
    margin-bottom: 10px;
    position: relative;
    color: #4a5568;
}

.donation-text li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: #2c5282;
}

.bank-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.bank-info p {
    margin-bottom: 10px;
}

.donation-note,
.tax-info p {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 15px;
}

.donation-note a {
    color: #2c5282;
    text-decoration: underline;
}

/* ===== LOCATION SECTION ===== */
.location-section {
    padding: 60px 0;
    background: #f9fafb;
}

.location-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.map-placeholder {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 58, 138, 0.9);
    padding: 20px;
    color: white;
    text-align: center;
}

.btn-map {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #fbbf24;
    color: #1e3a8a;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-map:hover {
    background: white;
}

.directions {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.directions h3 {
    color: #1e3a8a;
    margin-bottom: 20px;
}

.directions h4 {
    color: #1e3a8a;
    margin: 15px 0 10px;
}

.directions p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 60px 0;
    background: white;
}

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

.faq-item {
    background: #f9fafb;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #fbbf24;
}

.faq-item h4 {
    color: #1e3a8a;
    margin-bottom: 10px;
}

.faq-item p {
    color: #555;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.main-footer {
    background: #1a202c;
    color: #cbd5e0;
    padding: 60px 0 30px;
    border-top: 1px solid #2d3748;
}

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

.footer-col h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
}

.footer-col p,
.footer-col a {
    color: #cbd5e0;
    margin-bottom: 10px;
    line-height: 1.8;
    font-size: 14px;
}

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

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

.footer-col ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social a {
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 14px;
}

.footer-social a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2d3748;
}

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

.disclaimer {
    font-size: 12px;
    color: #a0aec0;
}

@media (max-width: 768px) {

    /* Header restructure for mobile */
    .header-top .container {
        flex-direction: column;
        gap: 25px;
        align-items: stretch;
    }

    /* First row: Logo + Hamburger */
    .logo-section {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        position: relative;
    }

    .logo-circle {
        width: 60px;
        height: 60px;
    }

    .org-title h1 {
        font-size: 16px;
        line-height: 1.2;
        margin-bottom: 2px;
    }

    .tagline {
        font-size: 11px;
        line-height: 1.2;
    }

    /* Position hamburger in logo section on mobile */
    .main-nav {
        position: absolute;
        top: 25px;
        right: 20px;
        background: transparent;
        z-index: 1001;
    }

    .main-nav .container {
        padding: 0;
        max-width: none;
        width: auto;
    }

    .hamburger-menu {
        display: flex; /* Show on mobile */
        position: static;
        transform: none;
    }

    /* Hide navigation menu by default on mobile */
    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #f7fafc;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: top 0.3s ease;
        z-index: 1000;
        margin: 0;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }

    /* Show menu when active - slides down to appear below header */
    .nav-menu.active {
        top: 200px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 14px 20px;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-menu a::after {
        display: none;
    }

    /* Second row: Prayer widget full width */
    .header-right {
        width: 100%;
        justify-content: center;
    }

    /* 1. Reset the widget container to be slim */
    .prayer-times-live {
        width: 100%;
        padding: 10px;
        margin-top: 0;
        min-width: auto; /* Overwrite desktop width */
        flex-direction: column;
    }

    /* 2. HIDE the big clock & date (Users already have this on their phone status bar) */
    .prayer-widget-header {
        display: none !important;
    }

    /* 3. Turn the prayer grid into a single scrollable row */
    .prayer-times-compact {
        display: flex;
        flex-direction: row; /* Force horizontal alignment */
        justify-content: space-between; /* Spread items evenly */
        gap: 8px;
        width: 100%;
        overflow-x: auto; /* Allow scrolling on very small screens */
        padding-bottom: 2px;
    }

    /* 4. Style the individual prayer boxes */
    .prayer-time-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 55px; /* Ensure they aren't too squashed */
        padding: 6px 2px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* 5. Make the text easy to read */
    .prayer-name-compact {
        font-size: 10px;
        text-transform: uppercase;
        margin-bottom: 2px;
        opacity: 0.8;
    }

    .prayer-time-compact {
        font-size: 12px;
        font-weight: 700;
        color: #fff;
    }

    /* 6. Highlight the Active/Next Prayer (Gold Style) */
    .prayer-time-item.current-prayer {
        background: #fbbf24; /* Gold background */
        border-color: #fbbf24;
        transform: scale(1.05); /* Slight pop */
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    /* Change text color to dark blue for contrast on the gold background */
    .prayer-time-item.current-prayer .prayer-name-compact,
    .prayer-time-item.current-prayer .prayer-time-compact {
        color: #1e3a8a;
    }

    /* Carousel improvements for mobile */
    .hero-slider {
        height: 400px;
    }

    .slide-caption {
        padding: 30px 20px 20px;
    }

    .slide-caption h2 {
        font-size: 24px;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .slide-caption p {
        font-size: 14px;
        line-height: 1.5;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-btn.prev {
        left: 15px;
    }

    .slider-btn.next {
        right: 15px;
    }

    .slider-dots {
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        gap: 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 24px;
    }
}

/* ===== TOOLTIPS ===== */
[title]:hover::after {
    content: attr(title);
    position: absolute;
    background: #1e3a8a;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeIn 0.6s ease-out;
}

/* ===== PRINT STYLES ===== */
@media print {
    .main-nav,
    .slider-btn,
    .slider-dots,
    .footer-social,
    .btn-submit,
    .btn-reset {
        display: none;
    }
}

/* ===== REMOVED DECORATIVE PATTERNS ===== */

/* Clean minimal design - no body overlays */
body::after {
    display: none;
}

/* Removed decorative elements */
.section-header::before {
    display: none;
}

.section-header {
    position: relative;
    padding-top: 0;
}

/* Removed - Border Pattern */
.islamic-pattern-border {
    display: none;
}

.islamic-pattern-border::before,
.islamic-pattern-border::after {
    display: none;
}

/* Removed - Geometric Pattern */
.geometric-pattern-bg {
    display: none;
}

/* Removed - Mosque Pattern */
.mosque-pattern {
    position: relative;
}

.mosque-pattern::before {
    display: none;
}

/* All decorative patterns removed for clean minimal design */

.calligraphy-divider,
.islamic-border-enhanced,
.islamic-arch,
.corner-pattern,
.tile-pattern,
.star-motif {
    display: none;
}

.header-top::before,
.main-footer::before,
.page-header::before,
.welcome-section::after,
.section-divider::before,
.section-divider::after {
    display: none;
}

.news-item::before,
.event-card::before,
.program-card::before,
.committee-card::before {
    display: none;
}

.main-footer {
    position: relative;
}

.page-header {
    position: relative;
}

/* ===== GOOGLE FORM RESPONSIVE WRAPPER ===== */
.google-form-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 120%; /* Aspect ratio for the form */
    height: 0;
    overflow: hidden;
    background: #f9fafb;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.google-form-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

@media (min-width: 769px) {
    .google-form-wrapper {
        padding-bottom: 0;
        height: 941px; /* Original height for desktop */
    }
}

@media (max-width: 768px) {
    .google-form-wrapper {
        padding-bottom: 150%; /* Taller ratio for mobile */
        border-radius: 8px;
    }

    .google-form-wrapper iframe {
        border-radius: 8px;
    }
}

