/* Global Styles */
:root {
    --primary-color: #00a0e3; /* Deep blue from the prospectus */
    --secondary-color: #ffd000; /* Bright yellow from the prospectus */
    --accent-color: #00a0e3; /* Light blue accent */
    --dark-color: #003a61; /* Darker blue */
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #fff;
}

/* Header Styles */
.top-header {
    font-size: 0.9rem;
    background-color: var(--primary-color) !important;
}

.social-links a:hover {
    opacity: 0.8;
}

.school-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.school-tagline {
    font-size: 0.8rem;
    color: #666;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #fff;
}

.navbar-brand img {
    max-height: 60px;
}

.main-header {
    border-bottom: 3px solid var(--secondary-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.navbar .d-flex {
    margin-right: 15px;
}

.navbar-nav {
    margin-right: 10px;
}

.navbar-brand {
    margin-right: 0;
    padding-right: 0;
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav {
        margin-right: auto;
    }
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-item.active .nav-link {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/school-building.jpg') no-repeat center center/cover;
    height: 80vh;
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, transparent 50%);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(315deg, var(--secondary-color) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
}

.feature-box {
    text-align: center;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.about-img {
    border-radius: 10px;
    overflow: hidden;
}

.about-content h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.about-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Director Section */
.director-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.director-card:hover {
    transform: translateY(-10px);
}

.director-img {
    height: 250px;
    object-fit: cover;
}

.director-social a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.director-social a:hover {
    background-color: var(--dark-color);
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
}

.contact-info-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    border-top: 5px solid var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .navbar-collapse {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }
    
    .btn-primary {
        margin-top: 1rem;
        display: block;
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }
}

@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-section {
        height: 60vh;
    }
    
    .contact-info {
        display: flex;
        flex-direction: column;
    }
    
    .contact-info span {
        margin-bottom: 0.5rem;
    }
    
    .contact-info span:last-child {
        margin-left: 0 !important;
    }
}

/* Animation */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.animate-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Diamond Grid Layout */
.diamond-grid {
    position: relative;
    padding: 3rem 0;
    overflow: hidden;
}

.diamond-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    transform: rotate(45deg);
    width: 200px;
    height: 200px;
    margin: 30px auto;
    border: 5px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.diamond-item img {
    transform: rotate(-45deg) scale(1.5);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.diamond-item .diamond-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 77, 128, 0.8);
    color: #fff;
    transform: rotate(-45deg) translateY(50%);
    text-align: center;
}

.diamond-item:hover img {
    transform: rotate(-45deg) scale(1.7);
    transition: all 0.5s ease;
}

.diamond-values {
    position: absolute;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(45deg);
    z-index: 2;
}

.value-ideate {
    background-color: #4caf50;
    top: 10%;
    left: 20%;
}

.value-create {
    background-color: var(--accent-color);
    top: 10%;
    right: 20%;
}

.value-discover {
    background-color: #e91e63;
    bottom: 30%;
    left: 10%;
}

.value-excel {
    background-color: #00bcd4;
    bottom: 50%;
    left: 30%;
}

.value-learn {
    background-color: #cddc39;
    bottom: 30%;
    right: 30%;
}

/* School Logo Styling */
.school-logo {
    max-width: 120px;
    margin-bottom: 15px;
}

/* Prospectus-like section */
.prospectus-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.prospectus-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 100px 100px 0 0;
    border-color: var(--secondary-color) transparent transparent transparent;
}

.prospectus-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 100px 100px;
    border-color: transparent transparent var(--secondary-color) transparent;
}

/* Override Bootstrap colors */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}