:root {
    --primary-color: #044d29;
    /* Deep Emerald Green */
    --secondary-color: #d4af37;
    /* Gold */
    --bg-color: #fcfbf7;
    /* Cream/Off-white */
    --text-color: #2c3e50;
    --white: #ffffff;
    --font-english: 'Outfit', sans-serif;
    --font-arabic: 'Amiri', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-english);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Pattern */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 4-pointed star pattern - equal width and height */
    background-color: #fcfefb;
    background-image: 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='M50 0 L62 38 L100 50 L62 62 L50 100 L38 62 L0 50 L38 38 Z' fill='none' stroke='%23d1e6d5' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    opacity: 1;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    /* Transparent to show pattern? No, the user wants the card style probably? */
    /* Actually the request was just "background of site". 
       But looking at the reference image, the content is in white cards.
       My current design has a full colored Hero section. 
       I should probably keep the Hero colored for now as "Elegant" unless I refactor to Cards.
       The user script: "first page should be make as same as in the image" 
       The image has a White Card for the Title on top of the Pattern Background.
       
       I will change the Hero to be transparent and put the content in a Card.
    */
    padding: 40px 20px;
}

.hero .container {
    background: white;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef5ef;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--primary-color);
    /* Dark Green Text now */
}

.hero::before {
    display: none;
    /* Remove texture overlay */
}

.bismillah {
    font-family: var(--font-arabic);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero .subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 30px;
    font-family: var(--font-arabic), var(--font-english);
}

.event-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.detail-item i {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: #e5bd3f;
}

/* Results Section */
.results-section {
    padding: 80px 0;
    min-height: 80vh;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.divider::before,
.divider::after {
    content: '';
    height: 1px;
    width: 60px;
    background: var(--secondary-color);
    margin: 0 15px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    /* Increased min-width for names */
    gap: 25px;
    margin-bottom: 60px;
}

.result-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--secondary-color);
    /* Changed to left border for list look */
    transition: transform 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.result-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--primary-color);
}

.candidate-info h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.candidate-info p {
    font-size: 0.9rem;
    color: #888;
}

.id-badge {
    background: #f0f7f4;
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 5px;
}

.status-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    opacity: 0.5;
}

.notes-section {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.notes-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notes-section ul {
    list-style-type: none;
    padding-left: 10px;
}

.notes-section li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.notes-section li::before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -5px;
}

footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 20px 0;
    margin: 40px auto 40px auto;
    /* Margin top and bottom, auto left/right */
    /* Card style */
    max-width: 800px;
    border-radius: 20px;
    width: 90%;
    /* For mobile responsiveness */
    box-shadow: 0 10px 30px rgba(4, 77, 41, 0.2);
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .event-details {
        flex-direction: column;
        gap: 15px;
    }

    .hero {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%);
    }
}