{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f4f4;
}


.main-header {
    background-color: #000066; /* Dark Blue */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    border-bottom: 4px solid #fff;
}

.header-title {
    text-align: center;
    flex-grow: 1;
}

.header-title h1 {
    font-size: 2.9rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.header-title h2 {

    font-size: 2.2rem;
    letter-spacing: 1px;
}

.logo-left img, .logo-right img {
    height: 150px; /* ලෝගෝ වල ප්‍රමාණය */
    object-fit: contain;
}


/* මැද කොටස සහ පසුබිම් පින්තූර Slider එක (Hero Section) */
.hero-section {
    flex: 1;
    background-color: #2e7d32; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    padding-top: 50px; 
    
    /* Animation එක මෙතනින් සම්බන්ද කරනවා */
    /* තත්පර 15ක් ඇතුලත පින්තූර 5ම කැරකිලා ඉවර වෙලා දිගටම (infinite) වැඩ කරනවා */
    animation: slideBg 15s infinite; 
}

/* Navigation Buttons */
.nav-container {
    display: flex;
    gap: 25px; 
    width: 90%;
    max-width: 1200px;
    justify-content: center;
}

.nav-button {

    background-color: white;
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 25px 0;
    width: 180px; 
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s, background-color 0.2s;
}

.nav-button:hover {
    transform: translateY(-5px);
    background-color: #e6e6e6;
}

/* --- පින්තූර මාරු වෙන්න හදන CSS Animation එක --- */
@keyframes slideBg {
    /* පළමු පින්තූරය (0% සිට 15% දක්වා පෙනේ) */
    0%, 15% {
        background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('bg 1.jpg');
    }
    /* දෙවන පින්තූරය (20% සිට 35% දක්වා පෙනේ) */
    20%, 35% {
        background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('bg 2.jpg');
    }
    /* තෙවන පින්තූරය (40% සිට 55% දක්වා පෙනේ) */
    40%, 55% {

        background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('bg 3.jpg');
    }
    /* සිව්වන පින්තූරය (60% සිට 75% දක්වා පෙනේ) */
    60%, 75% {
        background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('bg 4.jpg');
    }
    /* පස්වන පින්තූරය (80% සිට 95% දක්වා පෙනේ) */
    80%, 95% {
        background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('bg 5.jpg');
    }
    /* නැවත මුල් පින්තූරයට සුමටව මාරු වීම */
    100% {
        background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('bg1.jpg');
    }
}

}

/* Navigation Buttons */
.nav-container {
    display: flex;
    gap: 25px; 
    width: 90%;
    max-width: 1200px;
    justify-content: center;
}

.nav-button {

    background-color: white;
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 25px 0;
    width: 180px; 
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s, background-color 0.2s;
}

/* Button Hover Effect 
.nav-button:hover {
    transform: translateY(-5px);
    background-color: #e6e6e6;
}


/* Footer එක හැමවිටම Screen එකේ යටම නිල් පාට තීරුවක් ලෙස රඳවා තැබීම */
.main-footer {
    background-color: #000066 !important; /* තද නිල් පාට ස්ථිරවම ලබා දීමට */
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 1rem;
    font-weight: 500;
    border-top: 3px solid #fff; /* උඩින් වැටෙන සුදු පාටBorder එක */
    
    /* Screen එකේ යටටම සෙට් කිරීම */
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 100;
    
    /* නිල් පාට තීරුව පැහැදිලිව පෙනීමට මේවා අනිවාර්යයි */
    display: block; 
    height: auto; 
}





/* --- HOME PAGE MOBILE STYLES --- */

/* Phone එකකදී බොත්තම් 5 එක යට එක ලස්සනට පෙළගැසීමට */
@media (max-width: 768px) {
    /* Header එකේ ලෝගෝ සහ අකුරු එක යට එක ගැනීමට */
    .main-header {
        flex-direction: column;
        gap: 10px;
        padding: 15px 10px;
        text-align: center;
    }
    
    .header-title h1 {
        font-size: 1.5rem; /* Phone එකේදී අකුරු පොඩ්ඩක් කුඩා කිරීම */
    }
    
    .header-title h2 {
        font-size: 1.1rem;
    }

    /* බොත්තම් 5 එක පෙළට තියෙන්නේ නැතුව යට යටට සැකසීම */
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 12px; /* බොත්තම් අතර පරතරය */

    }

    .nav-button {
        width: 80%; /* Phone screen එකේ පළලින් 80%ක් බොත්තමට දීම */
        padding: 15px 0; /* උස පොඩ්ඩක් අඩු කිරීම */
        font-size: 1rem;
    }
    
    /* Slider පින්තූරය පල්ලෙහායින් වැසෙන නිසා margin එකක් දීම */
    .hero-section {
        padding-bottom: 80px; 
    }
}


/* පොදු සැකසුම් (Reset & Base Styles) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


body {
    background-color: #f8f9fa;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1100px;
    background-color: #ffffff;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Header එකේ Style එක */
.main-header {
    background-color: #000066; /* තද නිල් පැහැය */
    color: #ffffff;
    text-align: center;
    padding: 20px 10px;
}

.main-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Cards Section - Flexbox භාවිතා කර ඇත */

.info-section {
    display: flex;
    flex-wrap: wrap; /* ඉඩ මදි නම් cards එක යටට එකක් වැටේ */
    justify-content: space-around;
    gap: 20px;
    padding: 30px 20px;
}

/* තනි Card එකක Style එක */
.info-card {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%); /* ලස්සන Cyan/Blue gradient එකක් */
    color: #000000;
    flex: 1 1 300px; /* කඩාවැටෙන්නේ නැතිව අවම 300px ගන්නවා */
    max-width: 340px;
    padding: 25px 20px;
    border-radius: 25px; /* රවුම් දාර */
    text-align: center;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.05);
}

.info-card h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-card p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;

}

/* Map Section */
.map-section {
    padding: 0 20px 20px 20px;
    width: 100%;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Mobile Screen (Phone) වලට විශේෂයෙන් ගැලපීම් */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 1.4rem; /* ෆෝන් එකේදී අකුරු තරමක් කුඩා වේ */
    }
    
    .info-section {
        padding: 20px 15px;
        flex-direction: column; /* එක පෙළට තිබූ cards එක යටට එකක් හැඩගැසේ */
        align-items: center;
    }

    .info-card {
        width: 100%;
        max-width: 100%; /* ෆෝන් එකේ මුළු පළලම ගනී */

    }
    
    .map-section {
        padding: 0 15px 15px 15px;
    }
}


/* Gallery පිටුව සඳහා විශේෂිත CSS */

.gallery-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* ඉහළ නිල් පාට තීරුව */
.gallery-header {
    background-color: #000066; /* කලින් පාවිච්චි කරපු තද නිල් පැහැයමයි */
    color: #ffffff;
    text-align: center;
    padding: 25px 10px;

}

.gallery-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Photos සැකසුම - CSS Grid */
.gallery-grid {
    display: grid;
    /* Computer එකේදී එක පේළියකට photos 4ක් වැටෙනවා (අවම 250px ගානේ) */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px; /* පින්තූර අතර පරතරය */
    padding: 25px;
}

/* තනි පින්තූරයක් සහිත Box එක */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    aspect-ratio: 4 / 3; /* හැම පින්තූරයක්ම එකම සයිස් එකකට ලස්සනට කොටු වෙන්න */
    transition: transform 0.3s ease; /* Mouse එක උඩට යද්දී පොඩි animation එකක් */
}

/* පින්තූරය Box එකට ගැලපීම */
.gallery-item img {

    width: 100%;
    height: 100%;
    object-fit: cover; /* පින්තූරය ඇද නොවී කොටුවට ලස්සනට fit වේ */
    display: block;
}

/* Hover Effect: Mouse එක photo එක උඩට යද්දී ලස්සනට zoom වෙනවා */
.gallery-item:hover {
    transform: scale(1.03);
}

/* Mobile Screen (ෆෝන් එකෙන් බලද්දී) */
@media (max-width: 600px) {
    .gallery-header h1 {
        font-size: 1.5rem; /* ෆෝන් එකේදී අකුරු තරමක් කුඩා වේ */
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* ෆෝන් එකේදී එක පේළියකට photos 2 බැගින් වැටේ */
        gap: 10px;
        padding: 15px;
    }
}


/* Download පිටුව සඳහා විශේෂිත CSS */

.download-container {
    width: 100%;
    max-width: 900px; /* ලිස්ට් එකක් නිසා පරිගණකයේදී ලස්සනට මැදින් හිටින්න පළල සීමා කළා */
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* ඉහළ නිල් පාට තීරුව */
.download-header {
    background-color: #000066; /* අපේ තද නිල් පැහැයමයි */
    color: #ffffff;
    text-align: center;
    padding: 25px 10px;
}

.download-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ලිස්ට් එකේ සැකසුම */
.download-list {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;

    gap: 15px; /* Cards අතර පරතරය */
}

/* තනි PDF Card එකක Style එක */
.download-card {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-left: 5px solid #dc3545; /* PDF නිසා වම් පැත්තට ලස්සන රතු පාට දාරයක් */
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* PDF Icon එකේ Style එක */
.pdf-icon {
    font-size: 2rem;
    color: #dc3545; /* රතු පැහැය */
    margin-right: 20px;
}

/* PDF විස්තර */
.pdf-details {
    flex-grow: 1; /* ඉතිරි ඉඩ ප්‍රමාණය විස්තර සඳහා ලබා දේ */
}


.pdf-details h3 {
    font-size: 1.1rem;
    color: #333333;
    font-weight: 600;
    margin-bottom: 4px;
}

.pdf-details p {
    font-size: 0.85rem;
    color: #666666;
}

/* Download Button එක */
.dl-btn {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%); /* කලින් කාඩ් වලට දාපු ලස්සන Cyan/Blue gradient එක */
    color: #000000;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.dl-btn:hover {
    opacity: 0.9;
}


/* Mobile Screen (ෆෝන් එකෙන් බලද්දී) */
@media (max-width: 600px) {
    .download-header h1 {
        font-size: 1.5rem;
    }
    
    .download-card {
        flex-direction: column; /* ෆෝන් එකේදී බටන් එක යටට වැටෙන ලෙස */
        text-align: center;
        gap: 12px;
        padding: 20px;
    }

    .pdf-icon {
        margin-right: 0; /* ෆෝන් එකේදී මැදට ගැනීමට */
    }

    .dl-btn {
        width: 100%; /* ෆෝන් එකේදී බටන් එක සම්පූර්ණ පළලම ගනී */
        justify-content: center;
    }
}


/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

/* Header Banner Styling */

.main-header {
    background-color: #0b1164; /* Dark Blue from the image */
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 5px solid #ffffff;
}

.main-header h1 {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    flex-grow: 1;
}

.logo-left img, .logo-right img {
    height: 100px; /* Adjust size based on your actual images */
    width: auto;
    object-fit: contain;
}

/* Three Columns Grid Setup */
.content-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}


/* Individual Content Column/Card Styling */
.card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card .image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card h2 {
    font-size: 1.4rem;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
    min-height: 50px; /* Keeps titles aligned */
}

.card p {

    font-size: 0.95rem;
    text-align: justify;
    color: #333333;
}

/* Vision & Mission Section Styling */
.vision-mission-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
    max-width: 1400px;
    margin: 20px auto;
    background-color: #f8f9fa;
    border-top: 2px solid #0b1164;
}

.vm-box {
    background-color: #ffffff;
    padding: 25px;
    border-left: 5px solid #0b1164;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.vm-box h3 {
    font-size: 1.3rem;
    color: #0b1164;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.vm-box p {
    font-size: 0.95rem;
    margin-bottom: 10px;
    text-align: justify;
}

.vm-box .sinhala-text {
    font-size: 0.9rem;
    color: #555555;
    font-style: italic;
}

/* Footer Banner Styling */
.main-footer {
    background-color: #0b1164;
    color: #ffffff;
    text-align: center;
    padding: 15px;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Responsive view for smaller screens (Tabs/Mobiles) */
@media (max-width: 900px) {
    .content-container, .vision-mission-container {
        grid-template-columns: 1fr;
    }
    
    .main-header {
        flex-direction: column;
        gap: 15px;

    }
    
    .main-header h1 {
        font-size: 1.6rem;
    }
}


/* Established Date Styling */
.established-date {
    text-align: center;
    background-color: #f1f3f9; /* ලස්සන ලා අළු/නිල් පාටක් */
    color: #0b1164;            /* Header එකේ තියෙන නිල් පාටමයි */
    font-size: 1.1rem;
    font-weight: bold;
    padding: 12px 20px;
    margin: 15px auto 0 auto;
    max-width: 1400px;         /* Content columns වල පළලටම සමානයි */
    border-radius: 4px;
    border-left: 5px solid #0b1164;  /* වම් පැත්තෙන් පොඩි නිල් පාට border එකක් */
    border-right: 5px solid #0b1164; /* දකුණු පැත්තෙනුත් border එකක් */
    letter-spacing: 0.5px;
}
