/* General Body and Container Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5; /* Light grey background */
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Header Styles */
header {
    background: #004d99; /* PSGCAS Blue */
    color: #fff;
    padding: 15px 0;
    min-height: 80px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: sticky; /* Make header sticky */
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0; /* Remove default container padding here */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px; /* Adjust logo size */
    margin-right: 10px;
}

.logo h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline;
    padding: 0 18px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.1em;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 5px; /* For the active border */
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #f7b034; /* PSGCAS Gold/Orange */
    border-bottom: 3px solid #f7b034;
}

/* Button Styles */
.btn {
    display: inline-block;
    color: #fff;
    background: #f7b034; /* PSGCAS Gold/Orange */
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 25px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #e6a02b;
    transform: translateY(-2px);
}

/* Background Sections (Hero and Sub-Heroes) */
.background-section {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 120px 0;
    position: relative;
    margin-bottom: 30px;
}

/* Overlay for readability on background images */
.background-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.background-section > .container {
    position: relative;
    z-index: 2;
}

/* Specific Background Images */
#hero {
    background-image: url('college_building.jpg'); /* Replace with your main hero image */
}

#about-hero {
    background-image: url('campus.jpg'); /* Replace with your about page hero image */
}

#galler-hero {
    background-image: url('lightblue.jpg'); /* Using hero bg, change if you have a specific one */
}

#contac-hero {
    background-image: url('new.jpg'); /* Replace with your contact page hero image */
}


.hero-content h2 {
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.sub-hero {
    padding: 80px 0;
    margin-bottom: 20px;
}

.sub-hero-content h2 {
    font-size: 2.8em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.sub-hero-content p {
    font-size: 1.1em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}


/* General Content Sections */
.content-section {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.content-section h3 {
    color: #004d99;
    margin-top: 0;
    border-bottom: 3px solid #f7b034;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 2em;
}

/* Announcements Section */
#announcements ul {
    list-style: none;
    padding: 0;
}

#announcements li {
    background: #e9f0f7;
    margin-bottom: 12px;
    padding: 18px;
    border-left: 6px solid #004d99;
    border-radius: 6px;
    font-size: 1.05em;
    display: flex;
    align-items: center;
}

#announcements li a {
    color: #004d99;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
}

#announcements li a:hover {
    text-decoration: underline;
}

/* Quick Links Section */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.quick-link-item {
    display: block;
    background: #f0f2f5;
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    color: #004d99;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.quick-link-item:hover {
    background: #e0e6ed;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
/* Contact Us Page Styles */
.contac-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.contac-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.contac-card h4 {
    color: #004d99;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 2px solid #f7b034;
    padding-bottom: 8px;
}

.contac-card p {
    margin-bottom: 8px;
}

.contac-form .form-group {
    margin-bottom: 20px;
}

.contac-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #004d99;
    font-size: 1.1em;
}

.contac-form input[type="text"],
.contac-form input[type="email"],
.contac-form textarea {
    width: calc(100% - 24px); /* Account for padding and border */
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.contac-form textarea {
    resize: vertical;
    min-height: 120px;
}

.mt-40 {
    margin-top: 40px;
}

.map-container {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.map-container iframe {
    display: block; /* Remove extra space below iframe */
}

/* Gallery Page Styles */
.galler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.galler-item {
    position: relative;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galler-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.galler-item img {
    width: 100%;
    height: 250px; /* Uniform height for gallery images */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.galler-item:hover img {
    transform: scale(1.05);
}

.galler-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 77, 153, 0.8); /* PSGCAS Blue with transparency */
    color: #fff;
    padding: 15px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.galler-item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}


/* Footer Styles */
footer {
    background: #003366; /* Darker PSGCAS Blue */
    color: #fff;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    border-top: 4px solid #f7b034;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

footer .social-links {
    margin-top: 15px;
}

footer .social-links a {
    margin: 0 12px;
    display: inline-block;
    transition: transform 0.2s ease;
}

footer .social-links a:hover {
    transform: translateY(-3px);
}

footer .social-links img {
    width: 28px;
    height: 28px;
    filter: invert(100%); /* Make social icons white */
}


/* Responsive Design */
@media (max-width: 992px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 10px;
        justify-content: center;
    }

    header nav ul li {
        padding: 0 10px;
    }

    .hero-content h2 {
        font-size: 2.8em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .sub-hero-content h2 {
        font-size: 2.2em;
    }

    .quick-link-item {
        font-size: 1em;
        padding: 20px;
    }

    .contac-details-grid,
    .galler-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    header nav ul li {
        display: block;
        padding: 8px 0;
    }

    .hero-content h2 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .sub-hero-content h2 {
        font-size: 1.8em;
    }

    .content-section {
        padding: 20px;
    }

    .contac-form input[type="text"],
    .contac-form input[type="email"],
    .contac-form textarea {
        width: calc(100% - 20px); /* Adjust for smaller screens */
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2em;
    }

    header nav ul li a {
        font-size: 0.9em;
    }

    .hero-content h2 {
        font-size: 1.8em;
    }

    .hero-content p {
        font-size: 0.9em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1em;
    }

    .content-section h3 {
        font-size: 1.6em;
    }

    .contact-details-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}