/* Remove default spacing from all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
header {
    /* Changes solid blue to a 85% transparent blue overlay */
    color: white;
    padding: 20px 0 0 0;
    /* backdrop-filter: blur(5px); */
    background-size: contain;   /* keeps original proportions */
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;               /* Optional: Adds a beautiful modern blur effect to the background image behind the nav */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 50px;
}

nav {
    display: flex;
    flex-direction: column; /* Brand on top, menu below */
    align-items: center;
    text-align: center;
    padding: 12px 0;
}

nav ul li a {
    text-decoration: none;
    color: white;
   
}

nav ul li a:hover {
    color: yellow;
}

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

/* Brand / Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.brand .logo {
    width: 84px;
    height: 84px;
    object-fit: contain;
    display: block;
}

.brand h1 {
    margin: 0;
    font-size: clamp(22px, 4vw, 46px);
    line-height: 1.1;
    color: #ffd200;
    text-align: center;
    max-width: 100%;
    word-break: break-word;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin-top: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

h1 {
    font-size: 40px;
    margin-bottom: 15px;
    width: 100%;
    color: #ffd200;
    letter-spacing: 0.6px;
}

.hero {
    text-align: center;
    padding: 40px 20px 60px 20px;
}

#main-footer {
    background-color: #333333;
    color: white;
    text-align: center;
    padding: 15px;
}

main {
    margin: 40px auto;
    padding: 40px 30px;
    width: 100%;
    max-width: 1200px;
    min-height: auto;
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}


/* Styling headings inside the intro section */
.intro-section h2 {
    font-size: 28px;
    color: #004080;
    margin-top: -20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0; /* Adds a clean underline separator */
    padding-bottom: 8px;
}

/* .intro-section p {
    font-size: 16px;
    line-height: 1.7;
    color: #444444;
} */

/* Styling the highlights list */
.highlights-section h3 {
    font-size: 22px;
    color: #004080;
    margin-top: 25px;
    margin-bottom: 15px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.staff-card {
    text-align: center;
    padding: 20px;
}

.teacher-photo {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.staff-card h4 {
    margin-bottom: 8px;
    color: #004080;
}

.staff-card p {
    margin: 0;
    color: #555555;
    font-weight: 600;
}

.highlights-section ul {
    list-style-type: square; /* Changes default dots to professional square bullets */
    padding-left: 20px;
}

.highlights-section li {
    font-size: 16px;
    line-height: 2;
    color: #444444;
}

body {
    background-color: #f3f6fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('../images/SSPSBG.png'); /* Points to your school building image */
    background-size: cover;                        
    background-position: center;                   
    background-attachment: fixed;                  
    background-repeat: no-repeat;                  
    color: #2a2a2a;
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Adds space between the stacked sections */
}

.intro-section, 
.highlights-section {
    flex: unset;
    width: 100%;
}

.about-hero {
    padding: 80px 0 60px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(0, 68, 132, 0.08);
}

.about-hero-copy {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.about-hero .eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 13px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #005a9e;
}

.about-hero h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: #01325f;
    line-height: 1.15;
}

.about-hero p {
    color: #434f6b;
    font-size: 18px;
    line-height: 1.8;
}

.feature-cards {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    margin-top: 40px;
}

.card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.card h4 {
    color: #004080;
    margin-bottom: 12px;
}

.card p {
    color: #555555;
    line-height: 1.75;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 14px;
}

.feature-list li {
    background: #f2f8ff;
    border-left: 4px solid #004080;
    padding: 14px 16px;
    border-radius: 10px;
    color: #2d3d5a;
}

.profile-row {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 68, 132, 0.12);
}

.profile-image {
    flex: 0 0 320px;
}

.profile-mission {
    flex: 1;
    min-width: 260px;
}

.profile-name {
    margin-top: 18px;
    text-align: center;
}

.profile-name h3 {
    font-size: 22px;
    margin-bottom: 6px;
    color: #003366;
}

.profile-name p {
    margin: 0;
    color: #5a6681;
    font-size: 15px;
}

.profile-mission h2 {
    margin-top: 0;
}

@media (max-width: 960px) {
    .feature-cards {
        grid-template-columns: 1fr;
    }

    .profile-row {
        flex-direction: column;
        align-items: center;
    }

    .profile-image {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .about-hero {
        padding: 60px 0 40px;
    }

    .about-hero h2 {
        font-size: 28px;
    }

    h1 {
        font-size: 38px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }
}

/* Fix spacing alignment */
.highlights-section h3 {
    margin-top: 0; /* Removes the top margin so it aligns perfectly with the H2 next to it */
}

/* Head Master Profile Layout */
.profile-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px; /* Space between this row and the sections below */
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 30px;
}

.profile-image img {
    width: 280px;         /* Larger image for the Head Madam profile */
    height: 280px;        /* Keeps it square */
    object-fit: cover;    /* Prevents the image from stretching */
    border-radius: 20px;   /* Softer corners to keep the image polished */
    border: 4px solid #004080; /* Blue border matching your school theme */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    display: block;
    margin: 0 auto;
}

.profile-image {
    text-align: center;
}

.profile-name {
    margin-top: 18px;
}

.profile-name h3 {
    font-size: 20px;
    margin-bottom: 4px;
    color: #004080;
}

.profile-name p {
    margin: 0;
    color: #555555;
    font-size: 15px;
}

.profile-mission {
    flex: 1;
}

.profile-mission h2 {
    color: #004080;
    margin-bottom: 10px;
    font-size: 24px;
}

.profile-mission p {
    font-style: italic;   /* Makes the mission statement stand out as a quote */
    color: #555555;
    font-size: 16px;
    line-height: 1.6;
}

/* Admission Page Custom Styles */
.admission-alert {
    background-color: #e6f0fa;
    border-left: 5px solid #004080;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.admission-alert h2 {
    color: #004080;
    font-size: 22px;
    margin-bottom: 5px;
}

.admission-alert p {
    color: #333333;
    font-size: 15px;
}

/* Age Table Layout */
.admission-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admission-table th, 
.admission-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.admission-table th {
    background-color: #004080;
    color: white;
}

.admission-table tr:nth-child(even) {
    background-color: #f9f9f9; /* Creates zebra striping lines */
}

/* Staff pages styles */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.staff-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.staff-card h4 {
    margin: 0 0 6px;
    color: #003366;
}

.staff-card p {
    margin: 6px 0;
    color: #4a5568;
    line-height: 1.5;
}

/* staff photos inside cards */
.staff-card .staff-photo {
    width: 160px;
    height: 250px;
    object-fit: cover;
    border-radius: 6px; /* square with slight rounding */
    display: block;
    margin: 14px auto;
    border: 3px solid rgba(0,64,128,0.12);
}

/* Ensure the body image covers the screen and sits below transparent areas */
body {
    background-image: url('../images/SSPSBG.png'); 
    background-size: cover;                        
    background-position: center;                   
    background-attachment: fixed;                  
    background-repeat: no-repeat;                  
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
  position: relative;
  background-image: url('building.jpg'); /* your actual image path */
  background-size: contain;   /* keeps original proportions */
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  z-index: 1;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: rgba(255,255,255,0.95);
  pointer-events: none;
  z-index: 1;
}

header > .container,
header .hero {
  position: relative;
  z-index: 2;
}

.hero {
    background: transparent; /* Forces the hero container to be clear */
    text-align: center;
    padding: 20px 20px 80px 20px; /* Gives more room to see the background image */
}

/* Style the admission button nicely so it doesn't block the view */
.hero .btn {
    display: inline-block;
    margin-top: 200px;
    padding: 12px 24px;
    background-color: #ffcc00; /* Bright yellow button */
    color: #004080;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: background 0.2s ease;
}

.hero .btn:hover {
    background-color: #e6b800;
}

header nav a {
  color: #ffffff;                          /* white text for contrast */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);/* subtle shadow for readability */
}

/* Main heading text */
header h1 {
  color: #0074cc;                          /* blue text for the main title */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);/* ensures visibility over image */
}

header h2 {
  color: #fdfdfd;                          /* light text for subtitle */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Mobile responsiveness */
body {
    overflow-x: hidden;
}

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

    .brand {
        flex-direction: column;
        gap: 8px;
    }

    .brand .logo {
        width: 72px;
        height: 72px;
    }

    .brand h1 {
        font-size: clamp(22px, 5.2vw, 30px);
        white-space: normal;
        text-align: center;
    }

    nav ul {
        gap: 14px;
    }

    main {
        padding: 24px 18px;
        margin: 20px auto;
    }

    .hero {
        padding: 20px 15px 40px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero .btn {
        margin-top: 24px;
    }
}

@media (max-width: 600px) {
    .brand .logo {
        width: 60px;
        height: 60px;
    }

    .brand h1 {
        font-size: 24px;
    }

    nav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 6px 8px;
        font-size: 14px;
    }

    .hero h2 {
        font-size: 22px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.5;
    }

    .hero .btn {
        width: 100%;
        max-width: 280px;
        box-sizing: border-box;
        margin-top: 18px;
    }

    main {
        padding: 18px 14px;
        border-radius: 14px;
    }

    .intro-section h2,
    .highlights-section h3,
    .profile-mission h2 {
        font-size: 22px;
    }

    .intro-section p,
    .highlights-section li,
    .card p,
    .profile-mission p {
        font-size: 15px;
        line-height: 1.7;
    }

    .profile-row,
    .feature-cards,
    .staff-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .profile-image img {
        width: 100%;
        max-width: 240px;
        height: auto;
        max-height: 240px;
    }

    .staff-card .staff-photo {
        width: 100%;
        max-width: 220px;
        height: auto;
    }
}

/* Ensure the main brand/title is responsive and not overridden by generic H1 rules */
header .brand h1 {
    font-size: clamp(18px, 5vw, 34px);
    line-height: 1.05;
    white-space: normal;
    text-align: center;
}

@media (max-width: 420px) {
    header .brand h1 {
        font-size: clamp(16px, 6.5vw, 26px);
    }
}

/* Stronger overrides for very small devices and to avoid other H1 rules taking effect */
header .container .brand h1 {
    max-width: 100%;
    font-size: 20px !important;
    line-height: 1.05 !important;
    word-break: break-word;
}

@media (max-width: 480px) {
    header .container .brand h1 {
        font-size: 18px !important;
    }
}

@media (max-width: 360px) {
    header .container .brand h1 {
        font-size: 16px !important;
    }
}