/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}
:root {
	--primary-color-msg: #002147;
	--accent-color-msg: #fdc800;
}
/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

















/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

.messages-section {
	background: linear-gradient(135deg, var(--primary-color-msg) 0%, #003366 100%);
	padding: 80px 0;
	position: relative;
	overflow: hidden;
}

.messages-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
	opacity: 0.1;
}

.section-title {
	color: var(--accent-color-msg);
	font-size: 2.5rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: 3rem;
	position: relative;
	z-index: 2;
}

.section-title::after {
	content: '';
	display: block;
	width: 100px;
	height: 4px;
	background: var(--accent-color-msg);
	margin: 20px auto;
	border-radius: 2px;
}

.swiper-container {
	width: 100%;
	height: auto;
	position: relative;
	z-index: 2;
}

.message-slide {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 20px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	margin: 20px 0;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.message-slide:hover {
	transform: translateY(-5px);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.message-content {
	padding: 40px;
	height: 100%;
	display: flex;
	align-items: center;
}

.image-section {
	position: relative;
	overflow: hidden;
}

.principal-image {
	width: 100%;
	height: 300px;
	object-fit: cover;
	border-radius: 15px;
	transition: transform 0.3s ease;
}

.principal-image:hover {
	transform: scale(1.05);
}

.image-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(45deg, var(--primary-color-msg)20, transparent 70%);
	border-radius: 15px;
}

.content-section {
	padding-left: 30px;
}

.principal-name {
	color: var(--primary-color-msg);
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	animation: fadeInUp 0.6s ease-out;
}

.principal-designation {
	color: var(--accent-color-msg);
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	animation: fadeInUp 0.6s ease-out 0.2s both;
}

.quote-icon {
	font-size: 3rem;
	color: var(--accent-color-msg);
	opacity: 0.8;
	margin-bottom: 1rem;
	animation: bounceIn 0.8s ease-out 0.4s both;
}

.principal-message {
	color: var(--primary-color-msg);
	font-size: 1.1rem;
	line-height: 1.8;
	font-style: italic;
	position: relative;
	animation: fadeInUp 0.6s ease-out 0.6s both;
}

.principal-message::before,
.principal-message::after {
	content: '"';
	font-size: 2rem;
	color: var(--accent-color-msg);
	font-weight: 700;
	position: absolute;
}

.principal-message::before {
	top: -10px;
	left: -20px;
}

.principal-message::after {
	bottom: -30px;
	right: -10px;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
	color: var(--accent-color-msg);
	background: var(--primary-color-msg);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	margin-top: -25px;
	transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
	background: var(--accent-color-msg);
	color: var(--primary-color-msg);
	transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
	font-size: 18px;
	font-weight: 700;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	background: rgba(253, 200, 0, 0.5);
	transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
	background: var(--accent-color-msg);
	transform: scale(1.3);
}

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

@keyframes bounceIn {
	0% {
		opacity: 0;
		transform: scale(0.3);
	}
	50% {
		opacity: 1;
		transform: scale(1.1);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
	.messages-section {
		padding: 60px 0;
	}

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

	.message-content {
		padding: 20px;
		flex-direction: column;
	}

	.content-section {
		padding-left: 0;
		padding-top: 20px;
		text-align: center;
	}

	.principal-image {
		height: 250px;
	}

	.principal-name {
		font-size: 1.5rem;
	}

	.principal-designation {
		font-size: 1rem;
	}

	.principal-message {
		font-size: 1rem;
		text-align: left;
	}

	.quote-icon {
		font-size: 2.5rem;
	}
}

@media (max-width: 576px) {
	.principal-image {
		height: 200px;
	}

	.principal-name {
		font-size: 1.3rem;
	}

	.principal-message {
		font-size: 0.95rem;
	}
}

/* Floating Animation for Quote Icons */
.quote-icon {
	animation: float 3s ease-in-out infinite;
}

@keyframes float {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-10px);
	}
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px !important;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    height: 30px !important;
}

.swiper-button-next, .swiper-button-prev {
    width: 40px !important;
    height: 40px !important;
}
