* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7F0000;
    --primary-dark: #5A0000;
    --secondary-color: #B30000;
    --accent-color: #FF6B6B;
    --dark-color: #2C1A1A;
    --light-color: #FEF6F6;
    --text-color: #333333;
    --gray-color: #6C757D;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: #fefefe;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(127, 0, 0, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(127, 0, 0, 0.4);
}

.btn-secondary {
    background: linear-gradient(to right, var(--secondary-color), #990000);
    box-shadow: 0 4px 15px rgba(179, 0, 0, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(179, 0, 0, 0.4);
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title p {
    font-size: 18px;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-right: 12px;
    font-weight: bold;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
}

.logo-text span {
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 35px;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #7F0000 0%, #B30000 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.1;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 58px;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.hero p {
    font-size: 22px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    position: relative;
}

/* Registration Form */
.registration-container {
    background-color: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: 60px auto 0;
    padding: 40px;
    animation: formSlideIn 0.8s ease-out;
    position: relative;
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-title {
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 30px;
    font-size: 28px;
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 16px;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(127, 0, 0, 0.1);
}

.select-group {
    display: flex;
    gap: 15px;
}

.select-item {
    flex: 1;
}

.select-item select {
    width: 100%;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.checkbox-group input {
    margin-right: 10px;
    transform: scale(1.2);
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--gray-color);
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    background-color: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 32px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Community Section */
.community {
    padding: 100px 0;
    background: linear-gradient(to right, rgba(127, 0, 0, 0.05), rgba(179, 0, 0, 0.05));
}

.community-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    flex: 1;
    min-width: 200px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-text {
    font-size: 18px;
    color: var(--dark-color);
    font-weight: 500;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background-color: white;
}

.testimonials-container {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial {
    background-color: var(--light-color);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    margin: 0 15px;
}

.testimonial-content {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--text-color);
    line-height: 1.8;
    position: relative;
    padding: 0 20px;
}

.testimonial-content:before {
    content: '"';
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    left: -10px;
    top: -40px;
    font-family: 'Playfair Display', serif;
}

.testimonial-content:after {
    content: '"';
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    right: -10px;
    bottom: -60px;
    font-family: 'Playfair Display', serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-info h4 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.author-info p {
    color: var(--gray-color);
    font-size: 16px;
}

/* Partners Section */
.partners {
    padding: 100px 0;
    background: linear-gradient(to right, rgba(127, 0, 0, 0.03), rgba(179, 0, 0, 0.03));
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.partner-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid rgba(127, 0, 0, 0.1);
    transition: var(--transition);
}

.partner-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(127, 0, 0, 0.15);
}

.partner-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 22px;
}

.partner-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 15px;
}

/* Announcements Section */
.announcements {
    padding: 100px 0;
    background-color: white;
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.announcement-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.announcement-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
}

.announcement-card p {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.announcement-card small {
    color: var(--gray-color);
    font-size: 14px;
}

/* Subcategories Section */
.subcategories {
    padding: 100px 0;
    background-color: var(--light-color);
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.subcategory-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.subcategory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(127, 0, 0, 0.1);
    border-top-color: var(--primary-color);
}

.subcategory-card h4 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(127, 0, 0, 0.1);
}

.subcategory-card ul {
    list-style: none;
    padding-left: 0;
}

.subcategory-card li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.subcategory-card li:before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.subcategory-card a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.subcategory-card a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: var(--light-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid rgba(127, 0, 0, 0.1);
}

.faq-question {
    padding: 20px 30px;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(127, 0, 0, 0.02);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 30px 20px;
    max-height: 500px;
}

.faq-icon {
    transition: var(--transition);
    color: var(--primary-color);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #CCCCCC;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-about p {
    color: #CCCCCC;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links 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: white;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #AAAAAA;
    font-size: 15px;
}

.seo-keywords {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    color: #CCCCCC;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .hero h1 {
        font-size: 48px;
    }
}

@media (max-width: 992px) {
    .main-nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: white;
        padding: 30px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
    }
    
    .main-nav.active ul {
        left: 0;
    }
    
    .main-nav li {
        margin: 0 0 20px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero h1 {
        font-size: 38px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-title h2 {
        font-size: 34px;
    }
    
    .registration-container {
        padding: 30px 25px;
    }
    
    .select-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial {
        padding: 30px 20px;
    }
    
    .testimonial-content:before,
    .testimonial-content:after {
        display: none;
    }
    
    .partners-grid,
    .announcements-grid,
    .subcategories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .stat-item {
        min-width: 150px;
        padding: 20px 10px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .author-img {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }
    
    .author-info h4 {
        font-size: 18px;
    }
}