/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Noto+Sans+Tamil+Condensed:wght@400;700&family=Noto+Sans+Kannada:wght@400;700&display=swap');

/* Import Samantha Font (if available locally, otherwise fallback) */
@font-face {
    font-family: 'Samantha';
    src: local('Samantha');
    font-weight: 400;
    font-style: normal;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    height: 100vh;
}

/* Hero Container with Background */
.hero-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('images/BackgroundImage.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Dark Pink/Magenta Overlay with Vignette Effect */
.hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(184, 50, 98, 0.65) 0%, rgba(184, 50, 98, 0.75) 50%, rgba(140, 30, 75, 0.85) 100%);
    z-index: 1;
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 8px;
}

.top-logos {
    max-width: 600px;
    width: 100%;
    height: auto;
}

/* Title Section */
.title-section {
    text-align: center;
    color: white;
    margin-bottom: 25px;
    line-height: 1.2;
}

.title-sinhala {
    font-family: 'Samantha', 'Noto Sans Sinhala', sans-serif;
    font-size: 48px;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title-main {
    font-family: 'Samantha', 'Inter', sans-serif;
    font-size: 23px;
    font-weight: 700;
    font-style: normal;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title-subtitle {
    font-family: 'Noto Sans Kannada', sans-serif;
    font-size: 23px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0;
}

/* Cards Section */
.cards-section {
    display: grid;
    grid-template-columns: repeat(3, 320px);
    gap: 40px;
    width: 100%;
    margin-top: 20px;
    justify-content: center;
}

/* Portal Card */
.portal-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 320px;
    display: flex;
    flex-direction: column;
}

.portal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.portal-card:focus {
    outline: 3px solid white;
    outline-offset: 3px;
}

/* Card Image */
.card-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 15px 0px 15px;
    flex-shrink: 0;
}

.card-image img {
    width: 280px;
    height: 140px;
    border-radius: 15px;
    object-fit: cover;
    display: block;
}

/* Card Content */
.card-content {
    padding: 0px 15px 20px 15px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.card-text-sinhala {
    font-family: 'Samantha', 'Noto Sans Sinhala', sans-serif;
    font-size: 18px;
    font-weight: 400;
    font-style: normal;
    line-height: 100%;
    color: #333;
    margin-bottom: 8px;
}

.card-text-english {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: 100%;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.card-text-tamil {
    font-family: 'Noto Sans Tamil Condensed', 'Noto Sans Tamil', sans-serif;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: 100%;
    color: #333;
}

/* Responsive Design - Laptops */
@media (max-width: 1600px) {
    .card-text-sinhala {
        font-size: 18px;
    }

    .card-text-english {
        font-size: 18px;
    }

    .card-text-tamil {
        font-size: 18px;
    }
}

/* Responsive Design - Tablets */
@media (max-width: 1300px) {
    .cards-section {
        gap: 25px;
        grid-template-columns: repeat(3, minmax(260px, 320px));
    }

    .portal-card {
        width: 100%;
        height: auto;
    }

    .card-image {
        padding: 15px 15px 0px 15px;
    }

    .card-image img {
        width: 100%;
        max-width: 280px;
        height: auto;
    }

    .card-content {
        padding: 0px 15px 20px 15px;
    }

    .card-text-sinhala {
        font-size: 20px;
    }

    .card-text-english {
        font-size: 20px;
    }

    .card-text-tamil {
        font-size: 20px;
    }

    .top-logos {
        max-width: 500px;
    }

    .title-sinhala {
        font-size: 2rem;
    }

    .title-main {
        font-size: 1.5rem;
    }

    .title-subtitle {
        font-size: 24px;
        font-weight: 600;
        font-style: semi-bold;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .hero-container {
        padding: 15px;
    }

    .content-wrapper {
        gap: 25px;
    }

    .cards-section {
        grid-template-columns: 1fr;
        gap: 25px;
        justify-items: center;
    }

    .portal-card {
        width: 100%;
        max-width: 280px;
        height: auto;
    }

    .top-logos {
        max-width: 340px;
    }

    .title-section {
        margin-bottom: 15px;
    }

    .title-sinhala {
        font-size: 1.8rem;
    }

    .title-main {
        font-size: 1.3rem;
    }

    .title-subtitle {
        font-size: 1rem;
    }

    .card-image {
        padding: 12px 12px 0px 12px;
    }

    .card-image img {
        width: 100%;
        max-width: 240px;
        height: auto;
        max-height: 120px;
    }

    .card-content {
        padding: 0px 12px 16px 12px;
        gap: 6px;
    }

    .card-text-sinhala {
        font-size: 15px;
    }

    .card-text-english {
        font-size: 15px;
    }

    .card-text-tamil {
        font-size: 15px;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    .hero-container {
        padding: 10px;
    }

    .content-wrapper {
        gap: 15px;
    }

    .cards-section {
        gap: 15px;
    }

    .portal-card {
        width: 100%;
        max-width: 260px;
        height: auto;
    }

    .card-image {
        padding: 10px 10px 0px 10px;
    }

    .card-image img {
        width: 100%;
        max-width: 200px;
        height: auto;
        max-height: 100px;
    }

    .top-logos {
        max-width: 100%;
    }

    .logo-section {
        margin-bottom: 5px;
    }

    .title-section {
        margin-bottom: 12px;
    }

    .title-sinhala {
        font-size: 1.5rem;
    }

    .title-main {
        font-size: 1.1rem;
    }

    .title-subtitle {
        font-size: 0.9rem;
    }

    .card-content {
        padding: 0px 10px 14px 10px;
        gap: 5px;
    }

    .card-text-sinhala {
        font-size: 14px;
    }

    .card-text-english {
        font-size: 14px;
    }

    .card-text-tamil {
        font-size: 14px;
    }
}
