/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #DC143C;
    --primary-yellow: #FFD700;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #333333;
    --text-gray: #666666;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Global Heading Styles - King's Period Font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Keep Sinhala text in headings as Noto Sans Sinhala */
h1.sinhala-text,
h2.sinhala-text,
h3.sinhala-text,
h4.sinhala-text,
h5.sinhala-text,
h6.sinhala-text {
    font-family: 'Noto Sans Sinhala', sans-serif;
}

.sinhala-text {
    font-family: 'Noto Sans Sinhala', sans-serif;
}

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

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

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

.logo {
    height: 60px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

.logo-text {
    font-family: 'Noto Sans Sinhala', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-red);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-red);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-red);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(122, 12, 12, 0.6) 0%, rgba(77, 22, 22, 0.6) 100%), url('tradi.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 200px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Noto Sans Sinhala', sans-serif;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Noto Sans Sinhala', sans-serif;
    color: var(--primary-yellow);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: var(--dark-gray);
}

.btn-primary:hover {
    background-color: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-red);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-gray);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-yellow));
    border-radius: 2px;
}

.section-title.centered {
    text-align: center;
}

/* Highlights Section */
.highlights {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(245, 245, 245, 0.9) 100%), url('king_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.highlight-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
    border-color: var(--primary-red);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.highlight-card h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Quick Links Section */
.quick-links {
    padding: 60px 0;
    background-color: var(--light-gray);
}

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

.link-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark-gray);
    display: block;
    transition: all 0.3s;
    border-left: 4px solid var(--primary-red);
}

.link-card:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px var(--shadow);
}

.link-card h3 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.link-card p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.link-arrow {
    color: var(--primary-yellow);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, #B71C1C 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Content Section */
.content-section {
    padding: 60px 0;
    background-color: var(--white);
}

.content-section.alt-bg {
    background-color: var(--light-gray);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-wrapper.reverse {
    direction: rtl;
}

.content-wrapper.reverse > * {
    direction: ltr;
}

.content-block h2 {
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.content-block p {
    margin-bottom: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.content-image {
    width: 100%;
}

.placeholder-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--medium-gray), var(--light-gray));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-weight: 500;
    border: 2px dashed var(--medium-gray);
}

.history-timeline {
    list-style: none;
    margin-top: 1.5rem;
}

.history-timeline li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-left: 2px solid var(--primary-red);
}

.history-timeline li::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 1.2rem;
    width: 10px;
    height: 10px;
    background-color: var(--primary-yellow);
    border-radius: 50%;
    border: 2px solid var(--primary-red);
}

/* Vision Section */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.vision-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border-top: 4px solid var(--primary-yellow);
    transition: all 0.3s;
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.vision-card h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Mission Section */
.mission-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-red) 0%, #B71C1C 100%);
    color: var(--white);
}

.mission-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.mission-box h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-yellow);
}

.mission-text {
    font-size: 1.2rem;
    line-height: 1.8;
    font-style: italic;
}

/* Events Section */
.events-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.featured-event {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px var(--shadow);
}

.featured-event .event-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.featured-event .event-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-badge {
    display: inline-block;
    background-color: var(--primary-yellow);
    color: var(--dark-gray);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.featured-event h2 {
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.event-date {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.event-description {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.event-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px var(--shadow);
    transition: all 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.event-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.event-card-content {
    padding: 1.5rem;
}

.event-tag {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sinhala-badge {
    background-color: var(--primary-yellow);
    color: var(--dark-gray);
}

.event-card h3 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.event-meta {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.event-card p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--primary-yellow);
}

.sinhala-post {
    border: 2px solid var(--primary-yellow);
}

.sinhala-post h3 {
    font-family: 'Noto Sans Sinhala', sans-serif;
}

/* Photo Gallery */
.photo-gallery {
    margin-top: 4rem;
}

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

.gallery-item {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px var(--shadow);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-form-container,
.contact-info-container {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.contact-form-container h2,
.contact-info-container h2 {
    color: var(--primary-red);
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--medium-gray);
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-red);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-gray);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

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

.link {
    color: var(--primary-red);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Contact Info */
.contact-info {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.info-content h3 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-content p {
    color: var(--text-gray);
    line-height: 1.8;
}

.social-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
}

.social-section h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.social-links-large {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-btn {
    padding: 12px 20px;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.social-btn:hover {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateX(5px);
}

.social-btn.facebook:hover {
    background-color: #1877F2;
}

.social-btn.twitter:hover {
    background-color: #1DA1F2;
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.youtube:hover {
    background-color: #FF0000;
}

/* Map Container */
.map-container {
    margin-top: 3rem;
}

.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
}

.map-wrapper iframe {
    display: block;
}

/* Registration Section */
.registration-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.registration-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.registration-info {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.registration-info h2 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.benefits-list {
    list-style: none;
    margin-bottom: 2rem;
}

.benefits-list li {
    padding: 0.8rem 0;
    color: var(--text-gray);
    border-bottom: 1px solid var(--light-gray);
    font-size: 1rem;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.info-box {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-yellow);
}

.info-box h3 {
    color: var(--primary-red);
    margin-bottom: 0.8rem;
}

.info-box p {
    color: var(--text-gray);
    line-height: 1.6;
}

.registration-form-container {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.registration-form-container h2 {
    color: var(--primary-red);
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-yellow);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: var(--primary-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

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

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .content-wrapper,
    .contact-wrapper,
    .registration-wrapper,
    .featured-event {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .registration-info {
        position: static;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

