/* Font Faces */
@font-face {
    font-family: 'TharuDigitalMahee';
    src: url('https://sapela-weddo.pages.dev/front/22.woff2') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: '4uar';
    src: url('https://sapela-weddo.pages.dev/front/33.woff2') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Disable text selection */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection in input fields */
input, textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Disable image dragging */
img {
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Anti-inspect styles */
[data-protected]::before {
    content: "Protected content";
    display: block;
    background: #f0f0f0;
    padding: 10px;
    border: 1px dashed #ccc;
}

/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #d8e4ff, #f2d9ff);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: 'TharuDigitalMahee', Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.navbar-links {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-link {
    padding: 8px 16px;
    background-color: #f4f4f4;
    border-radius: 20px;
    font-weight: 500;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.nav-link:hover {
    background-color: #eaeefb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    font-size: 18px;
    padding: 8px;
    color: #555;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
        background-color: transparent;
        position: absolute;
        top: 60px;
        right: 10px;
        width: 200px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .navbar-links.show {
        display: flex;
    }

    .navbar-links li {
        padding: 10px 0;
        text-align: center;
    }
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.hero-content {
    max-width: 50%;
    flex: 1;
}

.title {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.4;
}

.sinhala-text {
    font-family: '4uar', Arial, sans-serif;
    color: #1A80B7;
}

.sinhala-text2 {
    font-family: '4uar', Arial, sans-serif;
    color: #1A80B7;
}

.subtitle {
    margin-top: 10px;
    font-size: 18px;
    color: #555;
}

.hero-buttons {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 20px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.contact-btn {
    background-color: #f4f4f4;
    color: #333;
}

.contact-btn:hover {
    background-color: #eaeefb;
}

.description {
    margin-top: 10px;
    font-size: 14px;
    color: #494848;
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 10px;
    display: inline-block;
    background-color: #fff;
}

.hero-image {
    max-width: 100%;
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Comment Section */
.comment-section {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.comment-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4361ee;
    margin: 0;
}

.comment-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #6c757d;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background-color: #4361ee;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: #3f37c9;
}

.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.comments-list {
    margin-top: 2rem;
}

.comment {
    display: flex;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #6c757d;
    font-weight: bold;
    flex-shrink: 0;
    text-transform: uppercase;
}

.comment-content {
    flex-grow: 1;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
    display: flex;
    align-items: center;
}

.school {
    font-weight: normal;
    color: #6c757d;
    margin-left: 8px;
    font-size: 0.9rem;
}

.comment-text {
    color: #212529;
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.comment-meta {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.comment-meta i {
    margin-right: 5px;
}

.loading-comments {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.no-comments {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.comment-count {
    background-color: #4361ee;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-left: 8px;
}

.timestamp {
    margin-left: auto;
}

/* About Us Section */
.about-section {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.about-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    max-width: 800px;
    width: 100%;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.about-card img {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 24px;
    margin: 15px 0;
    color: #333;
}

.about-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        flex-direction: column; /* Stack elements vertically */
        align-items: center;
    }

    /* Hero Image - Comes First */
    .hero-image {
        order: 1; /* Forces image to top */
        max-width: 80%;
        margin-bottom: 20px;
    }

    /* Hero Buttons - Comes Second */
    .hero-buttons {
        order: 2; /* Forces buttons below image */
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        margin-bottom: 20px;
    }

    /* Hero Content (Title & Subtitle) - Comes Third */
    .hero-content {
        order: 3; /* Forces title/subtitle below buttons */
        max-width: 100%;
        text-align: center;
    }

    /* Ensure buttons take full width */
    .hero-buttons .btn {
        width: 100%;
    }

    .comment-section {
        padding: 20px;
        margin: 20px auto;
    }
}
