/* Web page එකේ මූලික සැකසුම (Top Align කර ඇත) */
body {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* ඉහළට ගෙන ඒමට */
    height: 100vh;
    margin: 0;
    padding-top: 200px; /* ඉහළ කෙළවරේ සිට ඇති දුර */
    background-color: #f0f2f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* සියල්ල මැදට ගෙන ඒමට භාවිතා කරන Container එක */
.container {
    text-align: center;
}

/* "පහත බටන් එක..." Text එකේ Style එක */
.instruction-text {
    color: black;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Apply Now Button එකේ Style එක */
.apply-now-btn {
    display: inline-block;
    padding: 18px 50px;
    font-size: 22px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    
    /* Animation එක ක්‍රියාත්මක කිරීම */
    animation: redGreenAnimation 2s infinite alternate;
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Mouse එක Button එක උඩට ගෙන ගිය විට සිදුවන වෙනස */
.apply-now-btn:hover {
    transform: scale(1.08);
}

/* රතු සහ කොළ වර්ණ මාරු වීමේ Animation එක */
@keyframes redGreenAnimation {
    0% {
        background-color: #e74c3c; /* Red */
        box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
    }
    100% {
        background-color: #2ecc71; /* Green */
        box-shadow: 0 0 20px rgba(46, 204, 113, 0.5);
    }
}

/* --- අලුතින් සකස් කළ Footer Links Container එක --- */
.links-container {
    margin-top: 250px; /* Button එක සහ පළමු Link එක අතර පරතරය */
    display: flex;
    flex-direction: column; /* Links එක පහළින් එකක් සිටින සේ සැකසීම */
    gap : 15px; /* Links දෙක අතර ඇති පරතරය */
}

/* Links වල Style එක */
.footer-link {
    color: #555;
    font-size: 16px;
    text-decoration: underline;
    cursor: pointer;
}

.footer-link:hover {
    color: #000;
}

/* --- Popup Box (Modal) එකේ Design එක --- */
.modal {
    display: none; /* මුලින්ම Box එක නොපෙනී තිබීමට */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* අඳුරු පසුබිම */
    justify-content: center; /* මැදට ගැනීම */
    align-items: center; /* මැදට ගැනීම */
}

/* Popup Box එකේ ඇතුළත Design එක (ප්‍රමාණය කුඩා කර ඇත) */
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 70%;
    max-width: 350px; /* <--- Popup Box එකේ උපරිම පළල */
    position: relative;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: popupAnim 0.4s; /* විවෘත වන විට Animation එකක් */
}

/* Close (X) Button එකේ Design එක */
.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
}

/* Popup එක විවෘත වන Animation එක */
@keyframes popupAnim {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* --- Mobile Responsive (ජංගම දුරකථන සඳහා විශේෂිත සැකසුම්) --- */
@media (max-width: 600px) {
    .instruction-text {
        font-size: 19px;
        padding: 0 15px;
    }
    
    .apply-now-btn {
        padding: 15px 35px;
        font-size: 18px;
    }

    .modal-content {
        width: 80%; /* Mobile වලදී Box එක කුඩා කිරීම */
        padding: 15px;
    }
}