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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Helpline Banner */
.helpline-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #c23616 100%);
    color: white;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1001;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.helpline-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.helpline-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.helpline-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.helpline-number {
    background: white;
    color: #e74c3c;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.helpline-number:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: #f8f9ff;
}

.phone-icon {
    width: 16px;
    height: 16px;
}

/* Mobile responsiveness for helpline banner */
@media (max-width: 640px) {
    .helpline-banner {
        padding: 6px 15px;
        gap: 10px;
        margin-bottom: 0;
    }

    .helpline-content {
        gap: 10px;
    }

    .helpline-icon {
        width: 25px;
        height: 25px;
    }

    .helpline-text {
        font-size: 12px;
    }

    .helpline-number {
        padding: 6px 16px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .helpline-text {
        font-size: 11px;
    }

    .helpline-number {
        font-size: 13px;
        padding: 5px 14px;
    }

    /* Ensure no gap on very small screens */
    .hero {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

.navbar {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 46px;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text::after {
    content: "Recovery • Unity • Service";
    font-size: 0.7rem;
    font-weight: normal;
    opacity: 0.8;
    margin-top: 0.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-menu a:hover {
    color: #f39c12;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

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

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

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

.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect width="1200" height="600" fill="%234a90a4"/><circle cx="200" cy="150" r="50" fill="%23ffffff" opacity="0.1"/><circle cx="800" cy="300" r="80" fill="%23ffffff" opacity="0.1"/><circle cx="1000" cy="100" r="40" fill="%23ffffff" opacity="0.1"/></svg>');
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 46px;
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-button {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease 0.4s both;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cta-button.secondary {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button.secondary:hover {
    background: linear-gradient(135deg, #2980b9, #34495e);
}

.section {
    padding: 3rem 0 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    scroll-margin-top: 80px;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    margin-top: 0.5rem;
    color: #2c3e50;
}

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

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

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

.gallery-content {
    padding: 1.5rem;
}

.gallery-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.meetings-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.day-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.day-header {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 3px solid #3498db;
    position: relative;
}

.day-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #e74c3c;
}

.day-meetings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.meeting-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.meeting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.meeting-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.meeting-info {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    color: #666;
    line-height: 1.5;
}

.meeting-info strong {
    margin-right: 1rem;
    color: #2c3e50;
    min-width: 80px;
    flex-shrink: 0;
}

.meeting-info a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.meeting-info a:hover {
    color: #2980b9;
    text-decoration: underline;
}

#map {
    height: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: scale(1.02);
}

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

.event-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

.contact-card {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.contact-card h3 {
    margin-bottom: 1rem;
}

.contact-card a {
    color: #f39c12;
    text-decoration: none;
    font-weight: bold;
}

.social-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.social-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s;
}

.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.facebook {
    background: #1877f2;
}

.social-btn:hover {
    transform: translateY(-3px);
}

.jft-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 3rem;
    border-radius: 20px;
    margin: 2rem 0;
    text-align: center;
}

.jft-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.jft-date {
    color: #666;
    font-weight: bold;
}

.am-i-addict {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 20px;
    margin: 2rem 0;
}

.am-i-addict h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.am-i-addict p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #000;
}

.question {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.question h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Addict Modal Score Bubble */
.score-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(52, 73, 94, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 2001;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    display: none;
}

.score-bubble.show {
    display: block;
    animation: slideInUp 0.3s ease;
}

.score-bubble .score-text {
    text-align: center;
    line-height: 1.2;
}

.score-bubble .score-number {
    font-size: 1.3rem;
    color: #f39c12;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Event Notification Styles */
.event-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: linear-gradient(135deg, #8e44ad, #3498db);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 999;
    cursor: pointer;
    transform: translateX(350px);
    transition: transform 0.3s ease;
    animation: slideInNotification 1s ease 2s forwards;
    font-family: 'Arial', sans-serif;
}

.event-notification.show {
    transform: translateX(0);
}

.event-notification:hover {
    transform: translateX(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.notification-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
    line-height: 1;
}

.notification-close:hover {
    opacity: 1;
}

.notification-details {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.notification-countdown {
    background: rgba(255,255,255,0.2);
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes slideInNotification {
    from { transform: translateX(350px); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Event Modal Styles */
.event-modal-content {
    max-width: 800px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.event-modal-title {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
    padding-right: 3rem;
    word-wrap: break-word;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.event-details-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.event-contact-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
}

.event-section-title {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-detail-item {
    margin: 0.8rem 0;
    color: #555;
    font-size: 1rem;
}

.event-detail-label {
    color: #2c3e50;
    font-weight: 600;
}

.event-description-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-description-title {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-description-text {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

.event-highlights-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-highlights-title {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-highlight-item {
    background: #f8f9fa;
    margin: 0.8rem 0;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
}

.event-highlight-check {
    color: #27ae60;
    font-weight: 600;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 116px;
        flex-direction: row;
        background: linear-gradient(135deg, #2c3e50, #3498db);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 1rem 0;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        z-index: 999;
    }

    .nav-menu li {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        margin: 0.25rem;
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
        border-radius: 8px;
        background: rgba(255,255,255,0.1);
        transition: background 0.3s;
    }

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

    .nav-menu.active {
        left: 0;
    }

    .logo {
        font-size: 1rem;
        gap: 0.5rem;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

    .logo-text::after {
        font-size: 0.6rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .section {
        padding: 2.5rem 1rem 1.5rem 1rem;
        scroll-margin-top: 70px;
    }

    /* Remove gap between helpline banner and hero on mobile */
    .hero {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Mobile meeting layout fixes */
    .day-meetings {
        grid-template-columns: 1fr;
        gap: 1rem;
        justify-items: center;
    }

    .meeting-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .day-section {
        padding: 1.5rem;
    }

    .day-header {
        font-size: 1.5rem;
    }

    /* Events grid responsive behavior */
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem 0;
    }

    .nav-menu li {
        min-width: 100%;
        margin: 0.125rem 0;
    }

    .nav-menu a {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    /* Events grid mobile behavior */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Event Modal Mobile Styles */
    .event-modal-content {
        max-width: 95%;
        margin: 2% auto;
        padding: 1rem;
    }

    .event-modal-content img {
        width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
        object-fit: contain !important;
    }

    .event-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
    }

    .event-details-card,
    .event-contact-card {
        padding: 1rem;
    }

    .event-description-card,
    .event-highlights-card {
        padding: 1rem;
        margin: 1rem 0;
    }

    .event-modal-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding-right: 2.5rem;
    }

    .event-section-title {
        font-size: 1rem;
    }

    .event-description-title,
    .event-highlights-title {
        font-size: 1.1rem;
    }

    .event-description-text {
        font-size: 1rem;
        text-align: left;
    }
}
