/* Responsive Improvements for index.html */

/* University logos responsive styling */
.university-logo {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
}

.university-logo:hover {
    transform: scale(1.05);
}

/* Testimony section improvements */
.testimony-container {
    position: relative;
}

.testimony-bg {
    position: relative;
}

.testimony-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: white;
}

.testimony-location {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.testimony-subject {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 1rem;
}

.testimony {
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Gallery improvements */
.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Button improvements */
.orange-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    border: none;
}

.orange-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(244, 151, 30, 0.3);
    color: #fff !important;
}

/* Text content improvements */
.text-content {
    padding: 20px 0;
}

.text-content h2,
.text-content h3 {
    margin-bottom: 1rem;
}

.text-content p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    .juku-details-section {
        padding-top: 10%;
    }
    
    .juku-details-content {
        font-size: 16px;
        width: 100%;
        padding: 0 15px;
    }
    
    .university-logo {
        max-height: 60px;
    }
    
    .testimony-content {
        padding: 15px;
    }
    
    .testimony-location {
        font-size: 1.1em;
    }
    
    .testimony-subject {
        font-size: 0.9em;
    }
    
    .testimony {
        font-size: 0.8em;
    }
    
    .gallery-image {
        height: 150px;
    }
    
    .orange-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (max-width: 576px) {
    .juku-details-header {
        font-size: 28px;
    }
    
    .university-logo {
        max-height: 50px;
    }
    
    .testimony-content {
        padding: 10px;
    }
    
    .testimony-location {
        font-size: 1em;
    }
    
    .testimony-subject {
        font-size: 0.85em;
    }
    
    .testimony {
        font-size: 0.75em;
    }
    
    .gallery-image {
        height: 120px;
    }
}

/* Tablet improvements */
@media (min-width: 768px) and (max-width: 1024px) {
    .university-logo {
        max-height: 70px;
    }
    
    .gallery-image {
        height: 180px;
    }
    
    .testimony-content {
        padding: 18px;
    }
}

/* Large screen improvements */
@media (min-width: 1200px) {
    .container-fluid {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .university-logo {
        max-height: 90px;
    }
    
    .gallery-image {
        height: 220px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .university-logo,
    .gallery-image,
    .orange-btn {
        transition: none;
    }
    
    .university-logo:hover,
    .gallery-image:hover,
    .orange-btn:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .orange-btn {
        border: 2px solid currentColor;
    }
    
    .gallery-image {
        border: 1px solid currentColor;
    }
}

/* Contact Page Specific Styles */
.header-banner {
    margin-bottom: 0;
}

.header-banner img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.contact-location {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 2rem;
}

.contact-location:last-child {
    border-bottom: none;
}

.location-title {
    color: #095493;
    font-weight: 900;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.location-map img {
    width: 100%;
    height: auto;
    border: 2px solid #e5e5e5;
    background-color: #fff;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-map img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.location-details {
    padding-left: 1rem;
}

.contact-info {
    margin: 0;
}

.info-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.info-item:hover {
    background: #e9ecef;
}

.info-item dt {
    color: #095493;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.info-item dd {
    color: #495057;
    font-size: 1rem;
    margin-left: 1.5rem;
}

.info-item a {
    color: #495057;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: #095493;
    text-decoration: underline !important;
}

/* Mobile-specific contact styles */
@media (max-width: 768px) {
    .location-title {
        font-size: 1.8rem;
        text-align: center !important;
    }
    
    .location-details {
        padding-left: 0;
        margin-top: 1rem;
    }
    
    .info-item {
        margin-bottom: 1rem;
        padding: 0.75rem;
    }
    
    .info-item dt {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .info-item dd {
        margin-left: 1rem;
        font-size: 0.9rem;
    }
    
    .header-banner img {
        max-height: 200px;
    }
}

@media (max-width: 576px) {
    .location-title {
        font-size: 1.5rem;
    }
    
    .info-item {
        padding: 0.5rem;
    }
    
    .info-item dt {
        font-size: 0.95rem;
    }
    
    .info-item dd {
        font-size: 0.85rem;
        margin-left: 0.5rem;
    }
    
    .location-map img {
        padding: 10px;
    }
}

/* Tablet improvements for contact */
@media (min-width: 768px) and (max-width: 1024px) {
    .location-title {
        font-size: 2.2rem;
    }
    
    .location-details {
        padding-left: 0.5rem;
    }
}

/* Large screen improvements for contact */
@media (min-width: 1200px) {
    .location-title {
        font-size: 2.8rem;
    }
    
    .location-details {
        padding-left: 2rem;
    }
    
    .info-item {
        padding: 1.5rem;
    }
}

/* Registration Page Specific Styles */
.registration-header {
    font-size: 3rem;
    color: #095493;
}

.registration-divider {
    height: 3px;
    width: 100px;
    background-color: #095493;
    border: none;
    opacity: 1;
}

.registration-steps {
    max-width: 1000px;
    margin: 0 auto;
}

.step-container {
    position: relative;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #095493;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.step-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

.step-image {
    position: relative;
    display: inline-block;
}

.step-arrow {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #095493;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.step-content {
    text-align: left;
}

.step-title {
    color: #095493;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-description {
    color: #495057;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 0;
}

.application-section {
    margin-top: 4rem;
}

.application-card {
    background: linear-gradient(135deg, #e4e4e4 0%, #d6d6d6 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.application-title {
    color: #333;
    font-size: 1.8rem;
    font-weight: bold;
}

.download-icon {
    padding: 1rem;
}

.download-text {
    color: #095493;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.application-instruction {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.inquiry-btn {
    background-color: #727272;
    border-color: #727272;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.inquiry-btn:hover {
    background-color: #5a5a5a;
    border-color: #5a5a5a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(114, 114, 114, 0.3);
}

/* Mobile-specific registration styles */
@media (max-width: 768px) {
    .registration-header {
        font-size: 2rem;
    }
    
    .registration-divider {
        width: 80px;
    }
    
    .step-container {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .step-content {
        text-align: center;
    }
    
    .step-title {
        font-size: 1.3rem;
    }
    
    .step-description {
        font-size: 0.95rem;
    }
    
    .step-arrow {
        max-width: 100px;
    }
    
    .application-card {
        margin: 0 1rem;
        padding: 2rem 1rem !important;
    }
    
    .application-title {
        font-size: 1.5rem;
    }
    
    .download-text {
        font-size: 1rem;
    }
    
    .application-instruction {
        font-size: 0.9rem;
    }
    
    .inquiry-btn {
        font-size: 1rem;
        padding: 10px 25px;
    }
}

@media (max-width: 576px) {
    .registration-header {
        font-size: 1.8rem;
    }
    
    .step-container {
        padding: 1rem;
        border-left: 3px solid #095493;
    }
    
    .step-title {
        font-size: 1.2rem;
    }
    
    .step-description {
        font-size: 0.9rem;
    }
    
    .step-arrow {
        max-width: 80px;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .application-title {
        font-size: 1.3rem;
    }
    
    .download-text {
        font-size: 0.9rem;
    }
    
    .application-instruction {
        font-size: 0.85rem;
    }
}

/* Tablet improvements for registration */
@media (min-width: 768px) and (max-width: 1024px) {
    .registration-header {
        font-size: 2.5rem;
    }
    
    .step-title {
        font-size: 1.4rem;
    }
    
    .step-arrow {
        max-width: 110px;
    }
    
    .application-title {
        font-size: 1.7rem;
    }
}

/* Large screen improvements for registration */
@media (min-width: 1200px) {
    .registration-header {
        font-size: 3.2rem;
    }
    
    .step-container {
        padding: 2.5rem;
    }
    
    .step-title {
        font-size: 1.6rem;
    }
    
    .step-description {
        font-size: 1.1rem;
    }
    
    .step-arrow {
        max-width: 140px;
    }
    
    .application-title {
        font-size: 2rem;
    }
    
    .download-text {
        font-size: 1.2rem;
    }
    
    .application-instruction {
        font-size: 1.1rem;
    }
}

/* Subjects Page Specific Styles */
.subjects-content {
    max-width: 1200px;
    margin: 0 auto;
}

.subject-section {
    padding: 2rem;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #095493;
    transition: all 0.3s ease;
}

.subject-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.subject-section:nth-child(even) {
    background: #f8f9fa;
}

.subject-image img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.subject-image img:hover {
    transform: scale(1.02);
}

.subject-content {
    padding: 0 1rem;
}

.subject-header {
    color: #095493;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.2;
}

.subject-description {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.subject-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.curriculum-title {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #095493;
    padding-bottom: 0.5rem;
}

.curriculum-list {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.curriculum-list li {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.3rem;
    position: relative;
}

.curriculum-list li::marker {
    color: #095493;
}

.exam-section {
    margin-top: 3rem;
}

.exam-card {
    background: linear-gradient(135deg, #e4e4e4 0%, #d6d6d6 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.exam-title {
    color: #333;
    font-size: 1.8rem;
    font-weight: bold;
}

.exam-instruction {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Mobile-specific subjects styles */
@media (max-width: 768px) {
    .subjects-content {
        padding: 0 1rem;
    }
    
    .subject-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .subject-content {
        padding: 0;
        text-align: center;
    }
    
    .subject-header {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .subject-description {
        font-size: 0.95rem;
    }
    
    .subject-details {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .curriculum-title {
        font-size: 1rem;
        text-align: center;
    }
    
    .curriculum-list {
        text-align: left;
        margin-top: 0.5rem;
    }
    
    .curriculum-list li {
        font-size: 0.9rem;
    }
    
    .subject-image img {
        max-height: 200px;
        margin-bottom: 1rem;
    }
    
    .exam-card {
        margin: 0 1rem;
        padding: 2rem 1rem !important;
    }
    
    .exam-title {
        font-size: 1.5rem;
    }
    
    .exam-instruction {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .subject-section {
        padding: 1rem;
        border-left: 3px solid #095493;
    }
    
    .subject-header {
        font-size: 1.4rem;
    }
    
    .subject-description {
        font-size: 0.9rem;
    }
    
    .subject-details {
        padding: 0.8rem;
    }
    
    .curriculum-title {
        font-size: 0.95rem;
    }
    
    .curriculum-list li {
        font-size: 0.85rem;
    }
    
    .subject-image img {
        max-height: 180px;
    }
    
    .exam-title {
        font-size: 1.3rem;
    }
    
    .exam-instruction {
        font-size: 0.85rem;
    }
}

/* Tablet improvements for subjects */
@media (min-width: 768px) and (max-width: 1024px) {
    .subject-header {
        font-size: 1.8rem;
    }
    
    .subject-description {
        font-size: 0.98rem;
    }
    
    .curriculum-title {
        font-size: 1.05rem;
    }
    
    .subject-image img {
        max-height: 220px;
    }
    
    .exam-title {
        font-size: 1.7rem;
    }
}

/* Large screen improvements for subjects */
@media (min-width: 1200px) {
    .subject-section {
        padding: 2.5rem;
    }
    
    .subject-header {
        font-size: 2.2rem;
    }
    
    .subject-description {
        font-size: 1.1rem;
    }
    
    .subject-details {
        padding: 2rem;
    }
    
    .curriculum-title {
        font-size: 1.2rem;
    }
    
    .curriculum-list li {
        font-size: 1rem;
    }
    
    .subject-content {
        padding: 0 2rem;
    }
    
    .subject-image img {
        max-height: 280px;
    }
    
    .exam-title {
        font-size: 2rem;
    }
    
    .exam-instruction {
        font-size: 1.1rem;
    }
}