/* ===================================
   CSS Variables - Brand Colors
   =================================== */
:root {
    --primary-dark: #0d3d5c;
    --primary-light: #3d9dd9;
    --accent-green: #6cb13e;
    --accent-light-green: #a8d98f;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ===================================
   Global Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', cursive, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Baloo 2', cursive, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hidden {
    display: none;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin-left: 3rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.25rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-light);
    border-bottom-color: var(--primary-light);
}

.nav-link-cta {
    background: var(--accent-green);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    border: none;
}

.nav-link-cta:hover {
    background: var(--primary-dark);
    color: var(--white);
    border-bottom-color: transparent;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: calc(100vh - 70px); /* Account for header height */
    min-height: -webkit-fill-available; /* Chrome mobile fix */
    display: flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    background: linear-gradient(to bottom, var(--white) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    margin-top: 70px;
    overflow: visible;
    padding: 2rem 0;
    box-sizing: border-box;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/PSEC.png') no-repeat center center;
    background-size: 60%;
    opacity: 0.08;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(13, 61, 92, 0.3), transparent);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(61, 157, 217, 0.3) 50%, rgba(13, 61, 92, 0.5) 100%);
}

/* Decorative circles inspired by logo */
.hero-decorative {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.hero-circle-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-green);
    top: -100px;
    right: -50px;
    animation: float 8s ease-in-out infinite;
}

.hero-circle-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-light-green);
    bottom: 50px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-circle-3 {
    width: 150px;
    height: 150px;
    background: var(--primary-light);
    top: 30%;
    right: 10%;
    animation: float 7s ease-in-out infinite;
}

.hero-circle-4 {
    width: 100px;
    height: 100px;
    border: 3px solid var(--accent-green);
    background: transparent;
    top: 60%;
    left: 15%;
    animation: float 9s ease-in-out infinite;
}

/* Cathedral silhouette decoration */
.hero-cathedral {
    position: absolute;
    right: 5%;
    bottom: 0;
    width: 200px;
    height: 300px;
    opacity: 0.1;
    z-index: 1;
}

.hero-cathedral::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 300px solid var(--accent-green);
}

.hero-cathedral::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--accent-green);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
    padding: 1rem 0;
    width: 100%;
}

.hero-logo-display {
    margin-bottom: 1.2rem;
    animation: fadeInDown 1s ease;
    display: flex;
    justify-content: center;
}

.hero-logo-image {
    max-width: 500px;
    width: 90%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 4s ease-in-out infinite;
    transition: all 0.4s ease;
    cursor: pointer;
}

.hero-logo-image:hover {
    transform: scale(1.1) translateY(-10px);
    filter: drop-shadow(0 15px 40px rgba(108, 177, 62, 0.6));
    animation: none;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--accent-light-green);
    margin-bottom: 1.8rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

.hero-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--accent-green);
    border-radius: 2px;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 1.8rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    color: var(--white);
    opacity: 0.7;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.25rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-dark);
}

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

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

.btn-submit {
    width: 100%;
}

.btn svg {
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* ===================================
   Sections
   =================================== */
.section {
    padding: 5rem 0;
}

.section:nth-child(even) {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* ===================================
   Candidate Section
   =================================== */
.candidate-section {
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%) !important;
}

.candidate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.candidate-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
}

.candidate-info h3 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.candidate-tagline {
    font-size: 1.3rem;
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.candidate-bio {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.candidate-bio p {
    margin-bottom: 1rem;
}

/* ===================================
   Program Section
   =================================== */
.program-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8f9fa 50%, #ffffff 100%) !important;
}

.program-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.program-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.program-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.program-download {
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
}

.program-download h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.program-download p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===================================
   Team Section
   =================================== */
.team-section {
    background: linear-gradient(to bottom, #fffef0 0%, #f0fdf4 50%, #ffffff 100%) !important;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-member-info {
    padding: 1.5rem;
    text-align: center;
}

.team-member h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.team-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
}

.team-placeholder p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ===================================
   Gallery Section
   =================================== */
.gallery-section {
    background: linear-gradient(to bottom, #fafcff 0%, #f0f8ff 50%, #ffffff 100%) !important;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 61, 92, 0.7);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ===================================
   Videos Section
   =================================== */
.videos-section {
    background: linear-gradient(135deg, #f8fffe 0%, #f0fdf4 50%, #f8f9fa 100%) !important;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.video-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
}

.video-item-full {
    grid-column: 1 / -1;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block !important;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.video-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
}

.video-placeholder p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ===================================
   Documents Section
   =================================== */
.documents-section {
    background: linear-gradient(to bottom, #fffbeb 0%, #fef3c7 30%, #ffffff 100%) !important;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.document-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.document-icon {
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.document-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.document-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f8ff 50%, #ffffff 100%) !important;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
}

.form-checkbox {
    margin-bottom: 1.2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label span a {
    color: var(--primary-light);
    text-decoration: underline;
}

.checkbox-label span a:hover {
    color: var(--primary-dark);
}

/* Security Check Field */
.security-check {
    background: linear-gradient(135deg, #f0f7fa 0%, #e8f4f8 100%);
    padding: 1.25rem;
    border-radius: 8px;
    border: 2px solid var(--primary-light);
    margin-top: 1.5rem;
}

.security-check label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.security-check .security-icon {
    font-size: 1.1rem;
}

.security-check #securityQuestion {
    font-weight: 700;
    color: var(--accent-green);
    background: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 1.1rem;
}

.security-check input[type="number"] {
    width: 150px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--primary-light);
}

.security-check input[type="number"]:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(108, 177, 62, 0.2);
}

/* Hide number input spinners */
.security-check input[type="number"]::-webkit-outer-spin-button,
.security-check input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.security-check input[type="number"] {
    -moz-appearance: textfield;
}

.form-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    display: none;
    font-weight: 500;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
}

.qr-code {
    text-align: center;
}

.qr-code h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.qr-code img {
    max-width: 250px;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-light);
    border-radius: 10px;
    padding: 1rem;
}

.qr-code p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 1rem;
}

.footer h4 {
    margin-bottom: 1rem;
    color: var(--accent-light-green);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-light-green);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 5px;
}

.social-link:hover {
    opacity: 1;
    color: var(--accent-light-green);
    background: rgba(255, 255, 255, 0.05);
}

.social-link svg {
    flex-shrink: 0;
}

.social-link span {
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===================================
   Lightbox
   =================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    z-index: 10002;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent-green);
}

#lightboxImage {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 3rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.2;
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow);
        padding: 2.5rem 0;
        gap: 1.5rem;
        margin-left: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

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

    .program-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero {
        margin-top: 70px;
    }

    .hero-logo-image {
        max-width: 300px;
        width: 75%;
    }

    .hero-logo-image:hover {
        transform: scale(1.08) translateY(-8px);
    }

    .hero-circle-1,
    .hero-circle-3 {
        display: none;
    }

    .hero-cathedral {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .lightbox-nav {
        font-size: 2rem;
        padding: 0.5rem 1rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

/* ===================================
   Short Viewport Height Optimization
   =================================== */
@media (max-height: 700px) {
    .hero {
        min-height: auto;
        padding: 1rem 0;
    }

    .hero-logo-image {
        max-width: 350px;
    }

    .hero-logo-display {
        margin-bottom: 0.8rem;
    }

    .hero-title {
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        margin-bottom: 1rem;
    }

    .hero-description {
        margin-bottom: 1rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .header,
    .nav-toggle,
    .scroll-indicator,
    .contact-form,
    .footer {
        display: none;
    }

    .hero {
        margin-top: 0;
        height: auto;
        min-height: auto;
        padding: 2rem 0;
    }
}
