:root {
    --primary-color: #3B3272;
    --secondary-color: #FFFFFF;
    --accent-color: #D4AF37;
    --text-color: #333333;
    --light-bg-color: #F0F0FF;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: var(--text-color);
    scroll-behavior: smooth;
}

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

/* Header and Navigation */
header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

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

.logo-container {
    flex-shrink: 0;
}

.logo {
    max-width: 200px;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease-in-out;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

nav ul li {
    margin-left: 15px;
    margin-bottom: 10px;
}

nav ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.9em;
}

.sticky-header {
    padding: 5px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sticky-header .logo {
    max-width: 150px;
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 20px auto;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #C49B2C;
}

/* Features Section */
.features {
    padding: 60px 0;
    background-color: var(--secondary-color);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header img {
    max-width: 100%;
    height: auto;
}

.feature {
    margin-bottom: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature h3 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.feature p {
    max-width: 300px;
    margin: 0 auto;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.feature-icon path {
    stroke: var(--primary-color);
}

/* Schools Section */
.schools {
    background-color: var(--light-bg-color);
    padding: 60px 0;
}

.school-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.school {
    background-color: var(--secondary-color);
    padding: 20px;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    flex: 1 1 300px;
    max-width: 300px;
}

.school-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
    object-fit: contain;
}

/* YeshivaLink + T-Mobile Section */
.yeshivalink-tmobile {
    background-color: var(--light-bg-color);
    padding: 60px 0;
}

.yeshivalink-tmobile .content {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.yeshivalink-tmobile h2, .yeshivalink-tmobile h3 {
    color: var(--primary-color);
}

.yeshivalink-tmobile ul {
    list-style-type: none;
    padding-left: 0;
}

/* Buy Section */
.buy-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--secondary-color);
}

.buy-options {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.buy-option {
    flex: 1 1 300px;
    max-width: 500px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subscription-option {
    background-color: var(--light-bg-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.subscription-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
}

.subscription-note {
    font-size: 0.9em;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.subscription-note a {
    color: var(--accent-color);
    text-decoration: underline;
}

.subscription-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.subscription-button {
    margin-top: 10px;
    transition: transform 0.1s ease-in-out;
}

.subscription-button:active {
    transform: scale(0.95);
}

.external-link-note {
    font-size: 0.8em;
    color: var(--text-color);
    margin-top: 10px;
    font-style: italic;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 20px 0;
}

.star-of-david {
    display: inline-block;
    font-size: 24px;
    margin: 0 5px;
}

/* Shopify Buy Button Overrides */
#product-component-1724577077006 {
    margin: 0 auto;
    max-width: 600px;
}

#product-component-1724577077006 .shopify-buy__btn {
    background-color: var(--accent-color) !important;
    font-family: Arial, sans-serif !important;
    font-weight: bold !important;
    color: var(--secondary-color) !important;
}

#product-component-1724577077006 .shopify-buy__btn:hover {
    background-color: #C49B2C !important;
}

/* Responsive Design */
@media (min-width: 768px) {
    .features .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .features .section-header {
        width: 100%;
    }

    .feature {
        flex: 0 1 calc(33.333% - 40px);
        margin: 0 20px 40px;
    }
}

@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
    }

    nav ul {
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }
}

@media (max-width: 767px) {
    .header-content {
        flex-direction: column;
    }
    
    .logo-container {
        margin-bottom: 10px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .school {
        flex: 1 1 100%;
    }

    .logo, .sticky-header .logo {
        max-width: 150px;
    }

    .school-logo {
        width: 100px;
        height: 100px;
    }

    .subscription-buttons {
        flex-direction: column;
    }
}