/* Custom Styles for Honey Convent High School */

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

/* Ensure all containers stay within viewport */
.max-w-7xl {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .max-w-7xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .max-w-7xl {
        padding-left: 2rem;
        padding-right: 2rem;
        max-width: 80rem;
    }
}

.hero-bg {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(12, 42, 77, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(255, 211, 36, 0.05) 0%, transparent 30%);
    background-size: 200% 200%;
    animation: heroAnimation 20s ease infinite;
}

@keyframes heroAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Minimal Card Styles */
.minimal-card {
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.06);
    background: #fff;
    padding: 2rem;
    width: 100%;
    max-width: none;
    margin: 0 auto 0 auto;
    text-align: left;
}

@media (max-width: 767px) {
    .minimal-card {
        padding: 1.5rem;
    }
}

@media (min-width: 768px) {
    .minimal-card {
        width: 90%;
        padding: 2.5rem;
    }
}

.minimal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.minimal-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    margin-bottom: 0.75rem;
}

.minimal-card h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    text-align: center;
}

.minimal-card p, .minimal-card ul, .minimal-card li {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.minimal-card .role {
    color: #2563eb;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.minimal-card .experience {
    color: #4b5563;
    font-size: 0.75rem;
}

.section-title {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 2px;
    background: #0C2A4D;
    border-radius: 9999px;
}

.nav-link {
    color: #000000;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #0C2A4D;
}

.nav-link.active {
    color: #0C2A4D;
    font-weight: 500;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -6px;
    width: 8px;
    height: 8px;
    background: #0C2A4D;
    border-radius: 50%;
}

.btn-primary {
    background: #FFD324;
    color: #0C2A4D;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.btn-primary:hover {
    background: #FFE240;
    color: #0C2A4D;
}

.btn-outline {
    background: transparent;
    color: #0C2A4D;
    padding: 0.5rem 1rem;
    border: 1px solid #0C2A4D;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.btn-outline:hover {
    background: #0C2A4D;
    color: white;
}

/* Page-specific styles */
.page-header {
    background: linear-gradient(135deg, #0C2A4D 0%, #001E34 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

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

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .timeline-item {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
        align-items: flex-start;
    }
    .timeline-item .minimal-card {
        margin-left: 0;
    }
    .timeline-dot {
        left: 0.5rem;
    }
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: #0C2A4D;
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1.25rem;
    width: 2px;
    height: calc(100% + 1rem);
    background: hsl(240, 5.9%, 90%);
}

.timeline-item:last-child::after {
    display: none;
}

/* Prevent grid overflow */
.grid {
    width: 100%;
    max-width: 100%;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent text overflow */
.text-5xl, .text-7xl {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-bg {
        padding: 3rem 0;
    }

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

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

    /* Ensure mobile layouts don't overflow */
    .grid {
        gap: 1rem;
    }

    .text-5xl {
        font-size: 2rem; /* Slightly smaller font for better fit */
        font-size: 2.5rem;
    }

    .text-7xl {
        font-size: 3rem;
    }
}

/* Form styles */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #000000;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid hsl(240, 5.9%, 90%);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #0C2A4D;
    box-shadow: 0 0 0 3px rgba(12, 42, 77, 0.1);
}

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

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

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

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, #0C2A4D 0%, #FFD324 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-soft {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-soft:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Responsive override for Mission & Vision cards on About Us */
@media (max-width: 900px) {
  .about-mission-vision-row > div {
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}
@media (min-width: 901px) {
  .about-mission-vision-row > div {
    min-width: 45% !important;
    max-width: 45% !important;
    width: 45% !important;
  }
}

/* Remove list-style for ul if needed, but keep .list-disc for bullets */
.minimal-card ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Timeline vertical line and dot alignment */
@media (min-width: 768px) {
  .admission-process-timeline {
    position: relative;
    padding-left: 72px;
  }
  .admission-process-timeline .timeline-dot {
    position: absolute;
    left: 0;
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    background: #1e293b;
    border: 4px solid #fff;
    box-shadow: 0 2px 6px 0 rgba(0,0,0,0.10);
    top: 50%;
    transform: translateY(-50%);
  }
  .admission-process-timeline .timeline-line {
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e5e7eb;
    z-index: 0;
  }
}
