﻿html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #faf0e6;
    font-family: Arial, sans-serif;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #73a88a;
    padding: 10px 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
}

    .navbar .logo {
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .navbar .logo img {
            height: 80px;
            transition: transform 0.3s ease;
        }

            .navbar .logo img:hover {
                transform: scale(1.05);
            }

.logo p {
    font-size: 20px;
    font-weight: 600;
    color: #faf0e6;
    margin: 0;
}


.navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

    .navbar-center p {
        font-size: 22px;
        font-weight: 600;
        color: #faf0e6;
        margin: 0;
    }


.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar .nav-links {
    display: flex;
    gap: 15px;
}

    .navbar .nav-links a {
        font-size: 18px;
        font-weight: 600;
        color: #faf0e6;
        text-decoration: none;
        padding: 6px 12px;
        border-radius: 6px;
        transition: background-color 0.3s, color 0.3s;
    }

        .navbar .nav-links a:hover {
            background-color: rgba(255, 255, 255, 0.15);
            color: #fff;
        }


.menu-toggle {
    background: none;
    border: none;
    color: #faf0e6;
    font-size: 22px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

    .menu-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }


.sidebar {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: #faf0e6 !important;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    padding: 20px;
    transition: right 0.3s ease-in-out;
    z-index: 999;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    float: right;
    margin: -10px -10px 10px 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sidebar ul li {
        margin-bottom: 15px;
    }

        .sidebar ul li a {
            display: block;
            padding: 10px 12px;
            font-size: 17px;
            color: #333;
            background-color: #faf0e6;
            border-radius: 8px;
            transition: background-color 0.3s ease, color 0.3s ease;
            font-weight: 500;
            text-decoration: none;
        }

            .sidebar ul li a:hover {
                background-color: #dcdcdc;
                color: #000;
                text-decoration: none;
                transform: scale(1.02);
            }

.sidebar.active {
    right: 0;
}
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 250px); 
    gap: 20px;
    justify-content: center;
    padding: 40px 20px;
}


.grid-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: #333;
}

    .grid-item:hover {
        transform: scale(1.05);
    }

    .grid-item img {
        width: 100%;
        height: auto;
        display: block;
    }

    .grid-item p {
        font-size: 18px;
        font-weight: bold;
        padding: 15px 10px;
        margin: 0;
    }
.about-title {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    font-family: 'Georgia', serif;
}

.about-card {
    max-width: 850px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    font-family: 'Arial', sans-serif;
    text-align: justify;
    transition: transform 0.3s ease;
    margin-bottom: 80px;
}

    .about-card:hover {
        transform: translateY(-5px);
    }


    .footer {
    background-color: #73a88a;
    color: #fff;
    padding: 0px 20px 20px 0px;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.footer-section {
    flex: 1 1 250px;
}

.footer-section h5 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 5px;
}

.footer-section p,
.footer-section ul li {
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #eee;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 15px;
    font-size: 14px;
    margin-top: 20px;
    opacity: 0.8;
}


.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a img {
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
    opacity: 0.8;
}

.social-icons a img:hover {
    transform: scale(1.1);
    opacity: 1;
}

.custom-footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}


.vertical-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pdf-canvas-wrapper {
    max-width: 100%;
    overflow-x: auto;
    margin: 0 auto;
}

canvas.pdf-canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}



@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    .navbar-center {
        position: static;
        transform: none;
        margin: 0;
        text-align: center;
    }

        .navbar-center p {
            font-size: 18px;
        }

    .nav-right {
        margin-top: 5px;
        width: 100%;
        justify-content: space-between;
    }

    .logo {
        order: -1; 
        margin-bottom: 5px;
    }

        .logo img {
            height: 90px; 
        }


    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none; 
    }
    .content-grid {
        grid-template-columns: 1fr; 
        padding: 20px;
    }

    .grid-item p {
        font-size: 16px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        flex: 1 1 100%;
    }

        .footer-section h5 {
            font-size: 18px;
        }

        .footer-section p,
        .footer-section ul li {
            font-size: 14px;
        }
}