/* Reset some default styles */
body, h1, h2, h3, p, ul, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f9;
    padding: 0 20px;
}

header {
    background: #180048;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
}

nav {
    margin: 20px 0;
    text-align: center;
}

nav a {
    color: #180048;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    nav a {
        display: block;
        margin: 10px 0;
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px 0;
    background: #180048;
    color: #fff;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -999px;
    top: -999px;
    background: #180048;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 10000;
}
.skip-link:focus {
    left: 12px;
    top: 12px;
}

/* Preloader styles */
#preloader {
    position: fixed;
    inset: 0;
    background: #f4f4f9;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
#preloader .loader {
    width: 80%;
    max-width: 600px;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
#preloader .bar {
    height: 14px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}
#preloader .bar > .progress {
    height: 100%;
    width: 0%;
    background: #180048;
    transition: width 120ms linear;
}
#preloader .label {
    text-align: center;
    margin-top: 8px;
    color: #180048;
    font-weight: 700;
    font-family: Arial, sans-serif;
}

/* A2HS banner styles */
#a2hs-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
}
#a2hs-banner img {
    border-radius: 6px;
}
#a2hs-banner div {
    font-weight: 700;
    color: #180048;
}
#a2hs-install {
    background: #180048;
    color: #fff;
    border: none;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
}
#a2hs-close {
    background: transparent;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
}

/* Install modal styles */
.install-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.install-overlay[open] { display: flex; }
.install-panel {
    width: 92%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    text-align: center;
    color: #111;
    position: relative;
}
.install-panel img { 
    border-radius: 10px; 
    margin-bottom: 8px; 
}
.install-panel h3 { 
    margin: 8px 0; 
    color: #180048; 
}
.install-panel p { 
    margin: 8px 0 16px; 
    color: #444; 
}
.install-actions { 
    display: flex; 
    gap: 10px; 
    justify-content: center; 
}
.btn-accept {
    background: #180048;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}
.btn-accept:hover {
    background: #24006e;
}
.btn-decline {
    background: transparent;
    color: #180048;
    border: 1px solid #ddd;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
.btn-decline:hover {
    background: #f0f0f0;
}
.install-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

/* Project section */
.project-section {
    margin-bottom: 40px;
}

.project-section h3 {
    text-align: center;
    margin-bottom: 15px;
}

.project-image-container {
    text-align: center;
    margin: 20px 0;
}

.project-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .project-image {
        max-width: 300px;
    }
}

/* Video container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Section spacing */
.section {
    margin-top: 40px;
}

/* Button styles */
.cta-button {
    display: inline-block;
    background: #180048;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #24006e;
}

/* YouTube link styling */
.youtube-link {
    color: #180048;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.youtube-link:hover {
    color: #24006e;
    text-decoration: underline;
}

/* Subscriber counter */
.subscriber-counter {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
